]> git.hungrycats.org Git - linux/commit
[PATCH] fix might-sleep-in-atomic while dumping elf
authorZou Nanhai <nanhai.zou@intel.com>
Mon, 23 Aug 2004 06:05:48 +0000 (23:05 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 Aug 2004 06:05:48 +0000 (23:05 -0700)
commit42720989409b70663d32fc68c4196632a547ebb1
treeb2446988aaddd6f6f235f6caa621dbe15be52324
parent3d67e6da30b49622350db2a5910d9e83eefc3219
[PATCH] fix might-sleep-in-atomic while dumping elf

Here is a patch to fix a problem of might-sleep-in-atomic which David
Mosberger mentioned at
http://www.gelato.unsw.edu.au/linux-ia64/0407/10526.html

On IA64 platform, a might-sleep-in-atomic warning raise while dumping a
multi-thread process.  That is because elf_core_dump holds the tasklist_lock
before the kernel does a access_process_vm in elf_core_copy_task_regs,

This patch detached elf_core_copy_task_regs function from inside
tasklist_lock to remove the warning.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/binfmt_elf.c