Skip to content
Commit e21dba7a authored by Martin Schiller's avatar Martin Schiller Committed by David S. Miller
Browse files

net/x25: fix nonblocking connect



This patch fixes 2 issues in x25_connect():

1. It makes absolutely no sense to reset the neighbour and the
connection state after a (successful) nonblocking call of x25_connect.
This prevents any connection from being established, since the response
(call accept) cannot be processed.

2. Any further calls to x25_connect() while a call is pending should
simply return, instead of creating new Call Request (on different
logical channels).

This patch should also fix the "KASAN: null-ptr-deref Write in
x25_connect" and "BUG: unable to handle kernel NULL pointer dereference
in x25_connect" bugs reported by syzbot.

Signed-off-by: default avatarMartin Schiller <ms@dev.tdt.de>
Reported-by: default avatar <syzbot+429c200ffc8772bfe070@syzkaller.appspotmail.com>
Reported-by: default avatar <syzbot+eec0c87f31a7c3b66f7b@syzkaller.appspotmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3249b1e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment