syzbot


KCSAN: data-race in skb_dequeue / unix_dgram_sendmsg

Status: closed as invalid on 2019/11/19 13:54
Subsystems: net
[Documentation on labels]
First crash: 1642d, last: 1630d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in skb_dequeue / unix_dgram_sendmsg (2) net 2 1543d 1554d 0/26 auto-closed as invalid on 2020/04/11 15:30

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

write to 0xffff88809ed310e0 of 4 bytes by task 20771 on cpu 1:
 __skb_unlink include/linux/skbuff.h:2020 [inline]
 __skb_dequeue include/linux/skbuff.h:2040 [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: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 0xffff88809ed310e0 of 4 bytes by task 20773 on cpu 0:
 unix_recvq_full net/unix/af_unix.c:194 [inline]
 unix_dgram_sendmsg+0x9ef/0xc80 net/unix/af_unix.c:1715
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg+0x9f/0xc0 net/socket.c:657
 ___sys_sendmsg+0x2b7/0x5d0 net/socket.c:2311
 __sys_sendmmsg+0x123/0x350 net/socket.c:2413
 __do_sys_sendmmsg net/socket.c:2442 [inline]
 __se_sys_sendmmsg net/socket.c:2439 [inline]
 __x64_sys_sendmmsg+0x64/0x80 net/socket.c:2439
 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: 20773 Comm: syz-executor.3 Not tainted 5.4.0-rc6+ #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/07 06:12 https://github.com/google/ktsan.git kcsan 94c006602e13 d797d201 .config console log report ci2-upstream-kcsan-gce
2019/10/26 01:15 https://github.com/google/ktsan.git kcsan 05f2236801fe 413926c5 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.