syzbot


KCSAN: data-race in skb_dequeue / unix_dgram_peer_wake_me

Status: closed as invalid on 2019/11/19 13:24
Subsystems: net
[Documentation on labels]
First crash: 1634d, last: 1634d
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 (2) net 3 1535d 1604d 0/26 auto-closed as invalid on 2020/04/20 10:54

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

write to 0xffff8881060960e0 of 4 bytes by task 5176 on cpu 0:
 __skb_unlink include/linux/skbuff.h:2004 [inline]
 __skb_dequeue include/linux/skbuff.h:2024 [inline]
 skb_dequeue+0x71/0x100 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:474
 unix_dgram_connect+0x210/0x490 net/unix/af_unix.c:1164
 __sys_connect+0x1e9/0x250 net/socket.c:1828
 __do_sys_connect net/socket.c:1839 [inline]
 __se_sys_connect net/socket.c:1836 [inline]
 __x64_sys_connect+0x4c/0x60 net/socket.c:1836
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8881060960e0 of 4 bytes by task 5173 on cpu 1:
 unix_recvq_full net/unix/af_unix.c:194 [inline]
 unix_dgram_peer_wake_me+0x7b/0x240 net/unix/af_unix.c:437
 unix_dgram_poll+0x38e/0x3c0 net/unix/af_unix.c:2664
 sock_poll+0xed/0x250 net/socket.c:1256
 vfs_poll include/linux/poll.h:90 [inline]
 ep_item_poll.isra.0+0x90/0x190 fs/eventpoll.c:892
 ep_send_events_proc+0x113/0x590 fs/eventpoll.c:1749
 ep_scan_ready_list.constprop.0+0x189/0x500 fs/eventpoll.c:704
 ep_send_events fs/eventpoll.c:1793 [inline]
 ep_poll+0xe3/0x900 fs/eventpoll.c:1930
 do_epoll_wait+0x162/0x180 fs/eventpoll.c:2294
 __do_sys_epoll_wait fs/eventpoll.c:2304 [inline]
 __se_sys_epoll_wait fs/eventpoll.c:2301 [inline]
 __x64_sys_epoll_wait+0x5e/0x80 fs/eventpoll.c:2301
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 5173 Comm: syz-executor.0 Not tainted 5.4.0-rc3+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/04 00:24 https://github.com/google/ktsan.git kcsan 05f2236801fe b35fad31 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.