Re: [PATCH net-next] net: sock: fix access via invalid file descriptor

2014-12-10 Thread David Miller
From: Alexei Starovoitov Date: Wed, 10 Dec 2014 20:14:55 -0800 > 0day robot reported the following crash: > [ 21.233581] BUG: unable to handle kernel NULL pointer dereference at > 0007 > [ 21.234709] IP: [] sk_attach_bpf+0x39/0xc2 > > It's due to bpf_prog_get() returning ERR_PTR

[PATCH net-next] net: sock: fix access via invalid file descriptor

2014-12-10 Thread Alexei Starovoitov
0day robot reported the following crash: [ 21.233581] BUG: unable to handle kernel NULL pointer dereference at 0007 [ 21.234709] IP: [] sk_attach_bpf+0x39/0xc2 It's due to bpf_prog_get() returning ERR_PTR. Check it properly. Reported-by: Fengguang Wu Fixes: 89aa075832b0 ("net: s