syzbot


KCSAN: data-race in attach_to_pi_owner / futex_wait_queue_me (2)

Status: auto-closed as invalid on 2020/02/14 17:46
First crash: 1272d, last: 1271d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in attach_to_pi_owner / futex_wait_queue_me (4) 3 1039d 1071d 0/24 auto-closed as invalid on 2020/08/28 22:57
upstream KCSAN: data-race in attach_to_pi_owner / futex_wait_queue_me 1 1300d 1300d 0/24 closed as invalid on 2019/11/19 13:54
upstream KCSAN: data-race in attach_to_pi_owner / futex_wait_queue_me (3) 3 1140d 1198d 0/24 auto-closed as invalid on 2020/06/18 14:03
upstream KCSAN: data-race in attach_to_pi_owner / futex_wait_queue_me (5) 1 948d 948d 0/24 auto-closed as invalid on 2020/11/28 10:56
upstream KCSAN: data-race in attach_to_pi_owner / futex_wait_queue_me (6) 1 894d 894d 0/24 auto-closed as invalid on 2021/01/21 10:32
upstream KCSAN: data-race in attach_to_pi_owner / futex_wait_queue_me (7) 1 753d 753d 0/24 auto-closed as invalid on 2021/06/11 04:30

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

write to 0xffff8881023a60a4 of 4 bytes by task 28035 on cpu 0:
 freezer_count include/linux/freezer.h:121 [inline]
 freezable_schedule include/linux/freezer.h:173 [inline]
 futex_wait_queue_me+0x1a2/0x290 kernel/futex.c:2627
 futex_wait_requeue_pi.constprop.0+0x2d0/0xa10 kernel/futex.c:3265
 do_futex+0x1cc/0x18d0 kernel/futex.c:3664
 __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

read to 0xffff8881023a60a4 of 4 bytes by task 28038 on cpu 1:
 attach_to_pi_owner+0x83/0x420 kernel/futex.c:1250
 lookup_pi_state kernel/futex.c:1325 [inline]
 futex_requeue+0xfb9/0x12d0 kernel/futex.c:2069
 do_futex+0x2f7/0x18d0 kernel/futex.c:3667
 __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: 1 PID: 28038 Comm: syz-executor.5 Not tainted 5.4.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Manager Title
2019/12/06 17:44 https://github.com/google/ktsan.git kcsan ef798c30ba4e 85f26751 .config console log report ci2-upstream-kcsan-gce
2019/12/05 12:50 https://github.com/google/ktsan.git kcsan ef798c30ba4e 9fd5a512 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.