tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: 54c65110c185a2f0d6dfd73bf24453ebef14e874
commit: 6a13b2280d95f4bb4b064083d150fd60a31baf27 [9/49] MIPS: Fix malformed NT_FILE and
NT_SIGINFO in 32bit coredumps
config: mips-nlm_xlp_defconfig (attached as .config)
compiler: mips64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 6a13b2280d95f4bb4b064083d150fd60a31baf27
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/mips/kernel/binfmt_elfn32.c:113:
arch/mips/kernel/../../../fs/binfmt_elf.c: In function 'fill_siginfo_note':
> arch/mips/kernel/../../../fs/binfmt_elf.c:1564:23: error: passing
argument 1 of 'copy_siginfo_to_user' from incompatible pointer type
[-Werror=incompatible-pointer-types]
1564 |
copy_siginfo_to_user((user_siginfo_t __user *) csigdata, siginfo);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| compat_siginfo_t * {aka struct compat_siginfo *}
In file included from include/uapi/linux/elfcore.h:6,
from include/linux/elfcore.h:10,
from arch/mips/kernel/binfmt_elfn32.c:42:
include/linux/signal.h:27:44: note: expected 'siginfo_t *' {aka 'struct
siginfo *'} but argument is of type 'compat_siginfo_t *' {aka 'struct
compat_siginfo *'}
27 | int copy_siginfo_to_user(siginfo_t __user *to, const kernel_siginfo_t *from);
| ~~~~~~~~~~~~~~~~~~^~
cc1: some warnings being treated as errors
vim +/copy_siginfo_to_user +1564 arch/mips/kernel/../../../fs/binfmt_elf.c
3aba481fc94d83ff Roland McGrath 2008-01-30 1558
49ae4d4b113be03d Denys Vlasenko 2012-10-04 1559 static void fill_siginfo_note(struct
memelfnote *note, user_siginfo_t *csigdata,
ae7795bc6187a15e Eric W. Biederman 2018-09-25 1560 const kernel_siginfo_t *siginfo)
49ae4d4b113be03d Denys Vlasenko 2012-10-04 1561 {
49ae4d4b113be03d Denys Vlasenko 2012-10-04 1562 mm_segment_t old_fs = get_fs();
49ae4d4b113be03d Denys Vlasenko 2012-10-04 1563 set_fs(KERNEL_DS);
49ae4d4b113be03d Denys Vlasenko 2012-10-04 @1564 copy_siginfo_to_user((user_siginfo_t
__user *) csigdata, siginfo);
49ae4d4b113be03d Denys Vlasenko 2012-10-04 1565 set_fs(old_fs);
49ae4d4b113be03d Denys Vlasenko 2012-10-04 1566 fill_note(note, "CORE",
NT_SIGINFO, sizeof(*csigdata), csigdata);
49ae4d4b113be03d Denys Vlasenko 2012-10-04 1567 }
49ae4d4b113be03d Denys Vlasenko 2012-10-04 1568
:::::: The code at line 1564 was first introduced by commit
:::::: 49ae4d4b113be03dc4a2ec5f2a1f573ff0fcddb3 coredump: add a new elf note with siginfo
of the signal
:::::: TO: Denys Vlasenko <vda.linux(a)googlemail.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org