Re: [PATCH net 1/2] bpf: rcu lock must not be held when calling copy_to_user()

2015-01-23 Thread Daniel Borkmann
On 01/23/2015 02:11 AM, Alexei Starovoitov wrote: BUG: sleeping function called from invalid context at mm/memory.c:3732 in_atomic(): 0, irqs_disabled(): 0, pid: 671, name: test_maps 1 lock held by test_maps/671: #0: (rcu_read_lock){..}, at: [<00264190>] map_lookup_elem+0xe8/0x260

[PATCH net 1/2] bpf: rcu lock must not be held when calling copy_to_user()

2015-01-22 Thread Alexei Starovoitov
BUG: sleeping function called from invalid context at mm/memory.c:3732 in_atomic(): 0, irqs_disabled(): 0, pid: 671, name: test_maps 1 lock held by test_maps/671: #0: (rcu_read_lock){..}, at: [<00264190>] map_lookup_elem+0xe8/0x260 Call Trace: ([<00115b7e>] show_trace+0x12e/0