syzbot


KCSAN: data-race in pollwake / pollwake

Status: closed as invalid on 2019/11/19 13:44
Subsystems: fs
[Documentation on labels]
First crash: 1644d, last: 1644d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pollwake / pollwake (2) fs 2 1558d 1599d 0/26 auto-closed as invalid on 2020/03/29 13:20
upstream KCSAN: data-race in pollwake / pollwake (4) ext4 200 18d 139d 0/26 moderation: reported on 2023/12/08 00:04
upstream KCSAN: data-race in pollwake / pollwake (3) fs 4 1266d 1235d 0/26 auto-closed as invalid on 2020/12/21 11:54

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

write to 0xffffc90001653a40 of 4 bytes by task 7302 on cpu 0:
 __pollwake fs/select.c:197 [inline]
 pollwake+0xe3/0x140 fs/select.c:217
 __wake_up_common+0x7b/0x180 kernel/sched/wait.c:93
 __wake_up_common_lock+0x77/0xb0 kernel/sched/wait.c:123
 __wake_up_sync_key+0x19/0x20 kernel/sched/wait.c:196
 pipe_write+0x656/0x970 fs/pipe.c:503
 call_write_iter include/linux/fs.h:1895 [inline]
 new_sync_write+0x388/0x4a0 fs/read_write.c:483
 __vfs_write+0xb1/0xc0 fs/read_write.c:496
 vfs_write fs/read_write.c:558 [inline]
 vfs_write+0x18a/0x390 fs/read_write.c:542
 ksys_write+0xd5/0x1b0 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write fs/read_write.c:620 [inline]
 __x64_sys_write+0x4c/0x60 fs/read_write.c:620
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffffc90001653a40 of 4 bytes by interrupt on cpu 1:
 __pollwake fs/select.c:197 [inline]
 pollwake+0xe3/0x140 fs/select.c:217
 __wake_up_common+0x7b/0x180 kernel/sched/wait.c:93
 __wake_up_common_lock+0x77/0xb0 kernel/sched/wait.c:123
 __wake_up_sync_key+0x19/0x20 kernel/sched/wait.c:196
 sock_def_readable+0xa9/0x140 net/core/sock.c:2794
 tcp_data_ready+0x7d/0xd0 net/ipv4/tcp_input.c:4750
 tcp_data_queue+0xc6f/0x20b0 net/ipv4/tcp_input.c:4813
 tcp_rcv_established+0x517/0xf50 net/ipv4/tcp_input.c:5705
 tcp_v4_do_rcv+0x381/0x4e0 net/ipv4/tcp_ipv4.c:1561
 tcp_v4_rcv+0x19dc/0x1bb0 net/ipv4/tcp_ipv4.c:1942
 ip_protocol_deliver_rcu+0x4d/0x420 net/ipv4/ip_input.c:204
 ip_local_deliver_finish+0x110/0x140 net/ipv4/ip_input.c:231
 NF_HOOK include/linux/netfilter.h:305 [inline]
 NF_HOOK include/linux/netfilter.h:299 [inline]
 ip_local_deliver+0x133/0x210 net/ipv4/ip_input.c:252

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 7288 Comm: syz-fuzzer Not tainted 5.4.0-rc3+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

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