Re: [syzbot] [ocfs2?] KASAN: slab-use-after-free Read in ocfs2_fault

3 views
Skip to first unread message

syzbot

unread,
Oct 22, 2025, 3:44:09 PM (11 days ago) Oct 22
to dman...@yandex.ru, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
KASAN: slab-use-after-free Read in ocfs2_fault

loop0: detected capacity change from 0 to 32768
ocfs2: Mounting device (7,0) on (node local, slot 0) with writeback data mode.
==================================================================
BUG: KASAN: slab-use-after-free in ocfs2_fault+0xd3/0x400 fs/ocfs2/mmap.c:41
Read of size 8 at addr ffff888031bb5698 by task syz.0.125/7346

CPU: 1 UID: 0 PID: 7346 Comm: syz.0.125 Not tainted syzkaller #0 PREEMPT_{RT,(full)}
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
<TASK>
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0xca/0x240 mm/kasan/report.c:482
kasan_report+0x118/0x150 mm/kasan/report.c:595
ocfs2_fault+0xd3/0x400 fs/ocfs2/mmap.c:41
__do_fault+0x138/0x390 mm/memory.c:5280
do_read_fault mm/memory.c:5698 [inline]
do_fault mm/memory.c:5832 [inline]
do_pte_missing mm/memory.c:4361 [inline]
handle_pte_fault mm/memory.c:6177 [inline]
__handle_mm_fault mm/memory.c:6318 [inline]
handle_mm_fault+0x23c6/0x3400 mm/memory.c:6487
faultin_page mm/gup.c:1126 [inline]
__get_user_pages+0x1685/0x2860 mm/gup.c:1428
populate_vma_page_range+0x29f/0x3a0 mm/gup.c:1860
__mm_populate+0x24c/0x380 mm/gup.c:1963
mm_populate include/linux/mm.h:3471 [inline]
vm_mmap_pgoff+0x38a/0x4d0 mm/util.c:586
ksys_mmap_pgoff+0x4e9/0x720 mm/mmap.c:604
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f32fa7deba9
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:00007f32f9e46038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f32faa25fa0 RCX: 00007f32fa7deba9
RDX: 00000000027ffff7 RSI: 0000000000600000 RDI: 0000200000000000
RBP: 00007f32fa861e19 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000004012011 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f32faa26038 R14: 00007f32faa25fa0 R15: 00007ffdc02e8c68
</TASK>

Allocated by task 7346:
kasan_save_stack mm/kasan/common.c:56 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:77
unpoison_slab_object mm/kasan/common.c:342 [inline]
__kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:368
kasan_slab_alloc include/linux/kasan.h:252 [inline]
slab_post_alloc_hook mm/slub.c:4962 [inline]
slab_alloc_node mm/slub.c:5272 [inline]
kmem_cache_alloc_noprof+0x181/0x6b0 mm/slub.c:5279
vm_area_alloc+0x24/0x140 mm/vma_init.c:32
__mmap_new_vma mm/vma.c:2461 [inline]
__mmap_region mm/vma.c:2670 [inline]
mmap_region+0xdd8/0x20f0 mm/vma.c:2740
do_mmap+0xc23/0x10c0 mm/mmap.c:558
vm_mmap_pgoff+0x2a9/0x4d0 mm/util.c:581
ksys_mmap_pgoff+0x4e9/0x720 mm/mmap.c:604
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 20:
kasan_save_stack mm/kasan/common.c:56 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:77
__kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:587
kasan_save_free_info mm/kasan/kasan.h:406 [inline]
poison_slab_object mm/kasan/common.c:252 [inline]
__kasan_slab_free+0x5c/0x80 mm/kasan/common.c:284
kasan_slab_free include/linux/kasan.h:234 [inline]
slab_free_hook mm/slub.c:2530 [inline]
slab_free_after_rcu_debug+0x130/0x4e0 mm/slub.c:6677
rcu_do_batch kernel/rcu/tree.c:2605 [inline]
rcu_core kernel/rcu/tree.c:2861 [inline]
rcu_cpu_kthread+0xbf6/0x1b50 kernel/rcu/tree.c:2949
smpboot_thread_fn+0x542/0xa60 kernel/smpboot.c:160
kthread+0x711/0x8a0 kernel/kthread.c:463
ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Last potentially related work creation:
kasan_save_stack+0x3e/0x60 mm/kasan/common.c:56
kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:559
slab_free_hook mm/slub.c:2491 [inline]
slab_free mm/slub.c:6619 [inline]
kmem_cache_free+0x71f/0x910 mm/slub.c:6729
remove_vma mm/vma.c:468 [inline]
vms_complete_munmap_vmas+0x626/0x8a0 mm/vma.c:1293
do_vmi_align_munmap+0x372/0x450 mm/vma.c:1536
do_vmi_munmap+0x253/0x2e0 mm/vma.c:1584
__vm_munmap+0x207/0x380 mm/vma.c:3156
__do_sys_munmap mm/mmap.c:1080 [inline]
__se_sys_munmap mm/mmap.c:1077 [inline]
__x64_sys_munmap+0x60/0x70 mm/mmap.c:1077
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888031bb5640
which belongs to the cache vm_area_struct of size 256
The buggy address is located 88 bytes inside of
freed 256-byte region [ffff888031bb5640, ffff888031bb5740)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x31bb5
memcg:ffff88801f744601
flags: 0x80000000000000(node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000000 ffff888019ebbb40 dead000000000122 0000000000000000
raw: 0000000000000000 00000000000c000c 00000000f5000000 ffff88801f744601
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 6425, tgid 6425 (syz-executor), ts 226564199612, free_ts 226474808802
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1850
prep_new_page mm/page_alloc.c:1858 [inline]
get_page_from_freelist+0x28c0/0x2960 mm/page_alloc.c:3884
__alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5183
alloc_pages_mpol+0xd1/0x380 mm/mempolicy.c:2416
alloc_slab_page mm/slub.c:3046 [inline]
allocate_slab+0x96/0x3a0 mm/slub.c:3219
new_slab mm/slub.c:3273 [inline]
___slab_alloc+0xb12/0x13f0 mm/slub.c:4643
__kmem_cache_alloc_bulk+0x1c0/0x5a0 mm/slub.c:7383
refill_sheaf mm/slub.c:2624 [inline]
__pcs_replace_empty_main+0x301/0x530 mm/slub.c:5032
alloc_from_pcs mm/slub.c:5130 [inline]
slab_alloc_node mm/slub.c:5257 [inline]
kmem_cache_alloc_noprof+0x45e/0x6b0 mm/slub.c:5279
vm_area_dup+0x2b/0x670 mm/vma_init.c:123
dup_mmap+0x90a/0x1ae0 mm/mmap.c:1780
dup_mm kernel/fork.c:1489 [inline]
copy_mm+0x13c/0x4b0 kernel/fork.c:1541
copy_process+0x1704/0x3ae0 kernel/fork.c:2181
kernel_clone+0x224/0x7c0 kernel/fork.c:2609
__do_sys_clone kernel/fork.c:2750 [inline]
__se_sys_clone kernel/fork.c:2734 [inline]
__x64_sys_clone+0x18b/0x1e0 kernel/fork.c:2734
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
page last free pid 28 tgid 28 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1394 [inline]
__free_frozen_pages+0xfb6/0x1140 mm/page_alloc.c:2906
__tlb_remove_table_free mm/mmu_gather.c:227 [inline]
tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290
rcu_do_batch kernel/rcu/tree.c:2605 [inline]
rcu_core kernel/rcu/tree.c:2861 [inline]
rcu_cpu_kthread+0xbf6/0x1b50 kernel/rcu/tree.c:2949
smpboot_thread_fn+0x542/0xa60 kernel/smpboot.c:160
kthread+0x711/0x8a0 kernel/kthread.c:463
ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Memory state around the buggy address:
ffff888031bb5580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888031bb5600: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
>ffff888031bb5680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888031bb5700: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff888031bb5780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================


Tested on:

commit: 552c5071 Merge tag 'vfio-v6.18-rc3' of https://github...
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
console output: https://syzkaller.appspot.com/x/log.txt?x=112b2d42580000
kernel config: https://syzkaller.appspot.com/x/.config?x=b1620e3721dc97c0
dashboard link: https://syzkaller.appspot.com/bug?extid=a49010a0e8fcdeea075f
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
patch: https://syzkaller.appspot.com/x/patch.diff?x=15d43734580000

syzbot

unread,
Oct 22, 2025, 4:03:07 PM (11 days ago) Oct 22
to dman...@yandex.ru, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
KASAN: slab-use-after-free Read in ocfs2_fault

ocfs2: Mounting device (7,2) on (node local, slot 0) with writeback data mode.
==================================================================
BUG: KASAN: slab-use-after-free in ocfs2_fault+0xd3/0x400 fs/ocfs2/mmap.c:41
Read of size 8 at addr ffff88803cc37698 by task syz.2.19/6809

CPU: 0 UID: 0 PID: 6809 Comm: syz.2.19 Not tainted syzkaller #0 PREEMPT_{RT,(full)}
RIP: 0033:0x7f90113deba9
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:00007f9010a4e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f9011625fa0 RCX: 00007f90113deba9
RDX: 00000000027ffff7 RSI: 0000000000600000 RDI: 0000200000000000
RBP: 00007f9011461e19 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000004012011 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9011626038 R14: 00007f9011625fa0 R15: 00007ffc58dfa518
</TASK>

Allocated by task 6809:
The buggy address belongs to the object at ffff88803cc37640
which belongs to the cache vm_area_struct of size 256
The buggy address is located 88 bytes inside of
freed 256-byte region [ffff88803cc37640, ffff88803cc37740)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803cc37280 pfn:0x3cc37
memcg:ffff888026bd2301
flags: 0x80000000000200(workingset|node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000200 ffff888019ebbb40 ffffea0000a12c50 ffffea0000ca25d0
raw: ffff88803cc37280 00000000000c000a 00000000f5000000 ffff888026bd2301
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 6101, tgid 6101 (dhcpcd-run-hook), ts 130860016193, free_ts 130849245295
page last free pid 6106 tgid 6106 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1394 [inline]
__free_frozen_pages+0xfb6/0x1140 mm/page_alloc.c:2906
tlb_batch_list_free mm/mmu_gather.c:159 [inline]
tlb_finish_mmu+0x112/0x1d0 mm/mmu_gather.c:500
exit_mmap+0x444/0xb40 mm/mmap.c:1293
__mmput+0xcb/0x3d0 kernel/fork.c:1133
exit_mm+0x1da/0x2c0 kernel/exit.c:582
do_exit+0x648/0x2300 kernel/exit.c:954
do_group_exit+0x21c/0x2d0 kernel/exit.c:1107
__do_sys_exit_group kernel/exit.c:1118 [inline]
__se_sys_exit_group kernel/exit.c:1116 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1116
x64_sys_call+0x21f7/0x2200 arch/x86/include/generated/asm/syscalls_64.h:232
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
ffff88803cc37580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88803cc37600: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
>ffff88803cc37680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88803cc37700: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff88803cc37780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================


Tested on:

commit: 552c5071 Merge tag 'vfio-v6.18-rc3' of https://github...
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
console output: https://syzkaller.appspot.com/x/log.txt?x=14c5ce7c580000
kernel config: https://syzkaller.appspot.com/x/.config?x=b1620e3721dc97c0
dashboard link: https://syzkaller.appspot.com/bug?extid=a49010a0e8fcdeea075f
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
patch: https://syzkaller.appspot.com/x/patch.diff?x=12524614580000

syzbot

unread,
Oct 24, 2025, 8:02:06 AM (9 days ago) Oct 24
to dman...@yandex.ru, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
UBSAN: signed-integer-overflow in ip_idents_reserve

================================================================================
UBSAN: signed-integer-overflow in ./arch/x86/include/asm/atomic.h:165:11
1767536091 + 1282837187 cannot be represented in type 'int'
CPU: 0 PID: 7041 Comm: modprobe Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
<IRQ>
dump_stack+0xfd/0x16e lib/dump_stack.c:118
ubsan_epilogue+0xa/0x30 lib/ubsan.c:148
handle_overflow+0x192/0x1b0 lib/ubsan.c:180
arch_atomic_add_return arch/x86/include/asm/atomic.h:165 [inline]
atomic_add_return include/asm-generic/atomic-instrumented.h:73 [inline]
ip_idents_reserve+0x14a/0x170 net/ipv4/route.c:521
__ip_select_ident+0xe4/0x1c0 net/ipv4/route.c:538
iptunnel_xmit+0x466/0x7b0 net/ipv4/ip_tunnel_core.c:80
udp_tunnel_xmit_skb+0x1ba/0x290 net/ipv4/udp_tunnel_core.c:190
geneve_xmit_skb drivers/net/geneve.c:1004 [inline]
geneve_xmit+0x1d05/0x2140 drivers/net/geneve.c:1117
__netdev_start_xmit include/linux/netdevice.h:4824 [inline]
netdev_start_xmit include/linux/netdevice.h:4838 [inline]
xmit_one net/core/dev.c:3601 [inline]
dev_hard_start_xmit+0x294/0x780 net/core/dev.c:3617
__dev_queue_xmit+0x1678/0x28b0 net/core/dev.c:4203
neigh_output include/net/neighbour.h:509 [inline]
ip6_finish_output2+0x1020/0x1490 net/ipv6/ip6_output.c:130
NF_HOOK+0x45/0x2c0 include/linux/netfilter.h:297
mld_sendpack+0x5f9/0xa70 net/ipv6/mcast.c:1676
mld_send_cr net/ipv6/mcast.c:1972 [inline]
mld_ifc_timer_expire+0x7e1/0x990 net/ipv6/mcast.c:2471
call_timer_fn+0x105/0x440 kernel/time/timer.c:1444
expire_timers kernel/time/timer.c:1489 [inline]
__run_timers+0x5d8/0x7a0 kernel/time/timer.c:1783
run_timer_softirq+0x19/0x30 kernel/time/timer.c:1796
__do_softirq+0x23c/0x8ae kernel/softirq.c:298
asm_call_irq_on_stack+0xf/0x20
</IRQ>
__run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
do_softirq_own_stack+0x6d/0xb0 arch/x86/kernel/irq_64.c:77
invoke_softirq kernel/softirq.c:393 [inline]
__irq_exit_rcu+0x1e1/0x1f0 kernel/softirq.c:423
irq_exit_rcu+0x5/0x20 kernel/softirq.c:435
sysvec_apic_timer_interrupt+0x9d/0xb0 arch/x86/kernel/apic/apic.c:1106
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:check_kcov_mode kernel/kcov.c:174 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:218 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp1+0x32/0x90 kernel/kcov.c:270
Code: 14 ba 92 7e 65 8b 0d 19 ba 92 7e f7 c1 00 01 ff 00 74 11 f7 c1 00 01 00 00 74 5b 83 ba 8c 14 00 00 00 74 52 8b 8a 68 14 00 00 <83> f9 03 75 47 48 8b 8a 70 14 00 00 44 8b 8a 6c 14 00 00 49 c1 e1
RSP: 0000:ffffc90001bcfcc0 EFLAGS: 00000246
RAX: ffffffff8191dbec RBX: ffffea0002e49201 RCX: 0000000000000000
RDX: ffff88802fad0000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffea0002e49280 R08: dffffc0000000000 R09: fffff940005c9251
R10: fffff940005c9251 R11: 1ffffd40005c9250 R12: ffffea0002e49288
R13: dffffc0000000000 R14: ffffc90001bcfd18 R15: 0000000000000000
filemap_map_pages+0x59c/0xa30 mm/filemap.c:2877
do_fault_around mm/memory.c:4089 [inline]
do_read_fault mm/memory.c:4123 [inline]
do_fault mm/memory.c:4256 [inline]
handle_pte_fault mm/memory.c:4497 [inline]
__handle_mm_fault mm/memory.c:4632 [inline]
handle_mm_fault+0x16b8/0x2930 mm/memory.c:4730
do_user_addr_fault+0x468/0xa50 arch/x86/mm/fault.c:1345
handle_page_fault arch/x86/mm/fault.c:1402 [inline]
exc_page_fault+0x67/0x100 arch/x86/mm/fault.c:1458
asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:571
RIP: 0033:0x7fca3eee22d0
Code: 48 89 05 f3 11 19 00 f0 48 83 0c 24 00 48 8b 0d de 11 19 00 4c 8b 5c 24 30 4c 8b 54 24 28 4c 01 f9 e9 60 fe ff ff 0f 1f 40 00 <40> 84 ff 74 3b 53 48 83 ec 40 48 8b 1d c7 eb 18 00 48 8b 83 28 03
RSP: 002b:00007ffdb7892c28 EFLAGS: 00010202
RAX: 0000000000000275 RBX: 0000000000000001 RCX: 00007fca3f177300
RDX: 00007fca3ef2ccd0 RSI: 00000000000013a8 RDI: 0000000000000001
RBP: 00007ffdb7892f00 R08: 00007fca3f1786a8 R09: 0000000000000000
R10: 00007ffdb7892c30 R11: 0000000000000246 R12: fffffffffffffff8
R13: 0000002adadffe44 R14: 0000000000000000 R15: 00007fca3f17a310
================================================================================
----------------
Code disassembly (best guess):
0: 14 ba adc $0xba,%al
2: 92 xchg %eax,%edx
3: 7e 65 jle 0x6a
5: 8b 0d 19 ba 92 7e mov 0x7e92ba19(%rip),%ecx # 0x7e92ba24
b: f7 c1 00 01 ff 00 test $0xff0100,%ecx
11: 74 11 je 0x24
13: f7 c1 00 01 00 00 test $0x100,%ecx
19: 74 5b je 0x76
1b: 83 ba 8c 14 00 00 00 cmpl $0x0,0x148c(%rdx)
22: 74 52 je 0x76
24: 8b 8a 68 14 00 00 mov 0x1468(%rdx),%ecx
* 2a: 83 f9 03 cmp $0x3,%ecx <-- trapping instruction
2d: 75 47 jne 0x76
2f: 48 8b 8a 70 14 00 00 mov 0x1470(%rdx),%rcx
36: 44 8b 8a 6c 14 00 00 mov 0x146c(%rdx),%r9d
3d: 49 rex.WB
3e: c1 .byte 0xc1
3f: e1 .byte 0xe1


Tested on:

commit: d3d0b4e2 Linux 5.10.245
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.10.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12ef6d42580000
kernel config: https://syzkaller.appspot.com/x/.config?x=39182a54870857eb
dashboard link: https://syzkaller.appspot.com/bug?extid=a49010a0e8fcdeea075f
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
patch: https://syzkaller.appspot.com/x/patch.diff?x=101a93e2580000

syzbot

unread,
Oct 24, 2025, 9:27:03 AM (9 days ago) Oct 24
to dman...@yandex.ru, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-by: syzbot+a49010...@syzkaller.appspotmail.com
Tested-by: syzbot+a49010...@syzkaller.appspotmail.com

Tested on:

commit: 8e6e2188 Linux 6.1.157
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10308be2580000
kernel config: https://syzkaller.appspot.com/x/.config?x=3fff88b67220f824
dashboard link: https://syzkaller.appspot.com/bug?extid=a49010a0e8fcdeea075f
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
patch: https://syzkaller.appspot.com/x/patch.diff?x=157a8c92580000

Note: testing is done by a robot and is best-effort only.

syzbot

unread,
Oct 24, 2025, 10:35:05 AM (9 days ago) Oct 24
to dman...@yandex.ru, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
KASAN: slab-use-after-free Read in ocfs2_fault

ocfs2: Mounting device (7,2) on (node local, slot 0) with writeback data mode.
==================================================================
BUG: KASAN: slab-use-after-free in ocfs2_fault+0xd7/0x400 fs/ocfs2/mmap.c:41
Read of size 8 at addr ffff88802638e620 by task syz.2.337/9121

CPU: 0 UID: 0 PID: 9121 Comm: syz.2.337 Not tainted syzkaller #0
Hardware [ 406.389655][ T9121] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
<TASK>
dump_stack_lvl+0x18a/0x250 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:377 [inline]
print_report+0xca/0x240 mm/kasan/report.c:481
kasan_report+0x118/0x150 mm/kasan/report.c:594
ocfs2_fault+0xd7/0x400 fs/ocfs2/mmap.c:41
__do_fault+0x138/0x390 mm/memory.c:4881
do_read_fault mm/memory.c:5301 [inline]
do_fault mm/memory.c:5435 [inline]
do_pte_missing mm/memory.c:3964 [inline]
handle_pte_fault mm/memory.c:5770 [inline]
__handle_mm_fault mm/memory.c:5913 [inline]
handle_mm_fault+0x21f4/0x3270 mm/memory.c:6081
faultin_page mm/gup.c:1196 [inline]
__get_user_pages+0x1657/0x2a10 mm/gup.c:1497
populate_vma_page_range+0x26c/0x340 mm/gup.c:1935
__mm_populate+0x24d/0x380 mm/gup.c:2038
mm_populate include/linux/mm.h:3432 [inline]
vm_mmap_pgoff+0x2b0/0x3c0 mm/util.c:593
ksys_mmap_pgoff+0x4e9/0x720 mm/mmap.c:546
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf6/0x210 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fdf1ad9eba9
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:00007fdf1a40e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fdf1afe5fa0 RCX: 00007fdf1ad9eba9
RDX: 00000000027ffff7 RSI: 0000000000600000 RDI: 0000200000000000
RBP: 00007fdf1ae21e19 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000004012011 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fdf1afe6038 R14: 00007fdf1afe5fa0 R15: 00007ffe194a9b38
</TASK>

Allocated by task 9121:
kasan_save_stack mm/kasan/common.c:47 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:319 [inline]
__kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:345
kasan_slab_alloc include/linux/kasan.h:250 [inline]
slab_post_alloc_hook mm/slub.c:4135 [inline]
slab_alloc_node mm/slub.c:4184 [inline]
kmem_cache_alloc_noprof+0x136/0x290 mm/slub.c:4191
vm_area_alloc+0x24/0x1b0 kernel/fork.c:473
__mmap_region mm/mmap.c:1440 [inline]
mmap_region+0xc8f/0x1da0 mm/mmap.c:1619
do_mmap+0xa88/0x10b0 mm/mmap.c:500
vm_mmap_pgoff+0x1d0/0x3c0 mm/util.c:588
ksys_mmap_pgoff+0x4e9/0x720 mm/mmap.c:546
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf6/0x210 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 30:
kasan_save_stack mm/kasan/common.c:47 [inline]
kasan_save_track+0x3e/0x80 mm/kasan/common.c:68
kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:579
poison_slab_object mm/kasan/common.c:247 [inline]
__kasan_slab_free+0x62/0x70 mm/kasan/common.c:264
kasan_slab_free include/linux/kasan.h:233 [inline]
slab_free_hook mm/slub.c:2380 [inline]
slab_free mm/slub.c:4638 [inline]
kmem_cache_free+0x1ab/0x530 mm/slub.c:4740
rcu_do_batch kernel/rcu/tree.c:2575 [inline]
rcu_core kernel/rcu/tree.c:2831 [inline]
rcu_cpu_kthread+0xc0d/0x1b20 kernel/rcu/tree.c:2919
smpboot_thread_fn+0x51a/0xa00 kernel/smpboot.c:164
kthread+0x2c3/0x360 kernel/kthread.c:389
ret_from_fork+0x4e/0x80 arch/x86/kernel/process.c:152
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

Last potentially related work creation:
kasan_save_stack+0x3e/0x60 mm/kasan/common.c:47
__kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:541
__call_rcu_common kernel/rcu/tree.c:3098 [inline]
call_rcu+0x158/0x920 kernel/rcu/tree.c:3202
remove_vma mm/vma.c:336 [inline]
vms_complete_munmap_vmas+0x62b/0x8a0 mm/vma.c:1176
do_vmi_align_munmap+0x395/0x460 mm/vma.c:1369
do_vmi_munmap+0x253/0x2e0 mm/vma.c:1417
__vm_munmap+0x19b/0x360 mm/mmap.c:1639
__do_sys_munmap mm/mmap.c:1656 [inline]
__se_sys_munmap mm/mmap.c:1653 [inline]
__x64_sys_munmap+0x60/0x70 mm/mmap.c:1653
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf6/0x210 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88802638e5a0
which belongs to the cache vm_area_struct of size 176
The buggy address is located 128 bytes inside of
freed 176-byte region [ffff88802638e5a0, ffff88802638e650)

The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2638e
memcg:ffff888030a95001
flags: 0x80000000000000(node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000000 ffff888140421b40 ffffea0000c5ff80 dead000000000006
raw: 0000000000000000 0000000000110011 00000001f5000000 ffff888030a95001
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 6751, tgid 6751 (dhcpcd-run-hook), ts 202156256238, free_ts 202150795162
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x246/0x2a0 mm/page_alloc.c:1554
prep_new_page mm/page_alloc.c:1562 [inline]
get_page_from_freelist+0x2005/0x20a0 mm/page_alloc.c:3507
__alloc_pages_noprof+0x1e4/0x490 mm/page_alloc.c:4793
alloc_pages_mpol_noprof+0xd3/0x270 mm/mempolicy.c:2269
alloc_slab_page+0x5d/0x110 mm/slub.c:2450
allocate_slab+0x5d/0x2c0 mm/slub.c:2620
new_slab mm/slub.c:2674 [inline]
___slab_alloc+0x8d8/0xe10 mm/slub.c:3867
__slab_alloc mm/slub.c:3958 [inline]
__slab_alloc_node mm/slub.c:4011 [inline]
slab_alloc_node mm/slub.c:4172 [inline]
kmem_cache_alloc_noprof+0xd0/0x290 mm/slub.c:4191
vm_area_dup+0x27/0x260 kernel/fork.c:488
dup_mmap kernel/fork.c:695 [inline]
dup_mm kernel/fork.c:1696 [inline]
copy_mm+0xaea/0x1e50 kernel/fork.c:1748
copy_process+0x16c9/0x3a70 kernel/fork.c:2398
kernel_clone+0x22b/0x880 kernel/fork.c:2810
__do_sys_clone kernel/fork.c:2953 [inline]
__se_sys_clone kernel/fork.c:2937 [inline]
__x64_sys_clone+0x18c/0x1f0 kernel/fork.c:2937
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf6/0x210 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 6762 tgid 6762 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1123 [inline]
free_unref_folios+0xc96/0x1500 mm/page_alloc.c:2735
folios_put_refs+0x5f4/0x6f0 mm/swap.c:996
free_pages_and_swap_cache+0x4c4/0x530 mm/swap_state.c:335
__tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline]
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu+0x3a0/0x680 mm/mmu_gather.c:373
tlb_finish_mmu+0xc3/0x1d0 mm/mmu_gather.c:465
exit_mmap+0x40e/0xae0 mm/mmap.c:1952
__mmput+0xcb/0x360 kernel/fork.c:1354
exit_mm+0x1db/0x2c0 kernel/exit.c:571
do_exit+0x883/0x2630 kernel/exit.c:935
do_group_exit+0x21c/0x2d0 kernel/exit.c:1089
__do_sys_exit_group kernel/exit.c:1100 [inline]
__se_sys_exit_group kernel/exit.c:1098 [inline]
__x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1098
x64_sys_call+0x212b/0x2130 arch/x86/include/generated/asm/syscalls_64.h:232
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf6/0x210 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
ffff88802638e500: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
ffff88802638e580: fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb
>ffff88802638e600: fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc
^
ffff88802638e680: fc fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88802638e700: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
==================================================================


Tested on:

commit: 4fc43deb Linux 6.12.55
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-6.12.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13b363cd980000
kernel config: https://syzkaller.appspot.com/x/.config?x=52b41b67187b07bc
dashboard link: https://syzkaller.appspot.com/bug?extid=a49010a0e8fcdeea075f
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
patch: https://syzkaller.appspot.com/x/patch.diff?x=154eae7c580000

syzbot

unread,
Oct 28, 2025, 6:45:05 AM (5 days ago) Oct 28
to dman...@yandex.ru, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot tried to test the proposed patch but the build/boot failed:

failed to checkout kernel repo https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/linux-5.10.y: failed to run ["git" "fetch" "--force" "4d52a57a3858a6eee0d0b25cc3a0c9533f747d8f" "linux-5.10.y"]: exit status 128


Tested on:

commit: [unknown
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git linux-5.10.y
kernel config: https://syzkaller.appspot.com/x/.config?x=f5b21423ca3f0a96
patch: https://syzkaller.appspot.com/x/patch.diff?x=1222dd42580000

syzbot

unread,
Oct 28, 2025, 6:47:04 AM (5 days ago) Oct 28
to dman...@yandex.ru, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot tried to test the proposed patch but the build/boot failed:

failed to checkout kernel repo https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/linux-6.1.y: failed to run ["git" "fetch" "--force" "4d52a57a3858a6eee0d0b25cc3a0c9533f747d8f" "linux-6.1.y"]: exit status 128


Tested on:

commit: [unknown
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git linux-6.1.y
patch: https://syzkaller.appspot.com/x/patch.diff?x=17c76258580000

syzbot

unread,
Oct 28, 2025, 6:51:09 AM (5 days ago) Oct 28
to dman...@yandex.ru, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot tried to test the proposed patch but the build/boot failed:

failed to checkout kernel repo https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/linux-6.12.y: failed to run ["git" "fetch" "--force" "4d52a57a3858a6eee0d0b25cc3a0c9533f747d8f" "linux-6.12.y"]: exit status 128


Tested on:

commit: [unknown
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git linux-6.12.y
patch: https://syzkaller.appspot.com/x/patch.diff?x=14463614580000

syzbot

unread,
Oct 28, 2025, 4:38:04 PM (5 days ago) Oct 28
to dman...@yandex.ru, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot tried to test the proposed patch but the build/boot failed:

fs/ocfs2/ocfs2_fs.h:474:40: error: expected ';' at end of declaration list
fs/ocfs2/ocfs2_fs.h:489:40: error: expected ';' at end of declaration list
fs/ocfs2/ocfs2_fs.h:502:43: error: expected ';' at end of declaration list
fs/ocfs2/ocfs2_fs.h:646:26: error: expected ';' at end of declaration list
fs/ocfs2/ocfs2_fs.h:659:16: error: expected ';' at end of declaration list
fs/ocfs2/ocfs2_fs.h:807:37: error: expected ';' at end of declaration list
fs/ocfs2/ocfs2_fs.h:943:43: error: expected ';' at end of declaration list
fs/ocfs2/ocfs2_fs.h:1030:39: error: expected ';' at end of declaration list


Tested on:

commit: d3d0b4e2 Linux 5.10.245
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.10.y
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
patch: https://syzkaller.appspot.com/x/patch.diff?x=102c432f980000

syzbot

unread,
Oct 28, 2025, 5:03:06 PM (5 days ago) Oct 28
to dman...@yandex.ru, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot tried to test the proposed patch but the build/boot failed:

fs/ocfs2/ocfs2_fs.h:472:40: error: expected ';' at end of declaration list
fs/ocfs2/ocfs2_fs.h:487:40: error: expected ';' at end of declaration list
fs/ocfs2/ocfs2_fs.h:500:43: error: expected ';' at end of declaration list
fs/ocfs2/ocfs2_fs.h:644:26: error: expected ';' at end of declaration list
fs/ocfs2/ocfs2_fs.h:657:16: error: expected ';' at end of declaration list
fs/ocfs2/ocfs2_fs.h:805:37: error: expected ';' at end of declaration list
fs/ocfs2/ocfs2_fs.h:941:43: error: expected ';' at end of declaration list
fs/ocfs2/ocfs2_fs.h:1028:39: error: expected ';' at end of declaration list


Tested on:

commit: 8e6e2188 Linux 6.1.157
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-6.1.y
kernel config: https://syzkaller.appspot.com/x/.config?x=f5b21423ca3f0a96
dashboard link: https://syzkaller.appspot.com/bug?extid=a49010a0e8fcdeea075f
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
patch: https://syzkaller.appspot.com/x/patch.diff?x=103377e2580000

syzbot

unread,
Oct 28, 2025, 6:52:05 PM (4 days ago) Oct 28
to dman...@yandex.ru, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
KASAN: slab-use-after-free Read in ocfs2_fault

==================================================================
BUG: KASAN: slab-use-after-free in ocfs2_fault+0xd7/0x400 fs/ocfs2/mmap.c:41
Read of size 8 at addr ffff888054c78440 by task syz.1.256/8713

CPU: 1 UID: 0 PID: 8713 Comm: syz.1.256 Not tainted syzkaller #0
RIP: 0033:0x7fb45472eba9
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:00007fb453d9e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fb454975fa0 RCX: 00007fb45472eba9
RDX: 00000000027ffff7 RSI: 0000000000600000 RDI: 0000200000000000
RBP: 00007fb4547b1e19 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000004012011 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb454976038 R14: 00007fb454975fa0 R15: 00007ffe6cca0598
</TASK>

Allocated by task 8713:
The buggy address belongs to the object at ffff888054c783c0
which belongs to the cache vm_area_struct of size 176
The buggy address is located 128 bytes inside of
freed 176-byte region [ffff888054c783c0, ffff888054c78470)

The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x54c78
memcg:ffff888031e55b01
flags: 0x80000000000000(node=0|zone=1)
page_type: f5(slab)
raw: 0080000000000000 ffff888140421b40 ffffea0000afe780 dead000000000004
raw: 0000000000000000 0000000000110011 00000001f5000000 ffff888031e55b01
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 7145, tgid 7145 (sed), ts 235039312136, free_ts 234962721176
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x246/0x2a0 mm/page_alloc.c:1554
prep_new_page mm/page_alloc.c:1562 [inline]
get_page_from_freelist+0x2005/0x20a0 mm/page_alloc.c:3507
__alloc_pages_noprof+0x1e4/0x490 mm/page_alloc.c:4793
alloc_pages_mpol_noprof+0xd3/0x270 mm/mempolicy.c:2269
alloc_slab_page+0x5d/0x110 mm/slub.c:2450
allocate_slab+0x5d/0x2c0 mm/slub.c:2620
new_slab mm/slub.c:2674 [inline]
___slab_alloc+0x8d8/0xe10 mm/slub.c:3867
__slab_alloc mm/slub.c:3958 [inline]
__slab_alloc_node mm/slub.c:4011 [inline]
slab_alloc_node mm/slub.c:4172 [inline]
kmem_cache_alloc_noprof+0xd0/0x290 mm/slub.c:4191
vm_area_dup+0x27/0x260 kernel/fork.c:488
__split_vma+0x1be/0xab0 mm/vma.c:383
split_vma mm/vma.c:466 [inline]
vma_modify+0x1575/0x1980 mm/vma.c:1464
vma_modify_flags+0x1f0/0x240 mm/vma.c:1482
mprotect_fixup+0x3ff/0xa30 mm/mprotect.c:664
do_mprotect_pkey+0x801/0xc30 mm/mprotect.c:838
__do_sys_mprotect mm/mprotect.c:859 [inline]
__se_sys_mprotect mm/mprotect.c:856 [inline]
__x64_sys_mprotect+0x80/0x90 mm/mprotect.c:856
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf6/0x210 arch/x86/entry/common.c:83
page last free pid 7128 tgid 7127 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1123 [inline]
free_unref_page+0x9e1/0xb80 mm/page_alloc.c:2688
tlb_batch_list_free mm/mmu_gather.c:159 [inline]
tlb_finish_mmu+0x112/0x1d0 mm/mmu_gather.c:468
vms_clear_ptes+0x421/0x530 mm/vma.c:1118
vms_complete_munmap_vmas+0x20a/0x8a0 mm/vma.c:1160
do_vmi_align_munmap+0x395/0x460 mm/vma.c:1369
do_vmi_munmap+0x253/0x2e0 mm/vma.c:1417
__vm_munmap+0x19b/0x360 mm/mmap.c:1639
__do_sys_munmap mm/mmap.c:1656 [inline]
__se_sys_munmap mm/mmap.c:1653 [inline]
__x64_sys_munmap+0x60/0x70 mm/mmap.c:1653
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf6/0x210 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
ffff888054c78300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888054c78380: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
>ffff888054c78400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc
^
ffff888054c78480: fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb fb
ffff888054c78500: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc
==================================================================


Tested on:

commit: 4fc43deb Linux 6.12.55
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-6.12.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17258fe2580000
kernel config: https://syzkaller.appspot.com/x/.config?x=52b41b67187b07bc
dashboard link: https://syzkaller.appspot.com/bug?extid=a49010a0e8fcdeea075f
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
patch: https://syzkaller.appspot.com/x/patch.diff?x=14bd5e7c580000

syzbot

unread,
Oct 29, 2025, 7:35:06 AM (4 days ago) Oct 29
to dman...@yandex.ru, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
UBSAN: signed-integer-overflow in ip_idents_reserve

================================================================================
UBSAN: signed-integer-overflow in ./arch/x86/include/asm/atomic.h:165:11
1495198172 + 1093622763 cannot be represented in type 'int'
CPU: 0 PID: 7104 Comm: syz-executor Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
do_softirq+0xa9/0xf0 kernel/softirq.c:343
__local_bh_enable_ip+0x10e/0x170 kernel/softirq.c:195
spin_unlock_bh include/linux/spinlock.h:399 [inline]
netif_addr_unlock_bh include/linux/netdevice.h:4425 [inline]
dev_uc_add+0xbe/0x110 net/core/dev_addr_lists.c:593
vlan_dev_set_mac_address+0x1b3/0x530 net/8021q/vlan_dev.c:322
dev_set_mac_address+0x1d4/0x330 net/core/dev.c:8784
dev_set_mac_address_user+0x2d/0x50 net/core/dev.c:8802
do_setlink+0x6c2/0x39b0 net/core/rtnetlink.c:2687
__rtnl_newlink net/core/rtnetlink.c:3410 [inline]
rtnl_newlink+0x1195/0x1530 net/core/rtnetlink.c:3530
rtnetlink_rcv_msg+0x9b8/0xe40 net/core/rtnetlink.c:5610
netlink_rcv_skb+0x187/0x390 net/netlink/af_netlink.c:2503
netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
netlink_unicast+0x7b7/0x9b0 net/netlink/af_netlink.c:1340
netlink_sendmsg+0x968/0xb50 net/netlink/af_netlink.c:1914
sock_sendmsg_nosec net/socket.c:651 [inline]
__sock_sendmsg+0x15c/0x170 net/socket.c:663
__sys_sendto+0x323/0x430 net/socket.c:2005
__do_sys_sendto net/socket.c:2017 [inline]
__se_sys_sendto net/socket.c:2013 [inline]
__x64_sys_sendto+0xda/0xf0 net/socket.c:2013
do_syscall_64+0x34/0x50 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x67/0xd1
RIP: 0033:0x7fab23a02a3c
Code: 2a 5f 02 00 44 8b 4c 24 2c 4c 8b 44 24 20 89 c5 44 8b 54 24 28 48 8b 54 24 18 b8 2c 00 00 00 48 8b 74 24 10 8b 7c 24 08 0f 05 <48> 3d 00 f0 ff ff 77 34 89 ef 48 89 44 24 08 e8 70 5f 02 00 48 8b
RSP: 002b:00007ffdf0a7a370 EFLAGS: 00000293 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007fab24776620 RCX: 00007fab23a02a3c
RDX: 000000000000002c RSI: 00007fab24776670 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007ffdf0a7a3c4 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003
R13: 0000000000000000 R14: 00007fab24776670 R15: 0000000000000000
================================================================================


Tested on:

commit: d3d0b4e2 Linux 5.10.245
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.10.y
console output: https://syzkaller.appspot.com/x/log.txt?x=138c4fe2580000
kernel config: https://syzkaller.appspot.com/x/.config?x=39182a54870857eb
dashboard link: https://syzkaller.appspot.com/bug?extid=a49010a0e8fcdeea075f
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
patch: https://syzkaller.appspot.com/x/patch.diff?x=14d89c92580000

syzbot

unread,
Oct 29, 2025, 9:29:07 AM (4 days ago) Oct 29
to dman...@yandex.ru, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-by: syzbot+a49010...@syzkaller.appspotmail.com
Tested-by: syzbot+a49010...@syzkaller.appspotmail.com

Tested on:

commit: 8e6e2188 Linux 6.1.157
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1421bd42580000
kernel config: https://syzkaller.appspot.com/x/.config?x=3fff88b67220f824
dashboard link: https://syzkaller.appspot.com/bug?extid=a49010a0e8fcdeea075f
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
patch: https://syzkaller.appspot.com/x/patch.diff?x=12059f34580000

syzbot

unread,
Oct 29, 2025, 12:53:03 PM (4 days ago) Oct 29
to dman...@yandex.ru, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-by: syzbot+a49010...@syzkaller.appspotmail.com
Tested-by: syzbot+a49010...@syzkaller.appspotmail.com

Tested on:

commit: 4408a3d6 Linux 6.12.56
console output: https://syzkaller.appspot.com/x/log.txt?x=16c23fe2580000
kernel config: https://syzkaller.appspot.com/x/.config?x=52b41b67187b07bc
dashboard link: https://syzkaller.appspot.com/bug?extid=a49010a0e8fcdeea075f
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
patch: https://syzkaller.appspot.com/x/patch.diff?x=11059f34580000
Reply all
Reply to author
Forward
0 new messages