[v6.1] KASAN: use-after-free Read in ocfs2_lock_global_qf

5 views
Skip to first unread message

syzbot

unread,
Jan 12, 2025, 8:08:20 PM1/12/25
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c63962be84ef Linux 6.1.124
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=123fecb0580000
kernel config: https://syzkaller.appspot.com/x/.config?x=b61d63ebcdeb2b69
dashboard link: https://syzkaller.appspot.com/bug?extid=8c201eec36608f8c3e19
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/def628dfde4b/disk-c63962be.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/19bcf728ff3d/vmlinux-c63962be.xz
kernel image: https://storage.googleapis.com/syzbot-assets/dd43dbb11866/bzImage-c63962be.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+8c201e...@syzkaller.appspotmail.com

==================================================================
BUG: KASAN: use-after-free in ocfs2_lock_global_qf+0xb4/0x2a0 fs/ocfs2/quota_global.c:303
Read of size 8 at addr ffff8880743f3828 by task syz.2.324/5239

CPU: 1 PID: 5239 Comm: syz.2.324 Not tainted 6.1.124-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
print_address_description mm/kasan/report.c:316 [inline]
print_report+0x15f/0x4f0 mm/kasan/report.c:427
kasan_report+0x136/0x160 mm/kasan/report.c:531
ocfs2_lock_global_qf+0xb4/0x2a0 fs/ocfs2/quota_global.c:303
ocfs2_get_next_id+0x24d/0x7a0 fs/ocfs2/quota_global.c:888
dquot_get_next_dqblk+0x6e/0x3a0 fs/quota/dquot.c:2717
quota_getnextquota+0x2bc/0x6b0 fs/quota/quota.c:250
__do_sys_quotactl fs/quota/quota.c:960 [inline]
__se_sys_quotactl+0x2b1/0x770 fs/quota/quota.c:916
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fbedc985d29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fbedd7c9038 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3
RAX: ffffffffffffffda RBX: 00007fbedcb75fa0 RCX: 00007fbedc985d29
RDX: 000000000000ee01 RSI: 00000000200080c0 RDI: ffffffff80000901
RBP: 00007fbedca01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fbedcb75fa0 R15: 00007ffd93867108
</TASK>

Allocated by task 5239:
kasan_save_stack mm/kasan/common.c:45 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:383
kmalloc include/linux/slab.h:563 [inline]
ocfs2_local_read_info+0x1ea/0x19e0 fs/ocfs2/quota_local.c:696
dquot_load_quota_sb+0x754/0xb90 fs/quota/dquot.c:2470
dquot_load_quota_inode+0x318/0x600 fs/quota/dquot.c:2507
ocfs2_enable_quotas+0x221/0x440 fs/ocfs2/super.c:926
ocfs2_fill_super+0x4c6a/0x5720 fs/ocfs2/super.c:1139
mount_bdev+0x2c9/0x3f0 fs/super.c:1443
legacy_get_tree+0xeb/0x180 fs/fs_context.c:632
vfs_get_tree+0x88/0x270 fs/super.c:1573
do_new_mount+0x2ba/0xb40 fs/namespace.c:3056
do_mount fs/namespace.c:3399 [inline]
__do_sys_mount fs/namespace.c:3607 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3584
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2

Freed by task 5239:
kasan_save_stack mm/kasan/common.c:45 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516
____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236
kasan_slab_free include/linux/kasan.h:177 [inline]
slab_free_hook mm/slub.c:1724 [inline]
slab_free_freelist_hook mm/slub.c:1750 [inline]
slab_free mm/slub.c:3661 [inline]
__kmem_cache_free+0x25c/0x3c0 mm/slub.c:3674
ocfs2_local_free_info+0x813/0x990 fs/ocfs2/quota_local.c:869
dquot_disable+0x110f/0x1c50 fs/quota/dquot.c:2316
dquot_suspend include/linux/quotaops.h:85 [inline]
ocfs2_susp_quotas+0x247/0x340 fs/ocfs2/super.c:892
ocfs2_remount+0x56e/0xc30 fs/ocfs2/super.c:647
reconfigure_super+0x43a/0x870 fs/super.c:977
do_remount fs/namespace.c:2712 [inline]
path_mount+0xe69/0x1090 fs/namespace.c:3378
do_mount fs/namespace.c:3399 [inline]
__do_sys_mount fs/namespace.c:3607 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3584
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2

The buggy address belongs to the object at ffff8880743f3800
which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 40 bytes inside of
1024-byte region [ffff8880743f3800, ffff8880743f3c00)

The buggy address belongs to the physical page:
page:ffffea0001d0fc00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x743f0
head:ffffea0001d0fc00 order:3 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 0000000000000000 dead000000000001 ffff888017c41dc0
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4250, tgid 4250 (syz-executor), ts 73228348762, free_ts 73125480334
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2532
prep_new_page mm/page_alloc.c:2539 [inline]
get_page_from_freelist+0x3731/0x38d0 mm/page_alloc.c:4328
__alloc_pages+0x28d/0x770 mm/page_alloc.c:5605
alloc_slab_page+0x6a/0x150 mm/slub.c:1794
allocate_slab mm/slub.c:1939 [inline]
new_slab+0x84/0x2d0 mm/slub.c:1992
___slab_alloc+0xc20/0x1270 mm/slub.c:3180
__slab_alloc mm/slub.c:3279 [inline]
slab_alloc_node mm/slub.c:3364 [inline]
__kmem_cache_alloc_node+0x19f/0x260 mm/slub.c:3437
__do_kmalloc_node mm/slab_common.c:935 [inline]
__kmalloc_node_track_caller+0xa0/0x220 mm/slab_common.c:956
kmalloc_reserve net/core/skbuff.c:446 [inline]
__alloc_skb+0x135/0x670 net/core/skbuff.c:515
alloc_skb include/linux/skbuff.h:1271 [inline]
nlmsg_new include/net/netlink.h:991 [inline]
rtmsg_fib+0x140/0x620 net/ipv4/fib_semantics.c:522
fib_table_insert+0xfb6/0x1f20 net/ipv4/fib_trie.c:1404
fib_magic net/ipv4/fib_frontend.c:1104 [inline]
fib_add_ifaddr+0x47f/0x1730 net/ipv4/fib_frontend.c:1126
fib_inetaddr_event+0x12b/0x2b0 net/ipv4/fib_frontend.c:1440
notifier_call_chain kernel/notifier.c:87 [inline]
blocking_notifier_call_chain+0x104/0x1b0 kernel/notifier.c:382
__inet_insert_ifa+0x9cb/0xbd0 net/ipv4/devinet.c:569
inet_rtm_newaddr+0x8d3/0x18e0 net/ipv4/devinet.c:971
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1459 [inline]
free_pcp_prepare mm/page_alloc.c:1509 [inline]
free_unref_page_prepare+0x12a6/0x15b0 mm/page_alloc.c:3384
free_unref_page+0x33/0x3e0 mm/page_alloc.c:3479
qlink_free mm/kasan/quarantine.c:168 [inline]
qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187
kasan_quarantine_reduce+0x156/0x170 mm/kasan/quarantine.c:294
__kasan_slab_alloc+0x1f/0x70 mm/kasan/common.c:305
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737
slab_alloc_node mm/slub.c:3398 [inline]
kmem_cache_alloc_node+0x136/0x310 mm/slub.c:3443
__alloc_skb+0xde/0x670 net/core/skbuff.c:505
alloc_skb include/linux/skbuff.h:1271 [inline]
alloc_skb_with_frags+0xa4/0x740 net/core/skbuff.c:6162
sock_alloc_send_pskb+0x915/0xa50 net/core/sock.c:2750
unix_dgram_sendmsg+0x5b1/0x2050 net/unix/af_unix.c:1918
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg net/socket.c:730 [inline]
__sys_sendto+0x480/0x600 net/socket.c:2153
__do_sys_sendto net/socket.c:2165 [inline]
__se_sys_sendto net/socket.c:2161 [inline]
__x64_sys_sendto+0xda/0xf0 net/socket.c:2161
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2

Memory state around the buggy address:
ffff8880743f3700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff8880743f3780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff8880743f3800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff8880743f3880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff8880743f3900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================


---
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

syzbot

unread,
Jan 12, 2025, 8:15:21 PM1/12/25
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 4735586da88e Linux 5.15.176
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=151cbef8580000
kernel config: https://syzkaller.appspot.com/x/.config?x=8c3b695ffd9247a0
dashboard link: https://syzkaller.appspot.com/bug?extid=e51b9e99a48ccc64bdb3
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/44a9faa53b37/disk-4735586d.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/2e4ec21926b2/vmlinux-4735586d.xz
kernel image: https://storage.googleapis.com/syzbot-assets/f96f554b1d28/bzImage-4735586d.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+e51b9e...@syzkaller.appspotmail.com

==================================================================
BUG: KASAN: use-after-free in ocfs2_lock_global_qf+0xb4/0x2a0 fs/ocfs2/quota_global.c:303
Read of size 8 at addr ffff88807634f828 by task syz.1.17/4283

CPU: 1 PID: 4283 Comm: syz.1.17 Not tainted 5.15.176-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106
print_address_description+0x63/0x3b0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:434 [inline]
kasan_report+0x16b/0x1c0 mm/kasan/report.c:451
ocfs2_lock_global_qf+0xb4/0x2a0 fs/ocfs2/quota_global.c:303
ocfs2_get_next_id+0x21c/0x710 fs/ocfs2/quota_global.c:888
dquot_get_next_dqblk+0x6e/0x3a0 fs/quota/dquot.c:2710
quota_getnextquota+0x2bc/0x6b0 fs/quota/quota.c:249
__do_sys_quotactl fs/quota/quota.c:959 [inline]
__se_sys_quotactl+0x2b1/0x770 fs/quota/quota.c:915
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f538c59fd29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f538a410038 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3
RAX: ffffffffffffffda RBX: 00007f538c78ffa0 RCX: 00007f538c59fd29
RDX: 000000000000ee01 RSI: 00000000200080c0 RDI: ffffffff80000901
RBP: 00007f538c61bb08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f538c78ffa0 R15: 00007ffe35afd6e8
</TASK>

Allocated by task 4283:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:434 [inline]
____kasan_kmalloc+0xba/0xf0 mm/kasan/common.c:513
kasan_kmalloc include/linux/kasan.h:264 [inline]
kmem_cache_alloc_trace+0x143/0x290 mm/slub.c:3247
kmalloc include/linux/slab.h:591 [inline]
ocfs2_local_read_info+0x1ea/0x19e0 fs/ocfs2/quota_local.c:696
dquot_load_quota_sb+0x754/0xb90 fs/quota/dquot.c:2463
dquot_load_quota_inode+0x318/0x600 fs/quota/dquot.c:2500
ocfs2_enable_quotas+0x221/0x440 fs/ocfs2/super.c:927
ocfs2_fill_super+0x4423/0x5890 fs/ocfs2/super.c:1140
mount_bdev+0x2c9/0x3f0 fs/super.c:1400
legacy_get_tree+0xeb/0x180 fs/fs_context.c:611
vfs_get_tree+0x88/0x270 fs/super.c:1530
do_new_mount+0x2ba/0xb40 fs/namespace.c:3012
do_mount fs/namespace.c:3355 [inline]
__do_sys_mount fs/namespace.c:3563 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3540
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0

Freed by task 4283:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4b/0x80 mm/kasan/common.c:46
kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360
____kasan_slab_free+0xd8/0x120 mm/kasan/common.c:366
kasan_slab_free include/linux/kasan.h:230 [inline]
slab_free_hook mm/slub.c:1705 [inline]
slab_free_freelist_hook+0xdd/0x160 mm/slub.c:1731
slab_free mm/slub.c:3499 [inline]
kfree+0xf1/0x270 mm/slub.c:4559
ocfs2_local_free_info+0x813/0x990 fs/ocfs2/quota_local.c:869
dquot_disable+0x1111/0x1c60 fs/quota/dquot.c:2309
dquot_suspend include/linux/quotaops.h:84 [inline]
ocfs2_susp_quotas+0x247/0x340 fs/ocfs2/super.c:893
ocfs2_remount+0x56e/0xc30 fs/ocfs2/super.c:648
reconfigure_super+0x43a/0x870 fs/super.c:938
do_remount fs/namespace.c:2668 [inline]
path_mount+0xceb/0x10a0 fs/namespace.c:3334
do_mount fs/namespace.c:3355 [inline]
__do_sys_mount fs/namespace.c:3563 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3540
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0

The buggy address belongs to the object at ffff88807634f800
which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 40 bytes inside of
1024-byte region [ffff88807634f800, ffff88807634fc00)
The buggy address belongs to the page:
page:ffffea0001d8d200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x76348
head:ffffea0001d8d200 order:3 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888017441dc0
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1f2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_MEMALLOC|__GFP_HARDWALL), pid 154, ts 70628217250, free_ts 70622750620
prep_new_page mm/page_alloc.c:2426 [inline]
get_page_from_freelist+0x3b78/0x3d40 mm/page_alloc.c:4192
__alloc_pages+0x272/0x700 mm/page_alloc.c:5465
alloc_slab_page mm/slub.c:1775 [inline]
allocate_slab mm/slub.c:1912 [inline]
new_slab+0xbb/0x4b0 mm/slub.c:1975
___slab_alloc+0x6f6/0xe10 mm/slub.c:3008
__slab_alloc mm/slub.c:3095 [inline]
slab_alloc_node mm/slub.c:3186 [inline]
__kmalloc_node_track_caller+0x1f6/0x390 mm/slub.c:4958
kmalloc_reserve net/core/skbuff.c:356 [inline]
__alloc_skb+0x12c/0x590 net/core/skbuff.c:427
__netdev_alloc_skb+0xfb/0x4e0 net/core/skbuff.c:494
__netdev_alloc_skb_ip_align include/linux/skbuff.h:3021 [inline]
netdev_alloc_skb_ip_align include/linux/skbuff.h:3031 [inline]
batadv_iv_ogm_aggregate_new net/batman-adv/bat_iv_ogm.c:559 [inline]
batadv_iv_ogm_queue_add+0x6a0/0xbe0 net/batman-adv/bat_iv_ogm.c:671
batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:850 [inline]
batadv_iv_ogm_schedule+0xb7e/0x1000 net/batman-adv/bat_iv_ogm.c:869
batadv_iv_send_outstanding_bat_ogm_packet+0x6fa/0x800 net/batman-adv/bat_iv_ogm.c:1713
process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1340 [inline]
free_pcp_prepare mm/page_alloc.c:1391 [inline]
free_unref_page_prepare+0xc34/0xcf0 mm/page_alloc.c:3317
free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396
free_slab mm/slub.c:2015 [inline]
discard_slab mm/slub.c:2021 [inline]
__unfreeze_partials+0x1b7/0x210 mm/slub.c:2507
put_cpu_partial+0x132/0x1a0 mm/slub.c:2587
do_slab_free mm/slub.c:3487 [inline]
___cache_free+0xe3/0x100 mm/slub.c:3506
qlist_free_all+0x36/0x90 mm/kasan/quarantine.c:176
kasan_quarantine_reduce+0x162/0x180 mm/kasan/quarantine.c:283
__kasan_slab_alloc+0x2f/0xc0 mm/kasan/common.c:444
kasan_slab_alloc include/linux/kasan.h:254 [inline]
slab_post_alloc_hook+0x53/0x380 mm/slab.h:519
slab_alloc_node mm/slub.c:3220 [inline]
slab_alloc mm/slub.c:3228 [inline]
kmem_cache_alloc+0xf3/0x280 mm/slub.c:3233
ocfs2_alloc_inode+0x19/0x70 fs/ocfs2/super.c:550
alloc_inode fs/inode.c:236 [inline]
iget5_locked+0x9c/0x260 fs/inode.c:1238
ocfs2_iget+0x2c9/0x1f90 fs/ocfs2/inode.c:147
_ocfs2_get_system_file_inode fs/ocfs2/sysfile.c:142 [inline]
ocfs2_get_system_file_inode+0x353/0x7b0 fs/ocfs2/sysfile.c:112
ocfs2_init_local_system_inodes fs/ocfs2/super.c:488 [inline]
ocfs2_mount_volume+0x2f7/0x19e0 fs/ocfs2/super.c:1816
ocfs2_fill_super+0x34ec/0x5890 fs/ocfs2/super.c:1083

Memory state around the buggy address:
ffff88807634f700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88807634f780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88807634f800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88807634f880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88807634f900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb

syzbot

unread,
Jan 12, 2025, 8:31:21 PM1/12/25
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: c63962be84ef Linux 6.1.124
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12601cb0580000
kernel config: https://syzkaller.appspot.com/x/.config?x=b61d63ebcdeb2b69
dashboard link: https://syzkaller.appspot.com/bug?extid=8c201eec36608f8c3e19
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1452b1df980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16fcbef8580000
mounted in repro: https://storage.googleapis.com/syzbot-assets/b92fc9d3d09d/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+8c201e...@syzkaller.appspotmail.com

(syz-executor216,4244,1):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xb3775c19, computed 0x2dd1c265. Applying ECC.
(syz-executor216,4244,0):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xcfdff595, computed 0xefed4a20. Applying ECC.
JBD2: Ignoring recovery information on journal
ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode.
==================================================================
BUG: KASAN: use-after-free in ocfs2_lock_global_qf+0xb4/0x2a0 fs/ocfs2/quota_global.c:303
Read of size 8 at addr ffff888030c72028 by task syz-executor216/4244

CPU: 1 PID: 4244 Comm: syz-executor216 Not tainted 6.1.124-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
print_address_description mm/kasan/report.c:316 [inline]
print_report+0x15f/0x4f0 mm/kasan/report.c:427
kasan_report+0x136/0x160 mm/kasan/report.c:531
ocfs2_lock_global_qf+0xb4/0x2a0 fs/ocfs2/quota_global.c:303
ocfs2_get_next_id+0x24d/0x7a0 fs/ocfs2/quota_global.c:888
dquot_get_next_dqblk+0x6e/0x3a0 fs/quota/dquot.c:2717
quota_getnextquota+0x2bc/0x6b0 fs/quota/quota.c:250
__do_sys_quotactl fs/quota/quota.c:960 [inline]
__se_sys_quotactl+0x2b1/0x770 fs/quota/quota.c:916
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd9f11f7839
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdfa66c0f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3
RAX: ffffffffffffffda RBX: 00007ffdfa66c2d8 RCX: 00007fd9f11f7839
RDX: 000000000000ee01 RSI: 00000000200080c0 RDI: ffffffff80000901
RBP: 00007fd9f126f610 R08: 0000000020000c40 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffdfa66c2c8 R14: 0000000000000001 R15: 0000000000000001
</TASK>

Allocated by task 4244:
kasan_save_stack mm/kasan/common.c:45 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:383
kmalloc include/linux/slab.h:563 [inline]
ocfs2_local_read_info+0x1ea/0x19e0 fs/ocfs2/quota_local.c:696
dquot_load_quota_sb+0x754/0xb90 fs/quota/dquot.c:2470
dquot_load_quota_inode+0x318/0x600 fs/quota/dquot.c:2507
ocfs2_enable_quotas+0x221/0x440 fs/ocfs2/super.c:926
ocfs2_fill_super+0x4c6a/0x5720 fs/ocfs2/super.c:1139
mount_bdev+0x2c9/0x3f0 fs/super.c:1443
legacy_get_tree+0xeb/0x180 fs/fs_context.c:632
vfs_get_tree+0x88/0x270 fs/super.c:1573
do_new_mount+0x2ba/0xb40 fs/namespace.c:3056
do_mount fs/namespace.c:3399 [inline]
__do_sys_mount fs/namespace.c:3607 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3584
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2

Freed by task 4244:
kasan_save_stack mm/kasan/common.c:45 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516
____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236
kasan_slab_free include/linux/kasan.h:177 [inline]
slab_free_hook mm/slub.c:1724 [inline]
slab_free_freelist_hook mm/slub.c:1750 [inline]
slab_free mm/slub.c:3661 [inline]
__kmem_cache_free+0x25c/0x3c0 mm/slub.c:3674
ocfs2_local_free_info+0x813/0x990 fs/ocfs2/quota_local.c:869
dquot_disable+0x110f/0x1c50 fs/quota/dquot.c:2316
dquot_suspend include/linux/quotaops.h:85 [inline]
ocfs2_susp_quotas+0x247/0x340 fs/ocfs2/super.c:892
ocfs2_remount+0x56e/0xc30 fs/ocfs2/super.c:647
reconfigure_super+0x43a/0x870 fs/super.c:977
do_remount fs/namespace.c:2712 [inline]
path_mount+0xe69/0x1090 fs/namespace.c:3378
do_mount fs/namespace.c:3399 [inline]
__do_sys_mount fs/namespace.c:3607 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3584
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2

The buggy address belongs to the object at ffff888030c72000
which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 40 bytes inside of
1024-byte region [ffff888030c72000, ffff888030c72400)

The buggy address belongs to the physical page:
page:ffffea0000c31c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x30c70
head:ffffea0000c31c00 order:3 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 0000000000000000 dead000000000001 ffff888017c41dc0
raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 3967, tgid 3967 (dhcpcd-run-hook), ts 46889846391, free_ts 46879205515
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2532
prep_new_page mm/page_alloc.c:2539 [inline]
get_page_from_freelist+0x3731/0x38d0 mm/page_alloc.c:4328
__alloc_pages+0x28d/0x770 mm/page_alloc.c:5605
alloc_slab_page+0x6a/0x150 mm/slub.c:1794
allocate_slab mm/slub.c:1939 [inline]
new_slab+0x84/0x2d0 mm/slub.c:1992
___slab_alloc+0xc20/0x1270 mm/slub.c:3180
__slab_alloc mm/slub.c:3279 [inline]
slab_alloc_node mm/slub.c:3364 [inline]
__kmem_cache_alloc_node+0x19f/0x260 mm/slub.c:3437
__do_kmalloc_node mm/slab_common.c:935 [inline]
__kmalloc+0xa1/0x230 mm/slab_common.c:949
kmalloc include/linux/slab.h:568 [inline]
load_elf_phdrs fs/binfmt_elf.c:481 [inline]
load_elf_binary+0x2ec/0x2720 fs/binfmt_elf.c:861
search_binary_handler fs/exec.c:1741 [inline]
exec_binprm fs/exec.c:1782 [inline]
bprm_execve+0x96a/0x18a0 fs/exec.c:1851
do_execveat_common+0x580/0x720 fs/exec.c:1956
do_execve fs/exec.c:2030 [inline]
__do_sys_execve fs/exec.c:2106 [inline]
__se_sys_execve fs/exec.c:2101 [inline]
__x64_sys_execve+0x8e/0xa0 fs/exec.c:2101
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1459 [inline]
free_pcp_prepare mm/page_alloc.c:1509 [inline]
free_unref_page_prepare+0x12a6/0x15b0 mm/page_alloc.c:3384
free_unref_page+0x33/0x3e0 mm/page_alloc.c:3479
free_slab mm/slub.c:2031 [inline]
discard_slab mm/slub.c:2037 [inline]
__unfreeze_partials+0x1b7/0x210 mm/slub.c:2586
put_cpu_partial+0x17b/0x250 mm/slub.c:2662
qlink_free mm/kasan/quarantine.c:168 [inline]
qlist_free_all+0x76/0xe0 mm/kasan/quarantine.c:187
kasan_quarantine_reduce+0x156/0x170 mm/kasan/quarantine.c:294
__kasan_slab_alloc+0x1f/0x70 mm/kasan/common.c:305
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737
slab_alloc_node mm/slub.c:3398 [inline]
slab_alloc mm/slub.c:3406 [inline]
__kmem_cache_alloc_lru mm/slub.c:3413 [inline]
kmem_cache_alloc+0x10c/0x2d0 mm/slub.c:3422
getname_flags+0xb8/0x4f0 fs/namei.c:139
vfs_fstatat fs/stat.c:266 [inline]
__do_sys_newfstatat fs/stat.c:437 [inline]
__se_sys_newfstatat fs/stat.c:431 [inline]
__x64_sys_newfstatat+0x130/0x1e0 fs/stat.c:431
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2

Memory state around the buggy address:
ffff888030c71f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888030c71f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888030c72000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888030c72080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888030c72100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

syzbot

unread,
Jan 12, 2025, 8:35:26 PM1/12/25
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 4735586da88e Linux 5.15.176
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1782bef8580000
kernel config: https://syzkaller.appspot.com/x/.config?x=8c3b695ffd9247a0
dashboard link: https://syzkaller.appspot.com/bug?extid=e51b9e99a48ccc64bdb3
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13e01cb0580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11ab6bc4580000
mounted in repro: https://storage.googleapis.com/syzbot-assets/e81a580eea80/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+e51b9e...@syzkaller.appspotmail.com

(syz-executor348,4162,0):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xcfdff595, computed 0xefed4a20. Applying ECC.
JBD2: Ignoring recovery information on journal
ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode.
==================================================================
BUG: KASAN: use-after-free in ocfs2_lock_global_qf+0xb4/0x2a0 fs/ocfs2/quota_global.c:303
Read of size 8 at addr ffff888146fa4828 by task syz-executor348/4162

CPU: 0 PID: 4162 Comm: syz-executor348 Not tainted 5.15.176-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106
print_address_description+0x63/0x3b0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:434 [inline]
kasan_report+0x16b/0x1c0 mm/kasan/report.c:451
ocfs2_lock_global_qf+0xb4/0x2a0 fs/ocfs2/quota_global.c:303
ocfs2_get_next_id+0x21c/0x710 fs/ocfs2/quota_global.c:888
dquot_get_next_dqblk+0x6e/0x3a0 fs/quota/dquot.c:2710
quota_getnextquota+0x2bc/0x6b0 fs/quota/quota.c:249
__do_sys_quotactl fs/quota/quota.c:959 [inline]
__se_sys_quotactl+0x2b1/0x770 fs/quota/quota.c:915
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f9ff2699b99
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 17 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffddeec7a58 EFLAGS: 00000246 ORIG_RAX: 00000000000000b3
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9ff2699b99
RDX: 000000000000ee01 RSI: 00000000200080c0 RDI: ffffffff80000901
RBP: 00007f9ff27115f0 R08: 0000000020000c40 R09: 0000555565bbd4c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffddeec7a80
R13: 00007ffddeec7ca8 R14: 431bde82d7b634db R15: 00007f9ff26e203b
</TASK>

Allocated by task 4162:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:434 [inline]
____kasan_kmalloc+0xba/0xf0 mm/kasan/common.c:513
kasan_kmalloc include/linux/kasan.h:264 [inline]
kmem_cache_alloc_trace+0x143/0x290 mm/slub.c:3247
kmalloc include/linux/slab.h:591 [inline]
ocfs2_local_read_info+0x1ea/0x19e0 fs/ocfs2/quota_local.c:696
dquot_load_quota_sb+0x754/0xb90 fs/quota/dquot.c:2463
dquot_load_quota_inode+0x318/0x600 fs/quota/dquot.c:2500
ocfs2_enable_quotas+0x221/0x440 fs/ocfs2/super.c:927
ocfs2_fill_super+0x4423/0x5890 fs/ocfs2/super.c:1140
mount_bdev+0x2c9/0x3f0 fs/super.c:1400
legacy_get_tree+0xeb/0x180 fs/fs_context.c:611
vfs_get_tree+0x88/0x270 fs/super.c:1530
do_new_mount+0x2ba/0xb40 fs/namespace.c:3012
do_mount fs/namespace.c:3355 [inline]
__do_sys_mount fs/namespace.c:3563 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3540
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0

Freed by task 4162:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4b/0x80 mm/kasan/common.c:46
kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360
____kasan_slab_free+0xd8/0x120 mm/kasan/common.c:366
kasan_slab_free include/linux/kasan.h:230 [inline]
slab_free_hook mm/slub.c:1705 [inline]
slab_free_freelist_hook+0xdd/0x160 mm/slub.c:1731
slab_free mm/slub.c:3499 [inline]
kfree+0xf1/0x270 mm/slub.c:4559
ocfs2_local_free_info+0x813/0x990 fs/ocfs2/quota_local.c:869
dquot_disable+0x1111/0x1c60 fs/quota/dquot.c:2309
dquot_suspend include/linux/quotaops.h:84 [inline]
ocfs2_susp_quotas+0x247/0x340 fs/ocfs2/super.c:893
ocfs2_remount+0x56e/0xc30 fs/ocfs2/super.c:648
reconfigure_super+0x43a/0x870 fs/super.c:938
do_remount fs/namespace.c:2668 [inline]
path_mount+0xceb/0x10a0 fs/namespace.c:3334
do_mount fs/namespace.c:3355 [inline]
__do_sys_mount fs/namespace.c:3563 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3540
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0

The buggy address belongs to the object at ffff888146fa4800
which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 40 bytes inside of
1024-byte region [ffff888146fa4800, ffff888146fa4c00)
The buggy address belongs to the page:
page:ffffea00051be800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x146fa0
head:ffffea00051be800 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x57ff00000010200(slab|head|node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000010200 ffffea000511fe00 0000000400000004 ffff888017441dc0
raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, ts 8152103999, free_ts 0
prep_new_page mm/page_alloc.c:2426 [inline]
get_page_from_freelist+0x3b78/0x3d40 mm/page_alloc.c:4192
__alloc_pages+0x272/0x700 mm/page_alloc.c:5465
alloc_page_interleave+0x22/0x1c0 mm/mempolicy.c:2031
alloc_slab_page mm/slub.c:1775 [inline]
allocate_slab mm/slub.c:1912 [inline]
new_slab+0xbb/0x4b0 mm/slub.c:1975
___slab_alloc+0x6f6/0xe10 mm/slub.c:3008
__slab_alloc mm/slub.c:3095 [inline]
slab_alloc_node mm/slub.c:3186 [inline]
slab_alloc mm/slub.c:3228 [inline]
__kmalloc+0x1c9/0x300 mm/slub.c:4403
kmalloc_array include/linux/slab.h:631 [inline]
blk_stat_alloc_callback+0x95/0x230 block/blk-stat.c:113
blk_mq_init_allocated_queue+0x86/0x17a0 block/blk-mq.c:3304
blk_mq_init_queue_data block/blk-mq.c:3154 [inline]
__blk_mq_alloc_disk+0x82/0x160 block/blk-mq.c:3174
loop_add+0x28f/0x880 drivers/block/loop.c:2377
loop_init+0x172/0x230 drivers/block/loop.c:2614
do_one_initcall+0x22b/0x7a0 init/main.c:1302
do_initcall_level+0x157/0x210 init/main.c:1375
do_initcalls+0x49/0x90 init/main.c:1391
kernel_init_freeable+0x425/0x5c0 init/main.c:1615
kernel_init+0x19/0x290 init/main.c:1506
page_owner free stack trace missing

Memory state around the buggy address:
ffff888146fa4700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888146fa4780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888146fa4800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888146fa4880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888146fa4900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================


---

syzbot

unread,
Feb 13, 2025, 1:26:06 AM2/13/25
to syzkaller...@googlegroups.com
syzbot suspects this issue could be fixed by backporting the following commit:

commit 5f3fd772d152229d94602bca243fbb658068a597
git tree: upstream
Author: Dennis Lam <dennis....@gmail.com>
Date: Wed Dec 18 02:39:25 2024 +0000

ocfs2: fix slab-use-after-free due to dangling pointer dqi_priv

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=16fde3f8580000
Please keep in mind that other backports might be required as well.

For information about bisection process see: https://goo.gl/tpsmEJ#bisection

syzbot

unread,
Feb 13, 2025, 4:59:06 PM2/13/25
to syzkaller...@googlegroups.com
The commit that was suspected to fix the issue was backported to the fuzzed
kernel trees.

commit 2d431192486367eee03cc28d0b53b97dafcb8e63
Author: <dennis....@gmail.com>
Date: Wed Dec 18 02:39:25 2024 +0000

ocfs2: fix slab-use-after-free due to dangling pointer dqi_priv

If you believe this is correct, please reply with
#syz fix: ocfs2: fix slab-use-after-free due to dangling pointer dqi_priv

The commit was initially detected here:

commit 5f3fd772d152229d94602bca243fbb658068a597
git tree: upstream
Author: Dennis Lam <dennis....@gmail.com>
Date: Wed Dec 18 02:39:25 2024 +0000

ocfs2: fix slab-use-after-free due to dangling pointer dqi_priv

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=16fde3f8580000

syzbot

unread,
Feb 14, 2025, 8:33:04 AM2/14/25
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit f44e6d70c100614c211703f065cad448050e4a0e
Author: Dennis Lam <dennis....@gmail.com>
Date: Wed Dec 18 02:39:25 2024 +0000

ocfs2: fix slab-use-after-free due to dangling pointer dqi_priv

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=101c87df980000
start commit: 4735586da88e Linux 5.15.176
git tree: linux-5.15.y
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1192bef8580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11258a18580000

If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: ocfs2: fix slab-use-after-free due to dangling pointer dqi_priv
Reply all
Reply to author
Forward
0 new messages