syzbot


KCSAN: data-race in __loop_clr_fd / handle_mm_fault

Status: auto-obsoleted due to no activity on 2022/12/10 10:12
Subsystems: block
[Documentation on labels]
First crash: 552d, last: 552d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __loop_clr_fd / handle_mm_fault (2) block 1 468d 468d 0/26 auto-obsoleted due to no activity on 2023/04/08 09:39

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

write to 0xffff888105f0d8f0 of 4 bytes by task 17374 on cpu 1:
 mapping_set_gfp_mask include/linux/pagemap.h:290 [inline]
 __loop_clr_fd+0x214/0x3c0 drivers/block/loop.c:1168
 lo_release+0xe0/0xf0 drivers/block/loop.c:1745
 blkdev_put+0x3aa/0x420
 blkdev_close+0x32/0x40 block/fops.c:499
 __fput+0x245/0x570 fs/file_table.c:320
 ____fput+0x11/0x20 fs/file_table.c:348
 task_work_run+0xde/0x110 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:171
 exit_to_user_mode_prepare kernel/entry/common.c:203 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:296
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888105f0d8f0 of 4 bytes by task 17384 on cpu 0:
 mapping_gfp_mask include/linux/pagemap.h:274 [inline]
 __get_fault_gfp_mask mm/memory.c:2951 [inline]
 __handle_mm_fault mm/memory.c:5014 [inline]
 handle_mm_fault+0x248/0xa80 mm/memory.c:5218
 do_user_addr_fault+0x4a1/0x980 arch/x86/mm/fault.c:1428
 handle_page_fault arch/x86/mm/fault.c:1519 [inline]
 exc_page_fault+0x60/0x160 arch/x86/mm/fault.c:1575
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570

value changed: 0x00100c0a -> 0x00100cca

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 17384 Comm: syz-executor.0 Not tainted 6.1.0-rc3-syzkaller-00280-g64c3dd0b98f5-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/05 10:05 upstream 64c3dd0b98f5 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __loop_clr_fd / handle_mm_fault
* Struck through repros no longer work on HEAD.