syzbot


KCSAN: data-race in skb_queue_tail / unix_dgram_poll

Status: closed as invalid on 2019/11/19 13:24
Subsystems: net
[Documentation on labels]
First crash: 1635d, last: 1626d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in skb_queue_tail / unix_dgram_poll (3) net 1 1161d 1161d 0/26 auto-closed as invalid on 2021/03/17 02:28
upstream KCSAN: data-race in skb_queue_tail / unix_dgram_poll (4) net 2 947d 953d 20/26 fixed on 2022/03/08 16:11
upstream KCSAN: data-race in skb_queue_tail / unix_dgram_poll (2) net 1 1351d 1351d 0/26 auto-closed as invalid on 2020/09/08 00:38

Sample crash report:
==================================================================
BUG: KCSAN: data-race in skb_queue_tail / unix_dgram_poll

read to 0xffff888126bbccd0 of 8 bytes by task 3890 on cpu 1:
 skb_queue_empty include/linux/skbuff.h:1494 [inline]
 unix_dgram_poll+0x15f/0x3c0 net/unix/af_unix.c:2641
 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

write to 0xffff888126bbccd0 of 8 bytes by task 8004 on cpu 0:
 __skb_insert include/linux/skbuff.h:1852 [inline]
 __skb_queue_before include/linux/skbuff.h:1958 [inline]
 __skb_queue_tail include/linux/skbuff.h:1991 [inline]
 skb_queue_tail+0x6b/0xc0 net/core/skbuff.c:3145
 unix_dgram_sendmsg+0x909/0xc80 net/unix/af_unix.c:1750
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg+0x9f/0xc0 net/socket.c:657
 __sys_sendto+0x21f/0x320 net/socket.c:1952
 __do_sys_sendto net/socket.c:1964 [inline]
 __se_sys_sendto net/socket.c:1960 [inline]
 __x64_sys_sendto+0x89/0xb0 net/socket.c:1960
 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: 0 PID: 8004 Comm: udevd Not tainted 5.4.0-rc3+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/03 01:23 https://github.com/google/ktsan.git kcsan 05f2236801fe d603afc9 .config console log report ci2-upstream-kcsan-gce
2019/10/25 16:59 https://github.com/google/ktsan.git kcsan 05f2236801fe 04ca72cd .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.