Hello,
syzbot found the following issue on:
HEAD commit: 4931e0e1673d Linux 6.1.170
git tree: linux-6.1.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=17d37b48580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=f0605c5af04d7603
dashboard link:
https://syzkaller.appspot.com/bug?extid=2817accd49eceb02b321
compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/4c1b2399e351/disk-4931e0e1.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/feb034d7563a/vmlinux-4931e0e1.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/424a14bbc862/bzImage-4931e0e1.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+2817ac...@syzkaller.appspotmail.com
loop1: detected capacity change from 0 to 64
==================================================================
BUG: KASAN: use-after-free in reiserfs_write_lock+0x58/0xd0 fs/reiserfs/lock.c:26
Read of size 8 at addr ffff888051ac0ab8 by task syz.1.8850/24438
CPU: 1 PID: 24438 Comm: syz.1.8850 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
Call Trace:
<TASK>
dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106
print_address_description mm/kasan/report.c:316 [inline]
print_report+0xa8/0x210 mm/kasan/report.c:420
kasan_report+0x10b/0x140 mm/kasan/report.c:524
reiserfs_write_lock+0x58/0xd0 fs/reiserfs/lock.c:26
reiserfs_lookup+0x18a/0x480 fs/reiserfs/namei.c:364
lookup_one_qstr_excl+0x10e/0x240 fs/namei.c:1613
do_renameat2+0x4bf/0xce0 fs/namei.c:4985
__do_sys_rename fs/namei.c:5081 [inline]
__se_sys_rename fs/namei.c:5079 [inline]
__x64_sys_rename+0x82/0x90 fs/namei.c:5079
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f0ed479cdd9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0ed565c028 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f0ed4a15fa0 RCX: 00007f0ed479cdd9
RDX: 0000000000000000 RSI: 0000200000000a00 RDI: 00002000000009c0
RBP: 00007f0ed4832d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0ed4a16038 R14: 00007f0ed4a15fa0 R15: 00007ffd99747148
</TASK>
Allocated by task 4477:
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:53
____kasan_kmalloc mm/kasan/common.c:375 [inline]
__kasan_kmalloc+0x8e/0xa0 mm/kasan/common.c:384
kasan_kmalloc include/linux/kasan.h:211 [inline]
__do_kmalloc_node mm/slab_common.c:936 [inline]
__kmalloc+0xb0/0x240 mm/slab_common.c:949
kmalloc include/linux/slab.h:568 [inline]
kzalloc include/linux/slab.h:699 [inline]
cfg80211_inform_single_bss_frame_data net/wireless/scan.c:2478 [inline]
cfg80211_inform_bss_frame_data+0x69d/0x1390 net/wireless/scan.c:2539
ieee80211_bss_info_update+0x738/0xc80 net/mac80211/scan.c:190
ieee80211_rx_bss_info net/mac80211/ibss.c:1120 [inline]
ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1609 [inline]
ieee80211_ibss_rx_queued_mgmt+0x189d/0x2cd0 net/mac80211/ibss.c:1638
ieee80211_iface_process_skb net/mac80211/iface.c:1679 [inline]
ieee80211_iface_work+0x726/0xc80 net/mac80211/iface.c:1733
cfg80211_wiphy_work+0x221/0x260 net/wireless/core.c:433
process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292
worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439
kthread+0x29d/0x330 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Freed by task 6658:
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:53
kasan_save_free_info+0x2d/0x50 mm/kasan/generic.c:516
____kasan_slab_free+0x126/0x1e0 mm/kasan/common.c:237
kasan_slab_free include/linux/kasan.h:177 [inline]
slab_free_hook mm/slub.c:1729 [inline]
slab_free_freelist_hook+0x131/0x1a0 mm/slub.c:1755
slab_free mm/slub.c:3687 [inline]
kmem_cache_free_bulk+0x348/0x460 mm/slub.c:3805
kfree_bulk include/linux/slab.h:475 [inline]
kfree_rcu_work+0x33f/0x890 kernel/rcu/tree.c:3091
process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292
worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439
kthread+0x29d/0x330 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Last potentially related work creation:
kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46
__kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486
kvfree_call_rcu+0x103/0x870 kernel/rcu/tree.c:3405
cfg80211_update_known_bss+0x178/0xa20 net/wireless/scan.c:-1
cfg80211_bss_update+0x15f/0x2250 net/wireless/scan.c:1847
cfg80211_inform_single_bss_frame_data net/wireless/scan.c:2506 [inline]
cfg80211_inform_bss_frame_data+0x9ec/0x1390 net/wireless/scan.c:2539
ieee80211_bss_info_update+0x738/0xc80 net/mac80211/scan.c:190
ieee80211_rx_bss_info net/mac80211/ibss.c:1120 [inline]
ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1609 [inline]
ieee80211_ibss_rx_queued_mgmt+0x189d/0x2cd0 net/mac80211/ibss.c:1638
ieee80211_iface_process_skb net/mac80211/iface.c:1679 [inline]
ieee80211_iface_work+0x726/0xc80 net/mac80211/iface.c:1733
cfg80211_wiphy_work+0x221/0x260 net/wireless/core.c:433
process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292
worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439
kthread+0x29d/0x330 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Second to last potentially related work creation:
kasan_save_stack+0x3a/0x60 mm/kasan/common.c:46
__kasan_record_aux_stack+0xb2/0xc0 mm/kasan/generic.c:486
kvfree_call_rcu+0x103/0x870 kernel/rcu/tree.c:3405
cfg80211_update_known_bss+0x178/0xa20 net/wireless/scan.c:-1
cfg80211_bss_update+0x15f/0x2250 net/wireless/scan.c:1847
cfg80211_inform_single_bss_frame_data net/wireless/scan.c:2506 [inline]
cfg80211_inform_bss_frame_data+0x9ec/0x1390 net/wireless/scan.c:2539
ieee80211_bss_info_update+0x738/0xc80 net/mac80211/scan.c:190
ieee80211_rx_bss_info net/mac80211/ibss.c:1120 [inline]
ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1609 [inline]
ieee80211_ibss_rx_queued_mgmt+0x189d/0x2cd0 net/mac80211/ibss.c:1638
ieee80211_iface_process_skb net/mac80211/iface.c:1679 [inline]
ieee80211_iface_work+0x726/0xc80 net/mac80211/iface.c:1733
cfg80211_wiphy_work+0x221/0x260 net/wireless/core.c:433
process_one_work+0x8a2/0x1160 kernel/workqueue.c:2292
worker_thread+0xaa2/0x1270 kernel/workqueue.c:2439
kthread+0x29d/0x330 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
The buggy address belongs to the object at ffff888051ac0a80
which belongs to the cache kmalloc-96 of size 96
The buggy address is located 56 bytes inside of
96-byte region [ffff888051ac0a80, ffff888051ac0ae0)
The buggy address belongs to the physical page:
page:ffffea000146b000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x51ac0
flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000200 0000000000000000 dead000000000001 ffff888017441780
raw: 0000000000000000 0000000000200020 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 4259, tgid 4259 (kworker/1:3), ts 80683118742, free_ts 23264687073
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2559
prep_new_page mm/page_alloc.c:2566 [inline]
get_page_from_freelist+0x1a1e/0x1ab0 mm/page_alloc.c:4357
__alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5657
__alloc_pages_node include/linux/gfp.h:237 [inline]
alloc_slab_page+0x4f/0x160 mm/slub.c:1801
allocate_slab mm/slub.c:1944 [inline]
new_slab+0x87/0x2c0 mm/slub.c:1997
___slab_alloc+0xbc6/0x1240 mm/slub.c:3154
__slab_alloc mm/slub.c:3240 [inline]
slab_alloc_node mm/slub.c:3325 [inline]
__kmem_cache_alloc_node+0x1a0/0x260 mm/slub.c:3398
__do_kmalloc_node mm/slab_common.c:935 [inline]
__kmalloc_node+0xa0/0x240 mm/slab_common.c:943
kmalloc_array_node include/linux/slab.h:676 [inline]
kcalloc_node include/linux/slab.h:681 [inline]
memcg_alloc_slab_cgroups+0x83/0x120 mm/memcontrol.c:2889
account_slab mm/slab.h:635 [inline]
allocate_slab mm/slub.c:1962 [inline]
new_slab+0xc3/0x2c0 mm/slub.c:1997
___slab_alloc+0xbc6/0x1240 mm/slub.c:3154
__slab_alloc mm/slub.c:3240 [inline]
slab_alloc_node mm/slub.c:3325 [inline]
slab_alloc mm/slub.c:3367 [inline]
__kmem_cache_alloc_lru mm/slub.c:3374 [inline]
kmem_cache_alloc+0x1b7/0x2f0 mm/slub.c:3383
dst_alloc+0x101/0x160 net/core/dst.c:88
ip6_dst_alloc net/ipv6/route.c:345 [inline]
icmp6_dst_alloc+0x7f/0x460 net/ipv6/route.c:3309
mld_sendpack+0x703/0xdc0 net/ipv6/mcast.c:1814
mld_send_cr net/ipv6/mcast.c:2126 [inline]
mld_ifc_work+0x836/0xb40 net/ipv6/mcast.c:2658
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1486 [inline]
free_pcp_prepare mm/page_alloc.c:1536 [inline]
free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3413
free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3508
free_contig_range+0x9d/0x150 mm/page_alloc.c:9625
destroy_args+0xf0/0xa0a mm/debug_vm_pgtable.c:1031
debug_vm_pgtable+0x33c/0x38e mm/debug_vm_pgtable.c:1359
do_one_initcall+0x26a/0x840 init/main.c:1310
do_initcall_level+0x137/0x1e4 init/main.c:1383
do_initcalls+0x4b/0x8a init/main.c:1399
kernel_init_freeable+0x415/0x5be init/main.c:1638
kernel_init+0x19/0x1b0 init/main.c:1526
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Memory state around the buggy address:
ffff888051ac0980: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
ffff888051ac0a00: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc
>ffff888051ac0a80: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
^
ffff888051ac0b00: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
ffff888051ac0b80: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
==================================================================
---
This report is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup