lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 19 Jan 2012 13:07:33 -0500 (EST)
From:	David Miller <davem@...emloft.net>
To:	eric.dumazet@...il.com
Cc:	hans.schillstrom@...csson.com, netdev@...r.kernel.org
Subject: Re: inet6_dump_fib lock held when returning to user space

From: Eric Dumazet <eric.dumazet@...il.com>
Date: Thu, 19 Jan 2012 13:33:19 +0100

> Le jeudi 19 janvier 2012 à 11:48 +0100, Hans Schillstrom a écrit :
>> Hello
>> Have this one been seen before ?
>> It happens during a container start i.e. in a netns,
>> 
>> [   19.232941] ================================================
>> [   19.268785] [ BUG: lock held when returning to user space! ]
>> [   19.270146] 3.2.0+ #14 Tainted: G        W   
>> [   19.271217] ------------------------------------------------
>> [   19.272968] nsm/1042 is leaving the kernel with locks still held!
>> [   19.274603] 1 lock held by nsm/1042:
>> [   19.275524]  #0:  (rcu_read_lock){.+.+..}, at: [<ffffffff8136a9b2>] inet6_dump_fib+0xbd/0x34a
>> 
> 
> Yep, Dave Jones reported this some days ago
> 
> "Re: recvmsg sleeping from invalid context"
> 
> I have no idea of what happens yet.

The only way I can this happening in inet6_dump_fib() is if we somehow
sleep during fib6_dump_table(), and then return to userspace in
another task.

But that makes no sense, since in such a case we should see the
warning instead when the task schedules out, not when the
inet6_dump_fib calling task goes back to userspace.

I wonder if Dave Jones's report is even related to this one.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ