syzbot


KASAN: use-after-free Read in inet_twsk_kill

Status: premoderation: reported on 2025/07/01 20:34
Reported-by: syzbot+0273a9abf644876228d8@syzkaller.appspotmail.com
First crash: 7d23h, last: 2d06h
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: use-after-free Read in inet_twsk_kill net 19 86 1258d 1260d 22/29 fixed on 2023/02/24 13:50

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in inet_twsk_kill+0x62/0x670 net/ipv4/inet_timewait_sock.c:52
Read of size 8 at addr ffff8881168dc940 by task syz.0.3309/14364

CPU: 0 PID: 14364 Comm: syz.0.3309 Tainted: G        W          6.1.141-syzkaller-00037-gfa7e0538663e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
 <IRQ>
 __dump_stack+0x21/0x24 lib/dump_stack.c:88
 dump_stack_lvl+0xee/0x150 lib/dump_stack.c:106
 print_address_description+0x71/0x210 mm/kasan/report.c:316
 print_report+0x4a/0x60 mm/kasan/report.c:427
 kasan_report+0x122/0x150 mm/kasan/report.c:531
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:351
 inet_twsk_kill+0x62/0x670 net/ipv4/inet_timewait_sock.c:52
 tw_timer_handler+0x1c/0x20 net/ipv4/inet_timewait_sock.c:175
 call_timer_fn+0x46/0x2a0 kernel/time/timer.c:1510
 expire_timers kernel/time/timer.c:1555 [inline]
 __run_timers+0x639/0x9a0 kernel/time/timer.c:1826
 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1839
 handle_softirqs+0x1d7/0x600 kernel/softirq.c:642
 __do_softirq kernel/softirq.c:680 [inline]
 invoke_softirq kernel/softirq.c:497 [inline]
 __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:741
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
 sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1118
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:finish_task_switch+0x173/0x7b0 kernel/sched/core.c:5297
Code: 80 3c 2b 00 74 08 4c 89 f7 e8 f9 ed 67 00 4d 8b 2e 4d 85 ed 0f 85 cd 00 00 00 4c 89 e7 e8 55 e1 a3 03 fb 49 8d 9f 48 0b 00 00 <48> 89 d8 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 0f b6 04 28
RSP: 0018:ffffc900044bf740 EFLAGS: 00000282
RAX: 0000000080000001 RBX: ffff88811066f088 RCX: 0000000000000000
RDX: 0000000000000001 RSI: 0000000000000004 RDI: 00000000ffffffff
RBP: ffffc900044bf790 R08: dffffc0000000000 R09: ffffed10222cf79e
R10: ffffed10222cf79e R11: 1ffff110222cf79d R12: ffff8881f7037d40
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88811066e540
 context_switch kernel/sched/core.c:5423 [inline]
 __schedule+0xb8f/0x14e0 kernel/sched/core.c:6750
 preempt_schedule_irq+0x9b/0x110 kernel/sched/core.c:7062
 raw_irqentry_exit_cond_resched+0x29/0x30 kernel/entry/common.c:396
 irqentry_exit+0x37/0x40 kernel/entry/common.c:439
 sysvec_reschedule_ipi+0x78/0x80 arch/x86/kernel/smp.c:244
 asm_sysvec_reschedule_ipi+0x1b/0x20 arch/x86/include/asm/idtentry.h:696
RIP: 0010:_copy_from_user+0x97/0xc0 lib/usercopy.c:28
Code: 4c 89 fe 4c 89 f7 e8 b8 f6 80 02 41 89 c7 31 ff 4c 89 fe e8 cb b3 0c ff 4d 85 ff 75 11 e8 01 af 0c ff 4c 89 f8 5b 41 5c 41 5e <41> 5f 5d c3 e8 f0 ae 0c ff 4c 29 fb 49 01 de 4c 89 f7 31 f6 4c 89
RSP: 0018:ffffc900044bfa48 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffffc900044bfac0 RCX: 0000000000080000
RDX: ffffc9000228d000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc900044bfa50 R08: 0000000000000000 R09: fffff52000897f5f
R10: fffff52000897f5f R11: 1ffff92000897f58 R12: 0000000000000002
R13: dffffc0000000000 R14: 0000000000000002 R15: 0000000000000000
 copy_from_user include/linux/uaccess.h:161 [inline]
 copy_msghdr_from_user net/socket.c:2439 [inline]
 recvmsg_copy_msghdr net/socket.c:2694 [inline]
 ___sys_recvmsg+0x12b/0x510 net/socket.c:2766
 do_recvmmsg+0x359/0x7a0 net/socket.c:2864
 __sys_recvmmsg net/socket.c:2943 [inline]
 __do_sys_recvmmsg net/socket.c:2966 [inline]
 __se_sys_recvmmsg net/socket.c:2959 [inline]
 __x64_sys_recvmmsg+0x18d/0x240 net/socket.c:2959
 x64_sys_call+0x3e7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:300
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f594658e929
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:00007f5947404038 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f59467b6080 RCX: 00007f594658e929
RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000006
RBP: 00007f5946610b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f59467b6080 R15: 00007ffc30f686d8
 </TASK>

Allocated by task 285:
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
 kasan_save_alloc_info+0x25/0x30 mm/kasan/generic.c:505
 __kasan_slab_alloc+0x72/0x80 mm/kasan/common.c:333
 kasan_slab_alloc include/linux/kasan.h:202 [inline]
 slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768
 slab_alloc_node mm/slub.c:3421 [inline]
 slab_alloc mm/slub.c:3431 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3438 [inline]
 kmem_cache_alloc+0x16e/0x330 mm/slub.c:3447
 kmem_cache_zalloc include/linux/slab.h:689 [inline]
 net_alloc net/core/net_namespace.c:413 [inline]
 copy_net_ns+0x145/0x5c0 net/core/net_namespace.c:468
 create_new_namespaces+0x3a2/0x660 kernel/nsproxy.c:110
 unshare_nsproxy_namespaces+0x120/0x170 kernel/nsproxy.c:226
 ksys_unshare+0x4ac/0x7b0 kernel/fork.c:3388
 __do_sys_unshare kernel/fork.c:3459 [inline]
 __se_sys_unshare kernel/fork.c:3457 [inline]
 __x64_sys_unshare+0x38/0x40 kernel/fork.c:3457
 x64_sys_call+0x767/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:273
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2

Freed by task 9442:
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
 kasan_save_free_info+0x31/0x50 mm/kasan/generic.c:516
 ____kasan_slab_free+0x132/0x180 mm/kasan/common.c:241
 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:249
 kasan_slab_free include/linux/kasan.h:178 [inline]
 slab_free_hook mm/slub.c:1745 [inline]
 slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1771
 slab_free mm/slub.c:3686 [inline]
 kmem_cache_free+0x12d/0x300 mm/slub.c:3711
 net_free net/core/net_namespace.c:442 [inline]
 cleanup_net+0xa58/0xb00 net/core/net_namespace.c:625
 process_one_work+0x71f/0xc40 kernel/workqueue.c:2299
 worker_thread+0xa29/0x11f0 kernel/workqueue.c:2446
 kthread+0x281/0x320 kernel/kthread.c:386
 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:45
 __kasan_record_aux_stack+0xb6/0xc0 mm/kasan/generic.c:486
 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:496
 insert_work+0x51/0x300 kernel/workqueue.c:1368
 __queue_work+0x9b1/0xd30 kernel/workqueue.c:1527
 delayed_work_timer_fn+0x61/0x80 kernel/workqueue.c:1653
 call_timer_fn+0x46/0x2a0 kernel/time/timer.c:1510
 expire_timers kernel/time/timer.c:1550 [inline]
 __run_timers+0x667/0x9a0 kernel/time/timer.c:1826
 run_timer_softirq+0xb8/0xf0 kernel/time/timer.c:1841
 handle_softirqs+0x1d7/0x600 kernel/softirq.c:642
 __do_softirq kernel/softirq.c:680 [inline]
 invoke_softirq kernel/softirq.c:497 [inline]
 __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:741
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
 sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1118
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:691

Second to last potentially related work creation:
 kasan_save_stack+0x3a/0x60 mm/kasan/common.c:45
 __kasan_record_aux_stack+0xb6/0xc0 mm/kasan/generic.c:486
 kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:496
 insert_work+0x51/0x300 kernel/workqueue.c:1368
 __queue_work+0x9b1/0xd30 kernel/workqueue.c:1527
 delayed_work_timer_fn+0x61/0x80 kernel/workqueue.c:1653
 call_timer_fn+0x46/0x2a0 kernel/time/timer.c:1510
 expire_timers kernel/time/timer.c:1550 [inline]
 __run_timers+0x667/0x9a0 kernel/time/timer.c:1826
 run_timer_softirq+0xb8/0xf0 kernel/time/timer.c:1841
 handle_softirqs+0x1d7/0x600 kernel/softirq.c:642
 __do_softirq kernel/softirq.c:680 [inline]
 invoke_softirq kernel/softirq.c:497 [inline]
 __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:741
 instr_sysvec_call_function_single arch/x86/kernel/smp.c:262 [inline]
 sysvec_call_function_single+0xa6/0xc0 arch/x86/kernel/smp.c:262
 asm_sysvec_call_function_single+0x1b/0x20 arch/x86/include/asm/idtentry.h:699

The buggy address belongs to the object at ffff8881168dc600
 which belongs to the cache net_namespace of size 4224
The buggy address is located 832 bytes inside of
 4224-byte region [ffff8881168dc600, ffff8881168dd680)

The buggy address belongs to the physical page:
page:ffffea00045a3600 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8881168d9180 pfn:0x1168d8
head:ffffea00045a3600 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head|zone=1)
raw: 4000000000010200 0000000000000000 dead000000000122 ffff8881002ade00
raw: ffff8881168d9180 0000000080070005 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 285, tgid 285 (syz-executor), ts 21471083915, free_ts 20741581473
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1f5/0x210 mm/page_alloc.c:2637
 prep_new_page+0x1c/0x110 mm/page_alloc.c:2644
 get_page_from_freelist+0x2c7b/0x2cf0 mm/page_alloc.c:4539
 __alloc_pages+0x19e/0x3a0 mm/page_alloc.c:5850
 alloc_slab_page+0x6e/0xf0 include/linux/gfp.h:-1
 allocate_slab mm/slub.c:1962 [inline]
 new_slab+0x98/0x3d0 mm/slub.c:2015
 ___slab_alloc+0x6f6/0xb50 mm/slub.c:3203
 __slab_alloc+0x5e/0xa0 mm/slub.c:3302
 slab_alloc_node mm/slub.c:3387 [inline]
 slab_alloc mm/slub.c:3431 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3438 [inline]
 kmem_cache_alloc+0x1b0/0x330 mm/slub.c:3447
 kmem_cache_zalloc include/linux/slab.h:689 [inline]
 net_alloc net/core/net_namespace.c:413 [inline]
 copy_net_ns+0x145/0x5c0 net/core/net_namespace.c:468
 create_new_namespaces+0x3a2/0x660 kernel/nsproxy.c:110
 unshare_nsproxy_namespaces+0x120/0x170 kernel/nsproxy.c:226
 ksys_unshare+0x4ac/0x7b0 kernel/fork.c:3388
 __do_sys_unshare kernel/fork.c:3459 [inline]
 __se_sys_unshare kernel/fork.c:3457 [inline]
 __x64_sys_unshare+0x38/0x40 kernel/fork.c:3457
 x64_sys_call+0x767/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:273
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 free_pages_prepare mm/page_alloc.c:1545 [inline]
 free_pcp_prepare mm/page_alloc.c:1619 [inline]
 free_unref_page_prepare+0x742/0x750 mm/page_alloc.c:3581
 free_unref_page+0x8f/0x530 mm/page_alloc.c:3677
 free_the_page mm/page_alloc.c:830 [inline]
 __free_pages+0x67/0x100 mm/page_alloc.c:5939
 __free_slab+0xca/0x1a0 mm/slub.c:2039
 free_slab mm/slub.c:2054 [inline]
 discard_slab+0x29/0x40 mm/slub.c:2060
 __slab_free+0x201/0x280 mm/slub.c:3599
 do_slab_free mm/slub.c:3640 [inline]
 ___cache_free+0xbf/0xd0 mm/slub.c:3696
 qlink_free mm/kasan/quarantine.c:168 [inline]
 qlist_free_all+0xc6/0x140 mm/kasan/quarantine.c:187
 kasan_quarantine_reduce+0x14a/0x170 mm/kasan/quarantine.c:294
 __kasan_slab_alloc+0x24/0x80 mm/kasan/common.c:310
 kasan_slab_alloc include/linux/kasan.h:202 [inline]
 slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768
 slab_alloc_node mm/slub.c:3421 [inline]
 slab_alloc mm/slub.c:3431 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3438 [inline]
 kmem_cache_alloc+0x16e/0x330 mm/slub.c:3447
 getname_flags+0xb9/0x500 fs/namei.c:139
 vfs_fstatat fs/stat.c:266 [inline]
 __do_sys_newfstatat fs/stat.c:437 [inline]
 __se_sys_newfstatat+0xdf/0x380 fs/stat.c:431
 __x64_sys_newfstatat+0x9b/0xb0 fs/stat.c:431
 x64_sys_call+0x77c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:263

Memory state around the buggy address:
 ffff8881168dc800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881168dc880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8881168dc900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                           ^
 ffff8881168dc980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881168dca00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
------------[ cut here ]------------
refcount_t: decrement hit 0; leaking memory.
WARNING: CPU: 0 PID: 14364 at lib/refcount.c:31 refcount_warn_saturate+0xe8/0x1a0 lib/refcount.c:31
Modules linked in:
CPU: 0 PID: 14364 Comm: syz.0.3309 Tainted: G    B   W          6.1.141-syzkaller-00037-gfa7e0538663e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:refcount_warn_saturate+0xe8/0x1a0 lib/refcount.c:31
Code: 05 01 0f 85 99 00 00 00 e8 95 b5 0c ff 5b 41 5e 5d c3 e8 8b b5 0c ff c6 05 ed ab 0b 05 01 48 c7 c7 60 a6 a9 85 e8 38 fb dd fe <0f> 0b eb df e8 6f b5 0c ff c6 05 cf ab 0b 05 01 48 c7 c7 a0 a5 a9
RSP: 0018:ffffc90000007cb0 EFLAGS: 00010246
RAX: bfa675e7001b5a00 RBX: 0000000000000004 RCX: ffff88811066e540
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc90000007cc0 R08: dffffc0000000000 R09: fffff52000000f11
R10: fffff52000000f11 R11: 1ffff92000000f10 R12: ffff88810ac85220
R13: dffffc0000000000 R14: 0000000000000004 R15: 0000000000000001
FS:  00007f59474046c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000012e445000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __refcount_dec include/linux/refcount.h:344 [inline]
 refcount_dec include/linux/refcount.h:359 [inline]
 inet_twsk_kill+0x533/0x670 net/ipv4/inet_timewait_sock.c:72
 tw_timer_handler+0x1c/0x20 net/ipv4/inet_timewait_sock.c:175
 call_timer_fn+0x46/0x2a0 kernel/time/timer.c:1510
 expire_timers kernel/time/timer.c:1555 [inline]
 __run_timers+0x639/0x9a0 kernel/time/timer.c:1826
 run_timer_softirq+0x6a/0xf0 kernel/time/timer.c:1839
 handle_softirqs+0x1d7/0x600 kernel/softirq.c:642
 __do_softirq kernel/softirq.c:680 [inline]
 invoke_softirq kernel/softirq.c:497 [inline]
 __irq_exit_rcu+0x52/0xf0 kernel/softirq.c:729
 irq_exit_rcu+0x9/0x10 kernel/softirq.c:741
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
 sysvec_apic_timer_interrupt+0xa9/0xc0 arch/x86/kernel/apic/apic.c:1118
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:finish_task_switch+0x173/0x7b0 kernel/sched/core.c:5297
Code: 80 3c 2b 00 74 08 4c 89 f7 e8 f9 ed 67 00 4d 8b 2e 4d 85 ed 0f 85 cd 00 00 00 4c 89 e7 e8 55 e1 a3 03 fb 49 8d 9f 48 0b 00 00 <48> 89 d8 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 0f b6 04 28
RSP: 0018:ffffc900044bf740 EFLAGS: 00000282
RAX: 0000000080000001 RBX: ffff88811066f088 RCX: 0000000000000000
RDX: 0000000000000001 RSI: 0000000000000004 RDI: 00000000ffffffff
RBP: ffffc900044bf790 R08: dffffc0000000000 R09: ffffed10222cf79e
R10: ffffed10222cf79e R11: 1ffff110222cf79d R12: ffff8881f7037d40
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88811066e540
 context_switch kernel/sched/core.c:5423 [inline]
 __schedule+0xb8f/0x14e0 kernel/sched/core.c:6750
 preempt_schedule_irq+0x9b/0x110 kernel/sched/core.c:7062
 raw_irqentry_exit_cond_resched+0x29/0x30 kernel/entry/common.c:396
 irqentry_exit+0x37/0x40 kernel/entry/common.c:439
 sysvec_reschedule_ipi+0x78/0x80 arch/x86/kernel/smp.c:244
 asm_sysvec_reschedule_ipi+0x1b/0x20 arch/x86/include/asm/idtentry.h:696
RIP: 0010:_copy_from_user+0x97/0xc0 lib/usercopy.c:28
Code: 4c 89 fe 4c 89 f7 e8 b8 f6 80 02 41 89 c7 31 ff 4c 89 fe e8 cb b3 0c ff 4d 85 ff 75 11 e8 01 af 0c ff 4c 89 f8 5b 41 5c 41 5e <41> 5f 5d c3 e8 f0 ae 0c ff 4c 29 fb 49 01 de 4c 89 f7 31 f6 4c 89
RSP: 0018:ffffc900044bfa48 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffffc900044bfac0 RCX: 0000000000080000
RDX: ffffc9000228d000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc900044bfa50 R08: 0000000000000000 R09: fffff52000897f5f
R10: fffff52000897f5f R11: 1ffff92000897f58 R12: 0000000000000002
R13: dffffc0000000000 R14: 0000000000000002 R15: 0000000000000000
 copy_from_user include/linux/uaccess.h:161 [inline]
 copy_msghdr_from_user net/socket.c:2439 [inline]
 recvmsg_copy_msghdr net/socket.c:2694 [inline]
 ___sys_recvmsg+0x12b/0x510 net/socket.c:2766
 do_recvmmsg+0x359/0x7a0 net/socket.c:2864
 __sys_recvmmsg net/socket.c:2943 [inline]
 __do_sys_recvmmsg net/socket.c:2966 [inline]
 __se_sys_recvmmsg net/socket.c:2959 [inline]
 __x64_sys_recvmmsg+0x18d/0x240 net/socket.c:2959
 x64_sys_call+0x3e7/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:300
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f594658e929
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:00007f5947404038 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f59467b6080 RCX: 00007f594658e929
RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000006
RBP: 00007f5946610b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f59467b6080 R15: 00007ffc30f686d8
 </TASK>
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
   0:	80 3c 2b 00          	cmpb   $0x0,(%rbx,%rbp,1)
   4:	74 08                	je     0xe
   6:	4c 89 f7             	mov    %r14,%rdi
   9:	e8 f9 ed 67 00       	call   0x67ee07
   e:	4d 8b 2e             	mov    (%r14),%r13
  11:	4d 85 ed             	test   %r13,%r13
  14:	0f 85 cd 00 00 00    	jne    0xe7
  1a:	4c 89 e7             	mov    %r12,%rdi
  1d:	e8 55 e1 a3 03       	call   0x3a3e177
  22:	fb                   	sti
  23:	49 8d 9f 48 0b 00 00 	lea    0xb48(%r15),%rbx
* 2a:	48 89 d8             	mov    %rbx,%rax <-- trapping instruction
  2d:	48 c1 e8 03          	shr    $0x3,%rax
  31:	49 bd 00 00 00 00 00 	movabs $0xdffffc0000000000,%r13
  38:	fc ff df
  3b:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/07 13:27 android14-6.1 fa7e0538663e 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in inet_twsk_kill
2025/07/06 15:20 android14-6.1 7011769d221c 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in inet_twsk_kill
2025/07/01 20:33 android14-6.1 7011769d221c 091a06cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 KASAN: use-after-free Read in inet_twsk_kill
* Struck through repros no longer work on HEAD.