syzbot


KCSAN: data-race in __get_task_ioprio / set_task_ioprio

Status: auto-obsoleted due to no activity on 2023/05/19 01:59
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+28ed267c18c614a9376f@syzkaller.appspotmail.com
First crash: 533d, last: 533d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [block?] KCSAN: data-race in __get_task_ioprio / set_task_ioprio 1 (2) 2023/04/24 07:42
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __get_task_ioprio / set_task_ioprio (2) block 1 274d 274d 0/28 auto-obsoleted due to no activity on 2024/02/02 11:59

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

write to 0xffff888108c83888 of 8 bytes by task 15748 on cpu 0:
 set_task_ioprio+0x23b/0x260 block/blk-ioc.c:291
 __do_sys_ioprio_set block/ioprio.c:124 [inline]
 __se_sys_ioprio_set+0x272/0x5a0 block/ioprio.c:68
 __x64_sys_ioprio_set+0x43/0x50 block/ioprio.c:68
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888108c83888 of 8 bytes by task 15749 on cpu 1:
 __get_task_ioprio+0x1c/0x110 block/ioprio.c:150
 get_current_ioprio include/linux/ioprio.h:60 [inline]
 init_sync_kiocb include/linux/fs.h:2003 [inline]
 __kernel_write_iter+0xe2/0x380 fs/read_write.c:515
 dump_emit_page fs/coredump.c:885 [inline]
 dump_user_range+0x258/0x480 fs/coredump.c:912
 elf_core_dump+0x1a73/0x1b90 fs/binfmt_elf.c:2142
 do_coredump+0xfeb/0x1840 fs/coredump.c:762
 get_signal+0xd65/0xff0 kernel/signal.c:2845
 arch_do_signal_or_restart+0x89/0x2a0 arch/x86/kernel/signal.c:306
 exit_to_user_mode_loop+0x6f/0xe0 kernel/entry/common.c:168
 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204
 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:310
 irqentry_exit+0x12/0x40 kernel/entry/common.c:413
 exc_general_protection+0x339/0x4c0 arch/x86/kernel/traps.c:728
 asm_exc_general_protection+0x26/0x30 arch/x86/include/asm/idtentry.h:564

value changed: 0x0000000000000000 -> 0xffff8881049b5c90

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 15749 Comm: syz-executor.5 Tainted: G        W          6.3.0-rc6-syzkaller-00138-g44149752e998 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/14 01:58 upstream 44149752e998 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __get_task_ioprio / set_task_ioprio
* Struck through repros no longer work on HEAD.