==================================================================
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:302 [inline]
BUG: KASAN: out-of-bounds in end_buffer_read_sync+0xc1/0xd0 fs/buffer.c:161
Write of size 4 at addr ffffc9000ce6f660 by task udevd/6186

CPU: 1 UID: 0 PID: 6186 Comm: udevd Not tainted 6.14.0-rc1-syzkaller-00207-g595ab66f1bec #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
 <IRQ>
 __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:378 [inline]
 print_report+0x169/0x550 mm/kasan/report.c:489
 kasan_report+0x143/0x180 mm/kasan/report.c:602
 kasan_check_range+0x282/0x290 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:302 [inline]
 end_buffer_read_sync+0xc1/0xd0 fs/buffer.c:161
 end_bio_bh_io_sync+0xc1/0x120 fs/buffer.c:2766
 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+0x102/0x150 block/blk-mq.c:1225
 handle_softirqs+0x2d6/0x9b0 kernel/softirq.c:561
 __do_softirq kernel/softirq.c:595 [inline]
 invoke_softirq kernel/softirq.c:435 [inline]
 __irq_exit_rcu+0xf7/0x220 kernel/softirq.c:662
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:678
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
 sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1049
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:check_kcov_mode kernel/kcov.c:183 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:246 [inline]
RIP: 0010:__sanitizer_cov_trace_switch+0xa4/0x120 kernel/kcov.c:351
Code: 8b 00 00 00 4c 8b 4c 24 20 65 4c 8b 1c 25 80 d6 03 00 31 d2 eb 08 48 ff c2 49 39 d2 74 71 4c 8b 74 d6 10 65 8b 05 c4 70 44 7e <25> 00 01 ff 00 74 11 3d 00 01 00 00 75 de 41 83 bb 2c 16 00 00 00
RSP: 0018:ffffc90002f07678 EFLAGS: 00000246
RAX: 0000000080000000 RBX: 0000000000000000 RCX: ffff88801f375a00
RDX: 0000000000000000 RSI: ffffffff900293f0 RDI: 0000000000000020
RBP: 0000000000000020 R08: 0000000000000001 R09: ffffffff8bf1d643
R10: 0000000000000002 R11: ffff88801f375a00 R12: dffffc0000000000
R13: ffffc90002f077a0 R14: 0000000000000000 R15: ffffffff8c5a10c7
 format_decode+0x83/0xca0 lib/vsprintf.c:2588
 vsnprintf+0x177/0x1220 lib/vsprintf.c:2786
 tomoyo_supervisor+0x12a/0x1770 security/tomoyo/common.c:2091
 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline]
 tomoyo_path_permission+0x243/0x360 security/tomoyo/file.c:587
 tomoyo_path_perm+0x490/0x740 security/tomoyo/file.c:838
 security_inode_getattr+0x130/0x330 security/security.c:2377
 vfs_getattr+0x2a/0x3a0 fs/stat.c:243
 vfs_fstat fs/stat.c:265 [inline]
 vfs_fstatat+0xa8/0x130 fs/stat.c:366
 __do_sys_newfstatat fs/stat.c:532 [inline]
 __se_sys_newfstatat fs/stat.c:526 [inline]
 __x64_sys_newfstatat+0x11d/0x1a0 fs/stat.c:526
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f27a29165f4
Code: 64 c7 00 09 00 00 00 83 c8 ff c3 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 00 00 00 00 41 89 ca b8 06 01 00 00 0f 05 <45> 31 c0 3d 00 f0 ff ff 76 10 48 8b 15 03 a8 0d 00 f7 d8 41 83 c8
RSP: 002b:00007fff4a40a5f8 EFLAGS: 00000206 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 00007f27a29ee460 RCX: 00007f27a29165f4
RDX: 00007fff4a40a600 RSI: 00007f27a29b3130 RDI: 0000000000000009
RBP: 000055c6f683f730 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000001000 R11: 0000000000000206 R12: 0000000000000002
R13: 0000000000000002 R14: 000055c6f683f730 R15: 000055c6ed9bbea6
 </TASK>

The buggy address belongs to the virtual mapping at
 [ffffc9000ce68000, ffffc9000ce71000) created by:
 copy_process+0x5d1/0x3d50 kernel/fork.c:2233

The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x47 pfn:0x203c1
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_NOWARN|__GFP_ZERO), pid 7081, tgid 7081 (syz.5.492), ts 148416611722, free_ts 148322286605
 set_page_owner include/linux/page_owner.h:32 [inline]
 post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551
 prep_new_page mm/page_alloc.c:1559 [inline]
 get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477
 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4739
 alloc_pages_mpol+0x311/0x660 mm/mempolicy.c:2270
 alloc_frozen_pages_noprof mm/mempolicy.c:2341 [inline]
 alloc_pages_noprof+0x121/0x190 mm/mempolicy.c:2361
 vm_area_alloc_pages mm/vmalloc.c:3591 [inline]
 __vmalloc_area_node mm/vmalloc.c:3669 [inline]
 __vmalloc_node_range_noprof+0x9c6/0x1380 mm/vmalloc.c:3846
 alloc_thread_stack_node kernel/fork.c:314 [inline]
 dup_task_struct+0x444/0x8c0 kernel/fork.c:1127
 copy_process+0x5d1/0x3d50 kernel/fork.c:2233
 kernel_clone+0x226/0x8e0 kernel/fork.c:2815
 __do_sys_clone3 kernel/fork.c:3119 [inline]
 __se_sys_clone3+0x2d8/0x360 kernel/fork.c:3098
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5969 tgid 5969 stack trace:
 reset_page_owner include/linux/page_owner.h:25 [inline]
 free_pages_prepare mm/page_alloc.c:1127 [inline]
 free_unref_folios+0xe40/0x18b0 mm/page_alloc.c:2707
 folios_put_refs+0x76c/0x860 mm/swap.c:994
 folio_batch_release include/linux/pagevec.h:101 [inline]
 truncate_inode_pages_range+0x460/0x10e0 mm/truncate.c:330
 kill_bdev block/bdev.c:91 [inline]
 blkdev_flush_mapping+0x108/0x270 block/bdev.c:670
 blkdev_put_whole block/bdev.c:677 [inline]
 bdev_release+0x460/0x700 block/bdev.c:1102
 blkdev_release+0x15/0x20 block/fops.c:660
 __fput+0x3eb/0x9f0 fs/file_table.c:464
 task_work_run+0x251/0x310 kernel/task_work.c:227
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218
 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffffc9000ce6f500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffffc9000ce6f580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc9000ce6f600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                                                          ^
 ffffc9000ce6f680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffffc9000ce6f700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
----------------
Code disassembly (best guess):
   0:	8b 00                	mov    (%rax),%eax
   2:	00 00                	add    %al,(%rax)
   4:	4c 8b 4c 24 20       	mov    0x20(%rsp),%r9
   9:	65 4c 8b 1c 25 80 d6 	mov    %gs:0x3d680,%r11
  10:	03 00
  12:	31 d2                	xor    %edx,%edx
  14:	eb 08                	jmp    0x1e
  16:	48 ff c2             	inc    %rdx
  19:	49 39 d2             	cmp    %rdx,%r10
  1c:	74 71                	je     0x8f
  1e:	4c 8b 74 d6 10       	mov    0x10(%rsi,%rdx,8),%r14
  23:	65 8b 05 c4 70 44 7e 	mov    %gs:0x7e4470c4(%rip),%eax        # 0x7e4470ee
* 2a:	25 00 01 ff 00       	and    $0xff0100,%eax <-- trapping instruction
  2f:	74 11                	je     0x42
  31:	3d 00 01 00 00       	cmp    $0x100,%eax
  36:	75 de                	jne    0x16
  38:	41 83 bb 2c 16 00 00 	cmpl   $0x0,0x162c(%r11)
  3f:	00