================================================================== 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:303 [inline] BUG: KASAN: out-of-bounds in end_buffer_read_sync+0x93/0xe0 fs/buffer.c:161 Write of size 4 at addr ffffc9000323f2d8 by task ksoftirqd/3/33 CPU: 3 PID: 33 Comm: ksoftirqd/3 Not tainted 6.9.0-rc2-syzkaller-00387-g6c6e47d69d82 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc3/0x620 mm/kasan/report.c:488 kasan_report+0xd9/0x110 mm/kasan/report.c:601 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0xef/0x1a0 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:303 [inline] end_buffer_read_sync+0x93/0xe0 fs/buffer.c:161 end_bio_bh_io_sync+0xe5/0x140 fs/buffer.c:2756 bio_endio+0x5f0/0x700 block/bio.c:1603 req_bio_endio block/blk-mq.c:786 [inline] blk_update_request+0x693/0x1820 block/blk-mq.c:931 blk_mq_end_request+0x4f/0x90 block/blk-mq.c:1054 lo_complete_rq+0x232/0x2f0 drivers/block/loop.c:366 blk_complete_reqs+0xae/0xf0 block/blk-mq.c:1129 __do_softirq+0x218/0x922 kernel/softirq.c:554 run_ksoftirqd kernel/softirq.c:924 [inline] run_ksoftirqd+0x35/0x60 kernel/softirq.c:916 smpboot_thread_fn+0x661/0xa10 kernel/smpboot.c:164 kthread+0x2c1/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243 The buggy address belongs to the virtual mapping at [ffffc90003238000, ffffc90003241000) created by: kernel_clone+0xfd/0x980 kernel/fork.c:2796 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x25255 flags: 0xfff80000000000(node=0|zone=1|lastcpupid=0xfff) page_type: 0xffffffff() raw: 00fff80000000000 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 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), pid 5185, tgid 5185 (syz-executor212), ts 50789033364, free_ts 50695563425 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d4/0x350 mm/page_alloc.c:1534 prep_new_page mm/page_alloc.c:1541 [inline] get_page_from_freelist+0xa28/0x3780 mm/page_alloc.c:3317 __alloc_pages+0x22b/0x2460 mm/page_alloc.c:4575 alloc_pages_mpol+0x275/0x610 mm/mempolicy.c:2264 vm_area_alloc_pages mm/vmalloc.c:3561 [inline] __vmalloc_area_node mm/vmalloc.c:3637 [inline] __vmalloc_node_range+0xa26/0x14b0 mm/vmalloc.c:3818 alloc_thread_stack_node kernel/fork.c:309 [inline] dup_task_struct kernel/fork.c:1114 [inline] copy_process+0xe56/0x9160 kernel/fork.c:2219 kernel_clone+0xfd/0x980 kernel/fork.c:2796 __do_sys_clone+0xba/0x100 kernel/fork.c:2939 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x72/0x7a page last free pid 5185 tgid 5185 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1141 [inline] free_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2347 free_unref_folios+0x256/0xad0 mm/page_alloc.c:2536 folios_put_refs+0x49c/0x750 mm/swap.c:1034 folio_batch_release include/linux/pagevec.h:101 [inline] truncate_inode_pages_range+0x334/0xe90 mm/truncate.c:362 kill_bdev block/bdev.c:85 [inline] blkdev_flush_mapping+0x144/0x310 block/bdev.c:644 blkdev_put_whole+0xc4/0xf0 block/bdev.c:675 bdev_release+0x487/0x710 block/bdev.c:1066 blkdev_release+0x15/0x20 block/fops.c:628 __fput+0x270/0xb80 fs/file_table.c:422 task_work_run+0x14e/0x250 kernel/task_work.c:180 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:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x275/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xe2/0x260 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x72/0x7a Memory state around the buggy address: ffffc9000323f180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000323f200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc9000323f280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc9000323f300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000323f380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================