EXT4-fs (loop3): Cannot turn on journaled quota: type 1: error -2 EXT4-fs error (device loop3): ext4_orphan_get:1431: comm syz.3.40: bad orphan inode 15 ================================================================== BUG: KASAN: use-after-free in hlist_add_head include/linux/list.h:930 [inline] BUG: KASAN: use-after-free in enqueue_timer+0xae/0x480 kernel/time/timer.c:611 Write of size 8 at addr ffff8881145924f0 by task syz.3.40/453 CPU: 0 PID: 453 Comm: syz.3.40 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/25/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 print_address_description+0x71/0x200 mm/kasan/report.c:316 print_report+0x4a/0x60 mm/kasan/report.c:420 kasan_report+0x122/0x150 mm/kasan/report.c:524 __asan_report_store8_noabort+0x17/0x20 mm/kasan/report_generic.c:356 hlist_add_head include/linux/list.h:930 [inline] enqueue_timer+0xae/0x480 kernel/time/timer.c:611 internal_add_timer kernel/time/timer.c:640 [inline] __mod_timer+0x859/0xc00 kernel/time/timer.c:1137 mod_timer+0x1f/0x30 kernel/time/timer.c:1196 ext4_update_super+0xa57/0xe30 fs/ext4/super.c:6095 ext4_commit_super+0xd8/0x4a0 fs/ext4/super.c:6114 ext4_handle_error+0x6b6/0x870 fs/ext4/super.c:678 __ext4_error+0x24f/0x440 fs/ext4/super.c:779 ext4_orphan_get+0x250/0x620 fs/ext4/ialloc.c:1431 ext4_orphan_cleanup+0xa02/0x1270 fs/ext4/orphan.c:465 __ext4_fill_super fs/ext4/super.c:5561 [inline] ext4_fill_super+0x6a53/0x73e0 fs/ext4/super.c:5680 get_tree_bdev+0x450/0x6a0 fs/super.c:1371 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5710 vfs_get_tree+0x9a/0x270 fs/super.c:1578 do_new_mount+0x251/0xb40 fs/namespace.c:3081 path_mount+0x640/0xfd0 fs/namespace.c:3411 do_mount fs/namespace.c:3424 [inline] __do_sys_mount fs/namespace.c:3632 [inline] __se_sys_mount+0x320/0x390 fs/namespace.c:3609 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3609 x64_sys_call+0x65d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f7a60f9f0ca Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7a61e8fe58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f7a61e8fee0 RCX: 00007f7a60f9f0ca RDX: 0000200000000080 RSI: 0000200000000480 RDI: 00007f7a61e8fea0 RBP: 0000200000000080 R08: 00007f7a61e8fee0 R09: 000000000001008a R10: 000000000001008a R11: 0000000000000246 R12: 0000200000000480 R13: 00007f7a61e8fea0 R14: 0000000000000455 R15: 000000000000002c Allocated by task 344: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_alloc_info+0x1f/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:380 [inline] __kasan_kmalloc+0x95/0xb0 mm/kasan/common.c:389 kasan_kmalloc include/linux/kasan.h:212 [inline] kmalloc_trace+0x40/0xb0 mm/slab_common.c:1033 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] ext4_alloc_sbi fs/ext4/super.c:4315 [inline] ext4_fill_super+0x11e/0x73e0 fs/ext4/super.c:5667 get_tree_bdev+0x450/0x6a0 fs/super.c:1371 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5710 vfs_get_tree+0x9a/0x270 fs/super.c:1578 do_new_mount+0x251/0xb40 fs/namespace.c:3081 path_mount+0x640/0xfd0 fs/namespace.c:3411 do_mount fs/namespace.c:3424 [inline] __do_sys_mount fs/namespace.c:3632 [inline] __se_sys_mount+0x320/0x390 fs/namespace.c:3609 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3609 x64_sys_call+0x65d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 291: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:242 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:250 kasan_slab_free include/linux/kasan.h:178 [inline] slab_free_hook mm/slub.c:1750 [inline] slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1776 slab_free mm/slub.c:3712 [inline] __kmem_cache_free+0xb7/0x1b0 mm/slub.c:3728 kfree+0x6f/0xf0 mm/slab_common.c:990 ext4_put_super+0x9b9/0xab0 fs/ext4/super.c:1363 generic_shutdown_super+0x16c/0x480 fs/super.c:506 kill_block_super+0x7f/0xf0 fs/super.c:1475 deactivate_locked_super+0xb5/0x120 fs/super.c:336 deactivate_super+0xaf/0xe0 fs/super.c:367 cleanup_mnt+0x45e/0x4e0 fs/namespace.c:1192 __cleanup_mnt+0x19/0x20 fs/namespace.c:1199 task_work_run+0x1e1/0x250 kernel/task_work.c:203 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x9b/0xb0 kernel/entry/common.c:177 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff888114592000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 1264 bytes inside of 4096-byte region [ffff888114592000, ffff888114593000) The buggy address belongs to the physical page: page:ffffea0004516400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x114590 head:ffffea0004516400 order:3 compound_mapcount:0 compound_pincount:0 flags: 0x4000000000010200(slab|head|zone=1) raw: 4000000000010200 0000000000000000 dead000000000122 ffff888100043380 raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 344, tgid 337 (syz.2.8), ts 29268461345, free_ts 29268012729 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2672 prep_new_page+0x1c/0x110 mm/page_alloc.c:2679 get_page_from_freelist+0x2ca9/0x2d20 mm/page_alloc.c:4586 __alloc_pages+0x1fa/0x610 mm/page_alloc.c:5930 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1 allocate_slab mm/slub.c:1967 [inline] new_slab+0x98/0x3e0 mm/slub.c:2020 ___slab_alloc+0x70f/0xb70 mm/slub.c:3177 __slab_alloc+0x5e/0xa0 mm/slub.c:3263 slab_alloc_node mm/slub.c:3348 [inline] __kmem_cache_alloc_node+0x204/0x2d0 mm/slub.c:3423 kmalloc_trace+0x29/0xb0 mm/slab_common.c:1028 kmalloc include/linux/slab.h:563 [inline] kzalloc include/linux/slab.h:699 [inline] ext4_alloc_sbi fs/ext4/super.c:4315 [inline] ext4_fill_super+0x11e/0x73e0 fs/ext4/super.c:5667 get_tree_bdev+0x450/0x6a0 fs/super.c:1371 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5710 vfs_get_tree+0x9a/0x270 fs/super.c:1578 do_new_mount+0x251/0xb40 fs/namespace.c:3081 path_mount+0x640/0xfd0 fs/namespace.c:3411 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1580 [inline] free_pcp_prepare mm/page_alloc.c:1654 [inline] free_unref_page_prepare+0x80c/0x820 mm/page_alloc.c:3621 free_unref_page+0x93/0x530 mm/page_alloc.c:3719 free_the_page mm/page_alloc.c:863 [inline] free_compound_page+0x99/0xd0 mm/page_alloc.c:886 destroy_large_folio+0x68/0xa0 mm/page_alloc.c:923 __folio_put_large mm/swap.c:113 [inline] __folio_put+0xd1/0xe0 mm/swap.c:121 folio_put include/linux/mm.h:1442 [inline] put_page include/linux/mm.h:1494 [inline] __skb_frag_unref include/linux/skbuff.h:3510 [inline] skb_release_data+0x3d5/0x8a0 net/core/skbuff.c:788 skb_release_all net/core/skbuff.c:859 [inline] __kfree_skb+0x50/0x70 net/core/skbuff.c:873 tcp_wmem_free_skb include/net/tcp.h:308 [inline] tcp_rtx_queue_unlink_and_free+0x40c/0x650 include/net/tcp.h:1979 tcp_clean_rtx_queue net/ipv4/tcp_input.c:3415 [inline] tcp_ack+0x1de9/0x5f40 net/ipv4/tcp_input.c:3974 tcp_rcv_established+0xdb9/0x1ab0 net/ipv4/tcp_input.c:6027 tcp_v4_do_rcv+0x446/0x9c0 net/ipv4/tcp_ipv4.c:1684 tcp_v4_rcv+0x239f/0x2ae0 net/ipv4/tcp_ipv4.c:2115 ip_protocol_deliver_rcu+0x371/0x780 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x23e/0x400 net/ipv4/ip_input.c:233 NF_HOOK include/linux/netfilter.h:305 [inline] ip_local_deliver+0x1dc/0x350 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:463 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:580 [inline] ip_list_rcv_finish net/ipv4/ip_input.c:631 [inline] ip_sublist_rcv+0x787/0x8d0 net/ipv4/ip_input.c:639 Memory state around the buggy address: ffff888114592380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888114592400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888114592480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888114592500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888114592580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== EXT4-fs (loop3): Remounting filesystem read-only ext4_test_bit(bit=14, block=4) = 1 is_bad_inode(inode)=0 NEXT_ORPHAN(inode)=0 max_ino=32 i_nlink=1 EXT4-fs (loop3): mounted filesystem without journal. Quota mode: writeback.