syzbot


KASAN: use-after-free Read in consume_skb

Status: upstream: reported C repro on 2023/09/21 02:29
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+22ecd09eeab6f3b89d76@syzkaller.appspotmail.com
First crash: 557d, last: 11d
Bug presence (2)
Date Name Commit Repro Result
2023/09/21 lts (merge base) aff03380bda4 C [report] KASAN: use-after-free Read in consume_skb
2023/09/21 upstream (ToT) 42dc814987c1 C Didn't crash
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 KASAN: use-after-free Read in consume_skb C error done 4 510d 568d 0/2 auto-obsoleted due to no activity on 2024/02/15 15:09
linux-5.15 KASAN: use-after-free Read in consume_skb origin:lts-only C done 6 8d13h 234d 0/3 upstream: reported C repro on 2024/08/09 08:33
upstream KASAN: use-after-free Read in consume_skb bpf net C done inconclusive 33 988d 1268d 0/28 closed as invalid on 2022/10/12 18:37
upstream KASAN: slab-use-after-free Read in consume_skb net bpf C error 6 572d 573d 0/28 closed as invalid on 2023/10/04 10:50
Last patch testing requests (7)
Created Duration User Patch Repo Result
2025/03/20 02:25 10m retest repro android13-5.15-lts report log
2025/03/20 02:25 12m retest repro android13-5.15-lts report log
2025/03/20 02:25 13m retest repro android13-5.15-lts report log
2025/03/20 02:25 15m retest repro android13-5.15-lts report log
2024/12/27 08:17 14m retest repro android13-5.15-lts report log
2024/12/27 08:17 15m retest repro android13-5.15-lts report log
2024/12/27 08:17 14m retest repro android13-5.15-lts report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/12/12 21:16 54m bisect fix android13-5.15-lts OK (0) job log log
2023/11/12 13:30 38m bisect fix android13-5.15-lts OK (0) job log log

Sample crash report:
R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd730a0348 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
==================================================================
BUG: KASAN: use-after-free in instrument_atomic_read include/linux/instrumented.h:71 [inline]
BUG: KASAN: use-after-free in atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline]
BUG: KASAN: use-after-free in refcount_read include/linux/refcount.h:147 [inline]
BUG: KASAN: use-after-free in skb_unref include/linux/skbuff.h:1131 [inline]
BUG: KASAN: use-after-free in consume_skb+0x3c/0x250 net/core/skbuff.c:926
Read of size 4 at addr ffff8881230eaeac by task syz-executor264/292

CPU: 0 PID: 292 Comm: syz-executor264 Not tainted 5.15.178-syzkaller-00013-g7d1f9b5c2ff5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1c0 lib/dump_stack.c:106
 print_address_description+0x87/0x3b0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:427 [inline]
 kasan_report+0x179/0x1c0 mm/kasan/report.c:444
 kasan_check_range+0x293/0x2a0 mm/kasan/generic.c:189
 __kasan_check_read+0x11/0x20 mm/kasan/shadow.c:31
 instrument_atomic_read include/linux/instrumented.h:71 [inline]
 atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline]
 refcount_read include/linux/refcount.h:147 [inline]
 skb_unref include/linux/skbuff.h:1131 [inline]
 consume_skb+0x3c/0x250 net/core/skbuff.c:926
 __sk_msg_free+0x2dd/0x370 net/core/skmsg.c:205
 sk_msg_free net/core/skmsg.c:218 [inline]
 __sk_psock_purge_ingress_msg net/core/skmsg.c:773 [inline]
 __sk_psock_zap_ingress net/core/skmsg.c:791 [inline]
 sk_psock_stop+0x4e3/0x580 net/core/skmsg.c:809
 sk_psock_drop+0x219/0x310 net/core/skmsg.c:848
 sk_psock_put include/linux/skmsg.h:463 [inline]
 sock_map_unref+0x3c6/0x430 net/core/sock_map.c:184
 __sock_map_delete net/core/sock_map.c:426 [inline]
 sock_map_delete_from_link net/core/sock_map.c:439 [inline]
 sock_map_unlink net/core/sock_map.c:1498 [inline]
 sock_map_remove_links+0x41c/0x650 net/core/sock_map.c:1513
 sock_map_close+0x114/0x530 net/core/sock_map.c:1550
 unix_release+0x82/0xc0 net/unix/af_unix.c:936
 __sock_release net/socket.c:649 [inline]
 sock_close+0xdf/0x270 net/socket.c:1336
 __fput+0x228/0x8c0 fs/file_table.c:280
 ____fput+0x15/0x20 fs/file_table.c:308
 task_work_run+0x129/0x190 kernel/task_work.c:188
 exit_task_work include/linux/task_work.h:33 [inline]
 do_exit+0xc48/0x2ca0 kernel/exit.c:880
 do_group_exit+0x141/0x310 kernel/exit.c:1002
 __do_sys_exit_group kernel/exit.c:1013 [inline]
 __se_sys_exit_group kernel/exit.c:1011 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1011
 x64_sys_call+0x610/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:232
 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:0x7f4163d895e9
Code: Unable to access opcode bytes at RIP 0x7f4163d895bf.
RSP: 002b:00007ffd730a0138 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f4163d895e9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 00007f4163dfe390 R08: ffffffffffffffb8 R09: 00007f4163dcd0e8
R10: 0000000000000001 R11: 0000000000000246 R12: 00007f4163dfe390
R13: 0000000000000000 R14: 00007f4163dfede0 R15: 00007f4163d529f0
 </TASK>

Allocated by task 292:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:45 [inline]
 set_alloc_info mm/kasan/common.c:433 [inline]
 __kasan_slab_alloc+0xb1/0xe0 mm/kasan/common.c:466
 kasan_slab_alloc include/linux/kasan.h:217 [inline]
 slab_post_alloc_hook+0x53/0x2c0 mm/slab.h:550
 slab_alloc_node mm/slub.c:3240 [inline]
 slab_alloc mm/slub.c:3250 [inline]
 kmem_cache_alloc+0xf5/0x250 mm/slub.c:3255
 skb_clone+0x1d1/0x360 net/core/skbuff.c:1547
 sk_psock_verdict_recv+0x53/0x840 net/core/skmsg.c:1187
 unix_read_sock+0x132/0x370 net/unix/af_unix.c:2428
 sk_psock_verdict_data_ready+0x147/0x1a0 net/core/skmsg.c:1230
 unix_dgram_sendmsg+0x15fa/0x2090 net/unix/af_unix.c:1942
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2436
 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2490
 __sys_sendmsg net/socket.c:2519 [inline]
 __do_sys_sendmsg net/socket.c:2528 [inline]
 __se_sys_sendmsg+0x19a/0x260 net/socket.c:2526
 __x64_sys_sendmsg+0x7b/0x90 net/socket.c:2526
 x64_sys_call+0x16a/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47
 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 20:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:45
 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
 ____kasan_slab_free+0x126/0x160 mm/kasan/common.c:365
 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
 kasan_slab_free include/linux/kasan.h:193 [inline]
 slab_free_hook mm/slub.c:1723 [inline]
 slab_free_freelist_hook+0xbd/0x190 mm/slub.c:1749
 slab_free mm/slub.c:3521 [inline]
 kmem_cache_free+0x115/0x330 mm/slub.c:3539
 kfree_skbmem+0x104/0x170
 __kfree_skb net/core/skbuff.c:758 [inline]
 kfree_skb_reason net/core/skbuff.c:778 [inline]
 kfree_skb+0xc2/0x360 net/core/skbuff.c:792
 sock_drop include/linux/skmsg.h:312 [inline]
 sk_psock_backlog+0xad1/0xdc0 net/core/skmsg.c:684
 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2325
 worker_thread+0xad5/0x12a0 kernel/workqueue.c:2472
 kthread+0x421/0x510 kernel/kthread.c:337
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287

The buggy address belongs to the object at ffff8881230eadc0
 which belongs to the cache skbuff_head_cache of size 248
The buggy address is located 236 bytes inside of
 248-byte region [ffff8881230eadc0, ffff8881230eaeb8)
The buggy address belongs to the page:
page:ffffea00048c3a80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1230ea
flags: 0x4000000000000200(slab|zone=1)
raw: 4000000000000200 0000000000000000 dead000000000122 ffff8881081ab200
raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 90, ts 20544030520, free_ts 20289930694
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2605
 prep_new_page+0x1b/0x110 mm/page_alloc.c:2611
 get_page_from_freelist+0x3550/0x35d0 mm/page_alloc.c:4485
 __alloc_pages+0x27e/0x8f0 mm/page_alloc.c:5780
 allocate_slab mm/slub.c:1932 [inline]
 new_slab+0x9a/0x4e0 mm/slub.c:1995
 ___slab_alloc+0x39e/0x830 mm/slub.c:3028
 __slab_alloc+0x4a/0x90 mm/slub.c:3115
 slab_alloc_node mm/slub.c:3206 [inline]
 slab_alloc mm/slub.c:3250 [inline]
 kmem_cache_alloc+0x139/0x250 mm/slub.c:3255
 kmem_cache_alloc_node include/linux/slab.h:474 [inline]
 __alloc_skb+0xbe/0x550 net/core/skbuff.c:416
 alloc_skb include/linux/skbuff.h:1183 [inline]
 alloc_skb_with_frags+0xa6/0x680 net/core/skbuff.c:6194
 sock_alloc_send_pskb+0x915/0xa50 net/core/sock.c:2539
 unix_dgram_sendmsg+0x6fd/0x2090 net/unix/af_unix.c:1805
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 __sys_sendto+0x564/0x720 net/socket.c:2063
 __do_sys_sendto net/socket.c:2075 [inline]
 __se_sys_sendto net/socket.c:2071 [inline]
 __x64_sys_sendto+0xe5/0x100 net/socket.c:2071
 x64_sys_call+0x15c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 free_pages_prepare mm/page_alloc.c:1472 [inline]
 free_pcp_prepare mm/page_alloc.c:1544 [inline]
 free_unref_page_prepare+0x7c8/0x7d0 mm/page_alloc.c:3534
 free_unref_page+0xe8/0x750 mm/page_alloc.c:3616
 free_the_page mm/page_alloc.c:805 [inline]
 __free_pages+0x61/0xf0 mm/page_alloc.c:5856
 free_pages+0x7c/0x90 mm/page_alloc.c:5867
 kasan_depopulate_vmalloc_pte+0x6a/0x90 mm/kasan/shadow.c:354
 apply_to_pte_range mm/memory.c:2642 [inline]
 apply_to_pmd_range mm/memory.c:2686 [inline]
 apply_to_pud_range mm/memory.c:2722 [inline]
 apply_to_p4d_range mm/memory.c:2758 [inline]
 __apply_to_page_range+0x8dd/0xbe0 mm/memory.c:2792
 apply_to_existing_page_range+0x38/0x50 mm/memory.c:2825
 kasan_release_vmalloc+0x9a/0xb0 mm/kasan/shadow.c:464
 __purge_vmap_area_lazy+0x154a/0x1690 mm/vmalloc.c:1715
 _vm_unmap_aliases+0x339/0x3b0 mm/vmalloc.c:2118
 vm_unmap_aliases+0x19/0x20 mm/vmalloc.c:2141
 change_page_attr_set_clr+0x308/0x1050 arch/x86/mm/pat/set_memory.c:1740
 change_page_attr_clear arch/x86/mm/pat/set_memory.c:1797 [inline]
 set_memory_ro+0xa1/0xe0 arch/x86/mm/pat/set_memory.c:1943
 bpf_jit_binary_lock_ro include/linux/filter.h:892 [inline]
 bpf_int_jit_compile+0xbf21/0xc6b0 arch/x86/net/bpf_jit_comp.c:2422
 bpf_prog_select_runtime+0x724/0xa10 kernel/bpf/core.c:1934
 bpf_migrate_filter net/core/filter.c:1299 [inline]
 bpf_prepare_filter+0x10d0/0x13d0 net/core/filter.c:1347

Memory state around the buggy address:
 ffff8881230ead80: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
 ffff8881230eae00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff8881230eae80: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc
                                  ^
 ffff8881230eaf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff8881230eaf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
==================================================================
BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3521 [inline]
BUG: KASAN: double-free or invalid-free in kmem_cache_free+0x115/0x330 mm/slub.c:3539

CPU: 0 PID: 292 Comm: syz-executor264 Tainted: G    B             5.15.178-syzkaller-00013-g7d1f9b5c2ff5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1c0 lib/dump_stack.c:106
 print_address_description+0x87/0x3b0 mm/kasan/report.c:248
 kasan_report_invalid_free+0x6b/0xa0 mm/kasan/report.c:370
 ____kasan_slab_free+0x13e/0x160
 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
 kasan_slab_free include/linux/kasan.h:193 [inline]
 slab_free_hook mm/slub.c:1723 [inline]
 slab_free_freelist_hook+0xbd/0x190 mm/slub.c:1749
 slab_free mm/slub.c:3521 [inline]
 kmem_cache_free+0x115/0x330 mm/slub.c:3539
 kfree_skbmem+0x104/0x170
 __kfree_skb net/core/skbuff.c:758 [inline]
 consume_skb+0xb4/0x250 net/core/skbuff.c:930
 __sk_msg_free+0x2dd/0x370 net/core/skmsg.c:205
 sk_msg_free net/core/skmsg.c:218 [inline]
 __sk_psock_purge_ingress_msg net/core/skmsg.c:773 [inline]
 __sk_psock_zap_ingress net/core/skmsg.c:791 [inline]
 sk_psock_stop+0x4e3/0x580 net/core/skmsg.c:809
 sk_psock_drop+0x219/0x310 net/core/skmsg.c:848
 sk_psock_put include/linux/skmsg.h:463 [inline]
 sock_map_unref+0x3c6/0x430 net/core/sock_map.c:184
 __sock_map_delete net/core/sock_map.c:426 [inline]
 sock_map_delete_from_link net/core/sock_map.c:439 [inline]
 sock_map_unlink net/core/sock_map.c:1498 [inline]
 sock_map_remove_links+0x41c/0x650 net/core/sock_map.c:1513
 sock_map_close+0x114/0x530 net/core/sock_map.c:1550
 unix_release+0x82/0xc0 net/unix/af_unix.c:936
 __sock_release net/socket.c:649 [inline]
 sock_close+0xdf/0x270 net/socket.c:1336
 __fput+0x228/0x8c0 fs/file_table.c:280
 ____fput+0x15/0x20 fs/file_table.c:308
 task_work_run+0x129/0x190 kernel/task_work.c:188
 exit_task_work include/linux/task_work.h:33 [inline]
 do_exit+0xc48/0x2ca0 kernel/exit.c:880
 do_group_exit+0x141/0x310 kernel/exit.c:1002
 __do_sys_exit_group kernel/exit.c:1013 [inline]
 __se_sys_exit_group kernel/exit.c:1011 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1011
 x64_sys_call+0x610/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:232
 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:0x7f4163d895e9
Code: Unable to access opcode bytes at RIP 0x7f4163d895bf.
RSP: 002b:00007ffd730a0138 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f4163d895e9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 00007f4163dfe390 R08: ffffffffffffffb8 R09: 00007f4163dcd0e8
R10: 0000000000000001 R11: 0000000000000246 R12: 00007f4163dfe390
R13: 0000000000000000 R14: 00007f4163dfede0 R15: 00007f4163d529f0
 </TASK>

Allocated by task 292:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:45 [inline]
 set_alloc_info mm/kasan/common.c:433 [inline]
 __kasan_slab_alloc+0xb1/0xe0 mm/kasan/common.c:466
 kasan_slab_alloc include/linux/kasan.h:217 [inline]
 slab_post_alloc_hook+0x53/0x2c0 mm/slab.h:550
 slab_alloc_node mm/slub.c:3240 [inline]
 slab_alloc mm/slub.c:3250 [inline]
 kmem_cache_alloc+0xf5/0x250 mm/slub.c:3255
 skb_clone+0x1d1/0x360 net/core/skbuff.c:1547
 sk_psock_verdict_recv+0x53/0x840 net/core/skmsg.c:1187
 unix_read_sock+0x132/0x370 net/unix/af_unix.c:2428
 sk_psock_verdict_data_ready+0x147/0x1a0 net/core/skmsg.c:1230
 unix_dgram_sendmsg+0x15fa/0x2090 net/unix/af_unix.c:1942
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2436
 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2490
 __sys_sendmsg net/socket.c:2519 [inline]
 __do_sys_sendmsg net/socket.c:2528 [inline]
 __se_sys_sendmsg+0x19a/0x260 net/socket.c:2526
 __x64_sys_sendmsg+0x7b/0x90 net/socket.c:2526
 x64_sys_call+0x16a/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47
 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 20:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:45
 kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
 ____kasan_slab_free+0x126/0x160 mm/kasan/common.c:365
 __kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
 kasan_slab_free include/linux/kasan.h:193 [inline]
 slab_free_hook mm/slub.c:1723 [inline]
 slab_free_freelist_hook+0xbd/0x190 mm/slub.c:1749
 slab_free mm/slub.c:3521 [inline]
 kmem_cache_free+0x115/0x330 mm/slub.c:3539
 kfree_skbmem+0x104/0x170
 __kfree_skb net/core/skbuff.c:758 [inline]
 kfree_skb_reason net/core/skbuff.c:778 [inline]
 kfree_skb+0xc2/0x360 net/core/skbuff.c:792
 sock_drop include/linux/skmsg.h:312 [inline]
 sk_psock_backlog+0xad1/0xdc0 net/core/skmsg.c:684
 process_one_work+0x6bb/0xc10 kernel/workqueue.c:2325
 worker_thread+0xad5/0x12a0 kernel/workqueue.c:2472
 kthread+0x421/0x510 kernel/kthread.c:337
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287

The buggy address belongs to the object at ffff8881230eadc0
 which belongs to the cache skbuff_head_cache of size 248
The buggy address is located 0 bytes inside of
 248-byte region [ffff8881230eadc0, ffff8881230eaeb8)
The buggy address belongs to the page:
page:ffffea00048c3a80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1230ea
flags: 0x4000000000000200(slab|zone=1)
raw: 4000000000000200 0000000000000000 dead000000000122 ffff8881081ab200
raw: 0000000000000000 00000000000c000c 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 90, ts 20544030520, free_ts 20289930694
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2605
 prep_new_page+0x1b/0x110 mm/page_alloc.c:2611
 get_page_from_freelist+0x3550/0x35d0 mm/page_alloc.c:4485
 __alloc_pages+0x27e/0x8f0 mm/page_alloc.c:5780
 allocate_slab mm/slub.c:1932 [inline]
 new_slab+0x9a/0x4e0 mm/slub.c:1995
 ___slab_alloc+0x39e/0x830 mm/slub.c:3028
 __slab_alloc+0x4a/0x90 mm/slub.c:3115
 slab_alloc_node mm/slub.c:3206 [inline]
 slab_alloc mm/slub.c:3250 [inline]
 kmem_cache_alloc+0x139/0x250 mm/slub.c:3255
 kmem_cache_alloc_node include/linux/slab.h:474 [inline]
 __alloc_skb+0xbe/0x550 net/core/skbuff.c:416
 alloc_skb include/linux/skbuff.h:1183 [inline]
 alloc_skb_with_frags+0xa6/0x680 net/core/skbuff.c:6194
 sock_alloc_send_pskb+0x915/0xa50 net/core/sock.c:2539
 unix_dgram_sendmsg+0x6fd/0x2090 net/unix/af_unix.c:1805
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 __sys_sendto+0x564/0x720 net/socket.c:2063
 __do_sys_sendto net/socket.c:2075 [inline]
 __se_sys_sendto net/socket.c:2071 [inline]
 __x64_sys_sendto+0xe5/0x100 net/socket.c:2071
 x64_sys_call+0x15c/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 free_pages_prepare mm/page_alloc.c:1472 [inline]
 free_pcp_prepare mm/page_alloc.c:1544 [inline]
 free_unref_page_prepare+0x7c8/0x7d0 mm/page_alloc.c:3534
 free_unref_page+0xe8/0x750 mm/page_alloc.c:3616
 free_the_page mm/page_alloc.c:805 [inline]
 __free_pages+0x61/0xf0 mm/page_alloc.c:5856
 free_pages+0x7c/0x90 mm/page_alloc.c:5867
 kasan_depopulate_vmalloc_pte+0x6a/0x90 mm/kasan/shadow.c:354
 apply_to_pte_range mm/memory.c:2642 [inline]
 apply_to_pmd_range mm/memory.c:2686 [inline]
 apply_to_pud_range mm/memory.c:2722 [inline]
 apply_to_p4d_range mm/memory.c:2758 [inline]
 __apply_to_page_range+0x8dd/0xbe0 mm/memory.c:2792
 apply_to_existing_page_range+0x38/0x50 mm/memory.c:2825
 kasan_release_vmalloc+0x9a/0xb0 mm/kasan/shadow.c:464
 __purge_vmap_area_lazy+0x154a/0x1690 mm/vmalloc.c:1715
 _vm_unmap_aliases+0x339/0x3b0 mm/vmalloc.c:2118
 vm_unmap_aliases+0x19/0x20 mm/vmalloc.c:2141
 change_page_attr_set_clr+0x308/0x1050 arch/x86/mm/pat/set_memory.c:1740
 change_page_attr_clear arch/x86/mm/pat/set_memory.c:1797 [inline]
 set_memory_ro+0xa1/0xe0 arch/x86/mm/pat/set_memory.c:1943
 bpf_jit_binary_lock_ro include/linux/filter.h:892 [inline]
 bpf_int_jit_compile+0xbf21/0xc6b0 arch/x86/net/bpf_jit_comp.c:2422
 bpf_prog_select_runtime+0x724/0xa10 kernel/bpf/core.c:1934
 bpf_migrate_filter net/core/filter.c:1299 [inline]
 bpf_prepare_filter+0x10d0/0x13d0 net/core/filter.c:1347

Memory state around the buggy address:
 ffff8881230eac80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb

Crashes (54):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/05 17:05 android13-5.15-lts 7d1f9b5c2ff5 60f5d8d9 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/11/20 01:04 android13-5.15-lts 2e66050fb753 7d02db5a .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/08/09 19:44 android13-5.15-lts 70e1a731d986 a83d9288 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/04/28 16:00 android13-5.15-lts 5d96939590c0 07b455f9 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/01/19 05:05 android13-5.15-lts 1c3a1f32bcbd 21772ce4 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in consume_skb
2023/09/25 17:24 android13-5.15-lts ea586874d2f9 0b6a67ac .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in consume_skb
2023/09/21 03:10 android13-5.15-lts ea586874d2f9 0b6a67ac .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in consume_skb
2023/09/21 02:28 android13-5.15-lts ea586874d2f9 0b6a67ac .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in consume_skb
2025/03/05 16:32 android13-5.15-lts 7d1f9b5c2ff5 60f5d8d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2025/02/27 21:12 android13-5.15-lts 7d1f9b5c2ff5 6a8fcbc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in consume_skb
2025/02/23 08:37 android13-5.15-lts 7d1f9b5c2ff5 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2025/02/23 07:29 android13-5.15-lts 7d1f9b5c2ff5 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2025/02/15 10:33 android13-5.15-lts 058abb720bd1 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2025/02/13 18:14 android13-5.15-lts 058abb720bd1 a98a8417 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2025/02/11 22:12 android13-5.15-lts 058abb720bd1 f2baddf5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2025/01/28 06:20 android13-5.15-lts d1a25a6a4b3b 18070896 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2025/01/22 03:24 android13-5.15-lts 829d9f138569 da72ac06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2025/01/13 16:41 android13-5.15-lts 829d9f138569 249ceea9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2025/01/10 07:15 android13-5.15-lts 19092c8155b4 67d7ec0a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2025/01/06 18:05 android13-5.15-lts 19092c8155b4 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/12/12 21:53 android13-5.15-lts 1f9202a6d83b 530e80f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/11/27 16:11 android13-5.15-lts 101e665d55a8 52b38cc1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in consume_skb
2024/11/27 16:11 android13-5.15-lts 101e665d55a8 52b38cc1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in consume_skb
2024/11/20 00:29 android13-5.15-lts 2e66050fb753 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/11/17 16:07 android13-5.15-lts ef332e923197 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/11/17 03:53 android13-5.15-lts 42bb395d8907 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/11/15 14:45 android13-5.15-lts 3bfe08931bff f6ede3a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/11/12 07:07 android13-5.15-lts 3bfe08931bff 75bb1b32 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/11/03 10:44 android13-5.15-lts 5e4635681cf1 f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in consume_skb
2024/10/23 13:55 android13-5.15-lts 5e4635681cf1 15fa2979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/10/20 14:47 android13-5.15-lts 5e4635681cf1 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in consume_skb
2024/10/15 05:16 android13-5.15-lts 5e4635681cf1 b01b6661 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/10/08 12:28 android13-5.15-lts 80dd36dca275 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/09/18 11:49 android13-5.15-lts b92c0d35d015 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in consume_skb
2024/09/16 18:59 android13-5.15-lts b92c0d35d015 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/08/09 19:14 android13-5.15-lts 70e1a731d986 a83d9288 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/07/31 13:43 android13-5.15-lts d0a6506ecafd 6fde257d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/07/27 07:12 android13-5.15-lts 4edafe6c0231 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/07/27 05:01 android13-5.15-lts 4edafe6c0231 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/07/25 03:16 android13-5.15-lts 5356d2f17edf d1a1b0ca .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/07/25 03:09 android13-5.15-lts 5356d2f17edf d1a1b0ca .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/07/25 03:08 android13-5.15-lts 5356d2f17edf d1a1b0ca .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/07/23 03:31 android13-5.15-lts 5356d2f17edf 708c10c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/07/17 10:25 android13-5.15-lts db06c48ab67e 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/07/14 06:35 android13-5.15-lts db06c48ab67e eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in consume_skb
2024/05/05 19:43 android13-5.15-lts 5d96939590c0 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/04/29 02:06 android13-5.15-lts 5d96939590c0 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/04/28 10:44 android13-5.15-lts 5d96939590c0 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/04/20 17:36 android13-5.15-lts ad06eaf051cd af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/04/20 09:25 android13-5.15-lts ad06eaf051cd af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/04/19 14:55 android13-5.15-lts ad06eaf051cd af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/04/19 14:39 android13-5.15-lts ad06eaf051cd af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf KASAN: use-after-free Read in consume_skb
2024/03/06 06:40 android13-5.15-lts 993bed180178 f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in consume_skb
2024/01/19 04:43 android13-5.15-lts 1c3a1f32bcbd 21772ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 KASAN: use-after-free Read in consume_skb
* Struck through repros no longer work on HEAD.