syzbot


KCSAN: data-race in skb_dequeue / unix_dgram_peer_wake_me (2)

Status: auto-closed as invalid on 2020/04/20 10:54
Subsystems: net
[Documentation on labels]
First crash: 1598d, last: 1529d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in skb_dequeue / unix_dgram_peer_wake_me net 1 1628d 1628d 0/26 closed as invalid on 2019/11/19 13:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in skb_dequeue / unix_dgram_peer_wake_me

write to 0xffff8880891a68e0 of 4 bytes by task 22779 on cpu 1:
 __skb_unlink include/linux/skbuff.h:2022 [inline]
 __skb_dequeue include/linux/skbuff.h:2042 [inline]
 skb_dequeue+0x84/0x150 net/core/skbuff.c:3040
 skb_queue_purge+0x2f/0x50 net/core/skbuff.c:3077
 unix_dgram_disconnected+0x42/0xe0 net/unix/af_unix.c:472
 unix_dgram_connect+0x419/0x5a0 net/unix/af_unix.c:1174
 __sys_connect_file+0xf4/0x100 net/socket.c:1844
 __sys_connect+0x121/0x150 net/socket.c:1861
 __do_sys_connect net/socket.c:1872 [inline]
 __se_sys_connect net/socket.c:1869 [inline]
 __x64_sys_connect+0x4c/0x60 net/socket.c:1869
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880891a68e0 of 4 bytes by task 22767 on cpu 0:
 unix_recvq_full net/unix/af_unix.c:194 [inline]
 unix_dgram_peer_wake_me+0x7b/0x240 net/unix/af_unix.c:435
 unix_dgram_poll+0x3de/0x410 net/unix/af_unix.c:2681
 sock_poll+0xed/0x250 net/socket.c:1258
 vfs_poll include/linux/poll.h:90 [inline]
 ep_item_poll.isra.0+0x90/0x190 fs/eventpoll.c:871
 ep_send_events_proc+0x113/0x590 fs/eventpoll.c:1728
 ep_scan_ready_list.constprop.0+0x189/0x410 fs/eventpoll.c:698
 ep_send_events fs/eventpoll.c:1772 [inline]
 ep_poll+0xe3/0x900 fs/eventpoll.c:1909
 do_epoll_wait+0x162/0x180 fs/eventpoll.c:2273
 __do_sys_epoll_wait fs/eventpoll.c:2283 [inline]
 __se_sys_epoll_wait fs/eventpoll.c:2280 [inline]
 __x64_sys_epoll_wait+0x5e/0x80 fs/eventpoll.c:2280
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 22767 Comm: syz-executor.2 Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/10 10:52 https://github.com/google/ktsan.git kcsan f60f0f543333 35f5e45e .config console log report ci2-upstream-kcsan-gce
2020/01/06 13:25 https://github.com/google/ktsan.git kcsan 245a43005292 438e1227 .config console log report ci2-upstream-kcsan-gce
2019/12/03 11:21 https://github.com/google/ktsan.git kcsan ef798c30ba4e ab342da3 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.