syzbot


KCSAN: data-race in do_select / pollwake

Status: moderation: reported on 2020/07/06 15:42
Reported-by: syzbot+5a0758690f26e1909c08@syzkaller.appspotmail.com
First crash: 829d, last: 17m

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

write to 0xffffc90000813a70 of 4 bytes by task 1827 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_sync_key+0x83/0xc0 kernel/sched/wait.c:204
 pipe_write+0xa3f/0xdd0 fs/pipe.c:594
 call_write_iter include/linux/fs.h:2187 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x468/0x760 fs/read_write.c:578
 ksys_write+0xe8/0x1a0 fs/read_write.c:631
 __do_sys_write fs/read_write.c:643 [inline]
 __se_sys_write fs/read_write.c:640 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:640
 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 0xffffc90000813a70 of 4 bytes by task 1795 on cpu 1:
 poll_schedule_timeout fs/select.c:243 [inline]
 do_select+0xf2e/0x1020 fs/select.c:607
 core_sys_select+0x368/0x520 fs/select.c:681
 do_pselect fs/select.c:763 [inline]
 __do_sys_pselect6+0x1f4/0x250 fs/select.c:804
 __se_sys_pselect6 fs/select.c:795 [inline]
 __x64_sys_pselect6+0x74/0x80 fs/select.c:795
 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: 1795 Comm: sshd Not tainted 6.0.0-rc7-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (2193):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/09/26 09:20 upstream f76349cf4145 d59ba983 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/26 03:44 upstream 5e049663f678 0042f2b4 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/25 08:41 upstream 1a61b828566f 0042f2b4 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/24 12:40 upstream a63f2e7cb110 0042f2b4 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/23 16:40 upstream bf682942cd26 0042f2b4 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/22 16:26 upstream dc164f4fb00a 0042f2b4 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/22 11:53 upstream dc164f4fb00a 60af5050 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/22 02:49 upstream 06f7db949993 60af5050 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/21 21:36 upstream 06f7db949993 380f82fb .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/21 10:47 upstream 60891ec99e14 380f82fb .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/20 18:48 upstream 60891ec99e14 c4b8ccfd .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/20 15:37 upstream 521a547ced64 7c41a9ba .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/19 13:39 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/19 08:50 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/18 18:15 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/17 10:01 upstream a335366bad13 dd9a85ff .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/16 16:21 upstream 6879c2d3b960 dd9a85ff .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/15 09:36 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/13 20:08 upstream d1221cea11fc b884348d .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/13 16:06 upstream d1221cea11fc a08652b0 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/13 08:38 upstream e839a756012b a08652b0 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/13 03:43 upstream e839a756012b f371ed7e .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/12 16:21 upstream 80e78fcce86d f371ed7e .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/12 09:47 upstream 80e78fcce86d 356d8217 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/11 23:01 upstream 4ed9c1e971b1 356d8217 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/10 22:20 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/09 23:58 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/09 13:24 upstream 9b4509495418 90058bdc .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/09 03:05 upstream 506357871c18 f3027468 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/08 13:06 upstream 26b1224903b3 f3027468 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/08 11:10 upstream 0066f1b0e275 f3027468 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/08 03:50 upstream 0066f1b0e275 435aeef7 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/07 12:20 upstream 0066f1b0e275 c5b7bc57 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/07 05:18 upstream d2ec799d1c1b 5fc30c37 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/06 20:29 upstream d2ec799d1c1b 65aea2b9 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/06 16:05 upstream 53e99dcff61e 65aea2b9 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/05 22:29 upstream 53e99dcff61e 9dcd38fc .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/05 14:15 upstream 7e18e42e4b28 922294ab .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/04 22:51 upstream 7e18e42e4b28 28811d0a .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/04 09:38 upstream 7726d4c3e60b 28811d0a .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/03 20:52 upstream 42cf58c272ee 28811d0a .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/03 14:34 upstream d895ec7938c4 28811d0a .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/03 06:22 upstream d895ec7938c4 49e94a20 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/02 23:21 upstream 0b3acd1cc022 25194605 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/02 17:57 upstream 42e66b1cc3a0 25194605 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/02 03:19 upstream 42e66b1cc3a0 a805568e .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/01 22:09 upstream 2880e1a175b9 86c46e46 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/01 14:28 upstream c5e4d5e99162 86c46e46 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/09/01 08:01 upstream c5e4d5e99162 b01ec571 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/08/31 19:25 upstream c5e4d5e99162 51e54e30 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/08/31 13:39 upstream dcf8e5633e2e 51e54e30 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/08/30 04:47 upstream dcf8e5633e2e 4a380809 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2021/01/17 10:06 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2020/07/06 08:33 upstream dcb7fd82c75e ac5a135b .config log report
ci2-upstream-kcsan-gce 2020/07/05 14:06 upstream 35e884f89df4 22f87567 .config log report
ci2-upstream-kcsan-gce 2020/06/18 14:19 upstream 1b5044021070 3ea11d3f .config log report
* Struck through repros no longer work on HEAD.