ffff88805d4477a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
ffff88805d4477b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
==================================================================
BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0xdee/0xe30 lib/hexdump.c:193
Read of size 1 at addr ffff88805d4477c0 by task syz-executor.3/17889
CPU: 0 PID: 17889 Comm: syz-executor.3 Not tainted 6.9.0-rc6-syzkaller-00005-gb947cc5bf6d7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
print_address_description mm/kasan/report.c:377 [inline]
print_report+0xc3/0x620 mm/kasan/report.c:488
kasan_report+0xd9/0x110 mm/kasan/report.c:601
hex_dump_to_buffer+0xdee/0xe30 lib/hexdump.c:193
print_hex_dump+0x18c/0x260 lib/hexdump.c:276
ea_get+0x864/0x12c0 fs/jfs/xattr.c:561
__jfs_setxattr+0x119/0x1070 fs/jfs/xattr.c:671
__jfs_xattr_set+0xc6/0x150 fs/jfs/xattr.c:917
__vfs_setxattr+0x176/0x1e0 fs/xattr.c:200
__vfs_setxattr_noperm+0x127/0x5e0 fs/xattr.c:234
__vfs_setxattr_locked+0x182/0x260 fs/xattr.c:295
vfs_setxattr+0x146/0x350 fs/xattr.c:321
do_setxattr+0x146/0x170 fs/xattr.c:629
setxattr+0x15d/0x180 fs/xattr.c:652
path_setxattr+0x179/0x1e0 fs/xattr.c:671
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8a9767dea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8a984d10c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007f8a977abf80 RCX: 00007f8a9767dea9
RDX: 0000000020000040 RSI: 00000000200001c0 RDI: 0000000020000180
RBP: 00007f8a976ca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e01 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8a977abf80 R15: 00007ffefd685ef8
Allocated by task 17889:
kasan_save_stack+0x33/0x60 mm/kasan/common.c:47
kasan_save_track+0x14/0x30 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:312 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:338
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmem_cache_alloc_lru+0x142/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
iget_locked+0x1a1/0x6d0 fs/inode.c:1280
jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29
jfs_lookup+0x2a8/0x370 fs/jfs/namei.c:1469
__lookup_slow+0x252/0x460 fs/namei.c:1692
lookup_slow fs/namei.c:1709 [inline]
walk_component+0x350/0x5b0 fs/namei.c:2004
lookup_last fs/namei.c:2461 [inline]
path_lookupat+0x17f/0x770 fs/namei.c:2485
filename_lookup+0x1e5/0x5b0 fs/namei.c:2514
user_path_at_empty+0x42/0x60 fs/namei.c:2921
user_path_at include/linux/namei.h:57 [inline]
path_setxattr+0xa5/0x1e0 fs/xattr.c:666
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88805d446f00
which belongs to the cache jfs_ip of size 2240
The buggy address is located 0 bytes to the right of
allocated 2240-byte region [ffff88805d446f00, ffff88805d4477c0)
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88805d440940 pfn:0x5d440
head: order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff888029647401
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
raw: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
head: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000003 ffffea0001751001 dead000000000122 00000000ffffffff
head: 0000000800000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 8570, tgid 1114874902 (syz-executor.1), ts 8573, free_ts 316298443598
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d4/0x350 mm/page_alloc.c:1534
prep_new_page mm/page_alloc.c:1541 [inline]
get_page_from_freelist+0xa28/0x3780 mm/page_alloc.c:3317
__alloc_pages+0x22b/0x2460 mm/page_alloc.c:4575
__alloc_pages_node include/linux/gfp.h:238 [inline]
alloc_pages_node include/linux/gfp.h:261 [inline]
alloc_slab_page mm/slub.c:2175 [inline]
allocate_slab mm/slub.c:2338 [inline]
new_slab+0xcc/0x3a0 mm/slub.c:2391
___slab_alloc+0x66d/0x1790 mm/slub.c:3525
__slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3610
__slab_alloc_node mm/slub.c:3663 [inline]
slab_alloc_node mm/slub.c:3835 [inline]
kmem_cache_alloc_lru+0x379/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
new_inode_pseudo fs/inode.c:1007 [inline]
new_inode+0x22/0x270 fs/inode.c:1033
jfs_fill_super+0x433/0xd20 fs/jfs/super.c:544
mount_bdev+0x1e6/0x2d0 fs/super.c:1658
legacy_get_tree+0x10c/0x220 fs/fs_context.c:662
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
page last free pid 8509 tgid 8508 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1141 [inline]
free_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2347
free_unref_page+0x33/0x3c0 mm/page_alloc.c:2487
__put_partials+0x14c/0x170 mm/slub.c:2906
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmalloc_trace+0x147/0x330 mm/slub.c:3992
kmalloc include/linux/slab.h:628 [inline]
kzalloc include/linux/slab.h:749 [inline]
btrfs_alloc_ordered_workqueue+0x50/0x4c0 fs/btrfs/async-thread.c:129
btrfs_init_workqueues fs/btrfs/disk-io.c:2014 [inline]
open_ctree+0x177b/0x52f0 fs/btrfs/disk-io.c:3354
btrfs_fill_super fs/btrfs/super.c:938 [inline]
btrfs_get_tree_super fs/btrfs/super.c:1858 [inline]
btrfs_get_tree+0x11e9/0x1b90 fs/btrfs/super.c:2084
vfs_get_tree+0x92/0x380 fs/super.c:1779
fc_mount+0x16/0xc0 fs/namespace.c:1125
btrfs_get_tree_subvol fs/btrfs/super.c:2047 [inline]
btrfs_get_tree+0xa53/0x1b90 fs/btrfs/super.c:2085
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
Memory state around the buggy address:
ffff88805d447680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88805d447700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88805d447780: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
^
ffff88805d447800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88805d447880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
==================================================================
BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
Read of size 1 at addr ffff88805d4477c1 by task syz-executor.3/17889
CPU: 1 PID: 17889 Comm: syz-executor.3 Tainted: G B 6.9.0-rc6-syzkaller-00005-gb947cc5bf6d7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
print_address_description mm/kasan/report.c:377 [inline]
print_report+0xc3/0x620 mm/kasan/report.c:488
kasan_report+0xd9/0x110 mm/kasan/report.c:601
hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
print_hex_dump+0x18c/0x260 lib/hexdump.c:276
ea_get+0x864/0x12c0 fs/jfs/xattr.c:561
__jfs_setxattr+0x119/0x1070 fs/jfs/xattr.c:671
__jfs_xattr_set+0xc6/0x150 fs/jfs/xattr.c:917
__vfs_setxattr+0x176/0x1e0 fs/xattr.c:200
__vfs_setxattr_noperm+0x127/0x5e0 fs/xattr.c:234
__vfs_setxattr_locked+0x182/0x260 fs/xattr.c:295
vfs_setxattr+0x146/0x350 fs/xattr.c:321
do_setxattr+0x146/0x170 fs/xattr.c:629
setxattr+0x15d/0x180 fs/xattr.c:652
path_setxattr+0x179/0x1e0 fs/xattr.c:671
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8a9767dea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8a984d10c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007f8a977abf80 RCX: 00007f8a9767dea9
RDX: 0000000020000040 RSI: 00000000200001c0 RDI: 0000000020000180
RBP: 00007f8a976ca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e01 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8a977abf80 R15: 00007ffefd685ef8
Allocated by task 17889:
kasan_save_stack+0x33/0x60 mm/kasan/common.c:47
kasan_save_track+0x14/0x30 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:312 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:338
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmem_cache_alloc_lru+0x142/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
iget_locked+0x1a1/0x6d0 fs/inode.c:1280
jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29
jfs_lookup+0x2a8/0x370 fs/jfs/namei.c:1469
__lookup_slow+0x252/0x460 fs/namei.c:1692
lookup_slow fs/namei.c:1709 [inline]
walk_component+0x350/0x5b0 fs/namei.c:2004
lookup_last fs/namei.c:2461 [inline]
path_lookupat+0x17f/0x770 fs/namei.c:2485
filename_lookup+0x1e5/0x5b0 fs/namei.c:2514
user_path_at_empty+0x42/0x60 fs/namei.c:2921
user_path_at include/linux/namei.h:57 [inline]
path_setxattr+0xa5/0x1e0 fs/xattr.c:666
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88805d446f00
which belongs to the cache jfs_ip of size 2240
The buggy address is located 1 bytes to the right of
allocated 2240-byte region [ffff88805d446f00, ffff88805d4477c0)
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88805d440940 pfn:0x5d440
head: order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff888029647401
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
raw: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
head: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000003 ffffea0001751001 dead000000000122 00000000ffffffff
head: 0000000800000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 8570, tgid 1114874902 (syz-executor.1), ts 8573, free_ts 316298443598
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d4/0x350 mm/page_alloc.c:1534
prep_new_page mm/page_alloc.c:1541 [inline]
get_page_from_freelist+0xa28/0x3780 mm/page_alloc.c:3317
__alloc_pages+0x22b/0x2460 mm/page_alloc.c:4575
__alloc_pages_node include/linux/gfp.h:238 [inline]
alloc_pages_node include/linux/gfp.h:261 [inline]
alloc_slab_page mm/slub.c:2175 [inline]
allocate_slab mm/slub.c:2338 [inline]
new_slab+0xcc/0x3a0 mm/slub.c:2391
___slab_alloc+0x66d/0x1790 mm/slub.c:3525
__slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3610
__slab_alloc_node mm/slub.c:3663 [inline]
slab_alloc_node mm/slub.c:3835 [inline]
kmem_cache_alloc_lru+0x379/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
new_inode_pseudo fs/inode.c:1007 [inline]
new_inode+0x22/0x270 fs/inode.c:1033
jfs_fill_super+0x433/0xd20 fs/jfs/super.c:544
mount_bdev+0x1e6/0x2d0 fs/super.c:1658
legacy_get_tree+0x10c/0x220 fs/fs_context.c:662
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
page last free pid 8509 tgid 8508 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1141 [inline]
free_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2347
free_unref_page+0x33/0x3c0 mm/page_alloc.c:2487
__put_partials+0x14c/0x170 mm/slub.c:2906
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmalloc_trace+0x147/0x330 mm/slub.c:3992
kmalloc include/linux/slab.h:628 [inline]
kzalloc include/linux/slab.h:749 [inline]
btrfs_alloc_ordered_workqueue+0x50/0x4c0 fs/btrfs/async-thread.c:129
btrfs_init_workqueues fs/btrfs/disk-io.c:2014 [inline]
open_ctree+0x177b/0x52f0 fs/btrfs/disk-io.c:3354
btrfs_fill_super fs/btrfs/super.c:938 [inline]
btrfs_get_tree_super fs/btrfs/super.c:1858 [inline]
btrfs_get_tree+0x11e9/0x1b90 fs/btrfs/super.c:2084
vfs_get_tree+0x92/0x380 fs/super.c:1779
fc_mount+0x16/0xc0 fs/namespace.c:1125
btrfs_get_tree_subvol fs/btrfs/super.c:2047 [inline]
btrfs_get_tree+0xa53/0x1b90 fs/btrfs/super.c:2085
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
Memory state around the buggy address:
ffff88805d447680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88805d447700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88805d447780: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
^
ffff88805d447800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88805d447880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
==================================================================
BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
Read of size 1 at addr ffff88805d4477c2 by task syz-executor.3/17889
CPU: 0 PID: 17889 Comm: syz-executor.3 Tainted: G B 6.9.0-rc6-syzkaller-00005-gb947cc5bf6d7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
print_address_description mm/kasan/report.c:377 [inline]
print_report+0xc3/0x620 mm/kasan/report.c:488
kasan_report+0xd9/0x110 mm/kasan/report.c:601
hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
print_hex_dump+0x18c/0x260 lib/hexdump.c:276
ea_get+0x864/0x12c0 fs/jfs/xattr.c:561
__jfs_setxattr+0x119/0x1070 fs/jfs/xattr.c:671
__jfs_xattr_set+0xc6/0x150 fs/jfs/xattr.c:917
__vfs_setxattr+0x176/0x1e0 fs/xattr.c:200
__vfs_setxattr_noperm+0x127/0x5e0 fs/xattr.c:234
__vfs_setxattr_locked+0x182/0x260 fs/xattr.c:295
vfs_setxattr+0x146/0x350 fs/xattr.c:321
do_setxattr+0x146/0x170 fs/xattr.c:629
setxattr+0x15d/0x180 fs/xattr.c:652
path_setxattr+0x179/0x1e0 fs/xattr.c:671
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8a9767dea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8a984d10c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007f8a977abf80 RCX: 00007f8a9767dea9
RDX: 0000000020000040 RSI: 00000000200001c0 RDI: 0000000020000180
RBP: 00007f8a976ca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e01 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8a977abf80 R15: 00007ffefd685ef8
Allocated by task 17889:
kasan_save_stack+0x33/0x60 mm/kasan/common.c:47
kasan_save_track+0x14/0x30 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:312 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:338
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmem_cache_alloc_lru+0x142/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
iget_locked+0x1a1/0x6d0 fs/inode.c:1280
jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29
jfs_lookup+0x2a8/0x370 fs/jfs/namei.c:1469
__lookup_slow+0x252/0x460 fs/namei.c:1692
lookup_slow fs/namei.c:1709 [inline]
walk_component+0x350/0x5b0 fs/namei.c:2004
lookup_last fs/namei.c:2461 [inline]
path_lookupat+0x17f/0x770 fs/namei.c:2485
filename_lookup+0x1e5/0x5b0 fs/namei.c:2514
user_path_at_empty+0x42/0x60 fs/namei.c:2921
user_path_at include/linux/namei.h:57 [inline]
path_setxattr+0xa5/0x1e0 fs/xattr.c:666
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88805d446f00
which belongs to the cache jfs_ip of size 2240
The buggy address is located 2 bytes to the right of
allocated 2240-byte region [ffff88805d446f00, ffff88805d4477c0)
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88805d440940 pfn:0x5d440
head: order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff888029647401
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
raw: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
head: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000003 ffffea0001751001 dead000000000122 00000000ffffffff
head: 0000000800000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 8570, tgid 1114874902 (syz-executor.1), ts 8573, free_ts 316298443598
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d4/0x350 mm/page_alloc.c:1534
prep_new_page mm/page_alloc.c:1541 [inline]
get_page_from_freelist+0xa28/0x3780 mm/page_alloc.c:3317
__alloc_pages+0x22b/0x2460 mm/page_alloc.c:4575
__alloc_pages_node include/linux/gfp.h:238 [inline]
alloc_pages_node include/linux/gfp.h:261 [inline]
alloc_slab_page mm/slub.c:2175 [inline]
allocate_slab mm/slub.c:2338 [inline]
new_slab+0xcc/0x3a0 mm/slub.c:2391
___slab_alloc+0x66d/0x1790 mm/slub.c:3525
__slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3610
__slab_alloc_node mm/slub.c:3663 [inline]
slab_alloc_node mm/slub.c:3835 [inline]
kmem_cache_alloc_lru+0x379/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
new_inode_pseudo fs/inode.c:1007 [inline]
new_inode+0x22/0x270 fs/inode.c:1033
jfs_fill_super+0x433/0xd20 fs/jfs/super.c:544
mount_bdev+0x1e6/0x2d0 fs/super.c:1658
legacy_get_tree+0x10c/0x220 fs/fs_context.c:662
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
page last free pid 8509 tgid 8508 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1141 [inline]
free_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2347
free_unref_page+0x33/0x3c0 mm/page_alloc.c:2487
__put_partials+0x14c/0x170 mm/slub.c:2906
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmalloc_trace+0x147/0x330 mm/slub.c:3992
kmalloc include/linux/slab.h:628 [inline]
kzalloc include/linux/slab.h:749 [inline]
btrfs_alloc_ordered_workqueue+0x50/0x4c0 fs/btrfs/async-thread.c:129
btrfs_init_workqueues fs/btrfs/disk-io.c:2014 [inline]
open_ctree+0x177b/0x52f0 fs/btrfs/disk-io.c:3354
btrfs_fill_super fs/btrfs/super.c:938 [inline]
btrfs_get_tree_super fs/btrfs/super.c:1858 [inline]
btrfs_get_tree+0x11e9/0x1b90 fs/btrfs/super.c:2084
vfs_get_tree+0x92/0x380 fs/super.c:1779
fc_mount+0x16/0xc0 fs/namespace.c:1125
btrfs_get_tree_subvol fs/btrfs/super.c:2047 [inline]
btrfs_get_tree+0xa53/0x1b90 fs/btrfs/super.c:2085
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
Memory state around the buggy address:
ffff88805d447680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88805d447700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88805d447780: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
^
ffff88805d447800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88805d447880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
==================================================================
BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
Read of size 1 at addr ffff88805d4477c3 by task syz-executor.3/17889
CPU: 1 PID: 17889 Comm: syz-executor.3 Tainted: G B 6.9.0-rc6-syzkaller-00005-gb947cc5bf6d7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
print_address_description mm/kasan/report.c:377 [inline]
print_report+0xc3/0x620 mm/kasan/report.c:488
kasan_report+0xd9/0x110 mm/kasan/report.c:601
hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
print_hex_dump+0x18c/0x260 lib/hexdump.c:276
ea_get+0x864/0x12c0 fs/jfs/xattr.c:561
__jfs_setxattr+0x119/0x1070 fs/jfs/xattr.c:671
__jfs_xattr_set+0xc6/0x150 fs/jfs/xattr.c:917
__vfs_setxattr+0x176/0x1e0 fs/xattr.c:200
__vfs_setxattr_noperm+0x127/0x5e0 fs/xattr.c:234
__vfs_setxattr_locked+0x182/0x260 fs/xattr.c:295
vfs_setxattr+0x146/0x350 fs/xattr.c:321
do_setxattr+0x146/0x170 fs/xattr.c:629
setxattr+0x15d/0x180 fs/xattr.c:652
path_setxattr+0x179/0x1e0 fs/xattr.c:671
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8a9767dea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8a984d10c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007f8a977abf80 RCX: 00007f8a9767dea9
RDX: 0000000020000040 RSI: 00000000200001c0 RDI: 0000000020000180
RBP: 00007f8a976ca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e01 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8a977abf80 R15: 00007ffefd685ef8
Allocated by task 17889:
kasan_save_stack+0x33/0x60 mm/kasan/common.c:47
kasan_save_track+0x14/0x30 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:312 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:338
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmem_cache_alloc_lru+0x142/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
iget_locked+0x1a1/0x6d0 fs/inode.c:1280
jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29
jfs_lookup+0x2a8/0x370 fs/jfs/namei.c:1469
__lookup_slow+0x252/0x460 fs/namei.c:1692
lookup_slow fs/namei.c:1709 [inline]
walk_component+0x350/0x5b0 fs/namei.c:2004
lookup_last fs/namei.c:2461 [inline]
path_lookupat+0x17f/0x770 fs/namei.c:2485
filename_lookup+0x1e5/0x5b0 fs/namei.c:2514
user_path_at_empty+0x42/0x60 fs/namei.c:2921
user_path_at include/linux/namei.h:57 [inline]
path_setxattr+0xa5/0x1e0 fs/xattr.c:666
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88805d446f00
which belongs to the cache jfs_ip of size 2240
The buggy address is located 3 bytes to the right of
allocated 2240-byte region [ffff88805d446f00, ffff88805d4477c0)
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88805d440940 pfn:0x5d440
head: order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff888029647401
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
raw: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
head: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000003 ffffea0001751001 dead000000000122 00000000ffffffff
head: 0000000800000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 8570, tgid 1114874902 (syz-executor.1), ts 8573, free_ts 316298443598
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d4/0x350 mm/page_alloc.c:1534
prep_new_page mm/page_alloc.c:1541 [inline]
get_page_from_freelist+0xa28/0x3780 mm/page_alloc.c:3317
__alloc_pages+0x22b/0x2460 mm/page_alloc.c:4575
__alloc_pages_node include/linux/gfp.h:238 [inline]
alloc_pages_node include/linux/gfp.h:261 [inline]
alloc_slab_page mm/slub.c:2175 [inline]
allocate_slab mm/slub.c:2338 [inline]
new_slab+0xcc/0x3a0 mm/slub.c:2391
___slab_alloc+0x66d/0x1790 mm/slub.c:3525
__slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3610
__slab_alloc_node mm/slub.c:3663 [inline]
slab_alloc_node mm/slub.c:3835 [inline]
kmem_cache_alloc_lru+0x379/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
new_inode_pseudo fs/inode.c:1007 [inline]
new_inode+0x22/0x270 fs/inode.c:1033
jfs_fill_super+0x433/0xd20 fs/jfs/super.c:544
mount_bdev+0x1e6/0x2d0 fs/super.c:1658
legacy_get_tree+0x10c/0x220 fs/fs_context.c:662
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
page last free pid 8509 tgid 8508 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1141 [inline]
free_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2347
free_unref_page+0x33/0x3c0 mm/page_alloc.c:2487
__put_partials+0x14c/0x170 mm/slub.c:2906
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmalloc_trace+0x147/0x330 mm/slub.c:3992
kmalloc include/linux/slab.h:628 [inline]
kzalloc include/linux/slab.h:749 [inline]
btrfs_alloc_ordered_workqueue+0x50/0x4c0 fs/btrfs/async-thread.c:129
btrfs_init_workqueues fs/btrfs/disk-io.c:2014 [inline]
open_ctree+0x177b/0x52f0 fs/btrfs/disk-io.c:3354
btrfs_fill_super fs/btrfs/super.c:938 [inline]
btrfs_get_tree_super fs/btrfs/super.c:1858 [inline]
btrfs_get_tree+0x11e9/0x1b90 fs/btrfs/super.c:2084
vfs_get_tree+0x92/0x380 fs/super.c:1779
fc_mount+0x16/0xc0 fs/namespace.c:1125
btrfs_get_tree_subvol fs/btrfs/super.c:2047 [inline]
btrfs_get_tree+0xa53/0x1b90 fs/btrfs/super.c:2085
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
Memory state around the buggy address:
ffff88805d447680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88805d447700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88805d447780: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
^
ffff88805d447800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88805d447880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
==================================================================
BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
Read of size 1 at addr ffff88805d4477c4 by task syz-executor.3/17889
CPU: 1 PID: 17889 Comm: syz-executor.3 Tainted: G B 6.9.0-rc6-syzkaller-00005-gb947cc5bf6d7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
print_address_description mm/kasan/report.c:377 [inline]
print_report+0xc3/0x620 mm/kasan/report.c:488
kasan_report+0xd9/0x110 mm/kasan/report.c:601
hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
print_hex_dump+0x18c/0x260 lib/hexdump.c:276
ea_get+0x864/0x12c0 fs/jfs/xattr.c:561
__jfs_setxattr+0x119/0x1070 fs/jfs/xattr.c:671
__jfs_xattr_set+0xc6/0x150 fs/jfs/xattr.c:917
__vfs_setxattr+0x176/0x1e0 fs/xattr.c:200
__vfs_setxattr_noperm+0x127/0x5e0 fs/xattr.c:234
__vfs_setxattr_locked+0x182/0x260 fs/xattr.c:295
vfs_setxattr+0x146/0x350 fs/xattr.c:321
do_setxattr+0x146/0x170 fs/xattr.c:629
setxattr+0x15d/0x180 fs/xattr.c:652
path_setxattr+0x179/0x1e0 fs/xattr.c:671
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8a9767dea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8a984d10c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007f8a977abf80 RCX: 00007f8a9767dea9
RDX: 0000000020000040 RSI: 00000000200001c0 RDI: 0000000020000180
RBP: 00007f8a976ca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e01 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8a977abf80 R15: 00007ffefd685ef8
Allocated by task 17889:
kasan_save_stack+0x33/0x60 mm/kasan/common.c:47
kasan_save_track+0x14/0x30 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:312 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:338
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmem_cache_alloc_lru+0x142/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
iget_locked+0x1a1/0x6d0 fs/inode.c:1280
jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29
jfs_lookup+0x2a8/0x370 fs/jfs/namei.c:1469
__lookup_slow+0x252/0x460 fs/namei.c:1692
lookup_slow fs/namei.c:1709 [inline]
walk_component+0x350/0x5b0 fs/namei.c:2004
lookup_last fs/namei.c:2461 [inline]
path_lookupat+0x17f/0x770 fs/namei.c:2485
filename_lookup+0x1e5/0x5b0 fs/namei.c:2514
user_path_at_empty+0x42/0x60 fs/namei.c:2921
user_path_at include/linux/namei.h:57 [inline]
path_setxattr+0xa5/0x1e0 fs/xattr.c:666
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88805d446f00
which belongs to the cache jfs_ip of size 2240
The buggy address is located 4 bytes to the right of
allocated 2240-byte region [ffff88805d446f00, ffff88805d4477c0)
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88805d440940 pfn:0x5d440
head: order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff888029647401
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
raw: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
head: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000003 ffffea0001751001 dead000000000122 00000000ffffffff
head: 0000000800000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 8570, tgid 1114874902 (syz-executor.1), ts 8573, free_ts 316298443598
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d4/0x350 mm/page_alloc.c:1534
prep_new_page mm/page_alloc.c:1541 [inline]
get_page_from_freelist+0xa28/0x3780 mm/page_alloc.c:3317
__alloc_pages+0x22b/0x2460 mm/page_alloc.c:4575
__alloc_pages_node include/linux/gfp.h:238 [inline]
alloc_pages_node include/linux/gfp.h:261 [inline]
alloc_slab_page mm/slub.c:2175 [inline]
allocate_slab mm/slub.c:2338 [inline]
new_slab+0xcc/0x3a0 mm/slub.c:2391
___slab_alloc+0x66d/0x1790 mm/slub.c:3525
__slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3610
__slab_alloc_node mm/slub.c:3663 [inline]
slab_alloc_node mm/slub.c:3835 [inline]
kmem_cache_alloc_lru+0x379/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
new_inode_pseudo fs/inode.c:1007 [inline]
new_inode+0x22/0x270 fs/inode.c:1033
jfs_fill_super+0x433/0xd20 fs/jfs/super.c:544
mount_bdev+0x1e6/0x2d0 fs/super.c:1658
legacy_get_tree+0x10c/0x220 fs/fs_context.c:662
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
page last free pid 8509 tgid 8508 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1141 [inline]
free_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2347
free_unref_page+0x33/0x3c0 mm/page_alloc.c:2487
__put_partials+0x14c/0x170 mm/slub.c:2906
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmalloc_trace+0x147/0x330 mm/slub.c:3992
kmalloc include/linux/slab.h:628 [inline]
kzalloc include/linux/slab.h:749 [inline]
btrfs_alloc_ordered_workqueue+0x50/0x4c0 fs/btrfs/async-thread.c:129
btrfs_init_workqueues fs/btrfs/disk-io.c:2014 [inline]
open_ctree+0x177b/0x52f0 fs/btrfs/disk-io.c:3354
btrfs_fill_super fs/btrfs/super.c:938 [inline]
btrfs_get_tree_super fs/btrfs/super.c:1858 [inline]
btrfs_get_tree+0x11e9/0x1b90 fs/btrfs/super.c:2084
vfs_get_tree+0x92/0x380 fs/super.c:1779
fc_mount+0x16/0xc0 fs/namespace.c:1125
btrfs_get_tree_subvol fs/btrfs/super.c:2047 [inline]
btrfs_get_tree+0xa53/0x1b90 fs/btrfs/super.c:2085
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
Memory state around the buggy address:
ffff88805d447680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88805d447700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88805d447780: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
^
ffff88805d447800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88805d447880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
==================================================================
BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
Read of size 1 at addr ffff88805d4477c5 by task syz-executor.3/17889
CPU: 0 PID: 17889 Comm: syz-executor.3 Tainted: G B 6.9.0-rc6-syzkaller-00005-gb947cc5bf6d7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
print_address_description mm/kasan/report.c:377 [inline]
print_report+0xc3/0x620 mm/kasan/report.c:488
kasan_report+0xd9/0x110 mm/kasan/report.c:601
hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
print_hex_dump+0x18c/0x260 lib/hexdump.c:276
ea_get+0x864/0x12c0 fs/jfs/xattr.c:561
__jfs_setxattr+0x119/0x1070 fs/jfs/xattr.c:671
__jfs_xattr_set+0xc6/0x150 fs/jfs/xattr.c:917
__vfs_setxattr+0x176/0x1e0 fs/xattr.c:200
__vfs_setxattr_noperm+0x127/0x5e0 fs/xattr.c:234
__vfs_setxattr_locked+0x182/0x260 fs/xattr.c:295
vfs_setxattr+0x146/0x350 fs/xattr.c:321
do_setxattr+0x146/0x170 fs/xattr.c:629
setxattr+0x15d/0x180 fs/xattr.c:652
path_setxattr+0x179/0x1e0 fs/xattr.c:671
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8a9767dea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8a984d10c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007f8a977abf80 RCX: 00007f8a9767dea9
RDX: 0000000020000040 RSI: 00000000200001c0 RDI: 0000000020000180
RBP: 00007f8a976ca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e01 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8a977abf80 R15: 00007ffefd685ef8
Allocated by task 17889:
kasan_save_stack+0x33/0x60 mm/kasan/common.c:47
kasan_save_track+0x14/0x30 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:312 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:338
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmem_cache_alloc_lru+0x142/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
iget_locked+0x1a1/0x6d0 fs/inode.c:1280
jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29
jfs_lookup+0x2a8/0x370 fs/jfs/namei.c:1469
__lookup_slow+0x252/0x460 fs/namei.c:1692
lookup_slow fs/namei.c:1709 [inline]
walk_component+0x350/0x5b0 fs/namei.c:2004
lookup_last fs/namei.c:2461 [inline]
path_lookupat+0x17f/0x770 fs/namei.c:2485
filename_lookup+0x1e5/0x5b0 fs/namei.c:2514
user_path_at_empty+0x42/0x60 fs/namei.c:2921
user_path_at include/linux/namei.h:57 [inline]
path_setxattr+0xa5/0x1e0 fs/xattr.c:666
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88805d446f00
which belongs to the cache jfs_ip of size 2240
The buggy address is located 5 bytes to the right of
allocated 2240-byte region [ffff88805d446f00, ffff88805d4477c0)
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88805d440940 pfn:0x5d440
head: order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff888029647401
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
raw: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
head: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000003 ffffea0001751001 dead000000000122 00000000ffffffff
head: 0000000800000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 8570, tgid 1114874902 (syz-executor.1), ts 8573, free_ts 316298443598
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d4/0x350 mm/page_alloc.c:1534
prep_new_page mm/page_alloc.c:1541 [inline]
get_page_from_freelist+0xa28/0x3780 mm/page_alloc.c:3317
__alloc_pages+0x22b/0x2460 mm/page_alloc.c:4575
__alloc_pages_node include/linux/gfp.h:238 [inline]
alloc_pages_node include/linux/gfp.h:261 [inline]
alloc_slab_page mm/slub.c:2175 [inline]
allocate_slab mm/slub.c:2338 [inline]
new_slab+0xcc/0x3a0 mm/slub.c:2391
___slab_alloc+0x66d/0x1790 mm/slub.c:3525
__slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3610
__slab_alloc_node mm/slub.c:3663 [inline]
slab_alloc_node mm/slub.c:3835 [inline]
kmem_cache_alloc_lru+0x379/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
new_inode_pseudo fs/inode.c:1007 [inline]
new_inode+0x22/0x270 fs/inode.c:1033
jfs_fill_super+0x433/0xd20 fs/jfs/super.c:544
mount_bdev+0x1e6/0x2d0 fs/super.c:1658
legacy_get_tree+0x10c/0x220 fs/fs_context.c:662
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
page last free pid 8509 tgid 8508 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1141 [inline]
free_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2347
free_unref_page+0x33/0x3c0 mm/page_alloc.c:2487
__put_partials+0x14c/0x170 mm/slub.c:2906
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmalloc_trace+0x147/0x330 mm/slub.c:3992
kmalloc include/linux/slab.h:628 [inline]
kzalloc include/linux/slab.h:749 [inline]
btrfs_alloc_ordered_workqueue+0x50/0x4c0 fs/btrfs/async-thread.c:129
btrfs_init_workqueues fs/btrfs/disk-io.c:2014 [inline]
open_ctree+0x177b/0x52f0 fs/btrfs/disk-io.c:3354
btrfs_fill_super fs/btrfs/super.c:938 [inline]
btrfs_get_tree_super fs/btrfs/super.c:1858 [inline]
btrfs_get_tree+0x11e9/0x1b90 fs/btrfs/super.c:2084
vfs_get_tree+0x92/0x380 fs/super.c:1779
fc_mount+0x16/0xc0 fs/namespace.c:1125
btrfs_get_tree_subvol fs/btrfs/super.c:2047 [inline]
btrfs_get_tree+0xa53/0x1b90 fs/btrfs/super.c:2085
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
Memory state around the buggy address:
ffff88805d447680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88805d447700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88805d447780: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
^
ffff88805d447800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88805d447880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
==================================================================
BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
Read of size 1 at addr ffff88805d4477c6 by task syz-executor.3/17889
CPU: 0 PID: 17889 Comm: syz-executor.3 Tainted: G B 6.9.0-rc6-syzkaller-00005-gb947cc5bf6d7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
print_address_description mm/kasan/report.c:377 [inline]
print_report+0xc3/0x620 mm/kasan/report.c:488
kasan_report+0xd9/0x110 mm/kasan/report.c:601
hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
print_hex_dump+0x18c/0x260 lib/hexdump.c:276
ea_get+0x864/0x12c0 fs/jfs/xattr.c:561
__jfs_setxattr+0x119/0x1070 fs/jfs/xattr.c:671
__jfs_xattr_set+0xc6/0x150 fs/jfs/xattr.c:917
__vfs_setxattr+0x176/0x1e0 fs/xattr.c:200
__vfs_setxattr_noperm+0x127/0x5e0 fs/xattr.c:234
__vfs_setxattr_locked+0x182/0x260 fs/xattr.c:295
vfs_setxattr+0x146/0x350 fs/xattr.c:321
do_setxattr+0x146/0x170 fs/xattr.c:629
setxattr+0x15d/0x180 fs/xattr.c:652
path_setxattr+0x179/0x1e0 fs/xattr.c:671
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8a9767dea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8a984d10c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007f8a977abf80 RCX: 00007f8a9767dea9
RDX: 0000000020000040 RSI: 00000000200001c0 RDI: 0000000020000180
RBP: 00007f8a976ca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e01 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8a977abf80 R15: 00007ffefd685ef8
Allocated by task 17889:
kasan_save_stack+0x33/0x60 mm/kasan/common.c:47
kasan_save_track+0x14/0x30 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:312 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:338
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmem_cache_alloc_lru+0x142/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
iget_locked+0x1a1/0x6d0 fs/inode.c:1280
jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29
jfs_lookup+0x2a8/0x370 fs/jfs/namei.c:1469
__lookup_slow+0x252/0x460 fs/namei.c:1692
lookup_slow fs/namei.c:1709 [inline]
walk_component+0x350/0x5b0 fs/namei.c:2004
lookup_last fs/namei.c:2461 [inline]
path_lookupat+0x17f/0x770 fs/namei.c:2485
filename_lookup+0x1e5/0x5b0 fs/namei.c:2514
user_path_at_empty+0x42/0x60 fs/namei.c:2921
user_path_at include/linux/namei.h:57 [inline]
path_setxattr+0xa5/0x1e0 fs/xattr.c:666
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88805d446f00
which belongs to the cache jfs_ip of size 2240
The buggy address is located 6 bytes to the right of
allocated 2240-byte region [ffff88805d446f00, ffff88805d4477c0)
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88805d440940 pfn:0x5d440
head: order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff888029647401
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
raw: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
head: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000003 ffffea0001751001 dead000000000122 00000000ffffffff
head: 0000000800000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 8570, tgid 1114874902 (syz-executor.1), ts 8573, free_ts 316298443598
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d4/0x350 mm/page_alloc.c:1534
prep_new_page mm/page_alloc.c:1541 [inline]
get_page_from_freelist+0xa28/0x3780 mm/page_alloc.c:3317
__alloc_pages+0x22b/0x2460 mm/page_alloc.c:4575
__alloc_pages_node include/linux/gfp.h:238 [inline]
alloc_pages_node include/linux/gfp.h:261 [inline]
alloc_slab_page mm/slub.c:2175 [inline]
allocate_slab mm/slub.c:2338 [inline]
new_slab+0xcc/0x3a0 mm/slub.c:2391
___slab_alloc+0x66d/0x1790 mm/slub.c:3525
__slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3610
__slab_alloc_node mm/slub.c:3663 [inline]
slab_alloc_node mm/slub.c:3835 [inline]
kmem_cache_alloc_lru+0x379/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
new_inode_pseudo fs/inode.c:1007 [inline]
new_inode+0x22/0x270 fs/inode.c:1033
jfs_fill_super+0x433/0xd20 fs/jfs/super.c:544
mount_bdev+0x1e6/0x2d0 fs/super.c:1658
legacy_get_tree+0x10c/0x220 fs/fs_context.c:662
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
page last free pid 8509 tgid 8508 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1141 [inline]
free_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2347
free_unref_page+0x33/0x3c0 mm/page_alloc.c:2487
__put_partials+0x14c/0x170 mm/slub.c:2906
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmalloc_trace+0x147/0x330 mm/slub.c:3992
kmalloc include/linux/slab.h:628 [inline]
kzalloc include/linux/slab.h:749 [inline]
btrfs_alloc_ordered_workqueue+0x50/0x4c0 fs/btrfs/async-thread.c:129
btrfs_init_workqueues fs/btrfs/disk-io.c:2014 [inline]
open_ctree+0x177b/0x52f0 fs/btrfs/disk-io.c:3354
btrfs_fill_super fs/btrfs/super.c:938 [inline]
btrfs_get_tree_super fs/btrfs/super.c:1858 [inline]
btrfs_get_tree+0x11e9/0x1b90 fs/btrfs/super.c:2084
vfs_get_tree+0x92/0x380 fs/super.c:1779
fc_mount+0x16/0xc0 fs/namespace.c:1125
btrfs_get_tree_subvol fs/btrfs/super.c:2047 [inline]
btrfs_get_tree+0xa53/0x1b90 fs/btrfs/super.c:2085
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
Memory state around the buggy address:
ffff88805d447680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88805d447700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88805d447780: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
^
ffff88805d447800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88805d447880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
==================================================================
BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
Read of size 1 at addr ffff88805d4477c7 by task syz-executor.3/17889
CPU: 1 PID: 17889 Comm: syz-executor.3 Tainted: G B 6.9.0-rc6-syzkaller-00005-gb947cc5bf6d7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
print_address_description mm/kasan/report.c:377 [inline]
print_report+0xc3/0x620 mm/kasan/report.c:488
kasan_report+0xd9/0x110 mm/kasan/report.c:601
hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
print_hex_dump+0x18c/0x260 lib/hexdump.c:276
ea_get+0x864/0x12c0 fs/jfs/xattr.c:561
__jfs_setxattr+0x119/0x1070 fs/jfs/xattr.c:671
__jfs_xattr_set+0xc6/0x150 fs/jfs/xattr.c:917
__vfs_setxattr+0x176/0x1e0 fs/xattr.c:200
__vfs_setxattr_noperm+0x127/0x5e0 fs/xattr.c:234
__vfs_setxattr_locked+0x182/0x260 fs/xattr.c:295
vfs_setxattr+0x146/0x350 fs/xattr.c:321
do_setxattr+0x146/0x170 fs/xattr.c:629
setxattr+0x15d/0x180 fs/xattr.c:652
path_setxattr+0x179/0x1e0 fs/xattr.c:671
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8a9767dea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8a984d10c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007f8a977abf80 RCX: 00007f8a9767dea9
RDX: 0000000020000040 RSI: 00000000200001c0 RDI: 0000000020000180
RBP: 00007f8a976ca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e01 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8a977abf80 R15: 00007ffefd685ef8
Allocated by task 17889:
kasan_save_stack+0x33/0x60 mm/kasan/common.c:47
kasan_save_track+0x14/0x30 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:312 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:338
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmem_cache_alloc_lru+0x142/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
iget_locked+0x1a1/0x6d0 fs/inode.c:1280
jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29
jfs_lookup+0x2a8/0x370 fs/jfs/namei.c:1469
__lookup_slow+0x252/0x460 fs/namei.c:1692
lookup_slow fs/namei.c:1709 [inline]
walk_component+0x350/0x5b0 fs/namei.c:2004
lookup_last fs/namei.c:2461 [inline]
path_lookupat+0x17f/0x770 fs/namei.c:2485
filename_lookup+0x1e5/0x5b0 fs/namei.c:2514
user_path_at_empty+0x42/0x60 fs/namei.c:2921
user_path_at include/linux/namei.h:57 [inline]
path_setxattr+0xa5/0x1e0 fs/xattr.c:666
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88805d446f00
which belongs to the cache jfs_ip of size 2240
The buggy address is located 7 bytes to the right of
allocated 2240-byte region [ffff88805d446f00, ffff88805d4477c0)
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88805d440940 pfn:0x5d440
head: order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff888029647401
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
raw: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
head: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000003 ffffea0001751001 dead000000000122 00000000ffffffff
head: 0000000800000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 8570, tgid 1114874902 (syz-executor.1), ts 8573, free_ts 316298443598
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d4/0x350 mm/page_alloc.c:1534
prep_new_page mm/page_alloc.c:1541 [inline]
get_page_from_freelist+0xa28/0x3780 mm/page_alloc.c:3317
__alloc_pages+0x22b/0x2460 mm/page_alloc.c:4575
__alloc_pages_node include/linux/gfp.h:238 [inline]
alloc_pages_node include/linux/gfp.h:261 [inline]
alloc_slab_page mm/slub.c:2175 [inline]
allocate_slab mm/slub.c:2338 [inline]
new_slab+0xcc/0x3a0 mm/slub.c:2391
___slab_alloc+0x66d/0x1790 mm/slub.c:3525
__slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3610
__slab_alloc_node mm/slub.c:3663 [inline]
slab_alloc_node mm/slub.c:3835 [inline]
kmem_cache_alloc_lru+0x379/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
new_inode_pseudo fs/inode.c:1007 [inline]
new_inode+0x22/0x270 fs/inode.c:1033
jfs_fill_super+0x433/0xd20 fs/jfs/super.c:544
mount_bdev+0x1e6/0x2d0 fs/super.c:1658
legacy_get_tree+0x10c/0x220 fs/fs_context.c:662
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
page last free pid 8509 tgid 8508 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1141 [inline]
free_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2347
free_unref_page+0x33/0x3c0 mm/page_alloc.c:2487
__put_partials+0x14c/0x170 mm/slub.c:2906
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmalloc_trace+0x147/0x330 mm/slub.c:3992
kmalloc include/linux/slab.h:628 [inline]
kzalloc include/linux/slab.h:749 [inline]
btrfs_alloc_ordered_workqueue+0x50/0x4c0 fs/btrfs/async-thread.c:129
btrfs_init_workqueues fs/btrfs/disk-io.c:2014 [inline]
open_ctree+0x177b/0x52f0 fs/btrfs/disk-io.c:3354
btrfs_fill_super fs/btrfs/super.c:938 [inline]
btrfs_get_tree_super fs/btrfs/super.c:1858 [inline]
btrfs_get_tree+0x11e9/0x1b90 fs/btrfs/super.c:2084
vfs_get_tree+0x92/0x380 fs/super.c:1779
fc_mount+0x16/0xc0 fs/namespace.c:1125
btrfs_get_tree_subvol fs/btrfs/super.c:2047 [inline]
btrfs_get_tree+0xa53/0x1b90 fs/btrfs/super.c:2085
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
Memory state around the buggy address:
ffff88805d447680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88805d447700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88805d447780: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
^
ffff88805d447800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88805d447880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
==================================================================
BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
Read of size 1 at addr ffff88805d4477c8 by task syz-executor.3/17889
CPU: 0 PID: 17889 Comm: syz-executor.3 Tainted: G B 6.9.0-rc6-syzkaller-00005-gb947cc5bf6d7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
print_address_description mm/kasan/report.c:377 [inline]
print_report+0xc3/0x620 mm/kasan/report.c:488
kasan_report+0xd9/0x110 mm/kasan/report.c:601
hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
print_hex_dump+0x18c/0x260 lib/hexdump.c:276
ea_get+0x864/0x12c0 fs/jfs/xattr.c:561
__jfs_setxattr+0x119/0x1070 fs/jfs/xattr.c:671
__jfs_xattr_set+0xc6/0x150 fs/jfs/xattr.c:917
__vfs_setxattr+0x176/0x1e0 fs/xattr.c:200
__vfs_setxattr_noperm+0x127/0x5e0 fs/xattr.c:234
__vfs_setxattr_locked+0x182/0x260 fs/xattr.c:295
vfs_setxattr+0x146/0x350 fs/xattr.c:321
do_setxattr+0x146/0x170 fs/xattr.c:629
setxattr+0x15d/0x180 fs/xattr.c:652
path_setxattr+0x179/0x1e0 fs/xattr.c:671
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8a9767dea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8a984d10c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007f8a977abf80 RCX: 00007f8a9767dea9
RDX: 0000000020000040 RSI: 00000000200001c0 RDI: 0000000020000180
RBP: 00007f8a976ca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e01 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8a977abf80 R15: 00007ffefd685ef8
Allocated by task 17889:
kasan_save_stack+0x33/0x60 mm/kasan/common.c:47
kasan_save_track+0x14/0x30 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:312 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:338
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmem_cache_alloc_lru+0x142/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
iget_locked+0x1a1/0x6d0 fs/inode.c:1280
jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29
jfs_lookup+0x2a8/0x370 fs/jfs/namei.c:1469
__lookup_slow+0x252/0x460 fs/namei.c:1692
lookup_slow fs/namei.c:1709 [inline]
walk_component+0x350/0x5b0 fs/namei.c:2004
lookup_last fs/namei.c:2461 [inline]
path_lookupat+0x17f/0x770 fs/namei.c:2485
filename_lookup+0x1e5/0x5b0 fs/namei.c:2514
user_path_at_empty+0x42/0x60 fs/namei.c:2921
user_path_at include/linux/namei.h:57 [inline]
path_setxattr+0xa5/0x1e0 fs/xattr.c:666
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88805d446f00
which belongs to the cache jfs_ip of size 2240
The buggy address is located 8 bytes to the right of
allocated 2240-byte region [ffff88805d446f00, ffff88805d4477c0)
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88805d440940 pfn:0x5d440
head: order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff888029647401
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
raw: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
head: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000003 ffffea0001751001 dead000000000122 00000000ffffffff
head: 0000000800000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 8570, tgid 1114874902 (syz-executor.1), ts 8573, free_ts 316298443598
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d4/0x350 mm/page_alloc.c:1534
prep_new_page mm/page_alloc.c:1541 [inline]
get_page_from_freelist+0xa28/0x3780 mm/page_alloc.c:3317
__alloc_pages+0x22b/0x2460 mm/page_alloc.c:4575
__alloc_pages_node include/linux/gfp.h:238 [inline]
alloc_pages_node include/linux/gfp.h:261 [inline]
alloc_slab_page mm/slub.c:2175 [inline]
allocate_slab mm/slub.c:2338 [inline]
new_slab+0xcc/0x3a0 mm/slub.c:2391
___slab_alloc+0x66d/0x1790 mm/slub.c:3525
__slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3610
__slab_alloc_node mm/slub.c:3663 [inline]
slab_alloc_node mm/slub.c:3835 [inline]
kmem_cache_alloc_lru+0x379/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
new_inode_pseudo fs/inode.c:1007 [inline]
new_inode+0x22/0x270 fs/inode.c:1033
jfs_fill_super+0x433/0xd20 fs/jfs/super.c:544
mount_bdev+0x1e6/0x2d0 fs/super.c:1658
legacy_get_tree+0x10c/0x220 fs/fs_context.c:662
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
page last free pid 8509 tgid 8508 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1141 [inline]
free_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2347
free_unref_page+0x33/0x3c0 mm/page_alloc.c:2487
__put_partials+0x14c/0x170 mm/slub.c:2906
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmalloc_trace+0x147/0x330 mm/slub.c:3992
kmalloc include/linux/slab.h:628 [inline]
kzalloc include/linux/slab.h:749 [inline]
btrfs_alloc_ordered_workqueue+0x50/0x4c0 fs/btrfs/async-thread.c:129
btrfs_init_workqueues fs/btrfs/disk-io.c:2014 [inline]
open_ctree+0x177b/0x52f0 fs/btrfs/disk-io.c:3354
btrfs_fill_super fs/btrfs/super.c:938 [inline]
btrfs_get_tree_super fs/btrfs/super.c:1858 [inline]
btrfs_get_tree+0x11e9/0x1b90 fs/btrfs/super.c:2084
vfs_get_tree+0x92/0x380 fs/super.c:1779
fc_mount+0x16/0xc0 fs/namespace.c:1125
btrfs_get_tree_subvol fs/btrfs/super.c:2047 [inline]
btrfs_get_tree+0xa53/0x1b90 fs/btrfs/super.c:2085
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
Memory state around the buggy address:
ffff88805d447680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88805d447700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88805d447780: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
^
ffff88805d447800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88805d447880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
==================================================================
BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
Read of size 1 at addr ffff88805d4477c9 by task syz-executor.3/17889
CPU: 1 PID: 17889 Comm: syz-executor.3 Tainted: G B 6.9.0-rc6-syzkaller-00005-gb947cc5bf6d7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
print_address_description mm/kasan/report.c:377 [inline]
print_report+0xc3/0x620 mm/kasan/report.c:488
kasan_report+0xd9/0x110 mm/kasan/report.c:601
hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
print_hex_dump+0x18c/0x260 lib/hexdump.c:276
ea_get+0x864/0x12c0 fs/jfs/xattr.c:561
__jfs_setxattr+0x119/0x1070 fs/jfs/xattr.c:671
__jfs_xattr_set+0xc6/0x150 fs/jfs/xattr.c:917
__vfs_setxattr+0x176/0x1e0 fs/xattr.c:200
__vfs_setxattr_noperm+0x127/0x5e0 fs/xattr.c:234
__vfs_setxattr_locked+0x182/0x260 fs/xattr.c:295
vfs_setxattr+0x146/0x350 fs/xattr.c:321
do_setxattr+0x146/0x170 fs/xattr.c:629
setxattr+0x15d/0x180 fs/xattr.c:652
path_setxattr+0x179/0x1e0 fs/xattr.c:671
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8a9767dea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8a984d10c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007f8a977abf80 RCX: 00007f8a9767dea9
RDX: 0000000020000040 RSI: 00000000200001c0 RDI: 0000000020000180
RBP: 00007f8a976ca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e01 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8a977abf80 R15: 00007ffefd685ef8
Allocated by task 17889:
kasan_save_stack+0x33/0x60 mm/kasan/common.c:47
kasan_save_track+0x14/0x30 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:312 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:338
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmem_cache_alloc_lru+0x142/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
iget_locked+0x1a1/0x6d0 fs/inode.c:1280
jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29
jfs_lookup+0x2a8/0x370 fs/jfs/namei.c:1469
__lookup_slow+0x252/0x460 fs/namei.c:1692
lookup_slow fs/namei.c:1709 [inline]
walk_component+0x350/0x5b0 fs/namei.c:2004
lookup_last fs/namei.c:2461 [inline]
path_lookupat+0x17f/0x770 fs/namei.c:2485
filename_lookup+0x1e5/0x5b0 fs/namei.c:2514
user_path_at_empty+0x42/0x60 fs/namei.c:2921
user_path_at include/linux/namei.h:57 [inline]
path_setxattr+0xa5/0x1e0 fs/xattr.c:666
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88805d446f00
which belongs to the cache jfs_ip of size 2240
The buggy address is located 9 bytes to the right of
allocated 2240-byte region [ffff88805d446f00, ffff88805d4477c0)
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88805d440940 pfn:0x5d440
head: order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
memcg:ffff888029647401
flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
raw: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000840 ffff888017b2b8c0 dead000000000122 0000000000000000
head: ffff88805d440940 00000000800d0007 00000001ffffffff ffff888029647401
head: 00fff00000000003 ffffea0001751001 dead000000000122 00000000ffffffff
head: 0000000800000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 8570, tgid 1114874902 (syz-executor.1), ts 8573, free_ts 316298443598
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d4/0x350 mm/page_alloc.c:1534
prep_new_page mm/page_alloc.c:1541 [inline]
get_page_from_freelist+0xa28/0x3780 mm/page_alloc.c:3317
__alloc_pages+0x22b/0x2460 mm/page_alloc.c:4575
__alloc_pages_node include/linux/gfp.h:238 [inline]
alloc_pages_node include/linux/gfp.h:261 [inline]
alloc_slab_page mm/slub.c:2175 [inline]
allocate_slab mm/slub.c:2338 [inline]
new_slab+0xcc/0x3a0 mm/slub.c:2391
___slab_alloc+0x66d/0x1790 mm/slub.c:3525
__slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3610
__slab_alloc_node mm/slub.c:3663 [inline]
slab_alloc_node mm/slub.c:3835 [inline]
kmem_cache_alloc_lru+0x379/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
new_inode_pseudo fs/inode.c:1007 [inline]
new_inode+0x22/0x270 fs/inode.c:1033
jfs_fill_super+0x433/0xd20 fs/jfs/super.c:544
mount_bdev+0x1e6/0x2d0 fs/super.c:1658
legacy_get_tree+0x10c/0x220 fs/fs_context.c:662
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
page last free pid 8509 tgid 8508 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1141 [inline]
free_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2347
free_unref_page+0x33/0x3c0 mm/page_alloc.c:2487
__put_partials+0x14c/0x170 mm/slub.c:2906
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmalloc_trace+0x147/0x330 mm/slub.c:3992
kmalloc include/linux/slab.h:628 [inline]
kzalloc include/linux/slab.h:749 [inline]
btrfs_alloc_ordered_workqueue+0x50/0x4c0 fs/btrfs/async-thread.c:129
btrfs_init_workqueues fs/btrfs/disk-io.c:2014 [inline]
open_ctree+0x177b/0x52f0 fs/btrfs/disk-io.c:3354
btrfs_fill_super fs/btrfs/super.c:938 [inline]
btrfs_get_tree_super fs/btrfs/super.c:1858 [inline]
btrfs_get_tree+0x11e9/0x1b90 fs/btrfs/super.c:2084
vfs_get_tree+0x92/0x380 fs/super.c:1779
fc_mount+0x16/0xc0 fs/namespace.c:1125
btrfs_get_tree_subvol fs/btrfs/super.c:2047 [inline]
btrfs_get_tree+0xa53/0x1b90 fs/btrfs/super.c:2085
vfs_get_tree+0x92/0x380 fs/super.c:1779
do_new_mount fs/namespace.c:3352 [inline]
path_mount+0x14e6/0x1f20 fs/namespace.c:3679
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount fs/namespace.c:3875 [inline]
__x64_sys_mount+0x297/0x320 fs/namespace.c:3875
Memory state around the buggy address:
ffff88805d447680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88805d447700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88805d447780: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
^
ffff88805d447800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88805d447880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
==================================================================
BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
Read of size 1 at addr ffff88805d4477ca by task syz-executor.3/17889
CPU: 1 PID: 17889 Comm: syz-executor.3 Tainted: G B 6.9.0-rc6-syzkaller-00005-gb947cc5bf6d7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
print_address_description mm/kasan/report.c:377 [inline]
print_report+0xc3/0x620 mm/kasan/report.c:488
kasan_report+0xd9/0x110 mm/kasan/report.c:601
hex_dump_to_buffer+0xd01/0xe30 lib/hexdump.c:193
print_hex_dump+0x18c/0x260 lib/hexdump.c:276
ea_get+0x864/0x12c0 fs/jfs/xattr.c:561
__jfs_setxattr+0x119/0x1070 fs/jfs/xattr.c:671
__jfs_xattr_set+0xc6/0x150 fs/jfs/xattr.c:917
__vfs_setxattr+0x176/0x1e0 fs/xattr.c:200
__vfs_setxattr_noperm+0x127/0x5e0 fs/xattr.c:234
__vfs_setxattr_locked+0x182/0x260 fs/xattr.c:295
vfs_setxattr+0x146/0x350 fs/xattr.c:321
do_setxattr+0x146/0x170 fs/xattr.c:629
setxattr+0x15d/0x180 fs/xattr.c:652
path_setxattr+0x179/0x1e0 fs/xattr.c:671
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8a9767dea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8a984d10c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007f8a977abf80 RCX: 00007f8a9767dea9
RDX: 0000000020000040 RSI: 00000000200001c0 RDI: 0000000020000180
RBP: 00007f8a976ca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e01 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8a977abf80 R15: 00007ffefd685ef8
Allocated by task 17889:
kasan_save_stack+0x33/0x60 mm/kasan/common.c:47
kasan_save_track+0x14/0x30 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:312 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:338
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3798 [inline]
slab_alloc_node mm/slub.c:3845 [inline]
kmem_cache_alloc_lru+0x142/0x6f0 mm/slub.c:3864
alloc_inode_sb include/linux/fs.h:3091 [inline]
jfs_alloc_inode+0x25/0x60 fs/jfs/super.c:105
alloc_inode+0x60/0x230 fs/inode.c:261
iget_locked+0x1a1/0x6d0 fs/inode.c:1280
jfs_iget+0x1e/0x4d0 fs/jfs/inode.c:29
jfs_lookup+0x2a8/0x370 fs/jfs/namei.c:1469
__lookup_slow+0x252/0x460 fs/namei.c:1692
lookup_slow fs/namei.c:1709 [inline]
walk_component+0x350/0x5b0 fs/namei.c:2004
lookup_last fs/namei.c:2461 [inline]
path_lookupat+0x17f/0x770 fs/namei.c:2485
filename_lookup+0x1e5/0x5b0 fs/namei.c:2514
user_path_at_empty+0x42/0x60 fs/namei.c:2921
user_path_at include/linux/namei.h:57 [inline]
path_setxattr+0xa5/0x1e0 fs/xattr.c:666
__do_sys_lsetxattr fs/xattr.c:694 [inline]
__se_sys_lsetxattr fs/xattr.c:690 [inline]
__x64_sys_lsetxattr+0xc1/0x160 fs/xattr.c:690
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff88805d446f00
which belongs to the cache jfs_ip of size 2240
The buggy address is located 10 bytes to the right of
allocated 2240-byte region [ffff88805d446f00, ffff88805d4477c0)
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88805d440940 pfn:0x5d440
head: order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0