syzbot


KCSAN: data-race in futex_wait_queue_me / watchdog

Status: closed as invalid on 2019/11/19 14:04
Subsystems: kasan
[Documentation on labels]
First crash: 1631d, last: 1631d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in futex_wait_queue_me / watchdog (2) kasan 4 1448d 1572d 0/26 auto-closed as invalid on 2020/06/18 14:03

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

read to 0xffff8881252660d0 of 8 bytes by task 1063 on cpu 1:
 check_hung_uninterruptible_tasks kernel/hung_task.c:197 [inline]
 watchdog+0x2c3/0x7c0 kernel/hung_task.c:289
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

write to 0xffff8881252660d0 of 8 bytes by task 8006 on cpu 0:
 futex_wait_queue_me+0x1f8/0x290 kernel/futex.c:2629
 futex_wait+0x19b/0x3f0 kernel/futex.c:2733
 do_futex+0xe9/0x18d0 kernel/futex.c:3644
 __do_sys_futex kernel/futex.c:3705 [inline]
 __se_sys_futex kernel/futex.c:3673 [inline]
 __x64_sys_futex+0x2cd/0x3f0 kernel/futex.c:3673
 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: 8006 Comm: syz-fuzzer Not tainted 5.4.0-rc6+ #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: 8006 Comm: syz-fuzzer Not tainted 5.4.0-rc6+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0xf5/0x159 lib/dump_stack.c:113
 panic+0x210/0x640 kernel/panic.c:221
 kcsan_report.cold+0xc/0xe kernel/kcsan/report.c:302
 kcsan_setup_watchpoint+0x3fe/0x410 kernel/kcsan/core.c:357
 check_access kernel/kcsan/core.c:409 [inline]
 __tsan_unaligned_write8+0x143/0x1f0 kernel/kcsan/core.c:530
 futex_wait_queue_me+0x1f8/0x290 kernel/futex.c:2629
 futex_wait+0x19b/0x3f0 kernel/futex.c:2733
 do_futex+0xe9/0x18d0 kernel/futex.c:3644
 __do_sys_futex kernel/futex.c:3705 [inline]
 __se_sys_futex kernel/futex.c:3673 [inline]
 __x64_sys_futex+0x2cd/0x3f0 kernel/futex.c:3673
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45b153
Code: cc cc cc cc cc cc cc 48 8b 7c 24 08 8b 74 24 10 8b 54 24 14 4c 8b 54 24 18 4c 8b 44 24 20 44 8b 4c 24 28 b8 ca 00 00 00 0f 05 <89> 44 24 30 c3 cc cc cc cc cc cc cc cc 8b 7c 24 08 48 8b 74 24 10
RSP: 002b:000000c42004fe70 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000045b153
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001894c30
RBP: 000000c42004feb8 R08: 0000000000000000 R09: 0000000000000000
R10: 000000c42004fea8 R11: 0000000000000246 R12: 000000000042f0a0
R13: 00000000000000f1 R14: 0000000000000011 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/08 04:13 https://github.com/google/ktsan.git kcsan 94c006602e13 f39aff9e .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.