Skip to content
Commit febafc84 authored by Jon Maloy's avatar Jon Maloy Committed by David S. Miller
Browse files

tipc: fix a potental access after delete in tipc_sk_join()

In commit d12d2e12

 "tipc: send out join messages as soon as new
member is discovered") we added a call to the function tipc_group_join()
without considering the case that the preceding tipc_sk_publish() might
have failed, and the group item already deleted.

We fix this by returning from tipc_sk_join() directly after the
failed tipc_sk_publish.

Reported-by: default avatar <syzbot+e3eeae78ea88b8d6d858@syzkaller.appspotmail.com>
Signed-off-by: default avatarJon Maloy <jon.maloy@ericsson.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2c76b348
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment