oops in proc_sys_compare
From: Hugh Dickins <hidden>
Date: 2008-08-14 18:31:17
I got this oops below, after several hours of swap-heavy kernel builds in tmpfs, on 2.6.27-rc1-mm1 a couple of weeks ago. Tried to reproduce it without success, then got a very similar trace (not saved) from 2.6.27-rc3 itself doing the same test yesterday: again oopsing in proc_sys_compare on address -16, looks like it's trying for PROC_I(dentry->d_inode)->sysctl but d_inode is NULL. I looked to see what's been going on in fs/proc recently, and your [PATCH] sanitize proc_sysctl 9043476f726802f4b00c96d0c4f418dde48d1304 does sound like it might be implicated. I've only seen this on PowerPC G5, similar tests on x86_32 and _64 haven't shown it: maybe a memory barrier needed somewhere? Hugh Unable to handle kernel paging request for data at address 0xfffffffffffffff0 Faulting instruction address: 0xc000000000121ec4 Oops: Kernel access of bad area, sig: 11 [#1] PREEMPT SMP NR_CPUS=4 PowerMac Modules linked in: NIP: c000000000121ec4 LR: c000000000121eb4 CTR: 0000000000000000 REGS: c000000002af33f0 TRAP: 0300 Not tainted (2.6.27-rc1-mm1) MSR: 9000000000009032 <EE,ME,IR,DR> CR: 24222482 XER: 00000000 DAR: fffffffffffffff0, DSISR: 0000000040000000 TASK = c000000002d22500[26561] 'sh' THREAD: c000000002af0000 CPU: 3 GPR00: 0000000000000078 c000000002af3670 c0000000005cf520 0000000000000000 GPR04: c0000000021ba01b 000000000000000b c000000015e63596 c0000000021ba011 GPR08: 0001f59632fdb346 0000000000000000 000000000001ffff 0000000000000000 GPR12: 0000000020222424 c0000000005ec800 0000000000000000 0000000000000000 GPR16: 00000000200be41c 0000000000000000 c000000002af38d0 c000000002af38b0 GPR20: c000000002af38c0 c000000002af3bf8 0000000000000101 0000000000000024 GPR24: c0000000021ba011 0000000032fdb346 000000000000000b c000000002af38c0 GPR28: c000000015e634f8 c000000015e634e0 c000000000562498 c000000015e63510 NIP [c000000000121ec4] .proc_sys_compare+0x48/0x7c LR [c000000000121eb4] .proc_sys_compare+0x38/0x7c Call Trace: [c000000002af3670] [c000000000522620] root_table_header+0x0/0x58 (unreliable) [c000000002af36f0] [c0000000000dabdc] .__d_lookup+0xf4/0x1f0 [c000000002af37a0] [c0000000000d0978] .do_lookup+0x38/0x128 [c000000002af3840] [c0000000000d1438] .__link_path_walk+0x9d0/0xf30