================================================================== BUG: KASAN: stack-out-of-bounds in instrument_atomic_read_write include/linux/instrumented.h:96 [inline] BUG: KASAN: stack-out-of-bounds in atomic_dec include/linux/atomic/atomic-instrumented.h:592 [inline] BUG: KASAN: stack-out-of-bounds in put_bh include/linux/buffer_head.h:302 [inline] BUG: KASAN: stack-out-of-bounds in end_buffer_read_sync+0xc3/0xe0 fs/buffer.c:161 Write of size 4 at addr ffffc9000cdc5aa0 by task kworker/u4:4/55 CPU: 0 UID: 0 PID: 55 Comm: kworker/u4:4 Not tainted 6.16.0-syzkaller-11241-g186f3edfdd41 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: loop0 loop_workfn Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x2b0/0x2c0 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+0xc3/0xe0 fs/buffer.c:161 end_bio_bh_io_sync+0xbd/0x120 fs/buffer.c:2776 blk_update_request+0x57e/0xe60 block/blk-mq.c:989 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1151 lo_rw_aio_complete drivers/block/loop.c:327 [inline] lo_rw_aio+0xd75/0xfa0 drivers/block/loop.c:401 do_req_filebacked drivers/block/loop.c:-1 [inline] loop_handle_cmd drivers/block/loop.c:1910 [inline] loop_process_work+0x835/0xf90 drivers/block/loop.c:1945 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xade/0x17b0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to a 8-page vmalloc region starting at 0xffffc9000cdc0000 allocated at copy_process+0x54b/0x3c00 kernel/fork.c:2002 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x1a4 pfn:0x4ea6c memcg:ffff88803e60c902 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 00000000000001a4 0000000000000000 00000001ffffffff ffff88803e60c902 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 5980, tgid 5980 (dhcpcd-run-hook), ts 154267067453, free_ts 154217440709 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x21e4/0x22c0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416 alloc_frozen_pages_noprof mm/mempolicy.c:2487 [inline] alloc_pages_noprof+0xa9/0x190 mm/mempolicy.c:2507 vm_area_alloc_pages mm/vmalloc.c:3642 [inline] __vmalloc_area_node mm/vmalloc.c:3720 [inline] __vmalloc_node_range_noprof+0x97d/0x12f0 mm/vmalloc.c:3893 __vmalloc_node_noprof+0xc2/0x110 mm/vmalloc.c:3956 alloc_thread_stack_node kernel/fork.c:318 [inline] dup_task_struct+0x3e7/0x860 kernel/fork.c:879 copy_process+0x54b/0x3c00 kernel/fork.c:2002 kernel_clone+0x21e/0x840 kernel/fork.c:2603 __do_sys_clone kernel/fork.c:2746 [inline] __se_sys_clone kernel/fork.c:2730 [inline] __x64_sys_clone+0x18b/0x1e0 kernel/fork.c:2730 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5794 tgid 5794 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] free_unref_folios+0xdbd/0x1520 mm/page_alloc.c:2952 folios_put_refs+0x559/0x640 mm/swap.c:997 folio_batch_release include/linux/pagevec.h:101 [inline] truncate_inode_pages_range+0x346/0xda0 mm/truncate.c:383 kill_bdev block/bdev.c:91 [inline] blkdev_flush_mapping+0x108/0x270 block/bdev.c:712 blkdev_put_whole block/bdev.c:719 [inline] bdev_release+0x417/0x650 block/bdev.c:1144 blkdev_release+0x15/0x20 block/fops.c:699 __fput+0x449/0xa70 fs/file_table.c:468 fput_close_sync+0x119/0x200 fs/file_table.c:573 __do_sys_close fs/open.c:1587 [inline] __se_sys_close fs/open.c:1572 [inline] __x64_sys_close+0x7f/0x110 fs/open.c:1572 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffffc9000cdc5980: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 ffffc9000cdc5a00: 00 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc9000cdc5a80: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 f3 f3 f3 ^ ffffc9000cdc5b00: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ffffc9000cdc5b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================