loop3: detected capacity change from 0 to 1024 ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff88805ffe3218 by task syz.3.17/5376 CPU: 0 UID: 0 PID: 5376 Comm: syz.3.17 Not tainted 6.11.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 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_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x6e6/0xe10 fs/hfsplus/xattr.c:734 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcbfc979e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcbfd7a8038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007fcbfcb15f80 RCX: 00007fcbfc979e79 RDX: 0000000000000300 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007fcbfc9e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcbfcb15f80 R15: 00007ffe79715548 Allocated by task 5376: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4158 [inline] __kmalloc_noprof+0x1e8/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] hfsplus_find_init+0x95/0x1f0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x46d/0xe10 fs/hfsplus/xattr.c:693 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805ffe3000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 0 bytes to the right of allocated 536-byte region [ffff88805ffe3000, ffff88805ffe3218) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffe0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 head: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000003 ffffea00017ff801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 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 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 958, tgid 958 (kworker/u8:5), ts 126521113075, free_ts 126480172201 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x1351/0x2e50 mm/page_alloc.c:3439 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4695 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x4e/0xf0 mm/slub.c:2321 allocate_slab mm/slub.c:2484 [inline] new_slab+0x84/0x260 mm/slub.c:2537 ___slab_alloc+0xdac/0x1870 mm/slub.c:3723 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3813 __slab_alloc_node mm/slub.c:3866 [inline] slab_alloc_node mm/slub.c:4025 [inline] __do_kmalloc_node mm/slub.c:4157 [inline] __kmalloc_noprof+0x367/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] neigh_alloc net/core/neighbour.c:494 [inline] ___neigh_create+0x152b/0x2ac0 net/core/neighbour.c:648 ip6_finish_output2+0x11b3/0x1a50 net/ipv6/ip6_output.c:132 __ip6_finish_output net/ipv6/ip6_output.c:215 [inline] ip6_finish_output+0x3f9/0x1300 net/ipv6/ip6_output.c:226 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip6_output+0x1f8/0x540 net/ipv6/ip6_output.c:247 dst_output include/net/dst.h:450 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] ndisc_send_skb+0xa2d/0x1c30 net/ipv6/ndisc.c:511 ndisc_send_ns+0xc7/0x150 net/ipv6/ndisc.c:669 addrconf_dad_work+0xc80/0x14d0 net/ipv6/addrconf.c:4282 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 page last free pid 4675 tgid 4675 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2612 __put_partials+0x14c/0x170 mm/slub.c:3051 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3988 [inline] slab_alloc_node mm/slub.c:4037 [inline] kmem_cache_alloc_node_noprof+0x153/0x310 mm/slub.c:4080 __alloc_skb+0x2b1/0x380 net/core/skbuff.c:664 alloc_skb include/linux/skbuff.h:1320 [inline] netlink_alloc_large_skb+0x69/0x130 net/netlink/af_netlink.c:1206 netlink_sendmsg+0x689/0xd70 net/netlink/af_netlink.c:1876 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0xab8/0xc90 net/socket.c:2597 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2651 __sys_sendmsg+0x117/0x1f0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805ffe3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805ffe3180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805ffe3200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805ffe3280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805ffe3300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff88805ffe321a by task syz.3.17/5376 CPU: 1 UID: 0 PID: 5376 Comm: syz.3.17 Tainted: G B 6.11.0-rc5-syzkaller #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 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_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x6e6/0xe10 fs/hfsplus/xattr.c:734 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcbfc979e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcbfd7a8038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007fcbfcb15f80 RCX: 00007fcbfc979e79 RDX: 0000000000000300 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007fcbfc9e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcbfcb15f80 R15: 00007ffe79715548 Allocated by task 5376: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4158 [inline] __kmalloc_noprof+0x1e8/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] hfsplus_find_init+0x95/0x1f0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x46d/0xe10 fs/hfsplus/xattr.c:693 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805ffe3000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 2 bytes to the right of allocated 536-byte region [ffff88805ffe3000, ffff88805ffe3218) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffe0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 head: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000003 ffffea00017ff801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 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 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 958, tgid 958 (kworker/u8:5), ts 126521113075, free_ts 126480172201 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x1351/0x2e50 mm/page_alloc.c:3439 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4695 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x4e/0xf0 mm/slub.c:2321 allocate_slab mm/slub.c:2484 [inline] new_slab+0x84/0x260 mm/slub.c:2537 ___slab_alloc+0xdac/0x1870 mm/slub.c:3723 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3813 __slab_alloc_node mm/slub.c:3866 [inline] slab_alloc_node mm/slub.c:4025 [inline] __do_kmalloc_node mm/slub.c:4157 [inline] __kmalloc_noprof+0x367/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] neigh_alloc net/core/neighbour.c:494 [inline] ___neigh_create+0x152b/0x2ac0 net/core/neighbour.c:648 ip6_finish_output2+0x11b3/0x1a50 net/ipv6/ip6_output.c:132 __ip6_finish_output net/ipv6/ip6_output.c:215 [inline] ip6_finish_output+0x3f9/0x1300 net/ipv6/ip6_output.c:226 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip6_output+0x1f8/0x540 net/ipv6/ip6_output.c:247 dst_output include/net/dst.h:450 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] ndisc_send_skb+0xa2d/0x1c30 net/ipv6/ndisc.c:511 ndisc_send_ns+0xc7/0x150 net/ipv6/ndisc.c:669 addrconf_dad_work+0xc80/0x14d0 net/ipv6/addrconf.c:4282 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 page last free pid 4675 tgid 4675 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2612 __put_partials+0x14c/0x170 mm/slub.c:3051 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3988 [inline] slab_alloc_node mm/slub.c:4037 [inline] kmem_cache_alloc_node_noprof+0x153/0x310 mm/slub.c:4080 __alloc_skb+0x2b1/0x380 net/core/skbuff.c:664 alloc_skb include/linux/skbuff.h:1320 [inline] netlink_alloc_large_skb+0x69/0x130 net/netlink/af_netlink.c:1206 netlink_sendmsg+0x689/0xd70 net/netlink/af_netlink.c:1876 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0xab8/0xc90 net/socket.c:2597 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2651 __sys_sendmsg+0x117/0x1f0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805ffe3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805ffe3180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805ffe3200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805ffe3280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805ffe3300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff88805ffe321c by task syz.3.17/5376 CPU: 0 UID: 0 PID: 5376 Comm: syz.3.17 Tainted: G B 6.11.0-rc5-syzkaller #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 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_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x6e6/0xe10 fs/hfsplus/xattr.c:734 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcbfc979e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcbfd7a8038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007fcbfcb15f80 RCX: 00007fcbfc979e79 RDX: 0000000000000300 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007fcbfc9e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcbfcb15f80 R15: 00007ffe79715548 Allocated by task 5376: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4158 [inline] __kmalloc_noprof+0x1e8/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] hfsplus_find_init+0x95/0x1f0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x46d/0xe10 fs/hfsplus/xattr.c:693 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805ffe3000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 4 bytes to the right of allocated 536-byte region [ffff88805ffe3000, ffff88805ffe3218) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffe0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 head: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000003 ffffea00017ff801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 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 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 958, tgid 958 (kworker/u8:5), ts 126521113075, free_ts 126480172201 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x1351/0x2e50 mm/page_alloc.c:3439 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4695 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x4e/0xf0 mm/slub.c:2321 allocate_slab mm/slub.c:2484 [inline] new_slab+0x84/0x260 mm/slub.c:2537 ___slab_alloc+0xdac/0x1870 mm/slub.c:3723 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3813 __slab_alloc_node mm/slub.c:3866 [inline] slab_alloc_node mm/slub.c:4025 [inline] __do_kmalloc_node mm/slub.c:4157 [inline] __kmalloc_noprof+0x367/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] neigh_alloc net/core/neighbour.c:494 [inline] ___neigh_create+0x152b/0x2ac0 net/core/neighbour.c:648 ip6_finish_output2+0x11b3/0x1a50 net/ipv6/ip6_output.c:132 __ip6_finish_output net/ipv6/ip6_output.c:215 [inline] ip6_finish_output+0x3f9/0x1300 net/ipv6/ip6_output.c:226 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip6_output+0x1f8/0x540 net/ipv6/ip6_output.c:247 dst_output include/net/dst.h:450 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] ndisc_send_skb+0xa2d/0x1c30 net/ipv6/ndisc.c:511 ndisc_send_ns+0xc7/0x150 net/ipv6/ndisc.c:669 addrconf_dad_work+0xc80/0x14d0 net/ipv6/addrconf.c:4282 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 page last free pid 4675 tgid 4675 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2612 __put_partials+0x14c/0x170 mm/slub.c:3051 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3988 [inline] slab_alloc_node mm/slub.c:4037 [inline] kmem_cache_alloc_node_noprof+0x153/0x310 mm/slub.c:4080 __alloc_skb+0x2b1/0x380 net/core/skbuff.c:664 alloc_skb include/linux/skbuff.h:1320 [inline] netlink_alloc_large_skb+0x69/0x130 net/netlink/af_netlink.c:1206 netlink_sendmsg+0x689/0xd70 net/netlink/af_netlink.c:1876 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0xab8/0xc90 net/socket.c:2597 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2651 __sys_sendmsg+0x117/0x1f0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805ffe3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805ffe3180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805ffe3200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805ffe3280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805ffe3300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff88805ffe321e by task syz.3.17/5376 CPU: 0 UID: 0 PID: 5376 Comm: syz.3.17 Tainted: G B 6.11.0-rc5-syzkaller #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 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_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x6e6/0xe10 fs/hfsplus/xattr.c:734 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcbfc979e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcbfd7a8038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007fcbfcb15f80 RCX: 00007fcbfc979e79 RDX: 0000000000000300 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007fcbfc9e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcbfcb15f80 R15: 00007ffe79715548 Allocated by task 5376: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4158 [inline] __kmalloc_noprof+0x1e8/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] hfsplus_find_init+0x95/0x1f0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x46d/0xe10 fs/hfsplus/xattr.c:693 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805ffe3000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 6 bytes to the right of allocated 536-byte region [ffff88805ffe3000, ffff88805ffe3218) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffe0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 head: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000003 ffffea00017ff801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 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 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 958, tgid 958 (kworker/u8:5), ts 126521113075, free_ts 126480172201 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x1351/0x2e50 mm/page_alloc.c:3439 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4695 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x4e/0xf0 mm/slub.c:2321 allocate_slab mm/slub.c:2484 [inline] new_slab+0x84/0x260 mm/slub.c:2537 ___slab_alloc+0xdac/0x1870 mm/slub.c:3723 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3813 __slab_alloc_node mm/slub.c:3866 [inline] slab_alloc_node mm/slub.c:4025 [inline] __do_kmalloc_node mm/slub.c:4157 [inline] __kmalloc_noprof+0x367/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] neigh_alloc net/core/neighbour.c:494 [inline] ___neigh_create+0x152b/0x2ac0 net/core/neighbour.c:648 ip6_finish_output2+0x11b3/0x1a50 net/ipv6/ip6_output.c:132 __ip6_finish_output net/ipv6/ip6_output.c:215 [inline] ip6_finish_output+0x3f9/0x1300 net/ipv6/ip6_output.c:226 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip6_output+0x1f8/0x540 net/ipv6/ip6_output.c:247 dst_output include/net/dst.h:450 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] ndisc_send_skb+0xa2d/0x1c30 net/ipv6/ndisc.c:511 ndisc_send_ns+0xc7/0x150 net/ipv6/ndisc.c:669 addrconf_dad_work+0xc80/0x14d0 net/ipv6/addrconf.c:4282 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 page last free pid 4675 tgid 4675 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2612 __put_partials+0x14c/0x170 mm/slub.c:3051 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3988 [inline] slab_alloc_node mm/slub.c:4037 [inline] kmem_cache_alloc_node_noprof+0x153/0x310 mm/slub.c:4080 __alloc_skb+0x2b1/0x380 net/core/skbuff.c:664 alloc_skb include/linux/skbuff.h:1320 [inline] netlink_alloc_large_skb+0x69/0x130 net/netlink/af_netlink.c:1206 netlink_sendmsg+0x689/0xd70 net/netlink/af_netlink.c:1876 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0xab8/0xc90 net/socket.c:2597 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2651 __sys_sendmsg+0x117/0x1f0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805ffe3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805ffe3180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805ffe3200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805ffe3280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805ffe3300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff88805ffe3220 by task syz.3.17/5376 CPU: 1 UID: 0 PID: 5376 Comm: syz.3.17 Tainted: G B 6.11.0-rc5-syzkaller #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 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_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x6e6/0xe10 fs/hfsplus/xattr.c:734 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcbfc979e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcbfd7a8038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007fcbfcb15f80 RCX: 00007fcbfc979e79 RDX: 0000000000000300 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007fcbfc9e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcbfcb15f80 R15: 00007ffe79715548 Allocated by task 5376: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4158 [inline] __kmalloc_noprof+0x1e8/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] hfsplus_find_init+0x95/0x1f0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x46d/0xe10 fs/hfsplus/xattr.c:693 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805ffe3000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 8 bytes to the right of allocated 536-byte region [ffff88805ffe3000, ffff88805ffe3218) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffe0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 head: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000003 ffffea00017ff801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 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 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 958, tgid 958 (kworker/u8:5), ts 126521113075, free_ts 126480172201 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x1351/0x2e50 mm/page_alloc.c:3439 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4695 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x4e/0xf0 mm/slub.c:2321 allocate_slab mm/slub.c:2484 [inline] new_slab+0x84/0x260 mm/slub.c:2537 ___slab_alloc+0xdac/0x1870 mm/slub.c:3723 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3813 __slab_alloc_node mm/slub.c:3866 [inline] slab_alloc_node mm/slub.c:4025 [inline] __do_kmalloc_node mm/slub.c:4157 [inline] __kmalloc_noprof+0x367/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] neigh_alloc net/core/neighbour.c:494 [inline] ___neigh_create+0x152b/0x2ac0 net/core/neighbour.c:648 ip6_finish_output2+0x11b3/0x1a50 net/ipv6/ip6_output.c:132 __ip6_finish_output net/ipv6/ip6_output.c:215 [inline] ip6_finish_output+0x3f9/0x1300 net/ipv6/ip6_output.c:226 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip6_output+0x1f8/0x540 net/ipv6/ip6_output.c:247 dst_output include/net/dst.h:450 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] ndisc_send_skb+0xa2d/0x1c30 net/ipv6/ndisc.c:511 ndisc_send_ns+0xc7/0x150 net/ipv6/ndisc.c:669 addrconf_dad_work+0xc80/0x14d0 net/ipv6/addrconf.c:4282 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 page last free pid 4675 tgid 4675 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2612 __put_partials+0x14c/0x170 mm/slub.c:3051 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3988 [inline] slab_alloc_node mm/slub.c:4037 [inline] kmem_cache_alloc_node_noprof+0x153/0x310 mm/slub.c:4080 __alloc_skb+0x2b1/0x380 net/core/skbuff.c:664 alloc_skb include/linux/skbuff.h:1320 [inline] netlink_alloc_large_skb+0x69/0x130 net/netlink/af_netlink.c:1206 netlink_sendmsg+0x689/0xd70 net/netlink/af_netlink.c:1876 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0xab8/0xc90 net/socket.c:2597 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2651 __sys_sendmsg+0x117/0x1f0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805ffe3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805ffe3180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805ffe3200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805ffe3280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805ffe3300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff88805ffe3222 by task syz.3.17/5376 CPU: 0 UID: 0 PID: 5376 Comm: syz.3.17 Tainted: G B 6.11.0-rc5-syzkaller #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 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_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x6e6/0xe10 fs/hfsplus/xattr.c:734 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcbfc979e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcbfd7a8038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007fcbfcb15f80 RCX: 00007fcbfc979e79 RDX: 0000000000000300 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007fcbfc9e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcbfcb15f80 R15: 00007ffe79715548 Allocated by task 5376: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4158 [inline] __kmalloc_noprof+0x1e8/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] hfsplus_find_init+0x95/0x1f0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x46d/0xe10 fs/hfsplus/xattr.c:693 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805ffe3000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 10 bytes to the right of allocated 536-byte region [ffff88805ffe3000, ffff88805ffe3218) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffe0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 head: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000003 ffffea00017ff801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 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 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 958, tgid 958 (kworker/u8:5), ts 126521113075, free_ts 126480172201 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x1351/0x2e50 mm/page_alloc.c:3439 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4695 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x4e/0xf0 mm/slub.c:2321 allocate_slab mm/slub.c:2484 [inline] new_slab+0x84/0x260 mm/slub.c:2537 ___slab_alloc+0xdac/0x1870 mm/slub.c:3723 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3813 __slab_alloc_node mm/slub.c:3866 [inline] slab_alloc_node mm/slub.c:4025 [inline] __do_kmalloc_node mm/slub.c:4157 [inline] __kmalloc_noprof+0x367/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] neigh_alloc net/core/neighbour.c:494 [inline] ___neigh_create+0x152b/0x2ac0 net/core/neighbour.c:648 ip6_finish_output2+0x11b3/0x1a50 net/ipv6/ip6_output.c:132 __ip6_finish_output net/ipv6/ip6_output.c:215 [inline] ip6_finish_output+0x3f9/0x1300 net/ipv6/ip6_output.c:226 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip6_output+0x1f8/0x540 net/ipv6/ip6_output.c:247 dst_output include/net/dst.h:450 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] ndisc_send_skb+0xa2d/0x1c30 net/ipv6/ndisc.c:511 ndisc_send_ns+0xc7/0x150 net/ipv6/ndisc.c:669 addrconf_dad_work+0xc80/0x14d0 net/ipv6/addrconf.c:4282 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 page last free pid 4675 tgid 4675 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2612 __put_partials+0x14c/0x170 mm/slub.c:3051 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3988 [inline] slab_alloc_node mm/slub.c:4037 [inline] kmem_cache_alloc_node_noprof+0x153/0x310 mm/slub.c:4080 __alloc_skb+0x2b1/0x380 net/core/skbuff.c:664 alloc_skb include/linux/skbuff.h:1320 [inline] netlink_alloc_large_skb+0x69/0x130 net/netlink/af_netlink.c:1206 netlink_sendmsg+0x689/0xd70 net/netlink/af_netlink.c:1876 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0xab8/0xc90 net/socket.c:2597 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2651 __sys_sendmsg+0x117/0x1f0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805ffe3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805ffe3180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805ffe3200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805ffe3280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805ffe3300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff88805ffe3224 by task syz.3.17/5376 CPU: 0 UID: 0 PID: 5376 Comm: syz.3.17 Tainted: G B 6.11.0-rc5-syzkaller #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 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_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x6e6/0xe10 fs/hfsplus/xattr.c:734 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcbfc979e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcbfd7a8038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007fcbfcb15f80 RCX: 00007fcbfc979e79 RDX: 0000000000000300 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007fcbfc9e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcbfcb15f80 R15: 00007ffe79715548 Allocated by task 5376: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4158 [inline] __kmalloc_noprof+0x1e8/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] hfsplus_find_init+0x95/0x1f0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x46d/0xe10 fs/hfsplus/xattr.c:693 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805ffe3000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 12 bytes to the right of allocated 536-byte region [ffff88805ffe3000, ffff88805ffe3218) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffe0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 head: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000003 ffffea00017ff801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 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 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 958, tgid 958 (kworker/u8:5), ts 126521113075, free_ts 126480172201 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x1351/0x2e50 mm/page_alloc.c:3439 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4695 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x4e/0xf0 mm/slub.c:2321 allocate_slab mm/slub.c:2484 [inline] new_slab+0x84/0x260 mm/slub.c:2537 ___slab_alloc+0xdac/0x1870 mm/slub.c:3723 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3813 __slab_alloc_node mm/slub.c:3866 [inline] slab_alloc_node mm/slub.c:4025 [inline] __do_kmalloc_node mm/slub.c:4157 [inline] __kmalloc_noprof+0x367/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] neigh_alloc net/core/neighbour.c:494 [inline] ___neigh_create+0x152b/0x2ac0 net/core/neighbour.c:648 ip6_finish_output2+0x11b3/0x1a50 net/ipv6/ip6_output.c:132 __ip6_finish_output net/ipv6/ip6_output.c:215 [inline] ip6_finish_output+0x3f9/0x1300 net/ipv6/ip6_output.c:226 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip6_output+0x1f8/0x540 net/ipv6/ip6_output.c:247 dst_output include/net/dst.h:450 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] ndisc_send_skb+0xa2d/0x1c30 net/ipv6/ndisc.c:511 ndisc_send_ns+0xc7/0x150 net/ipv6/ndisc.c:669 addrconf_dad_work+0xc80/0x14d0 net/ipv6/addrconf.c:4282 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 page last free pid 4675 tgid 4675 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2612 __put_partials+0x14c/0x170 mm/slub.c:3051 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3988 [inline] slab_alloc_node mm/slub.c:4037 [inline] kmem_cache_alloc_node_noprof+0x153/0x310 mm/slub.c:4080 __alloc_skb+0x2b1/0x380 net/core/skbuff.c:664 alloc_skb include/linux/skbuff.h:1320 [inline] netlink_alloc_large_skb+0x69/0x130 net/netlink/af_netlink.c:1206 netlink_sendmsg+0x689/0xd70 net/netlink/af_netlink.c:1876 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0xab8/0xc90 net/socket.c:2597 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2651 __sys_sendmsg+0x117/0x1f0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805ffe3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805ffe3180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805ffe3200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805ffe3280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805ffe3300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff88805ffe3226 by task syz.3.17/5376 CPU: 0 UID: 0 PID: 5376 Comm: syz.3.17 Tainted: G B 6.11.0-rc5-syzkaller #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 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_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x6e6/0xe10 fs/hfsplus/xattr.c:734 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcbfc979e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcbfd7a8038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007fcbfcb15f80 RCX: 00007fcbfc979e79 RDX: 0000000000000300 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007fcbfc9e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcbfcb15f80 R15: 00007ffe79715548 Allocated by task 5376: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4158 [inline] __kmalloc_noprof+0x1e8/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] hfsplus_find_init+0x95/0x1f0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x46d/0xe10 fs/hfsplus/xattr.c:693 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805ffe3000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 14 bytes to the right of allocated 536-byte region [ffff88805ffe3000, ffff88805ffe3218) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffe0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 head: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000003 ffffea00017ff801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 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 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 958, tgid 958 (kworker/u8:5), ts 126521113075, free_ts 126480172201 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x1351/0x2e50 mm/page_alloc.c:3439 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4695 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x4e/0xf0 mm/slub.c:2321 allocate_slab mm/slub.c:2484 [inline] new_slab+0x84/0x260 mm/slub.c:2537 ___slab_alloc+0xdac/0x1870 mm/slub.c:3723 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3813 __slab_alloc_node mm/slub.c:3866 [inline] slab_alloc_node mm/slub.c:4025 [inline] __do_kmalloc_node mm/slub.c:4157 [inline] __kmalloc_noprof+0x367/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] neigh_alloc net/core/neighbour.c:494 [inline] ___neigh_create+0x152b/0x2ac0 net/core/neighbour.c:648 ip6_finish_output2+0x11b3/0x1a50 net/ipv6/ip6_output.c:132 __ip6_finish_output net/ipv6/ip6_output.c:215 [inline] ip6_finish_output+0x3f9/0x1300 net/ipv6/ip6_output.c:226 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip6_output+0x1f8/0x540 net/ipv6/ip6_output.c:247 dst_output include/net/dst.h:450 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] ndisc_send_skb+0xa2d/0x1c30 net/ipv6/ndisc.c:511 ndisc_send_ns+0xc7/0x150 net/ipv6/ndisc.c:669 addrconf_dad_work+0xc80/0x14d0 net/ipv6/addrconf.c:4282 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 page last free pid 4675 tgid 4675 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2612 __put_partials+0x14c/0x170 mm/slub.c:3051 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3988 [inline] slab_alloc_node mm/slub.c:4037 [inline] kmem_cache_alloc_node_noprof+0x153/0x310 mm/slub.c:4080 __alloc_skb+0x2b1/0x380 net/core/skbuff.c:664 alloc_skb include/linux/skbuff.h:1320 [inline] netlink_alloc_large_skb+0x69/0x130 net/netlink/af_netlink.c:1206 netlink_sendmsg+0x689/0xd70 net/netlink/af_netlink.c:1876 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0xab8/0xc90 net/socket.c:2597 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2651 __sys_sendmsg+0x117/0x1f0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805ffe3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805ffe3180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805ffe3200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805ffe3280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805ffe3300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff88805ffe3228 by task syz.3.17/5376 CPU: 0 UID: 0 PID: 5376 Comm: syz.3.17 Tainted: G B 6.11.0-rc5-syzkaller #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 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_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x6e6/0xe10 fs/hfsplus/xattr.c:734 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcbfc979e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcbfd7a8038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007fcbfcb15f80 RCX: 00007fcbfc979e79 RDX: 0000000000000300 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007fcbfc9e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcbfcb15f80 R15: 00007ffe79715548 Allocated by task 5376: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4158 [inline] __kmalloc_noprof+0x1e8/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] hfsplus_find_init+0x95/0x1f0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x46d/0xe10 fs/hfsplus/xattr.c:693 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805ffe3000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 16 bytes to the right of allocated 536-byte region [ffff88805ffe3000, ffff88805ffe3218) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffe0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 head: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000003 ffffea00017ff801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 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 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 958, tgid 958 (kworker/u8:5), ts 126521113075, free_ts 126480172201 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x1351/0x2e50 mm/page_alloc.c:3439 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4695 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x4e/0xf0 mm/slub.c:2321 allocate_slab mm/slub.c:2484 [inline] new_slab+0x84/0x260 mm/slub.c:2537 ___slab_alloc+0xdac/0x1870 mm/slub.c:3723 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3813 __slab_alloc_node mm/slub.c:3866 [inline] slab_alloc_node mm/slub.c:4025 [inline] __do_kmalloc_node mm/slub.c:4157 [inline] __kmalloc_noprof+0x367/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] neigh_alloc net/core/neighbour.c:494 [inline] ___neigh_create+0x152b/0x2ac0 net/core/neighbour.c:648 ip6_finish_output2+0x11b3/0x1a50 net/ipv6/ip6_output.c:132 __ip6_finish_output net/ipv6/ip6_output.c:215 [inline] ip6_finish_output+0x3f9/0x1300 net/ipv6/ip6_output.c:226 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip6_output+0x1f8/0x540 net/ipv6/ip6_output.c:247 dst_output include/net/dst.h:450 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] ndisc_send_skb+0xa2d/0x1c30 net/ipv6/ndisc.c:511 ndisc_send_ns+0xc7/0x150 net/ipv6/ndisc.c:669 addrconf_dad_work+0xc80/0x14d0 net/ipv6/addrconf.c:4282 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 page last free pid 4675 tgid 4675 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2612 __put_partials+0x14c/0x170 mm/slub.c:3051 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3988 [inline] slab_alloc_node mm/slub.c:4037 [inline] kmem_cache_alloc_node_noprof+0x153/0x310 mm/slub.c:4080 __alloc_skb+0x2b1/0x380 net/core/skbuff.c:664 alloc_skb include/linux/skbuff.h:1320 [inline] netlink_alloc_large_skb+0x69/0x130 net/netlink/af_netlink.c:1206 netlink_sendmsg+0x689/0xd70 net/netlink/af_netlink.c:1876 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0xab8/0xc90 net/socket.c:2597 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2651 __sys_sendmsg+0x117/0x1f0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805ffe3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805ffe3180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805ffe3200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805ffe3280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805ffe3300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff88805ffe322a by task syz.3.17/5376 CPU: 0 UID: 0 PID: 5376 Comm: syz.3.17 Tainted: G B 6.11.0-rc5-syzkaller #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 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_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x6e6/0xe10 fs/hfsplus/xattr.c:734 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcbfc979e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcbfd7a8038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007fcbfcb15f80 RCX: 00007fcbfc979e79 RDX: 0000000000000300 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007fcbfc9e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcbfcb15f80 R15: 00007ffe79715548 Allocated by task 5376: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4158 [inline] __kmalloc_noprof+0x1e8/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] hfsplus_find_init+0x95/0x1f0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x46d/0xe10 fs/hfsplus/xattr.c:693 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805ffe3000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 18 bytes to the right of allocated 536-byte region [ffff88805ffe3000, ffff88805ffe3218) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffe0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 head: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000003 ffffea00017ff801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 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 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 958, tgid 958 (kworker/u8:5), ts 126521113075, free_ts 126480172201 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x1351/0x2e50 mm/page_alloc.c:3439 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4695 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x4e/0xf0 mm/slub.c:2321 allocate_slab mm/slub.c:2484 [inline] new_slab+0x84/0x260 mm/slub.c:2537 ___slab_alloc+0xdac/0x1870 mm/slub.c:3723 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3813 __slab_alloc_node mm/slub.c:3866 [inline] slab_alloc_node mm/slub.c:4025 [inline] __do_kmalloc_node mm/slub.c:4157 [inline] __kmalloc_noprof+0x367/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] neigh_alloc net/core/neighbour.c:494 [inline] ___neigh_create+0x152b/0x2ac0 net/core/neighbour.c:648 ip6_finish_output2+0x11b3/0x1a50 net/ipv6/ip6_output.c:132 __ip6_finish_output net/ipv6/ip6_output.c:215 [inline] ip6_finish_output+0x3f9/0x1300 net/ipv6/ip6_output.c:226 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip6_output+0x1f8/0x540 net/ipv6/ip6_output.c:247 dst_output include/net/dst.h:450 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] ndisc_send_skb+0xa2d/0x1c30 net/ipv6/ndisc.c:511 ndisc_send_ns+0xc7/0x150 net/ipv6/ndisc.c:669 addrconf_dad_work+0xc80/0x14d0 net/ipv6/addrconf.c:4282 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 page last free pid 4675 tgid 4675 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2612 __put_partials+0x14c/0x170 mm/slub.c:3051 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3988 [inline] slab_alloc_node mm/slub.c:4037 [inline] kmem_cache_alloc_node_noprof+0x153/0x310 mm/slub.c:4080 __alloc_skb+0x2b1/0x380 net/core/skbuff.c:664 alloc_skb include/linux/skbuff.h:1320 [inline] netlink_alloc_large_skb+0x69/0x130 net/netlink/af_netlink.c:1206 netlink_sendmsg+0x689/0xd70 net/netlink/af_netlink.c:1876 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0xab8/0xc90 net/socket.c:2597 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2651 __sys_sendmsg+0x117/0x1f0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805ffe3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805ffe3180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805ffe3200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805ffe3280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805ffe3300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff88805ffe322c by task syz.3.17/5376 CPU: 0 UID: 0 PID: 5376 Comm: syz.3.17 Tainted: G B 6.11.0-rc5-syzkaller #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 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_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x6e6/0xe10 fs/hfsplus/xattr.c:734 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcbfc979e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcbfd7a8038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007fcbfcb15f80 RCX: 00007fcbfc979e79 RDX: 0000000000000300 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007fcbfc9e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcbfcb15f80 R15: 00007ffe79715548 Allocated by task 5376: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4158 [inline] __kmalloc_noprof+0x1e8/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] hfsplus_find_init+0x95/0x1f0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x46d/0xe10 fs/hfsplus/xattr.c:693 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805ffe3000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 20 bytes to the right of allocated 536-byte region [ffff88805ffe3000, ffff88805ffe3218) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffe0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 head: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000003 ffffea00017ff801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 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 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 958, tgid 958 (kworker/u8:5), ts 126521113075, free_ts 126480172201 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x1351/0x2e50 mm/page_alloc.c:3439 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4695 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x4e/0xf0 mm/slub.c:2321 allocate_slab mm/slub.c:2484 [inline] new_slab+0x84/0x260 mm/slub.c:2537 ___slab_alloc+0xdac/0x1870 mm/slub.c:3723 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3813 __slab_alloc_node mm/slub.c:3866 [inline] slab_alloc_node mm/slub.c:4025 [inline] __do_kmalloc_node mm/slub.c:4157 [inline] __kmalloc_noprof+0x367/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] neigh_alloc net/core/neighbour.c:494 [inline] ___neigh_create+0x152b/0x2ac0 net/core/neighbour.c:648 ip6_finish_output2+0x11b3/0x1a50 net/ipv6/ip6_output.c:132 __ip6_finish_output net/ipv6/ip6_output.c:215 [inline] ip6_finish_output+0x3f9/0x1300 net/ipv6/ip6_output.c:226 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip6_output+0x1f8/0x540 net/ipv6/ip6_output.c:247 dst_output include/net/dst.h:450 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] ndisc_send_skb+0xa2d/0x1c30 net/ipv6/ndisc.c:511 ndisc_send_ns+0xc7/0x150 net/ipv6/ndisc.c:669 addrconf_dad_work+0xc80/0x14d0 net/ipv6/addrconf.c:4282 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 page last free pid 4675 tgid 4675 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2612 __put_partials+0x14c/0x170 mm/slub.c:3051 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3988 [inline] slab_alloc_node mm/slub.c:4037 [inline] kmem_cache_alloc_node_noprof+0x153/0x310 mm/slub.c:4080 __alloc_skb+0x2b1/0x380 net/core/skbuff.c:664 alloc_skb include/linux/skbuff.h:1320 [inline] netlink_alloc_large_skb+0x69/0x130 net/netlink/af_netlink.c:1206 netlink_sendmsg+0x689/0xd70 net/netlink/af_netlink.c:1876 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0xab8/0xc90 net/socket.c:2597 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2651 __sys_sendmsg+0x117/0x1f0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805ffe3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805ffe3180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805ffe3200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805ffe3280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805ffe3300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff88805ffe322e by task syz.3.17/5376 CPU: 0 UID: 0 PID: 5376 Comm: syz.3.17 Tainted: G B 6.11.0-rc5-syzkaller #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 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_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x6e6/0xe10 fs/hfsplus/xattr.c:734 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcbfc979e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcbfd7a8038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007fcbfcb15f80 RCX: 00007fcbfc979e79 RDX: 0000000000000300 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007fcbfc9e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcbfcb15f80 R15: 00007ffe79715548 Allocated by task 5376: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4158 [inline] __kmalloc_noprof+0x1e8/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] hfsplus_find_init+0x95/0x1f0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x46d/0xe10 fs/hfsplus/xattr.c:693 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805ffe3000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 22 bytes to the right of allocated 536-byte region [ffff88805ffe3000, ffff88805ffe3218) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffe0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 head: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000003 ffffea00017ff801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 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 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 958, tgid 958 (kworker/u8:5), ts 126521113075, free_ts 126480172201 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x1351/0x2e50 mm/page_alloc.c:3439 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4695 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x4e/0xf0 mm/slub.c:2321 allocate_slab mm/slub.c:2484 [inline] new_slab+0x84/0x260 mm/slub.c:2537 ___slab_alloc+0xdac/0x1870 mm/slub.c:3723 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3813 __slab_alloc_node mm/slub.c:3866 [inline] slab_alloc_node mm/slub.c:4025 [inline] __do_kmalloc_node mm/slub.c:4157 [inline] __kmalloc_noprof+0x367/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] neigh_alloc net/core/neighbour.c:494 [inline] ___neigh_create+0x152b/0x2ac0 net/core/neighbour.c:648 ip6_finish_output2+0x11b3/0x1a50 net/ipv6/ip6_output.c:132 __ip6_finish_output net/ipv6/ip6_output.c:215 [inline] ip6_finish_output+0x3f9/0x1300 net/ipv6/ip6_output.c:226 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip6_output+0x1f8/0x540 net/ipv6/ip6_output.c:247 dst_output include/net/dst.h:450 [inline] NF_HOOK include/linux/netfilter.h:314 [inline] ndisc_send_skb+0xa2d/0x1c30 net/ipv6/ndisc.c:511 ndisc_send_ns+0xc7/0x150 net/ipv6/ndisc.c:669 addrconf_dad_work+0xc80/0x14d0 net/ipv6/addrconf.c:4282 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 page last free pid 4675 tgid 4675 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2612 __put_partials+0x14c/0x170 mm/slub.c:3051 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3988 [inline] slab_alloc_node mm/slub.c:4037 [inline] kmem_cache_alloc_node_noprof+0x153/0x310 mm/slub.c:4080 __alloc_skb+0x2b1/0x380 net/core/skbuff.c:664 alloc_skb include/linux/skbuff.h:1320 [inline] netlink_alloc_large_skb+0x69/0x130 net/netlink/af_netlink.c:1206 netlink_sendmsg+0x689/0xd70 net/netlink/af_netlink.c:1876 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] ____sys_sendmsg+0xab8/0xc90 net/socket.c:2597 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2651 __sys_sendmsg+0x117/0x1f0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805ffe3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805ffe3180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805ffe3200: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805ffe3280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805ffe3300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== ================================================================== BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 Read of size 2 at addr ffff88805ffe3230 by task syz.3.17/5376 CPU: 1 UID: 0 PID: 5376 Comm: syz.3.17 Tainted: G B 6.11.0-rc5-syzkaller #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 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_uni2asc+0x910/0xa20 fs/hfsplus/unicode.c:179 hfsplus_listxattr+0x6e6/0xe10 fs/hfsplus/xattr.c:734 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcbfc979e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcbfd7a8038 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 00007fcbfcb15f80 RCX: 00007fcbfc979e79 RDX: 0000000000000300 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007fcbfc9e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcbfcb15f80 R15: 00007ffe79715548 Allocated by task 5376: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4158 [inline] __kmalloc_noprof+0x1e8/0x400 mm/slub.c:4170 kmalloc_noprof include/linux/slab.h:685 [inline] hfsplus_find_init+0x95/0x1f0 fs/hfsplus/bfind.c:21 hfsplus_listxattr+0x46d/0xe10 fs/hfsplus/xattr.c:693 vfs_listxattr+0xba/0x140 fs/xattr.c:493 listxattr+0x69/0x190 fs/xattr.c:841 path_listxattr+0xc0/0x160 fs/xattr.c:865 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88805ffe3000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 24 bytes to the right of allocated 536-byte region [ffff88805ffe3000, ffff88805ffe3218) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ffe0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xfdffffff(slab) raw: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000 head: 00fff00000000040 ffff888015841dc0 dead000000000122 0000000000000000 head: 0000000000000000 0000000000100010 00000001fdffffff 0000000000000000