syzbot


KCSAN: data-race in unix_dgram_connect / unix_dgram_poll (3)

Status: auto-closed as invalid on 2021/04/07 19:26
Subsystems: net
[Documentation on labels]
First crash: 1193d, last: 1149d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in unix_dgram_connect / unix_dgram_poll net 5 1373d 1402d 0/26 auto-closed as invalid on 2020/08/27 17:47
upstream KCSAN: data-race in unix_dgram_connect / unix_dgram_poll (6) net 1 910d 910d 0/26 auto-closed as invalid on 2021/12/03 15:30
upstream KCSAN: data-race in unix_dgram_connect / unix_dgram_poll (5) net 1 986d 986d 0/26 auto-closed as invalid on 2021/09/17 19:26
upstream KCSAN: data-race in unix_dgram_connect / unix_dgram_poll (2) net 3 1254d 1232d 0/26 auto-closed as invalid on 2020/12/25 10:44
upstream KCSAN: data-race in unix_dgram_connect / unix_dgram_poll (4) net 2 1069d 1084d 0/26 auto-closed as invalid on 2021/06/27 09:27

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

write to 0xffff888107739230 of 4 bytes by task 13706 on cpu 1:
 unix_dgram_disconnected net/unix/af_unix.c:486 [inline]
 unix_dgram_connect+0x754/0x820 net/unix/af_unix.c:1191
 __sys_connect_file net/socket.c:1837 [inline]
 __sys_connect+0x245/0x280 net/socket.c:1854
 __do_sys_connect net/socket.c:1864 [inline]
 __se_sys_connect net/socket.c:1861 [inline]
 __x64_sys_connect+0x3d/0x50 net/socket.c:1861
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888107739230 of 4 bytes by task 13698 on cpu 0:
 unix_dgram_poll+0x6e/0x3b0 net/unix/af_unix.c:2693
 sock_poll+0x23e/0x260 net/socket.c:1246
 vfs_poll include/linux/poll.h:90 [inline]
 ep_item_poll fs/eventpoll.c:840 [inline]
 ep_send_events fs/eventpoll.c:1677 [inline]
 ep_poll fs/eventpoll.c:1792 [inline]
 do_epoll_wait+0x6ad/0xf00 fs/eventpoll.c:2220
 __do_sys_epoll_wait fs/eventpoll.c:2232 [inline]
 __se_sys_epoll_wait fs/eventpoll.c:2227 [inline]
 __x64_sys_epoll_wait+0xf6/0x120 fs/eventpoll.c:2227
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 13698 Comm: syz-executor.5 Not tainted 5.12.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 13698 Comm: syz-executor.5 Not tainted 5.12.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x137/0x19d lib/dump_stack.c:120
 panic+0x1e7/0x5fa kernel/panic.c:231
 kcsan_report+0x67b/0x680 kernel/kcsan/report.c:634
 kcsan_setup_watchpoint+0x40b/0x470 kernel/kcsan/core.c:564
 unix_dgram_poll+0x6e/0x3b0 net/unix/af_unix.c:2693
 sock_poll+0x23e/0x260 net/socket.c:1246
 vfs_poll include/linux/poll.h:90 [inline]
 ep_item_poll fs/eventpoll.c:840 [inline]
 ep_send_events fs/eventpoll.c:1677 [inline]
 ep_poll fs/eventpoll.c:1792 [inline]
 do_epoll_wait+0x6ad/0xf00 fs/eventpoll.c:2220
 __do_sys_epoll_wait fs/eventpoll.c:2232 [inline]
 __se_sys_epoll_wait fs/eventpoll.c:2227 [inline]
 __x64_sys_epoll_wait+0xf6/0x120 fs/eventpoll.c:2227
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x465ef9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f050780f188 EFLAGS: 00000246 ORIG_RAX: 00000000000000e8
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465ef9
RDX: 0000000000000001 RSI: 0000000020000040 RDI: 0000000000000005
RBP: 00000000004bfa34 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000400 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffcf94964af R14: 00007f050780f300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/03 19:20 upstream f69d02e37a85 06ed56cd .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_dgram_connect / unix_dgram_poll
2021/02/19 17:21 upstream f40ddce88593 f689d40a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_dgram_connect / unix_dgram_poll
2021/01/30 19:10 upstream 0e9bcda5d286 fc9fd31e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_dgram_connect / unix_dgram_poll
2021/01/19 02:07 upstream 1e2a199f6ccd 63631df1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in unix_dgram_connect / unix_dgram_poll
* Struck through repros no longer work on HEAD.