lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+G9fYsk85UOsa0ijXcYRvvZLXEMQKe4phWhND+0qSNP36N5Tw@mail.gmail.com>
Date: Mon, 1 Jul 2024 15:49:12 +0530
From: Naresh Kamboju <naresh.kamboju@...aro.org>
To: open list <linux-kernel@...r.kernel.org>, linux-fsdevel@...r.kernel.org, 
	lkft-triage@...ts.linaro.org
Cc: Jan Kara <jack@...e.cz>, Christian Brauner <brauner@...nel.org>, Hugh Dickins <hughd@...gle.com>, 
	Andrii Nakryiko <andrii@...nel.org>, Al Viro <viro@...iv.linux.org.uk>, 
	Dan Carpenter <dan.carpenter@...aro.org>, Anders Roxell <anders.roxell@...aro.org>, 
	Arnd Bergmann <arnd@...db.de>
Subject: fs/proc/task_mmu.c:598:48: error: cast to pointer from integer of
 different size

The i386 build failures are noticed on Linux next-20240627 and next-20240628
tag. But the clang-18 builds pass.

Reported-by: Linux Kernel Functional Testing <lkft@...aro.org>

Regressions found on i386:

 - gcc-8-i386_defconfig
 - gcc-13-defconfig

Build log:
-------
fs/proc/task_mmu.c: In function 'do_procmap_query':
fs/proc/task_mmu.c:598:48: error: cast to pointer from integer of
different size [-Werror=int-to-pointer-cast]
  598 |         if (karg.vma_name_size && copy_to_user((void __user
*)karg.vma_name_addr,
      |                                                ^
fs/proc/task_mmu.c:605:48: error: cast to pointer from integer of
different size [-Werror=int-to-pointer-cast]
  605 |         if (karg.build_id_size && copy_to_user((void __user
*)karg.build_id_addr,
      |                                                ^
cc1: all warnings being treated as errors

Steps to reproduce:
-------
# tuxmake --runtime podman --target-arch i386 --toolchain gcc-13
--kconfig defconfig

metadata:
----
 git_describe: next-20240628
 git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
 git_short_log: 1eb586a9782c ("Add linux-next specific files for 20240628")
 arch: i386
 toolchain: gcc-13

Links:
---
 - https://storage.tuxsuite.com/public/linaro/lkft/builds/2iWYcW0sQJ6j62u46MNgQ3FagUd/
 - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240628/testrun/24464887/suite/build/test/gcc-13-cell_defconfig/details/
 - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240628/testrun/24464887/suite/build/test/gcc-13-cell_defconfig/log

--
Linaro LKFT
https://lkft.linaro.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ