Re: Processes hang in an unkillable state

From: Robert ÅwiÄcki
Date: Tue Apr 12 2011 - 14:34:15 EST


On Tue, Apr 12, 2011 at 8:28 PM, Oleg Nesterov <oleg@xxxxxxxxxx> wrote:
> On 04/12, AmÃrico Wang wrote:
>>
>> 2011/4/12 Robert ÅwiÄcki <robert@xxxxxxxxxxx>:
>> > 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.
>>
>> http://marc.info/?t 0260440100004
>>
>> 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...
>>
>> Cc'ing Oleg...
>
> I seem to understand...
>
> Please wait a bit, I need to recheck.

Btw, Linus Torvalds is looking into a similar case in another thread -
http://marc.info/?l=linux-kernel&m=130262886420218&w=2

--
Robert ÅwiÄcki
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/