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: <8C9D7E49-5A75-41BE-ACCB-44FDD8FBE4D0@linux.ibm.com>
Date:   Tue, 10 Jan 2023 16:12:42 +0530
From:   Sachin Sant <sachinp@...ux.ibm.com>
To:     linux-next@...r.kernel.org, mathieu.desnoyers@...icios.com
Cc:     linuxppc-dev <linuxppc-dev@...ts.ozlabs.org>,
        open list <linux-kernel@...r.kernel.org>
Subject: [powerpc] Boot failure kernel BUG at mm/usercopy.c:102

6.2.0-rc3-next-20230109 fails to boot on powerpc with following:

[ 0.444834] ------------[ cut here ]------------
[ 0.444838] kernel BUG at mm/usercopy.c:102!
[ 0.444842] Oops: Exception in kernel mode, sig: 5 [#1]
[ 0.444845] LE PAGE_SIZE=64K MMU=Radix SMP NR_CPUS=2048 NUMA pSeries
[ 0.444849] Modules linked in:
[ 0.444853] CPU: 23 PID: 201 Comm: modprobe Not tainted 6.2.0-rc3-next-20230109 #1
[ 0.444858] Hardware name: IBM,9080-HEX POWER10 (raw) 0x800200 0xf000006 of:IBM,FW1030.00 (NH1030_026) hv:phyp pSeries
[ 0.444862] NIP: c00000000055a934 LR: c00000000055a930 CTR: 0000000000725d90
[ 0.444866] REGS: c000000007f937c0 TRAP: 0700 Not tainted (6.2.0-rc3-next-20230109)
[ 0.444871] MSR: 8000000000029033 <SF,EE,ME,IR,DR,RI,LE> CR: 28088822 XER: 00000007
[ 0.444879] CFAR: c0000000002012a8 IRQMASK: 0 
[ 0.444879] GPR00: c00000000055a930 c000000007f93a60 c0000000013b0800 0000000000000066 
[ 0.444879] GPR04: 00000000ffff7fff c000000007f93880 c000000007f93878 0000000000000000 
[ 0.444879] GPR08: 00000000ffff7fff 0000000000000000 c0000000025e7150 c0000000029672b8 
[ 0.444879] GPR12: 0000000048088824 c000000e87bf6300 c00000000017f458 c0000000034b8100 
[ 0.444879] GPR16: 000000012f18eac0 00007fffc5c095d0 00007fffc5c095d8 000000012f140040 
[ 0.444879] GPR20: fcffffffffffffff 00000000001fffff 5455555555555555 000ffffffffffff8 
[ 0.444879] GPR24: c00000000723a0c0 00007fffc5c09368 0000000000000000 00007fffc5c09370 
[ 0.444879] GPR28: 0000000000000250 0000000000000001 c000000003017000 c00000000723a0c0 
[ 0.444922] NIP [c00000000055a934] usercopy_abort+0xa4/0xb0
[ 0.444928] LR [c00000000055a930] usercopy_abort+0xa0/0xb0
[ 0.444932] Call Trace:
[ 0.444933] [c000000007f93a60] [c00000000055a930] usercopy_abort+0xa0/0xb0 (unreliable)
[ 0.444939] [c000000007f93ad0] [c00000000050eeb8] __check_heap_object+0x198/0x1d0
[ 0.444945] [c000000007f93b10] [c00000000055a7e0] __check_object_size+0x290/0x340
[ 0.444949] [c000000007f93b50] [c00000000060eba4] create_elf_tables.isra.20+0xc04/0xc90
[ 0.444956] [c000000007f93c10] [c000000000610b2c] load_elf_binary+0xdac/0x1320
[ 0.444962] [c000000007f93d00] [c000000000571cf0] bprm_execve+0x3d0/0x7c0
[ 0.444966] [c000000007f93dc0] [c000000000572b9c] kernel_execve+0x1ac/0x270
[ 0.444971] [c000000007f93e10] [c00000000017f5cc] call_usermodehelper_exec_async+0x17c/0x250
[ 0.444978] [c000000007f93e50] [c00000000000e054] ret_from_kernel_thread+0x5c/0x64
[ 0.444983] --- interrupt: 0 at 0x0
[ 0.444986] NIP: 0000000000000000 LR: 0000000000000000 CTR: 0000000000000000
[ 0.444990] REGS: c000000007f93e80 TRAP: 0000 Not tainted (6.2.0-rc3-next-20230109)
[ 0.444994] MSR: 0000000000000000 <> CR: 00000000 XER: 00000000
[ 0.444998] CFAR: 0000000000000000 IRQMASK: 0 
[ 0.444998] GPR00: 0000000000000000 c000000007f94000 0000000000000000 0000000000000000 
[ 0.444998] GPR04: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
[ 0.444998] GPR08: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
[ 0.444998] GPR12: 0000000000000000 0000000000000000 c00000000017f458 c0000000034b8100 
[ 0.444998] GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
[ 0.444998] GPR20: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
[ 0.444998] GPR24: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
[ 0.444998] GPR28: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 
[ 0.445039] NIP [0000000000000000] 0x0
[ 0.445042] LR [0000000000000000] 0x0
[ 0.445044] --- interrupt: 0
[ 0.445046] Code: 392990f8 48000014 3d02ffe9 390827f0 7d074378 7d094378 7c661b78 3c62ffe7 f9610060 386319f0 4bca6935 60000000 <0fe00000> 00000000 00000000 7c0802a6 
[ 0.445061] ---[ end trace 0000000000000000 ]—

Git bisect points to following patch:

commit 317c8194e6aeb8b3b573ad139fc2a0635856498e
     rseq: Introduce feature size and alignment ELF auxiliary vector entries

Reverting the patch helps boot the kernel.

Thanks
-Sachin

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ