Re: [PATCH net] net/x25: reset state in x25_connect()

2019-03-11 Thread David Miller
From: Eric Dumazet Date: Mon, 11 Mar 2019 13:48:44 -0700 > In case x25_connect() fails and frees the socket neighbour, > we also need to undo the change done to x25->state. > > Before my last bug fix, we had use-after-free so this > patch fixes a latent bug. > > syzbot report : ... > Fixes: 95

[PATCH net] net/x25: reset state in x25_connect()

2019-03-11 Thread Eric Dumazet
In case x25_connect() fails and frees the socket neighbour, we also need to undo the change done to x25->state. Before my last bug fix, we had use-after-free so this patch fixes a latent bug. syzbot report : kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user