]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Fix NULL pointer dereference in __tipc_sendstream()
authorYueHaibing <yuehaibing@huawei.com>
Thu, 28 May 2020 14:34:07 +0000 (22:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2020 22:33:24 +0000 (15:33 -0700)
commitc26716dad2693c2471846dda9842e3e6ace0010d
tree6fe27ee7cb67f7f769a420f7aa329bd1dd24d004
parent69c1ac48abf579579cacb608a50db51955c09250
tipc: Fix NULL pointer dereference in __tipc_sendstream()

tipc_sendstream() may send zero length packet, then tipc_msg_append()
do not alloc skb, skb_peek_tail() will get NULL, msg_set_ack_required
will trigger NULL pointer dereference.

Reported-by: syzbot+8eac6d030e7807c21d32@syzkaller.appspotmail.com
Fixes: 1dead9fd4e53 ("tipc: add test for Nagle algorithm effectiveness")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c