Re: mmap()ed AF_NETLINK: lockdep and sleep-in-atomic warnings

2015-07-14 Thread Stephen Hemminger
On Tue, 14 Jul 2015 11:50:37 +0200 Florian Westphal wrote: > Thomas Graf wrote: > > On 07/13/15 at 10:11pm, Cong Wang wrote: > > > Caused by: > > > > > > commit 21e4902aea80ef35afc00ee8d2abdea4f519b7f7 > > > Author: Thomas Graf > > > Date: Fri Jan 2 23:00:22 2015 +0100 > > > > > > netli

Re: mmap()ed AF_NETLINK: lockdep and sleep-in-atomic warnings

2015-07-14 Thread Florian Westphal
Thomas Graf wrote: > On 07/13/15 at 10:11pm, Cong Wang wrote: > > Caused by: > > > > commit 21e4902aea80ef35afc00ee8d2abdea4f519b7f7 > > Author: Thomas Graf > > Date: Fri Jan 2 23:00:22 2015 +0100 > > > > netlink: Lockless lookup with RCU grace period in socket release > > > > Defers

Re: mmap()ed AF_NETLINK: lockdep and sleep-in-atomic warnings

2015-07-14 Thread Thomas Graf
On 07/13/15 at 10:11pm, Cong Wang wrote: > Caused by: > > commit 21e4902aea80ef35afc00ee8d2abdea4f519b7f7 > Author: Thomas Graf > Date: Fri Jan 2 23:00:22 2015 +0100 > > netlink: Lockless lookup with RCU grace period in socket release > > Defers the release of the socket reference usi

Re: mmap()ed AF_NETLINK: lockdep and sleep-in-atomic warnings

2015-07-13 Thread Cong Wang
On Mon, Jul 13, 2015 at 6:18 AM, Kirill A. Shutemov wrote: > Hi, > > This simple test-case trigers few locking asserts in kernel: > > #define _GNU_SOURCE > #include > #include > #include > #include > #include > #include > #include > > #define SOL_NETLINK 270 > > int main(int argc, char **ar

mmap()ed AF_NETLINK: lockdep and sleep-in-atomic warnings

2015-07-13 Thread Kirill A. Shutemov
Hi, This simple test-case trigers few locking asserts in kernel: #define _GNU_SOURCE #include #include #include #include #include #include #include #define SOL_NETLINK 270 int main(int argc, char **argv) { unsigned int block_size = 16 * 4096; struct nl_mmap_req req = {