Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753773Ab1DLNDY (ORCPT ); Tue, 12 Apr 2011 09:03:24 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:59547 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752502Ab1DLNDW convert rfc822-to-8bit (ORCPT ); Tue, 12 Apr 2011 09:03:22 -0400 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 12 Apr 2011 15:03:22 +0200 Message-ID: Subject: Re: Processes hang in an unkillable state From: =?UTF-8?B?Um9iZXJ0IMWad2nEmWNraQ==?= To: =?UTF-8?Q?Am=C3=A9rico_Wang?= Cc: linux-kernel@vger.kernel.org, oleg@redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2374 Lines: 67 On Tue, Apr 12, 2011 at 2:44 PM, Américo Wang wrote: > 2011/4/12 Robert Święcki : >> Hi, while fuzzing Linux system calls (32bit fuzzer, 64bi linux >> kernel), it happens after some time (10-20mins) that some processes >> enter a state which makes them un-killable. They are either in R or D >> state. >> >> # strace ps wwuax >> ... >> ... >> open("/proc/450/cmdline", O_RDONLY)     = 6 >> read(6,  -             hangs.... >> >> # kill -9 450 >> # kill -9 450 (no ESRCH) >> >> More data in the attachment - I'll keep it in the kdb session for >> further examination. > > Hmm, it must be stuck at > > lib/rwsem.c > >        /* wait to be given the lock */ >        for (;;) { >                if (!waiter.task) >                        break; >                schedule(); >                set_task_state(tsk, TASK_UNINTERRUPTIBLE); >        } > > don't know why it still can't acquire the ->mmap_sem... btw, the ps process trying to read /proc/450/cmdline is stuck in [0]kdb> bt Stack traceback for pid 6959 0xffff880113334590 6959 18384 0 1 D 0xffff880113334a10 ps ffff88011f8f9d00 0000000000000082 00000040ffffffff 0000000000000000 ffff88012bffcc08 ffff88011f8f8000 ffff88011f8f8000 ffff880113334590 ffff88011f8f8010 ffff880113334948 ffff88011f8f9fd8 ffff88011f8f9fd8 Call Trace: [] rwsem_down_failed_common+0xc5/0x160 [] rwsem_down_read_failed+0x15/0x17 [] call_rwsem_down_read_failed+0x14/0x30 [] ? get_task_mm+0x40/0x80 [] ? down_read+0x17/0x20 [] access_process_vm+0x4b/0x1f0 [] ? _raw_spin_unlock+0x1a/0x40 [] proc_pid_cmdline+0x6d/0x120 [] ? alloc_pages_current+0xa1/0x100 [] proc_info_read+0xad/0xf0 [] vfs_read+0xc5/0x190 [] sys_read+0x51/0x90 [] system_call_fastpath+0x16/0x1b -- Robert Święcki -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/