Re: KASAN: stack-out-of-bounds Read in __nla_put

2018-01-17 Thread Xin Long
On Thu, Jan 18, 2018 at 12:59 AM, David Ahern wrote: > On 1/17/18 2:39 AM, Xin Long wrote: >> I guess you need to move up your memset(0) a little bit: >> >> @@ -2427,6 +2443,7 @@ int netlink_rcv_skb(struct sk_buff *skb, int >> (*cb)(struct sk_buff *, >> nlh =

Re: KASAN: stack-out-of-bounds Read in __nla_put

2018-01-17 Thread Xin Long
On Thu, Jan 18, 2018 at 12:59 AM, David Ahern wrote: > On 1/17/18 2:39 AM, Xin Long wrote: >> I guess you need to move up your memset(0) a little bit: >> >> @@ -2427,6 +2443,7 @@ int netlink_rcv_skb(struct sk_buff *skb, int >> (*cb)(struct sk_buff *, >> nlh = nlmsg_hdr(skb); >>

Re: KASAN: stack-out-of-bounds Read in __nla_put

2018-01-17 Thread David Ahern
On 1/17/18 2:39 AM, Xin Long wrote: > I guess you need to move up your memset(0) a little bit: > > @@ -2427,6 +2443,7 @@ int netlink_rcv_skb(struct sk_buff *skb, int > (*cb)(struct sk_buff *, > nlh = nlmsg_hdr(skb); > err = 0; > > + memset(, 0,

Re: KASAN: stack-out-of-bounds Read in __nla_put

2018-01-17 Thread David Ahern
On 1/17/18 2:39 AM, Xin Long wrote: > I guess you need to move up your memset(0) a little bit: > > @@ -2427,6 +2443,7 @@ int netlink_rcv_skb(struct sk_buff *skb, int > (*cb)(struct sk_buff *, > nlh = nlmsg_hdr(skb); > err = 0; > > + memset(, 0,

Re: KASAN: stack-out-of-bounds Read in __nla_put

2018-01-17 Thread Xin Long
On Wed, Jan 17, 2018 at 1:58 AM, syzbot wrote: > Hello, > > syzkaller hit the following crash on > fdddade65d7b5f8779374eb73d09889185280f60 > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1

Re: KASAN: stack-out-of-bounds Read in __nla_put

2018-01-17 Thread Xin Long
On Wed, Jan 17, 2018 at 1:58 AM, syzbot wrote: > Hello, > > syzkaller hit the following crash on > fdddade65d7b5f8779374eb73d09889185280f60 > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is