memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=5019 'syz-executor365'
loop0: detected capacity change from 0 to 1024
==================================================================
BUG: KASAN: slab-out-of-bounds in hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba40c by task syz-executor365/5019
CPU: 1 PID: 5019 Comm: syz-executor365 Not tainted 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 0 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000080080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba40e by task syz-executor365/5019
CPU: 1 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 2 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000080080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba410 by task syz-executor365/5019
CPU: 1 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 4 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000080080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba412 by task syz-executor365/5019
CPU: 1 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 6 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000080080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba414 by task syz-executor365/5019
CPU: 0 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 8 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba416 by task syz-executor365/5019
CPU: 0 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 10 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba418 by task syz-executor365/5019
CPU: 0 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 12 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba41a by task syz-executor365/5019
CPU: 1 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 14 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba41c by task syz-executor365/5019
CPU: 1 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 16 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba41e by task syz-executor365/5019
CPU: 1 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 18 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba420 by task syz-executor365/5019
CPU: 1 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 20 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba422 by task syz-executor365/5019
CPU: 1 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 22 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba424 by task syz-executor365/5019
CPU: 0 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 24 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba426 by task syz-executor365/5019
CPU: 0 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 26 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba428 by task syz-executor365/5019
CPU: 1 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 28 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba42a by task syz-executor365/5019
CPU: 1 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 30 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba42c by task syz-executor365/5019
CPU: 0 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 32 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 057ff00000010200 ffff888012842000 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000080008 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 9198199991, free_ts 0
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
prep_new_page mm/page_alloc.c:1577 [inline]
get_page_from_freelist+0x10a9/0x31e0 mm/page_alloc.c:3221
__alloc_pages+0x1d0/0x4a0 mm/page_alloc.c:4477
alloc_page_interleave+0x1e/0x250 mm/mempolicy.c:2112
alloc_pages+0x22a/0x270 mm/mempolicy.c:2274
alloc_slab_page mm/slub.c:1862 [inline]
allocate_slab+0x24e/0x380 mm/slub.c:2009
new_slab mm/slub.c:2062 [inline]
___slab_alloc+0x8bc/0x1570 mm/slub.c:3215
__slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3314
__slab_alloc_node mm/slub.c:3367 [inline]
slab_alloc_node mm/slub.c:3460 [inline]
__kmem_cache_alloc_node+0x137/0x350 mm/slub.c:3509
__do_kmalloc_node mm/slab_common.c:984 [inline]
__kmalloc_node_track_caller+0x4d/0x100 mm/slab_common.c:1005
kmalloc_reserve+0xef/0x270 net/core/skbuff.c:575
__alloc_skb+0x12b/0x330 net/core/skbuff.c:644
alloc_skb include/linux/skbuff.h:1289 [inline]
nlmsg_new include/net/netlink.h:1003 [inline]
rtmsg_ifinfo_build_skb+0x7d/0x270 net/core/rtnetlink.c:4015
rtmsg_ifinfo_event net/core/rtnetlink.c:4058 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:4048 [inline]
rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4067
register_netdevice+0x125c/0x1630 net/core/dev.c:10098
register_netdev+0x2f/0x50 net/core/dev.c:10179
page_owner free stack trace missing
Memory state around the buggy address:
ffff88814a9ba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88814a9ba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88814a9ba400: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88814a9ba480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88814a9ba500: 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+0x8fd/0xa00 fs/hfsplus/unicode.c:179
Read of size 2 at addr ffff88814a9ba42e by task syz-executor365/5019
CPU: 0 PID: 5019 Comm: syz-executor365 Tainted: G B 6.5.0-rc1-syzkaller-00152-g4b810bf037e5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0xc4/0x620 mm/kasan/report.c:475
kasan_report+0xda/0x110 mm/kasan/report.c:588
hfsplus_uni2asc+0x8fd/0xa00 fs/hfsplus/unicode.c:179
hfsplus_readdir+0x871/0xff0 fs/hfsplus/dir.c:207
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd3e4f0e649
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffba15f028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007fffba15f1f8 RCX: 00007fd3e4f0e649
RDX: 0000000000000067 RSI: 0000000020000540 RDI: 0000000000000003
RBP: 00007fd3e4f81610 R08: 0000000000000651 R09: 00007fffba15f1f8
R10: 00007fffba15eee0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffba15f1e8 R14: 0000000000000001 R15: 0000000000000001
Allocated by task 5019:
kasan_save_stack+0x33/0x50 mm/kasan/common.c:45
kasan_set_track+0x25/0x30 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:196 [inline]
__do_kmalloc_node mm/slab_common.c:985 [inline]
__kmalloc+0x5d/0x100 mm/slab_common.c:998
kmalloc include/linux/slab.h:586 [inline]
hfsplus_find_init+0x95/0x200 fs/hfsplus/bfind.c:21
hfsplus_readdir+0x262/0xff0 fs/hfsplus/dir.c:144
iterate_dir+0x59e/0x740 fs/readdir.c:65
__do_sys_getdents64 fs/readdir.c:369 [inline]
__se_sys_getdents64 fs/readdir.c:354 [inline]
__x64_sys_getdents64+0x14f/0x2e0 fs/readdir.c:354
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88814a9ba000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 34 bytes to the right of
allocated 1036-byte region [ffff88814a9ba000, ffff88814a9ba40c)
The buggy address belongs to the physical page:
page:ffffea00052a6e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14a9b8
head:ffffea00052a6e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0