loop0: detected capacity change from 0 to 1024 ================================================================== BUG: KASAN: slab-use-after-free in hfsplus_read_wrapper+0xf86/0x1070 fs/hfsplus/wrapper.c:226 Read of size 2 at addr ffff888045f39800 by task syz-executor.0/31215 CPU: 0 PID: 31215 Comm: syz-executor.0 Not tainted 6.9.0-rc7-syzkaller-00023-g6d7ddd805123 #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 hfsplus_read_wrapper+0xf86/0x1070 fs/hfsplus/wrapper.c:226 hfsplus_fill_super+0x352/0x1bc0 fs/hfsplus/super.c:419 mount_bdev+0x1e3/0x2d0 fs/super.c:1658 legacy_get_tree+0x109/0x220 fs/fs_context.c:662 vfs_get_tree+0x8f/0x380 fs/super.c:1779 do_new_mount fs/namespace.c:3352 [inline] path_mount+0x14e6/0x1f20 fs/namespace.c:3679 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount fs/namespace.c:3875 [inline] __x64_sys_mount+0x297/0x320 fs/namespace.c:3875 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f231927f46a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2319f19ef8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f2319f19f80 RCX: 00007f231927f46a RDX: 0000000020000040 RSI: 0000000020000200 RDI: 00007f2319f19f40 RBP: 0000000020000040 R08: 00007f2319f19f80 R09: 0000000003200014 R10: 0000000003200014 R11: 0000000000000202 R12: 0000000020000200 R13: 00007f2319f19f40 R14: 0000000000000600 R15: 0000000020000280 The buggy address belongs to the object at ffff888045f39800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 0 bytes inside of freed 512-byte region [ffff888045f39800, ffff888045f39a00) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888045f38c00 pfn:0x45f38 head: order:2 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff888015042c80 0000000000000000 dead000000000001 raw: ffff888045f38c00 000000008010000c 00000001ffffffff 0000000000000000 head: 00fff00000000840 ffff888015042c80 0000000000000000 dead000000000001 head: ffff888045f38c00 000000008010000c 00000001ffffffff 0000000000000000 head: 00fff00000000002 ffffea000117ce01 dead000000000122 00000000ffffffff head: 0000000400000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 3828, tgid 176514844 (kworker/0:2), ts 3828, free_ts 0 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_node include/linux/gfp.h:238 [inline] alloc_pages_node include/linux/gfp.h:261 [inline] alloc_slab_page mm/slub.c:2180 [inline] allocate_slab mm/slub.c:2343 [inline] new_slab+0xcc/0x3a0 mm/slub.c:2396 ___slab_alloc+0x66d/0x1790 mm/slub.c:3530 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3615 __slab_alloc_node mm/slub.c:3668 [inline] slab_alloc_node mm/slub.c:3841 [inline] __do_kmalloc_node mm/slub.c:3971 [inline] __kmalloc+0x3bf/0x440 mm/slub.c:3985 kmalloc include/linux/slab.h:632 [inline] kzalloc include/linux/slab.h:749 [inline] fib6_info_alloc+0x40/0x160 net/ipv6/ip6_fib.c:155 ip6_route_info_create+0x337/0x1940 net/ipv6/route.c:3759 ip6_route_add+0x26/0x190 net/ipv6/route.c:3851 addrconf_prefix_route+0x2fe/0x510 net/ipv6/addrconf.c:2484 addrconf_add_linklocal+0x32a/0x650 net/ipv6/addrconf.c:3315 addrconf_addr_gen+0x36f/0x3c0 net/ipv6/addrconf.c:3444 addrconf_dev_config net/ipv6/addrconf.c:3490 [inline] addrconf_init_auto_addrs+0x446/0x820 net/ipv6/addrconf.c:3568 addrconf_notify+0x6ef/0x19e0 net/ipv6/addrconf.c:3741 notifier_call_chain+0xb9/0x410 kernel/notifier.c:93 page_owner free stack trace missing Memory state around the buggy address: ffff888045f39700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888045f39780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888045f39800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888045f39880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888045f39900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================