================================================================== 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:308 [inline] BUG: KASAN: out-of-bounds in end_buffer_read_sync+0xc1/0xd0 fs/buffer.c:161 Write of size 4 at addr ffffc900053d7740 by task ksoftirqd/1/22 CPU: 1 PID: 22 Comm: ksoftirqd/1 Not tainted 6.6.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0x163/0x540 mm/kasan/report.c:475 kasan_report+0x175/0x1b0 mm/kasan/report.c:588 kasan_check_range+0x27e/0x290 mm/kasan/generic.c:187 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:308 [inline] end_buffer_read_sync+0xc1/0xd0 fs/buffer.c:161 end_bio_bh_io_sync+0xb7/0x110 fs/buffer.c:2780 req_bio_endio block/blk-mq.c:783 [inline] blk_update_request+0x53f/0x1020 block/blk-mq.c:928 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1051 blk_complete_reqs block/blk-mq.c:1131 [inline] blk_done_softirq+0x103/0x150 block/blk-mq.c:1136 __do_softirq+0x2ab/0x908 kernel/softirq.c:553 run_ksoftirqd+0xc5/0x120 kernel/softirq.c:921 smpboot_thread_fn+0x530/0x9f0 kernel/smpboot.c:164 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 The buggy address belongs to the virtual mapping at [ffffc900053d0000, ffffc900053d9000) created by: copy_process+0x5d1/0x41a0 kernel/fork.c:2327 The buggy address belongs to the physical page: page:ffffea00008c1fc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2307f flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 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 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 6657, tgid 6657 (syz-executor.0), ts 143215825255, free_ts 96855566221 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1536 prep_new_page mm/page_alloc.c:1543 [inline] get_page_from_freelist+0x31db/0x3360 mm/page_alloc.c:3170 __alloc_pages+0x255/0x670 mm/page_alloc.c:4426 vm_area_alloc_pages mm/vmalloc.c:3063 [inline] __vmalloc_area_node mm/vmalloc.c:3139 [inline] __vmalloc_node_range+0x9a3/0x1490 mm/vmalloc.c:3320 alloc_thread_stack_node kernel/fork.c:309 [inline] dup_task_struct+0x3e5/0x7d0 kernel/fork.c:1118 copy_process+0x5d1/0x41a0 kernel/fork.c:2327 kernel_clone+0x222/0x840 kernel/fork.c:2909 __do_sys_clone3 kernel/fork.c:3210 [inline] __se_sys_clone3+0x2cb/0x340 kernel/fork.c:3194 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 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1136 [inline] free_unref_page_prepare+0x8c3/0x9f0 mm/page_alloc.c:2312 free_unref_page+0x37/0x3f0 mm/page_alloc.c:2405 __slab_free+0x2f6/0x390 mm/slub.c:3715 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x75/0xe0 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x14b/0x160 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x23/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x67/0x3d0 mm/slab.h:762 slab_alloc_node mm/slub.c:3478 [inline] __kmem_cache_alloc_node+0x141/0x270 mm/slub.c:3517 __do_kmalloc_node mm/slab_common.c:1022 [inline] __kmalloc+0xa8/0x230 mm/slab_common.c:1036 kmalloc include/linux/slab.h:603 [inline] tomoyo_realpath_from_path+0xcf/0x5e0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x2b7/0x730 security/tomoyo/file.c:822 security_inode_getattr+0xd3/0x120 security/security.c:2153 vfs_getattr+0x2a/0x3a0 fs/stat.c:169 vfs_fstat fs/stat.c:194 [inline] vfs_fstatat+0xd6/0x190 fs/stat.c:291 __do_sys_newfstatat fs/stat.c:459 [inline] __se_sys_newfstatat fs/stat.c:453 [inline] __x64_sys_newfstatat+0x117/0x190 fs/stat.c:453 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 Memory state around the buggy address: ffffc900053d7600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900053d7680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900053d7700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc900053d7780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900053d7800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================