diff options
| author | Alexey Dobriyan <[email protected]> | 2007-05-08 07:26:46 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-05-08 18:15:04 +0000 |
| commit | 19c5d45a09312ca20cd1f9df3fd1a87fe0cb8aac (patch) | |
| tree | de228e847ea4846e77cd64b35ca74eb5daa3d242 /security/selinux/hooks.c | |
| parent | futex: restartable futex_wait (diff) | |
| download | kernel-19c5d45a09312ca20cd1f9df3fd1a87fe0cb8aac.tar.gz kernel-19c5d45a09312ca20cd1f9df3fd1a87fe0cb8aac.zip | |
/proc/*/oom_score oops re badness
Eternal quest to make
while true; do cat /proc/fs/xfs/stat >/dev/null 2>/dev/null; done
while true; do find /proc -type f 2>/dev/null | xargs cat >/dev/null 2>/dev/null; done
while true; do modprobe xfs; rmmod xfs; done
work reliably continues and now kernel oopses in the following way:
BUG: unable to handle ... at virtual address 6b6b6b6b
EIP is at badness
process: cat
proc_oom_score
proc_info_read
sys_fstat64
vfs_read
proc_info_read
sys_read
Failing code is prefetch hidden in list_for_each_entry() in badness().
badness() is reachable from two points. One is proc_oom_score, another
is out_of_memory() => select_bad_process() => badness().
Second path grabs tasklist_lock, while first doesn't.
Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
