==================================================================
BUG: KASAN: out-of-bounds in instrument_atomic_read_write include/linux/instrumented.h:96 [inline]
BUG: KASAN: out-of-bounds in atomic_dec include/linux/atomic/atomic-instrumented.h:592 [inline]
BUG: KASAN: out-of-bounds in put_bh include/linux/buffer_head.h:301 [inline]
BUG: KASAN: out-of-bounds in end_buffer_read_sync+0xc1/0xd0 fs/buffer.c:161
Write of size 4 at addr ffffc900044c7660 by task ksoftirqd/0/15
CPU: 0 UID: 0 PID: 15 Comm: ksoftirqd/0 Not tainted 6.14.0-next-20250404-syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:408 [inline]
print_report+0x16e/0x5b0 mm/kasan/report.c:521
kasan_report+0x143/0x180 mm/kasan/report.c:634
check_region_inline mm/kasan/generic.c:-1 [inline]
kasan_check_range+0x28f/0x2a0 mm/kasan/generic.c:189
instrument_atomic_read_write include/linux/instrumented.h:96 [inline]
atomic_dec include/linux/atomic/atomic-instrumented.h:592 [inline]
put_bh include/linux/buffer_head.h:301 [inline]
end_buffer_read_sync+0xc1/0xd0 fs/buffer.c:161
end_bio_bh_io_sync+0xbf/0x120 fs/buffer.c:2748
blk_update_request+0x5e5/0x1160 block/blk-mq.c:983
blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1145
blk_complete_reqs block/blk-mq.c:1220 [inline]
blk_done_softirq+0x100/0x150 block/blk-mq.c:1225
handle_softirqs+0x2d6/0x9b0 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0xfb/0x220 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
instr_sysvec_call_function_single arch/x86/kernel/smp.c:266 [inline]
sysvec_call_function_single+0xa3/0xc0 arch/x86/kernel/smp.c:266
asm_sysvec_call_function_single+0x1a/0x20 arch/x86/include/asm/idtentry.h:709
RIP: 0010:finish_task_switch+0x1ea/0x870 kernel/sched/core.c:5250
Code: c9 50 e8 09 2f 0d 00 48 83 c4 08 4c 89 f7 e8 ad 41 00 00 0f 1f 44 00 00 4c 89 f7 e8 40 13 a2 0a e8 5b 7f 39 00 fb 48 8b 5d c0 <48> 8d bb 18 16 00 00 48 89 f8 48 c1 e8 03 49 be 00 00 00 00 00 fc
RSP: 0018:ffffc90000147ac8 EFLAGS: 00000282
RAX: 065ef4801f2c4200 RBX: ffff88801c68bc00 RCX: ffffffff81cb4d7c
RDX: 0000000000000000 RSI: ffffffff8e6a4c4b RDI: ffffffff8ca1e060
RBP: ffffc90000147b10 R08: ffffffff905ffd37 R09: 1ffffffff20bffa6
R10: dffffc0000000000 R11: fffffbfff20bffa7 R12: 1ffff110170c7526
R13: dffffc0000000000 R14: ffff8880b8639b00 R15: ffff8880b863a930
context_switch kernel/sched/core.c:5385 [inline]
__schedule+0x1b90/0x5240 kernel/sched/core.c:6767
__schedule_loop kernel/sched/core.c:6845 [inline]
schedule+0x163/0x360 kernel/sched/core.c:6860
smpboot_thread_fn+0x606/0xaa0 kernel/smpboot.c:160
kthread+0x7b7/0x940 kernel/kthread.c:464
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
The buggy address belongs to the virtual mapping at
[ffffc900044c0000, ffffc900044c9000) created by:
copy_process+0x5dc/0x3d10 kernel/fork.c:2259
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x47 pfn:0x2fb98
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000047 0000000000000000 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_ZERO|__GFP_NOWARN), pid 5842, tgid 5842 (syz-executor372), ts 125671245984, free_ts 125301709214
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1718
prep_new_page mm/page_alloc.c:1726 [inline]
get_page_from_freelist+0x356d/0x3700 mm/page_alloc.c:3655
__alloc_frozen_pages_noprof+0x211/0x5b0 mm/page_alloc.c:4937
alloc_pages_mpol+0x339/0x690 mm/mempolicy.c:2302
alloc_frozen_pages_noprof mm/mempolicy.c:2373 [inline]
alloc_pages_noprof+0x121/0x190 mm/mempolicy.c:2393
vm_area_alloc_pages mm/vmalloc.c:3591 [inline]
__vmalloc_area_node mm/vmalloc.c:3669 [inline]
__vmalloc_node_range_noprof+0x9cb/0x1390 mm/vmalloc.c:3844
__vmalloc_node_noprof+0x80/0xa0 mm/vmalloc.c:3907
alloc_thread_stack_node kernel/fork.c:314 [inline]
dup_task_struct+0x3f7/0x870 kernel/fork.c:1136
copy_process+0x5dc/0x3d10 kernel/fork.c:2259
kernel_clone+0x242/0x930 kernel/fork.c:2844
__do_sys_clone kernel/fork.c:2987 [inline]
__se_sys_clone kernel/fork.c:2971 [inline]
__x64_sys_clone+0x268/0x2e0 kernel/fork.c:2971
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5841 tgid 5841 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1262 [inline]
free_unref_folios+0xe0e/0x17f0 mm/page_alloc.c:2739
folios_put_refs+0x70a/0x800 mm/swap.c:992
folio_batch_release include/linux/pagevec.h:101 [inline]
truncate_inode_pages_range+0x462/0x10e0 mm/truncate.c:379
kill_bdev block/bdev.c:91 [inline]
blkdev_flush_mapping+0x108/0x270 block/bdev.c:674
blkdev_put_whole block/bdev.c:681 [inline]
bdev_release+0x460/0x700 block/bdev.c:1106
blkdev_release+0x15/0x20 block/fops.c:660
__fput+0x3e9/0x9f0 fs/file_table.c:465
task_work_run+0x251/0x310 kernel/task_work.c:227
ptrace_notify+0x2dc/0x390 kernel/signal.c:2520
ptrace_report_syscall include/linux/ptrace.h:415 [inline]
ptrace_report_syscall_exit include/linux/ptrace.h:477 [inline]
syscall_exit_work+0xc7/0x1d0 kernel/entry/common.c:173
syscall_exit_to_user_mode_prepare kernel/entry/common.c:200 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:205 [inline]
syscall_exit_to_user_mode+0x24a/0x340 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/syscall_64.c:100
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
ffffc900044c7500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc900044c7580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc900044c7600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
ffffc900044c7680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc900044c7700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
----------------
Code disassembly (best guess):
0: c9 leave
1: 50 push %rax
2: e8 09 2f 0d 00 call 0xd2f10
7: 48 83 c4 08 add $0x8,%rsp
b: 4c 89 f7 mov %r14,%rdi
e: e8 ad 41 00 00 call 0x41c0
13: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
18: 4c 89 f7 mov %r14,%rdi
1b: e8 40 13 a2 0a call 0xaa21360
20: e8 5b 7f 39 00 call 0x397f80
25: fb sti
26: 48 8b 5d c0 mov -0x40(%rbp),%rbx
* 2a: 48 8d bb 18 16 00 00 lea 0x1618(%rbx),%rdi <-- trapping instruction
31: 48 89 f8 mov %rdi,%rax
34: 48 c1 e8 03 shr $0x3,%rax
38: 49 rex.WB
39: be 00 00 00 00 mov $0x0,%esi
3e: 00 fc add %bh,%ah