syzbot |
sign-in | mailing list | source | docs |
================================================================== BUG: KASAN: use-after-free in iomap_finish_ioend+0x744/0x800 fs/iomap/buffered-io.c:1331 Read of size 8 at addr ffff888055712110 by task kworker/1:13/5172 CPU: 1 PID: 5172 Comm: kworker/1:13 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Workqueue: xfs-conv/loop1 xfs_end_io Call Trace: <TASK> dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 iomap_finish_ioend+0x744/0x800 fs/iomap/buffered-io.c:1331 iomap_finish_ioends+0x113/0x2b0 fs/iomap/buffered-io.c:1355 xfs_end_ioend+0x367/0x470 fs/xfs/xfs_aops.c:134 xfs_end_io+0x250/0x2c0 fs/xfs/xfs_aops.c:171 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 </TASK> Allocated by task 5171: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc_lru+0x11a/0x2e0 mm/slub.c:3390 alloc_inode_sb include/linux/fs.h:3245 [inline] xfs_inode_alloc+0x7c/0x6a0 fs/xfs/xfs_icache.c:81 xfs_iget_cache_miss fs/xfs/xfs_icache.c:611 [inline] xfs_iget+0xaef/0x3050 fs/xfs/xfs_icache.c:777 xfs_lookup+0x266/0x490 fs/xfs/xfs_inode.c:669 xfs_vn_lookup+0x115/0x1d0 fs/xfs/xfs_iops.c:305 lookup_open fs/namei.c:3468 [inline] open_last_lookups fs/namei.c:3558 [inline] path_openat+0xfaf/0x2e70 fs/namei.c:3788 do_filp_open+0x1c1/0x3c0 fs/namei.c:3818 do_sys_openat2+0x142/0x490 fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1347 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 4265: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x2d/0x50 mm/kasan/generic.c:516 ____kasan_slab_free+0x126/0x1e0 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1729 [inline] slab_free_freelist_hook+0x131/0x1a0 mm/slub.c:1755 slab_free mm/slub.c:3687 [inline] kmem_cache_free+0xf7/0x290 mm/slub.c:3709 rcu_do_batch kernel/rcu/tree.c:2297 [inline] rcu_core+0x9c0/0x16a0 kernel/rcu/tree.c:2557 handle_softirqs+0x2a1/0x920 kernel/softirq.c:596 __do_softirq kernel/softirq.c:630 [inline] invoke_softirq kernel/softirq.c:470 [inline] __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:679 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 Last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 call_rcu+0x154/0x980 kernel/rcu/tree.c:2849 __xfs_inode_free fs/xfs/xfs_icache.c:161 [inline] xfs_reclaim_inode fs/xfs/xfs_icache.c:979 [inline] xfs_icwalk_process_inode fs/xfs/xfs_icache.c:1660 [inline] xfs_icwalk_ag+0x13e2/0x1b20 fs/xfs/xfs_icache.c:1742 xfs_icwalk fs/xfs/xfs_icache.c:1791 [inline] xfs_reclaim_inodes+0x188/0x260 fs/xfs/xfs_icache.c:1012 xfs_unmount_flush_inodes+0xaf/0xc0 fs/xfs/xfs_mount.c:594 xfs_unmountfs+0xc0/0x270 fs/xfs/xfs_mount.c:1071 xfs_fs_put_super+0x6d/0x2d0 fs/xfs/xfs_super.c:1118 generic_shutdown_super+0x130/0x340 fs/super.c:501 kill_block_super+0x7c/0xe0 fs/super.c:1470 deactivate_locked_super+0x93/0xf0 fs/super.c:332 cleanup_mnt+0x463/0x4f0 fs/namespace.c:1191 task_work_run+0x1ca/0x250 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Second to last potentially related work creation: kasan_save_stack+0x3a/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486 insert_work+0x54/0x3c0 kernel/workqueue.c:1361 __queue_work+0xba3/0xfb0 kernel/workqueue.c:1520 queue_work_on+0x11d/0x1d0 kernel/workqueue.c:1548 queue_work include/linux/workqueue.h:512 [inline] xfs_end_bio+0xf0/0x1f0 fs/xfs/xfs_aops.c:186 iomap_submit_ioend fs/iomap/buffered-io.c:1470 [inline] iomap_writepages+0x1b6/0x210 fs/iomap/buffered-io.c:1802 xfs_vm_writepages+0x137/0x1a0 fs/xfs/xfs_aops.c:477 do_writepages+0x3b7/0x610 mm/page-writeback.c:2491 filemap_fdatawrite_wbc+0x11e/0x180 mm/filemap.c:388 __filemap_fdatawrite_range mm/filemap.c:421 [inline] file_write_and_wait_range+0x137/0x200 mm/filemap.c:774 xfs_file_fsync+0x1c3/0xa30 fs/xfs/xfs_file.c:144 generic_write_sync include/linux/fs.h:2962 [inline] xfs_file_buffered_write+0x955/0xa70 fs/xfs/xfs_file.c:794 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x62d/0xaf0 fs/read_write.c:861 vfs_writev fs/read_write.c:934 [inline] do_pwritev+0x201/0x340 fs/read_write.c:1031 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff888055711f00 which belongs to the cache xfs_inode of size 1808 The buggy address is located 528 bytes inside of 1808-byte region [ffff888055711f00, ffff888055712610) The buggy address belongs to the physical page: page:ffffea000155c400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x55710 head:ffffea000155c400 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff888027a66801 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff88814828d780 raw: 0000000000000000 0000000080100010 00000001ffffffff ffff888027a66801 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d20d0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 5171, tgid 5170 (syz.1.220), ts 163975099021, free_ts 151074848598 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614 alloc_slab_page+0x5d/0x160 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2c0 mm/slub.c:1997 ___slab_alloc+0xbc6/0x1230 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc_lru+0x1ae/0x2e0 mm/slub.c:3390 alloc_inode_sb include/linux/fs.h:3245 [inline] xfs_inode_alloc+0x7c/0x6a0 fs/xfs/xfs_icache.c:81 xfs_iget_cache_miss fs/xfs/xfs_icache.c:611 [inline] xfs_iget+0xaef/0x3050 fs/xfs/xfs_icache.c:777 xfs_mountfs+0xda6/0x1d10 fs/xfs/xfs_mount.c:848 xfs_fs_fill_super+0x10f0/0x1350 fs/xfs/xfs_super.c:1690 get_tree_bdev+0x3f1/0x610 fs/super.c:1366 vfs_get_tree+0x88/0x270 fs/super.c:1573 do_new_mount+0x24a/0xa40 fs/namespace.c:3078 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3606 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x144/0x160 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x1e/0x80 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x480 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] __kmem_cache_alloc_node+0x140/0x260 mm/slub.c:3398 kmalloc_trace+0x26/0xe0 mm/slab_common.c:1026 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] kernfs_fop_open+0x3f1/0xcc0 fs/kernfs/file.c:690 do_dentry_open+0x7e9/0x10d0 fs/open.c:882 do_open fs/namei.c:3634 [inline] path_openat+0x25c6/0x2e70 fs/namei.c:3791 do_filp_open+0x1c1/0x3c0 fs/namei.c:3818 do_sys_openat2+0x142/0x490 fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1347 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Memory state around the buggy address: ffff888055712000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888055712080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888055712100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888055712180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888055712200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================
| Time | Kernel | Commit | Syzkaller | Config | Log | Report | Syz repro | C repro | VM info | Assets (help?) | Manager | Title |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2025/12/17 10:01 | linux-6.1.y | 50cbba13faa2 | d6526ea3 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-1-kasan | KASAN: use-after-free Read in iomap_finish_ioend | ||
| 2025/11/04 16:47 | linux-6.1.y | f6e38ae624cf | 686bf657 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-1-kasan-arm64 | KASAN: use-after-free Read in iomap_finish_ioend | ||
| 2025/11/02 00:03 | linux-6.1.y | f6e38ae624cf | 2c50b6a9 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-1-kasan-arm64 | KASAN: use-after-free Read in iomap_finish_ioend | ||
| 2025/08/21 11:07 | linux-6.1.y | 0bc96de781b4 | 0b9605c8 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci2-linux-6-1-kasan-arm64 | KASAN: use-after-free Read in iomap_finish_ioend |