syzbot


KCSAN: data-race in do_sys_poll / pollwake

Status: moderation: reported on 2020/07/18 20:22
Reported-by: syzbot+a5d15da12b55f807031f@syzkaller.appspotmail.com
First crash: 828d, last: 1h53m

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_sys_poll / pollwake

write to 0xffffc90000e07c50 of 4 bytes by task 4149 on cpu 0:
 __pollwake fs/select.c:198 [inline]
 pollwake+0xb9/0x110 fs/select.c:218
 __wake_up_common+0xbc/0x130 kernel/sched/wait.c:107
 __wake_up_common_lock kernel/sched/wait.c:137 [inline]
 __wake_up+0x80/0xc0 kernel/sched/wait.c:156
 unix_dgram_peer_wake_relay+0xe9/0x110 net/unix/af_unix.c:446
 __wake_up_common+0xbc/0x130 kernel/sched/wait.c:107
 __wake_up_common_lock kernel/sched/wait.c:137 [inline]
 __wake_up_sync_key+0x83/0xc0 kernel/sched/wait.c:204
 __unix_dgram_recvmsg+0x3c5/0x8b0 net/unix/af_unix.c:2434
 unix_dgram_recvmsg+0x77/0x80 net/unix/af_unix.c:2504
 ____sys_recvmsg+0x162/0x2f0
 ___sys_recvmsg net/socket.c:2743 [inline]
 do_recvmmsg+0x2f1/0x710 net/socket.c:2837
 __sys_recvmmsg net/socket.c:2916 [inline]
 __do_sys_recvmmsg net/socket.c:2939 [inline]
 __se_sys_recvmmsg net/socket.c:2932 [inline]
 __x64_sys_recvmmsg+0xde/0x160 net/socket.c:2932
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffffc90000e07c50 of 4 bytes by task 4150 on cpu 1:
 poll_schedule_timeout fs/select.c:243 [inline]
 do_poll fs/select.c:965 [inline]
 do_sys_poll+0xa47/0xca0 fs/select.c:1015
 __do_sys_ppoll fs/select.c:1121 [inline]
 __se_sys_ppoll+0x195/0x1d0 fs/select.c:1101
 __x64_sys_ppoll+0x63/0x70 fs/select.c:1101
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 4150 Comm: syz-executor.1 Not tainted 6.0.0-rc7-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (2253):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/09/26 08:31 upstream f76349cf4145 d59ba983 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/25 22:58 upstream 5e049663f678 0042f2b4 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/25 04:22 upstream 1a61b828566f 0042f2b4 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/24 09:32 upstream a63f2e7cb110 0042f2b4 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/23 14:03 upstream bf682942cd26 0042f2b4 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/22 15:18 upstream dc164f4fb00a 0042f2b4 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/22 11:54 upstream dc164f4fb00a 60af5050 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/21 22:12 upstream 06f7db949993 60af5050 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/21 17:26 upstream 06f7db949993 380f82fb .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/21 17:26 upstream 06f7db949993 380f82fb .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/21 10:07 upstream 60891ec99e14 380f82fb .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/20 19:07 upstream 60891ec99e14 c4b8ccfd .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/20 16:23 upstream 521a547ced64 c4b8ccfd .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/20 07:28 upstream 521a547ced64 7c41a9ba .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/19 11:56 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/19 06:54 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/18 17:31 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/17 05:50 upstream a335366bad13 dd9a85ff .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/16 16:20 upstream 6879c2d3b960 dd9a85ff .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/15 07:08 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/14 09:51 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/13 19:35 upstream d1221cea11fc b884348d .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/13 13:52 upstream d1221cea11fc a08652b0 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/13 07:28 upstream e839a756012b a08652b0 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/13 07:27 upstream e839a756012b a08652b0 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/12 23:06 upstream e839a756012b f371ed7e .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/12 16:30 upstream 80e78fcce86d f371ed7e .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/12 09:17 upstream 80e78fcce86d 356d8217 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/11 20:08 upstream 4ed9c1e971b1 356d8217 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/10 17:58 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/09 23:39 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/09 12:33 upstream 9b4509495418 90058bdc .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/09 10:40 upstream 506357871c18 90058bdc .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/09 02:39 upstream 506357871c18 f3027468 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/08 13:08 upstream 26b1224903b3 f3027468 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/08 11:08 upstream 0066f1b0e275 f3027468 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/07 23:28 upstream 0066f1b0e275 435aeef7 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/07 11:43 upstream 0066f1b0e275 c5b7bc57 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/07 11:37 upstream 0066f1b0e275 c5b7bc57 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/06 22:44 upstream d2ec799d1c1b 5fc30c37 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/06 20:02 upstream d2ec799d1c1b 65aea2b9 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/06 10:38 upstream 53e99dcff61e 65aea2b9 .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/05 22:31 upstream 53e99dcff61e 9dcd38fc .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2022/09/05 09:59 upstream 7e18e42e4b28 922294ab .config log report info KCSAN: data-race in do_sys_poll / pollwake
ci2-upstream-kcsan-gce 2021/01/17 10:56 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2020/07/18 19:22 upstream 6cf7ccba29dc 9c812472 .config log report
ci2-upstream-kcsan-gce 2020/07/14 20:16 upstream e9919e11e219 6f458026 .config log report
ci2-upstream-kcsan-gce 2020/06/19 12:55 upstream 5e857ce6eae7 bc258b50 .config log report
* Struck through repros no longer work on HEAD.