Alexey Dobriyan 19c5d45a09 /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 <adobriyan@sw.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-08 11:15:04 -07:00
..
2007-05-08 11:14:59 -07:00
2007-05-08 11:15:01 -07:00
2007-05-08 11:15:01 -07:00
2007-05-08 11:14:59 -07:00
2007-05-08 11:15:01 -07:00
2007-05-08 11:14:59 -07:00
2007-05-08 11:14:59 -07:00
2007-05-08 11:14:57 -07:00
2007-05-08 11:15:04 -07:00
2006-10-04 06:51:26 -06:00
2007-05-08 11:14:59 -07:00
2006-12-07 08:39:25 -08:00
2007-05-08 11:15:01 -07:00
2007-05-08 11:15:00 -07:00
2007-05-08 11:15:01 -07:00
2007-05-07 12:12:58 -07:00
2006-12-07 08:39:25 -08:00
2007-05-08 11:14:57 -07:00
2007-05-08 11:15:01 -07:00
2006-10-01 00:39:19 -07:00
2007-03-29 14:26:42 +02:00
2007-05-08 11:15:01 -07:00