hpfs: filesystem error: warning: spare dnodes used, try chkdsk
hpfs: You really don't want any checks? You are crazy...
hpfs: hpfs_map_sector(): read error
hpfs: code page support is disabled
==================================================================
BUG: KASAN: use-after-free in strcmp+0xa7/0xb0 lib/string.c:265
Read of size 1 at addr ffff888073c708a6 by task syz.5.103/6308
CPU: 1 UID: 0 PID: 6308 Comm: syz.5.103 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x13d/0x4b0 mm/kasan/report.c:482
kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
strcmp+0xa7/0xb0 lib/string.c:265
hpfs_get_ea+0x1fa/0xc20 fs/hpfs/ea.c:139
hpfs_read_inode+0x706/0x11c0 fs/hpfs/inode.c:63
hpfs_fill_super+0x1222/0x1f50 fs/hpfs/super.c:652
get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
vfs_get_tree+0x92/0x320 fs/super.c:1881
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
do_mount fs/namespace.c:4350 [inline]
__do_sys_mount fs/namespace.c:4563 [inline]
__se_sys_mount fs/namespace.c:4540 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:4540
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2ff23aa77a
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f2ff321cee0 RCX: 00007f2ff23aa77a
RDX: 000020000000a000 RSI: 0000200000009ec0 RDI: 00007f2ff321cea0
RBP: 000020000000a000 R08: 00007f2ff321cee0 R09: 0000000003200041
R10: 0000000003200041 R11: 0000000000000246 R12: 0000200000009ec0
R13: 00007f2ff321cea0 R14: 0000000000009e25 R15: 0000200000000300
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x274 pfn:0x73c70
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
__alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492
alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513
folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2532
shmem_alloc_folio+0x135/0x160 mm/shmem.c:2184
shmem_alloc_and_add_folio+0x371/0xd40 mm/shmem.c:2226
shmem_get_folio_gfp+0x758/0x1af0 mm/shmem.c:2780
shmem_get_folio mm/shmem.c:2879 [inline]
shmem_write_begin+0x1a4/0x420 mm/shmem.c:3514
generic_perform_write+0x292/0xa40 mm/filemap.c:4392
shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3689
new_sync_write fs/read_write.c:575 [inline]
vfs_write+0x6af/0x1040 fs/read_write.c:667
ksys_write+0x12a/0x250 fs/read_write.c:719
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5858 tgid 5858 ts 141683319294 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
free_unref_folios+0xa62/0x17c0 mm/page_alloc.c:3018
folios_put_refs+0x585/0xaa0 mm/folio.c:1039
folio_batch_release include/linux/folio_batch.h:101 [inline]
shmem_undo_range+0x707/0x1640 mm/shmem.c:1377
shmem_truncate_range mm/shmem.c:1513 [inline]
shmem_evict_inode+0x3b1/0xc10 mm/shmem.c:1657
evict+0x403/0xb90 fs/inode.c:829
iput_final fs/inode.c:2036 [inline]
iput.part.0+0x989/0x1050 fs/inode.c:2085
iput+0x30/0x40 fs/inode.c:2051
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
dentry_kill+0x25d/0xca0 fs/dcache.c:857
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
dput+0x1f/0x30 fs/dcache.c:1068
__fput+0x515/0xb50 fs/file_table.c:520
task_work_run+0x150/0x240 kernel/task_work.c:233
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:70 [inline]
exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline]
do_syscall_64+0x661/0x7b0 arch/x86/entry/syscall_64.c:107
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
ffff888073c70780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888073c70800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888073c70880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888073c70900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888073c70980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
==================================================================
BUG: KASAN: use-after-free in next_ea fs/hpfs/hpfs_fn.h:152 [inline]
BUG: KASAN: use-after-free in hpfs_get_ea+0xb0d/0xc20 fs/hpfs/ea.c:138
Read of size 1 at addr ffff888073c708a3 by task syz.5.103/6308
CPU: 1 UID: 0 PID: 6308 Comm: syz.5.103 Tainted: G B syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x13d/0x4b0 mm/kasan/report.c:482
kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
next_ea fs/hpfs/hpfs_fn.h:152 [inline]
hpfs_get_ea+0xb0d/0xc20 fs/hpfs/ea.c:138
hpfs_read_inode+0x706/0x11c0 fs/hpfs/inode.c:63
hpfs_fill_super+0x1222/0x1f50 fs/hpfs/super.c:652
get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
vfs_get_tree+0x92/0x320 fs/super.c:1881
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
do_mount fs/namespace.c:4350 [inline]
__do_sys_mount fs/namespace.c:4563 [inline]
__se_sys_mount fs/namespace.c:4540 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:4540
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2ff23aa77a
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f2ff321cee0 RCX: 00007f2ff23aa77a
RDX: 000020000000a000 RSI: 0000200000009ec0 RDI: 00007f2ff321cea0
RBP: 000020000000a000 R08: 00007f2ff321cee0 R09: 0000000003200041
R10: 0000000003200041 R11: 0000000000000246 R12: 0000200000009ec0
R13: 00007f2ff321cea0 R14: 0000000000009e25 R15: 0000200000000300
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x274 pfn:0x73c70
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
__alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492
alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513
folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2532
shmem_alloc_folio+0x135/0x160 mm/shmem.c:2184
shmem_alloc_and_add_folio+0x371/0xd40 mm/shmem.c:2226
shmem_get_folio_gfp+0x758/0x1af0 mm/shmem.c:2780
shmem_get_folio mm/shmem.c:2879 [inline]
shmem_write_begin+0x1a4/0x420 mm/shmem.c:3514
generic_perform_write+0x292/0xa40 mm/filemap.c:4392
shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3689
new_sync_write fs/read_write.c:575 [inline]
vfs_write+0x6af/0x1040 fs/read_write.c:667
ksys_write+0x12a/0x250 fs/read_write.c:719
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5858 tgid 5858 ts 141683319294 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
free_unref_folios+0xa62/0x17c0 mm/page_alloc.c:3018
folios_put_refs+0x585/0xaa0 mm/folio.c:1039
folio_batch_release include/linux/folio_batch.h:101 [inline]
shmem_undo_range+0x707/0x1640 mm/shmem.c:1377
shmem_truncate_range mm/shmem.c:1513 [inline]
shmem_evict_inode+0x3b1/0xc10 mm/shmem.c:1657
evict+0x403/0xb90 fs/inode.c:829
iput_final fs/inode.c:2036 [inline]
iput.part.0+0x989/0x1050 fs/inode.c:2085
iput+0x30/0x40 fs/inode.c:2051
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
dentry_kill+0x25d/0xca0 fs/dcache.c:857
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
dput+0x1f/0x30 fs/dcache.c:1068
__fput+0x515/0xb50 fs/file_table.c:520
task_work_run+0x150/0x240 kernel/task_work.c:233
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:70 [inline]
exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline]
do_syscall_64+0x661/0x7b0 arch/x86/entry/syscall_64.c:107
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
ffff888073c70780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888073c70800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888073c70880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888073c70900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888073c70980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
==================================================================
BUG: KASAN: use-after-free in ea_valuelen fs/hpfs/hpfs_fn.h:147 [inline]
BUG: KASAN: use-after-free in next_ea fs/hpfs/hpfs_fn.h:152 [inline]
BUG: KASAN: use-after-free in hpfs_get_ea+0xae2/0xc20 fs/hpfs/ea.c:138
Read of size 1 at addr ffff888073c708a4 by task syz.5.103/6308
CPU: 1 UID: 0 PID: 6308 Comm: syz.5.103 Tainted: G B syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x13d/0x4b0 mm/kasan/report.c:482
kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
ea_valuelen fs/hpfs/hpfs_fn.h:147 [inline]
next_ea fs/hpfs/hpfs_fn.h:152 [inline]
hpfs_get_ea+0xae2/0xc20 fs/hpfs/ea.c:138
hpfs_read_inode+0x706/0x11c0 fs/hpfs/inode.c:63
hpfs_fill_super+0x1222/0x1f50 fs/hpfs/super.c:652
get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
vfs_get_tree+0x92/0x320 fs/super.c:1881
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
do_mount fs/namespace.c:4350 [inline]
__do_sys_mount fs/namespace.c:4563 [inline]
__se_sys_mount fs/namespace.c:4540 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:4540
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2ff23aa77a
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f2ff321cee0 RCX: 00007f2ff23aa77a
RDX: 000020000000a000 RSI: 0000200000009ec0 RDI: 00007f2ff321cea0
RBP: 000020000000a000 R08: 00007f2ff321cee0 R09: 0000000003200041
R10: 0000000003200041 R11: 0000000000000246 R12: 0000200000009ec0
R13: 00007f2ff321cea0 R14: 0000000000009e25 R15: 0000200000000300
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x274 pfn:0x73c70
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
__alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492
alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513
folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2532
shmem_alloc_folio+0x135/0x160 mm/shmem.c:2184
shmem_alloc_and_add_folio+0x371/0xd40 mm/shmem.c:2226
shmem_get_folio_gfp+0x758/0x1af0 mm/shmem.c:2780
shmem_get_folio mm/shmem.c:2879 [inline]
shmem_write_begin+0x1a4/0x420 mm/shmem.c:3514
generic_perform_write+0x292/0xa40 mm/filemap.c:4392
shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3689
new_sync_write fs/read_write.c:575 [inline]
vfs_write+0x6af/0x1040 fs/read_write.c:667
ksys_write+0x12a/0x250 fs/read_write.c:719
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5858 tgid 5858 ts 141683319294 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
free_unref_folios+0xa62/0x17c0 mm/page_alloc.c:3018
folios_put_refs+0x585/0xaa0 mm/folio.c:1039
folio_batch_release include/linux/folio_batch.h:101 [inline]
shmem_undo_range+0x707/0x1640 mm/shmem.c:1377
shmem_truncate_range mm/shmem.c:1513 [inline]
shmem_evict_inode+0x3b1/0xc10 mm/shmem.c:1657
evict+0x403/0xb90 fs/inode.c:829
iput_final fs/inode.c:2036 [inline]
iput.part.0+0x989/0x1050 fs/inode.c:2085
iput+0x30/0x40 fs/inode.c:2051
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
dentry_kill+0x25d/0xca0 fs/dcache.c:857
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
dput+0x1f/0x30 fs/dcache.c:1068
__fput+0x515/0xb50 fs/file_table.c:520
task_work_run+0x150/0x240 kernel/task_work.c:233
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:70 [inline]
exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline]
do_syscall_64+0x661/0x7b0 arch/x86/entry/syscall_64.c:107
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
ffff888073c70780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888073c70800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888073c70880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888073c70900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888073c70980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
==================================================================
BUG: KASAN: use-after-free in ea_valuelen fs/hpfs/hpfs_fn.h:147 [inline]
BUG: KASAN: use-after-free in next_ea fs/hpfs/hpfs_fn.h:152 [inline]
BUG: KASAN: use-after-free in hpfs_get_ea+0xafa/0xc20 fs/hpfs/ea.c:138
Read of size 1 at addr ffff888073c708a5 by task syz.5.103/6308
CPU: 1 UID: 0 PID: 6308 Comm: syz.5.103 Tainted: G B syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x13d/0x4b0 mm/kasan/report.c:482
kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
ea_valuelen fs/hpfs/hpfs_fn.h:147 [inline]
next_ea fs/hpfs/hpfs_fn.h:152 [inline]
hpfs_get_ea+0xafa/0xc20 fs/hpfs/ea.c:138
hpfs_read_inode+0x706/0x11c0 fs/hpfs/inode.c:63
hpfs_fill_super+0x1222/0x1f50 fs/hpfs/super.c:652
get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
vfs_get_tree+0x92/0x320 fs/super.c:1881
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
do_mount fs/namespace.c:4350 [inline]
__do_sys_mount fs/namespace.c:4563 [inline]
__se_sys_mount fs/namespace.c:4540 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:4540
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2ff23aa77a
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f2ff321cee0 RCX: 00007f2ff23aa77a
RDX: 000020000000a000 RSI: 0000200000009ec0 RDI: 00007f2ff321cea0
RBP: 000020000000a000 R08: 00007f2ff321cee0 R09: 0000000003200041
R10: 0000000003200041 R11: 0000000000000246 R12: 0000200000009ec0
R13: 00007f2ff321cea0 R14: 0000000000009e25 R15: 0000200000000300
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x274 pfn:0x73c70
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
vfs_get_tree+0x92/0x320 fs/super.c:1881
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x274 pfn:0x73c70
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:70 [inline]
exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x13d/0x4b0 mm/kasan/report.c:482
==================================================================
BUG: KASAN: use-after-free in next_ea fs/hpfs/hpfs_fn.h:152 [inline]
BUG: KASAN: use-after-free in hpfs_get_ea+0xb0d/0xc20 fs/hpfs/ea.c:138
shmem_alloc_and_add_folio+0x371/0xd40 mm/shmem.c:2226
ffff888073c70800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
free_unref_folios+0xa62/0x17c0 mm/page_alloc.c:3018
folios_put_refs+0x585/0xaa0 mm/folio.c:1039
folios_put_refs+0x585/0xaa0 mm/folio.c:1039
folio_batch_release include/linux/folio_batch.h:101 [inline]
shmem_undo_range+0x707/0x1640 mm/shmem.c:1377
RBP: 000020000000a000 R08: 00007f2ff321cee0 R09: 0000000003200041
folios_put_refs+0x585/0xaa0 mm/folio.c:1039
folio_batch_release include/linux/folio_batch.h:101 [inline]
shmem_undo_range+0x707/0x1640 mm/shmem.c:1377
folios_put_refs+0x585/0xaa0 mm/folio.c:1039
folio_batch_release include/linux/folio_batch.h:101 [inline]
shmem_undo_range+0x707/0x1640 mm/shmem.c:1377
==================================================================
folio_batch_release include/linux/folio_batch.h:101 [inline]
shmem_undo_range+0x707/0x1640 mm/shmem.c:1377
shmem_truncate_range mm/shmem.c:1513 [inline]
shmem_evict_inode+0x3b1/0xc10 mm/shmem.c:1657
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x13d/0x4b0 mm/kasan/report.c:482
shmem_truncate_range mm/shmem.c:1513 [inline]
shmem_evict_inode+0x3b1/0xc10 mm/shmem.c:1657
evict+0x403/0xb90 fs/inode.c:829
shmem_truncate_range mm/shmem.c:1513 [inline]
shmem_evict_inode+0x3b1/0xc10 mm/shmem.c:1657
evict+0x403/0xb90 fs/inode.c:829
iput_final fs/inode.c:2036 [inline]
iput.part.0+0x989/0x1050 fs/inode.c:2085
iput+0x30/0x40 fs/inode.c:2051
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
dentry_kill+0x25d/0xca0 fs/dcache.c:857
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
Tainted: [B]=BAD_PAGE
folio_batch_release include/linux/folio_batch.h:101 [inline]
shmem_undo_range+0x707/0x1640 mm/shmem.c:1377
shmem_truncate_range mm/shmem.c:1513 [inline]
shmem_evict_inode+0x3b1/0xc10 mm/shmem.c:1657
evict+0x403/0xb90 fs/inode.c:829
iput_final fs/inode.c:2036 [inline]
iput.part.0+0x989/0x1050 fs/inode.c:2085
shmem_truncate_range mm/shmem.c:1513 [inline]
shmem_evict_inode+0x3b1/0xc10 mm/shmem.c:1657
evict+0x403/0xb90 fs/inode.c:829
iput_final fs/inode.c:2036 [inline]
iput.part.0+0x989/0x1050 fs/inode.c:2085
iput+0x30/0x40 fs/inode.c:2051
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3689
new_sync_write fs/read_write.c:575 [inline]
vfs_write+0x6af/0x1040 fs/read_write.c:667
ksys_write+0x12a/0x250 fs/read_write.c:719
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3689
new_sync_write fs/read_write.c:575 [inline]
vfs_write+0x6af/0x1040 fs/read_write.c:667
ksys_write+0x12a/0x250 fs/read_write.c:719
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x274 pfn:0x73c70
new_sync_write fs/read_write.c:575 [inline]
vfs_write+0x6af/0x1040 fs/read_write.c:667
ksys_write+0x12a/0x250 fs/read_write.c:719
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
RAX: ffffffffffffffda RBX: 00007f2ff321cee0 RCX: 00007f2ff23aa77a
new_sync_write fs/read_write.c:575 [inline]
vfs_write+0x6af/0x1040 fs/read_write.c:667
ksys_write+0x12a/0x250 fs/read_write.c:719
ksys_write+0x12a/0x250 fs/read_write.c:719
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
ffff888073c70900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
hpfs_fill_super+0x1222/0x1f50 fs/hpfs/super.c:652
>ffff888073c70880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x274 pfn:0x73c70
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
Tainted: [B]=BAD_PAGE
vfs_get_tree+0x92/0x320 fs/super.c:1881
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
vfs_get_tree+0x92/0x320 fs/super.c:1881
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
vfs_get_tree+0x92/0x320 fs/super.c:1881
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
The buggy address belongs to the physical page:
dput+0x1f/0x30 fs/dcache.c:1068
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
free_unref_folios+0xa62/0x17c0 mm/page_alloc.c:3018
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
iput_final fs/inode.c:2036 [inline]
iput.part.0+0x989/0x1050 fs/inode.c:2085
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
vfs_get_tree+0x92/0x320 fs/super.c:1881
vfs_get_tree+0x92/0x320 fs/super.c:1881
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
hpfs_get_ea+0x1fa/0xc20 fs/hpfs/ea.c:139
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
shmem_get_folio mm/shmem.c:2879 [inline]
shmem_write_begin+0x1a4/0x420 mm/shmem.c:3514
get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
==================================================================
BUG: KASAN: use-after-free in ea_valuelen fs/hpfs/hpfs_fn.h:147 [inline]
BUG: KASAN: use-after-free in next_ea fs/hpfs/hpfs_fn.h:152 [inline]
BUG: KASAN: use-after-free in hpfs_get_ea+0xae2/0xc20 fs/hpfs/ea.c:138
==================================================================
==================================================================
==================================================================
==================================================================
==================================================================
==================================================================
ffff888073c70780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
ffff888073c70980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
==================================================================
ffff888073c70980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
==================================================================
ffff888073c70a00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
iput+0x30/0x40 fs/inode.c:2051
new_sync_write fs/read_write.c:575 [inline]
vfs_write+0x6af/0x1040 fs/read_write.c:667
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
ffff888073c70880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Read of size 1 at addr ffff888073c70907 by task syz.5.103/6308
__fput+0x515/0xb50 fs/file_table.c:520
__alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492
==================================================================
__alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492
alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513
__alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492
alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513
alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513
shmem_truncate_range mm/shmem.c:1513 [inline]
shmem_evict_inode+0x3b1/0xc10 mm/shmem.c:1657
alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513
folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2532
alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513
folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2532
alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513
folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2532
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
Tainted: [B]=BAD_PAGE
page_owner tracks the page as freed
iput+0x30/0x40 fs/inode.c:2051
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
task_work_run+0x150/0x240 kernel/task_work.c:233
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
folio_batch_release include/linux/folio_batch.h:101 [inline]
shmem_undo_range+0x707/0x1640 mm/shmem.c:1377
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
ffff888073c70a00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
Read of size 1 at addr ffff888073c70928 by task syz.5.103/6308
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
shmem_alloc_folio+0x135/0x160 mm/shmem.c:2184
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
__alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
__alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492
alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513
folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2532
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
__alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492
alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513
generic_perform_write+0x292/0xa40 mm/filemap.c:4392
iput+0x30/0x40 fs/inode.c:2051
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
dentry_kill+0x25d/0xca0 fs/dcache.c:857
dentry_kill+0x25d/0xca0 fs/dcache.c:857
__fput+0x515/0xb50 fs/file_table.c:520
dentry_kill+0x25d/0xca0 fs/dcache.c:857
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
hpfs_get_ea+0x1fa/0xc20 fs/hpfs/ea.c:139
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
dentry_kill+0x25d/0xca0 fs/dcache.c:857
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
dentry_kill+0x25d/0xca0 fs/dcache.c:857
dentry_kill+0x25d/0xca0 fs/dcache.c:857
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
dput+0x1f/0x30 fs/dcache.c:1068
hpfs_read_inode+0x706/0x11c0 fs/hpfs/inode.c:63
dentry_kill+0x25d/0xca0 fs/dcache.c:857
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
dput+0x1f/0x30 fs/dcache.c:1068
dentry_kill+0x25d/0xca0 fs/dcache.c:857
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
dput+0x1f/0x30 fs/dcache.c:1068
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
dput+0x1f/0x30 fs/dcache.c:1068
__fput+0x515/0xb50 fs/file_table.c:520
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
dput+0x1f/0x30 fs/dcache.c:1068
dput+0x1f/0x30 fs/dcache.c:1068
__fput+0x515/0xb50 fs/file_table.c:520
ffff888073c70980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
dput+0x1f/0x30 fs/dcache.c:1068
__fput+0x515/0xb50 fs/file_table.c:520
ffff888073c70a00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
dput+0x1f/0x30 fs/dcache.c:1068
__fput+0x515/0xb50 fs/file_table.c:520
task_work_run+0x150/0x240 kernel/task_work.c:233
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:70 [inline]
exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
__fput+0x515/0xb50 fs/file_table.c:520
task_work_run+0x150/0x240 kernel/task_work.c:233
task_work_run+0x150/0x240 kernel/task_work.c:233
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:70 [inline]
exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101
task_work_run+0x150/0x240 kernel/task_work.c:233
==================================================================
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:70 [inline]
exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline]
do_syscall_64+0x661/0x7b0 arch/x86/entry/syscall_64.c:107
entry_SYSCALL_64_after_hwframe+0x77/0x7f
hpfs_read_inode+0x706/0x11c0 fs/hpfs/inode.c:63
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline]
do_syscall_64+0x661/0x7b0 arch/x86/entry/syscall_64.c:107
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Call Trace:
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
ffff888073c70800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
ffff888073c70800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Memory state around the buggy address:
ffff888073c70800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Memory state around the buggy address:
ffff888073c70800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
page last free pid 5858 tgid 5858 ts 141683319294 stack trace:
Memory state around the buggy address:
ffff888073c70800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888073c70880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
==================================================================
Memory state around the buggy address:
Memory state around the buggy address:
entry_SYSCALL_64_after_hwframe+0x77/0x7f
ffff888073c70880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline]
do_syscall_64+0x661/0x7b0 arch/x86/entry/syscall_64.c:107
entry_SYSCALL_64_after_hwframe+0x77/0x7f
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline]
do_syscall_64+0x661/0x7b0 arch/x86/entry/syscall_64.c:107
entry_SYSCALL_64_after_hwframe+0x77/0x7f
ffff888073c70880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:70 [inline]
exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline]
do_syscall_64+0x661/0x7b0 arch/x86/entry/syscall_64.c:107
entry_SYSCALL_64_after_hwframe+0x77/0x7f
task_work_run+0x150/0x240 kernel/task_work.c:233
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:70 [inline]
exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline]
do_syscall_64+0x661/0x7b0 arch/x86/entry/syscall_64.c:107
page dumped because: kasan: bad access detected
__fput+0x515/0xb50 fs/file_table.c:520
page dumped because: kasan: bad access detected
dput+0x1f/0x30 fs/dcache.c:1068
__fput+0x515/0xb50 fs/file_table.c:520
task_work_run+0x150/0x240 kernel/task_work.c:233
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2532
entry_SYSCALL_64_after_hwframe+0x77/0x7f
alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513
alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513
folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2532
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
free_unref_folios+0xa62/0x17c0 mm/page_alloc.c:3018
__alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492
alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513
folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2532
shmem_alloc_folio+0x135/0x160 mm/shmem.c:2184
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
new_sync_write fs/read_write.c:575 [inline]
vfs_write+0x6af/0x1040 fs/read_write.c:667
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
ffff888073c70980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
Tainted: [B]=BAD_PAGE
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
Tainted: [B]=BAD_PAGE
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page_owner tracks the page as freed
page dumped because: kasan: bad access detected
ffff888073c70980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline]
do_syscall_64+0x661/0x7b0 arch/x86/entry/syscall_64.c:107
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
Read of size 1 at addr ffff888073c7097b by task syz.5.103/6308
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
>ffff888073c70900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x274 pfn:0x73c70
page dumped because: kasan: bad access detected
shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3689
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page dumped because: kasan: bad access detected
kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page_owner tracks the page as freed
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
page last free pid 5858 tgid 5858 ts 141683319294 stack trace:
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
==================================================================
Call Trace:
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
RAX: ffffffffffffffda RBX: 00007f2ff321cee0 RCX: 00007f2ff23aa77a
do_mount fs/namespace.c:4350 [inline]
__do_sys_mount fs/namespace.c:4563 [inline]
__se_sys_mount fs/namespace.c:4540 [inline]
__x64_sys_mount+0x293/0x310 fs/namespace.c:4540
new_sync_write fs/read_write.c:575 [inline]
vfs_write+0x6af/0x1040 fs/read_write.c:667
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
free_unref_folios+0xa62/0x17c0 mm/page_alloc.c:3018
evict+0x403/0xb90 fs/inode.c:829
iput_final fs/inode.c:2036 [inline]
iput.part.0+0x989/0x1050 fs/inode.c:2085
iput+0x30/0x40 fs/inode.c:2051
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
evict+0x403/0xb90 fs/inode.c:829
iput_final fs/inode.c:2036 [inline]
iput.part.0+0x989/0x1050 fs/inode.c:2085
iput+0x30/0x40 fs/inode.c:2051
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
dentry_kill+0x25d/0xca0 fs/dcache.c:857
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
dput+0x1f/0x30 fs/dcache.c:1068
__fput+0x515/0xb50 fs/file_table.c:520
task_work_run+0x150/0x240 kernel/task_work.c:233
ffff888073c70a80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
iput_final fs/inode.c:2036 [inline]
iput.part.0+0x989/0x1050 fs/inode.c:2085
iput+0x30/0x40 fs/inode.c:2051
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
iput_final fs/inode.c:2036 [inline]
iput.part.0+0x989/0x1050 fs/inode.c:2085
page dumped because: kasan: bad access detected
Tainted: [B]=BAD_PAGE
iput+0x30/0x40 fs/inode.c:2051
hpfs_read_inode+0x706/0x11c0 fs/hpfs/inode.c:63
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
dentry_kill+0x25d/0xca0 fs/dcache.c:857
ffff888073c70a80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
dentry_kill+0x25d/0xca0 fs/dcache.c:857
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
dput+0x1f/0x30 fs/dcache.c:1068
__fput+0x515/0xb50 fs/file_table.c:520
task_work_run+0x150/0x240 kernel/task_work.c:233
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:70 [inline]
exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101
dentry_kill+0x25d/0xca0 fs/dcache.c:857
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
dput+0x1f/0x30 fs/dcache.c:1068
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
dput+0x1f/0x30 fs/dcache.c:1068
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
dput+0x1f/0x30 fs/dcache.c:1068
dput+0x1f/0x30 fs/dcache.c:1068
__fput+0x515/0xb50 fs/file_table.c:520
R13: 00007f2ff321cea0 R14: 0000000000009e25 R15: 0000200000000300
__fput+0x515/0xb50 fs/file_table.c:520
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
free_unref_folios+0xa62/0x17c0 mm/page_alloc.c:3018
__fput+0x515/0xb50 fs/file_table.c:520
task_work_run+0x150/0x240 kernel/task_work.c:233
hpfs_fill_super+0x1222/0x1f50 fs/hpfs/super.c:652
task_work_run+0x150/0x240 kernel/task_work.c:233
BUG: KASAN: use-after-free in ea_valuelen fs/hpfs/hpfs_fn.h:147 [inline]
BUG: KASAN: use-after-free in next_ea fs/hpfs/hpfs_fn.h:152 [inline]
BUG: KASAN: use-after-free in hpfs_get_ea+0xafa/0xc20 fs/hpfs/ea.c:138
iput_final fs/inode.c:2036 [inline]
iput.part.0+0x989/0x1050 fs/inode.c:2085
iput_final fs/inode.c:2036 [inline]
iput.part.0+0x989/0x1050 fs/inode.c:2085
iput+0x30/0x40 fs/inode.c:2051
RBP: 000020000000a000 R08: 00007f2ff321cee0 R09: 0000000003200041
page_owner tracks the page as freed
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
dentry_kill+0x25d/0xca0 fs/dcache.c:857
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
dput+0x1f/0x30 fs/dcache.c:1068
__fput+0x515/0xb50 fs/file_table.c:520
dentry_unlink_inode+0x403/0x4d0 fs/dcache.c:510
dentry_kill+0x25d/0xca0 fs/dcache.c:857
dentry_kill+0x25d/0xca0 fs/dcache.c:857
dentry_kill+0x25d/0xca0 fs/dcache.c:857
generic_perform_write+0x292/0xa40 mm/filemap.c:4392
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
ea_valuelen fs/hpfs/hpfs_fn.h:147 [inline]
next_ea fs/hpfs/hpfs_fn.h:152 [inline]
hpfs_get_ea+0xae2/0xc20 fs/hpfs/ea.c:138
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
__fput+0x515/0xb50 fs/file_table.c:520
hpfs_get_ea+0x1fa/0xc20 fs/hpfs/ea.c:139
__fput+0x515/0xb50 fs/file_table.c:520
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
__fput+0x515/0xb50 fs/file_table.c:520
task_work_run+0x150/0x240 kernel/task_work.c:233
task_work_run+0x150/0x240 kernel/task_work.c:233
ffff888073c70880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:70 [inline]
exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101
RIP: 0033:0x7f2ff23aa77a
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
__exit_to_user_mode_loop kernel/entry/common.c:70 [inline]
exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline]
do_syscall_64+0x661/0x7b0 arch/x86/entry/syscall_64.c:107
folio_batch_release include/linux/folio_batch.h:101 [inline]
shmem_undo_range+0x707/0x1640 mm/shmem.c:1377
shmem_truncate_range mm/shmem.c:1513 [inline]
shmem_evict_inode+0x3b1/0xc10 mm/shmem.c:1657
Call Trace:
generic_perform_write+0x292/0xa40 mm/filemap.c:4392
shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3689
dput+0x1f/0x30 fs/dcache.c:1068
shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3689
new_sync_write fs/read_write.c:575 [inline]
vfs_write+0x6af/0x1040 fs/read_write.c:667
shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3689
==================================================================
shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3689
new_sync_write fs/read_write.c:575 [inline]
vfs_write+0x6af/0x1040 fs/read_write.c:667
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x13d/0x4b0 mm/kasan/report.c:482
new_sync_write fs/read_write.c:575 [inline]
vfs_write+0x6af/0x1040 fs/read_write.c:667
ksys_write+0x12a/0x250 fs/read_write.c:719
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1402 [inline]
free_unref_folios+0xa62/0x17c0 mm/page_alloc.c:3018
new_sync_write fs/read_write.c:575 [inline]
vfs_write+0x6af/0x1040 fs/read_write.c:667
ksys_write+0x12a/0x250 fs/read_write.c:719
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
ksys_write+0x12a/0x250 fs/read_write.c:719
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
new_sync_write fs/read_write.c:575 [inline]
vfs_write+0x6af/0x1040 fs/read_write.c:667
ksys_write+0x12a/0x250 fs/read_write.c:719
shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3689
page_owner tracks the page as freed
shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3689
generic_perform_write+0x292/0xa40 mm/filemap.c:4392
page last free pid 5858 tgid 5858 ts 141683319294 stack trace:
generic_perform_write+0x292/0xa40 mm/filemap.c:4392
shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3689
new_sync_write fs/read_write.c:575 [inline]
vfs_write+0x6af/0x1040 fs/read_write.c:667
BUG: KASAN: use-after-free in strcmp+0xa7/0xb0 lib/string.c:265
shmem_get_folio mm/shmem.c:2879 [inline]
shmem_write_begin+0x1a4/0x420 mm/shmem.c:3514
shmem_get_folio_gfp+0x758/0x1af0 mm/shmem.c:2780
shmem_alloc_and_add_folio+0x371/0xd40 mm/shmem.c:2226
R10: 0000000003200041 R11: 0000000000000246 R12: 0000200000009ec0
shmem_alloc_folio+0x135/0x160 mm/shmem.c:2184
shmem_alloc_and_add_folio+0x371/0xd40 mm/shmem.c:2226
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2532
vfs_get_tree+0x92/0x320 fs/super.c:1881
alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513
alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513
__alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
__alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
__alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
__alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
__alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492
folio_batch_release include/linux/folio_batch.h:101 [inline]
shmem_undo_range+0x707/0x1640 mm/shmem.c:1377
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
RAX: ffffffffffffffda RBX: 00007f2ff321cee0 RCX: 00007f2ff23aa77a
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
page dumped because: kasan: bad access detected
BUG: KASAN: use-after-free in ea_valuelen fs/hpfs/hpfs_fn.h:147 [inline]
BUG: KASAN: use-after-free in next_ea fs/hpfs/hpfs_fn.h:152 [inline]
BUG: KASAN: use-after-free in hpfs_get_ea+0xafa/0xc20 fs/hpfs/ea.c:138
page dumped because: kasan: bad access detected
finish_dput fs/dcache.c:1032 [inline]
dput.part.0+0xd2/0x240 fs/dcache.c:1073
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
RDX: 000020000000a000 RSI: 0000200000009ec0 RDI: 00007f2ff321cea0
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
ffff888073c70900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x274 pfn:0x73c70
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
RAX: ffffffffffffffda RBX: 00007f2ff321cee0 RCX: 00007f2ff23aa77a
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x274 pfn:0x73c70
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
Call Trace:
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
dput+0x1f/0x30 fs/dcache.c:1068
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3689
raw: 00fff00000000000 ffffea0001cf1bc8 ffffea0001cf1c48 0000000000000000
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
fc_mount fs/namespace.c:1282 [inline]
do_new_mount_fc fs/namespace.c:3910 [inline]
do_new_mount fs/namespace.c:3986 [inline]
path_mount+0x7d0/0x2850 fs/namespace.c:4337
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page dumped because: kasan: bad access detected
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
page dumped because: kasan: bad access detected
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page_owner tracks the page as freed
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 6193, tgid 6190 (syz.4.78), ts 139660787732
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x13d/0x4b0 mm/kasan/report.c:482
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1860
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
__alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5492
^
folios_put_refs+0x585/0xaa0 mm/folio.c:1039
BUG: KASAN: use-after-free in ea_valuelen fs/hpfs/hpfs_fn.h:147 [inline]
BUG: KASAN: use-after-free in next_ea fs/hpfs/hpfs_fn.h:152 [inline]
BUG: KASAN: use-after-free in hpfs_get_ea+0xae2/0xc20 fs/hpfs/ea.c:138
raw: 0000000000000274 0000000000000000 00000000ffffffff 0000000000000000
BUG: KASAN: use-after-free in strcmp+0xa7/0xb0 lib/string.c:265
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
R13: 00007f2ff321cea0 R14: 0000000000009e25 R15: 0000200000000300
entry_SYSCALL_64_after_hwframe+0x77/0x7f
BUG: KASAN: use-after-free in ea_valuelen fs/hpfs/hpfs_fn.h:147 [inline]
BUG: KASAN: use-after-free in next_ea fs/hpfs/hpfs_fn.h:152 [inline]
BUG: KASAN: use-after-free in hpfs_get_ea+0xafa/0xc20 fs/hpfs/ea.c:138
ea_valuelen fs/hpfs/hpfs_fn.h:147 [inline]
next_ea fs/hpfs/hpfs_fn.h:152 [inline]
hpfs_get_ea+0xafa/0xc20 fs/hpfs/ea.c:138
R10: 0000000003200041 R11: 0000000000000246 R12: 0000200000009ec0
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x274 pfn:0x73c70
prep_new_page mm/page_alloc.c:1868 [inline]
get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3950
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2ff23aa77a
Call Trace:
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2ff23aa77a
dentry_kill+0x25d/0xca0 fs/dcache.c:857
RIP: 0033:0x7f2ff23aa77a
RIP: 0033:0x7f2ff23aa77a
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3689
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f2ff321cee0 RCX: 00007f2ff23aa77a
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f2ff321cee0 RCX: 00007f2ff23aa77a
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RDX: 000020000000a000 RSI: 0000200000009ec0 RDI: 00007f2ff321cea0
RSP: 002b:00007f2ff321ce58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
----------------
Code disassembly (best guess):
0: 48 c7 c2 e8 ff ff ff mov $0xffffffffffffffe8,%rdx
7: f7 d8 neg %eax
9: 64 89 02 mov %eax,%fs:(%rdx)
c: b8 ff ff ff ff mov $0xffffffff,%eax
11: c3 ret
12: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1)
19: 00 00 00
1c: 0f 1f 40 00 nopl 0x0(%rax)
20: 49 89 ca mov %rcx,%r10
23: b8 a5 00 00 00 mov $0xa5,%eax
28: 0f 05 syscall
* 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction
30: 73 01 jae 0x33
32: c3 ret
33: 48 c7 c1 e8 ff ff ff mov $0xffffffffffffffe8,%rcx
3a: f7 d8 neg %eax
3c: 64 89 01 mov %eax,%fs:(%rcx)
3f: 48 rex.W