lkml.org 
[lkml]   [2014]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [net: sock] BUG: unable to handle kernel NULL pointer dereference at 0000000000000007
On Wed, Dec 10, 2014 at 03:51:33PM -0800, Alexei Starovoitov wrote:
> On Wed, Dec 10, 2014 at 3:29 PM, Fengguang Wu <fengguang.wu@intel.com> wrote:
> > Greetings,
> >
> > 0day kernel testing robot got the below dmesg and the first bad commit is
> >
> > net: sock: allow eBPF programs to be attached to sockets
>
> > [init] Kernel was tainted on startup. Will ignore flags that are already set.
> > [init] Started watchdog process, PID is 9354
> > [main] Main thread is alive.
> > [ 21.233581] BUG: unable to handle kernel NULL pointer dereference at 0000000000000007
> > [ 21.234709] IP: [<ffffffff8156ebda>] sk_attach_bpf+0x39/0xc2
>
> thanks for the report! syscall fuzzer is great.
> I missed an extra check. Working on a fix.

This might be the first time I've seen it trip up the bpf code iirc.
Daniel wrote some pretty nifty bpf generator code in trinity,
(net/bpf.c) that you might want to see if you can think of enhancing.

Though it might be the case that we're not even needing to do anything
that complicated to hit this particular bug..

Dave



\
 
 \ /
  Last update: 2014-12-11 03:21    [W:0.060 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site