==================================================================
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 ffff88811dfd2aec by task kworker/0:1/20
CPU: 0 PID: 20 Comm: kworker/0:1 Not tainted 5.15.131-syzkaller-00653-gea586874d2f9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
Workqueue: events bpf_map_free_deferred
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x151/0x1b7 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:768 [inline]
__sk_psock_zap_ingress net/core/skmsg.c:786 [inline]
sk_psock_stop+0x44c/0x4d0 net/core/skmsg.c:804
sk_psock_drop+0x219/0x310 net/core/skmsg.c:843
sk_psock_put include/linux/skmsg.h:458 [inline]
sock_map_unref+0x48f/0x4d0 net/core/sock_map.c:183
sock_map_free+0x137/0x2b0 net/core/sock_map.c:353
bpf_map_free_deferred+0x10d/0x1e0 kernel/bpf/syscall.c:481
process_one_work+0x6bb/0xc10 kernel/workqueue.c:2317
worker_thread+0xad5/0x12a0 kernel/workqueue.c:2464
kthread+0x421/0x510 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
Allocated by task 294:
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:3248 [inline]
kmem_cache_alloc+0xf5/0x200 mm/slub.c:3253
skb_clone+0x1d1/0x360 net/core/skbuff.c:1547
sk_psock_verdict_recv+0x53/0x840 net/core/skmsg.c:1182
unix_read_sock+0x132/0x370 net/unix/af_unix.c:2433
sk_psock_verdict_data_ready+0x147/0x1a0 net/core/skmsg.c:1225
unix_dgram_sendmsg+0x15fa/0x2090 net/unix/af_unix.c:1949
sock_sendmsg_nosec net/socket.c:704 [inline]
sock_sendmsg net/socket.c:724 [inline]
____sys_sendmsg+0x59e/0x8f0 net/socket.c:2412
___sys_sendmsg+0x252/0x2e0 net/socket.c:2466
__sys_sendmmsg+0x2bf/0x530 net/socket.c:2552
__do_sys_sendmmsg net/socket.c:2581 [inline]
__se_sys_sendmmsg net/socket.c:2578 [inline]
__x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2578
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
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:3519 [inline]
kmem_cache_free+0x116/0x2e0 mm/slub.c:3535
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+0xc21/0xd90 net/core/skmsg.c:681
process_one_work+0x6bb/0xc10 kernel/workqueue.c:2317
worker_thread+0xad5/0x12a0 kernel/workqueue.c:2464
kthread+0x421/0x510 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
The buggy address belongs to the object at ffff88811dfd2a00
which belongs to the cache skbuff_head_cache of size 248
The buggy address is located 236 bytes inside of
248-byte region [ffff88811dfd2a00, ffff88811dfd2af8)
The buggy address belongs to the page:
page:ffffea000477f480 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11dfd2
flags: 0x4000000000000200(slab|zone=1)
raw: 4000000000000200 0000000000000000 dead000000000122 ffff888100351c80
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 0x12a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY), pid 285, ts 19420335507, free_ts 19418229689
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2602
prep_new_page+0x1b/0x110 mm/page_alloc.c:2608
get_page_from_freelist+0x3550/0x35d0 mm/page_alloc.c:4482
__alloc_pages+0x206/0x5e0 mm/page_alloc.c:5773
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:3248 [inline]
kmem_cache_alloc+0x134/0x200 mm/slub.c:3253
skb_clone+0x1d1/0x360 net/core/skbuff.c:1547
dev_queue_xmit_nit+0x25b/0xa40 net/core/dev.c:2297
xmit_one net/core/dev.c:3596 [inline]
dev_hard_start_xmit+0x149/0x620 net/core/dev.c:3617
sch_direct_xmit+0x298/0x9b0 net/sched/sch_generic.c:342
__dev_xmit_skb net/core/dev.c:3828 [inline]
__dev_queue_xmit+0x161e/0x2e70 net/core/dev.c:4197
dev_queue_xmit+0x17/0x20 net/core/dev.c:4265
neigh_hh_output include/net/neighbour.h:501 [inline]
neigh_output include/net/neighbour.h:515 [inline]
ip_finish_output2+0xb9f/0xf60 net/ipv4/ip_output.c:228
__ip_finish_output+0x162/0x360
page last free stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
free_pages_prepare mm/page_alloc.c:1469 [inline]
free_pcp_prepare mm/page_alloc.c:1541 [inline]
free_unref_page_prepare+0x7c8/0x7d0 mm/page_alloc.c:3531
free_unref_page+0xe6/0x730 mm/page_alloc.c:3613
free_the_page mm/page_alloc.c:802 [inline]
__free_pages+0x61/0xf0 mm/page_alloc.c:5849
__vunmap+0x7bc/0x8f0 mm/vmalloc.c:2652
__vfree mm/vmalloc.c:2700 [inline]
vfree+0x7f/0xb0 mm/vmalloc.c:2731
adjust_insn_aux_data kernel/bpf/verifier.c:11970 [inline]
bpf_patch_insn_data+0x7f0/0xde0 kernel/bpf/verifier.c:12023
convert_ctx_accesses kernel/bpf/verifier.c:12565 [inline]
bpf_check+0x6653/0x12bf0 kernel/bpf/verifier.c:14058
bpf_prog_load+0x12ac/0x1b50 kernel/bpf/syscall.c:2327
__sys_bpf+0x4bc/0x760 kernel/bpf/syscall.c:4618
__do_sys_bpf kernel/bpf/syscall.c:4722 [inline]
__se_sys_bpf kernel/bpf/syscall.c:4720 [inline]
__x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:4720
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
Memory state around the buggy address:
ffff88811dfd2980: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc
ffff88811dfd2a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88811dfd2a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc
^
ffff88811dfd2b00: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
ffff88811dfd2b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
==================================================================
BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3519 [inline]
BUG: KASAN: double-free or invalid-free in kmem_cache_free+0x116/0x2e0 mm/slub.c:3535
CPU: 0 PID: 20 Comm: kworker/0:1 Tainted: G B 5.15.131-syzkaller-00653-gea586874d2f9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
Workqueue: events bpf_map_free_deferred
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x151/0x1b7 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:3519 [inline]
kmem_cache_free+0x116/0x2e0 mm/slub.c:3535
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:768 [inline]
__sk_psock_zap_ingress net/core/skmsg.c:786 [inline]
sk_psock_stop+0x44c/0x4d0 net/core/skmsg.c:804
sk_psock_drop+0x219/0x310 net/core/skmsg.c:843
sk_psock_put include/linux/skmsg.h:458 [inline]
sock_map_unref+0x48f/0x4d0 net/core/sock_map.c:183
sock_map_free+0x137/0x2b0 net/core/sock_map.c:353
bpf_map_free_deferred+0x10d/0x1e0 kernel/bpf/syscall.c:481
process_one_work+0x6bb/0xc10 kernel/workqueue.c:2317
worker_thread+0xad5/0x12a0 kernel/workqueue.c:2464
kthread+0x421/0x510 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
Allocated by task 294:
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:3248 [inline]
kmem_cache_alloc+0xf5/0x200 mm/slub.c:3253
skb_clone+0x1d1/0x360 net/core/skbuff.c:1547
sk_psock_verdict_recv+0x53/0x840 net/core/skmsg.c:1182
unix_read_sock+0x132/0x370 net/unix/af_unix.c:2433
sk_psock_verdict_data_ready+0x147/0x1a0 net/core/skmsg.c:1225
unix_dgram_sendmsg+0x15fa/0x2090 net/unix/af_unix.c:1949
sock_sendmsg_nosec net/socket.c:704 [inline]
sock_sendmsg net/socket.c:724 [inline]
____sys_sendmsg+0x59e/0x8f0 net/socket.c:2412
___sys_sendmsg+0x252/0x2e0 net/socket.c:2466
__sys_sendmmsg+0x2bf/0x530 net/socket.c:2552
__do_sys_sendmmsg net/socket.c:2581 [inline]
__se_sys_sendmmsg net/socket.c:2578 [inline]
__x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2578
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
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:3519 [inline]
kmem_cache_free+0x116/0x2e0 mm/slub.c:3535
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+0xc21/0xd90 net/core/skmsg.c:681
process_one_work+0x6bb/0xc10 kernel/workqueue.c:2317
worker_thread+0xad5/0x12a0 kernel/workqueue.c:2464
kthread+0x421/0x510 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
The buggy address belongs to the object at ffff88811dfd2a00
which belongs to the cache skbuff_head_cache of size 248
The buggy address is located 0 bytes inside of
248-byte region [ffff88811dfd2a00, ffff88811dfd2af8)
The buggy address belongs to the page:
page:ffffea000477f480 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11dfd2
flags: 0x4000000000000200(slab|zone=1)
raw: 4000000000000200 0000000000000000 dead000000000122 ffff888100351c80
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 0x12a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY), pid 285, ts 19420335507, free_ts 19418229689
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2602
prep_new_page+0x1b/0x110 mm/page_alloc.c:2608
get_page_from_freelist+0x3550/0x35d0 mm/page_alloc.c:4482
__alloc_pages+0x206/0x5e0 mm/page_alloc.c:5773
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:3248 [inline]
kmem_cache_alloc+0x134/0x200 mm/slub.c:3253
skb_clone+0x1d1/0x360 net/core/skbuff.c:1547
dev_queue_xmit_nit+0x25b/0xa40 net/core/dev.c:2297
xmit_one net/core/dev.c:3596 [inline]
dev_hard_start_xmit+0x149/0x620 net/core/dev.c:3617
sch_direct_xmit+0x298/0x9b0 net/sched/sch_generic.c:342
__dev_xmit_skb net/core/dev.c:3828 [inline]
__dev_queue_xmit+0x161e/0x2e70 net/core/dev.c:4197
dev_queue_xmit+0x17/0x20 net/core/dev.c:4265
neigh_hh_output include/net/neighbour.h:501 [inline]
neigh_output include/net/neighbour.h:515 [inline]
ip_finish_output2+0xb9f/0xf60 net/ipv4/ip_output.c:228
__ip_finish_output+0x162/0x360
page last free stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
free_pages_prepare mm/page_alloc.c:1469 [inline]
free_pcp_prepare mm/page_alloc.c:1541 [inline]
free_unref_page_prepare+0x7c8/0x7d0 mm/page_alloc.c:3531
free_unref_page+0xe6/0x730 mm/page_alloc.c:3613
free_the_page mm/page_alloc.c:802 [inline]
__free_pages+0x61/0xf0 mm/page_alloc.c:5849
__vunmap+0x7bc/0x8f0 mm/vmalloc.c:2652
__vfree mm/vmalloc.c:2700 [inline]
vfree+0x7f/0xb0 mm/vmalloc.c:2731
adjust_insn_aux_data kernel/bpf/verifier.c:11970 [inline]
bpf_patch_insn_data+0x7f0/0xde0 kernel/bpf/verifier.c:12023
convert_ctx_accesses kernel/bpf/verifier.c:12565 [inline]
bpf_check+0x6653/0x12bf0 kernel/bpf/verifier.c:14058
bpf_prog_load+0x12ac/0x1b50 kernel/bpf/syscall.c:2327
__sys_bpf+0x4bc/0x760 kernel/bpf/syscall.c:4618
__do_sys_bpf kernel/bpf/syscall.c:4722 [inline]
__se_sys_bpf kernel/bpf/syscall.c:4720 [inline]
__x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:4720
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
Memory state around the buggy address:
ffff88811dfd2900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88811dfd2980: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc
>ffff88811dfd2a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88811dfd2a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc
ffff88811dfd2b00: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
==================================================================
==================================================================
BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3519 [inline]
BUG: KASAN: double-free or invalid-free in kmem_cache_free+0x116/0x2e0 mm/slub.c:3535
CPU: 0 PID: 20 Comm: kworker/0:1 Tainted: G B 5.15.131-syzkaller-00653-gea586874d2f9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
Workqueue: events bpf_map_free_deferred
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x151/0x1b7 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:3519 [inline]
kmem_cache_free+0x116/0x2e0 mm/slub.c:3535
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:768 [inline]
__sk_psock_zap_ingress net/core/skmsg.c:786 [inline]
sk_psock_stop+0x44c/0x4d0 net/core/skmsg.c:804
sk_psock_drop+0x219/0x310 net/core/skmsg.c:843
sk_psock_put include/linux/skmsg.h:458 [inline]
sock_map_unref+0x48f/0x4d0 net/core/sock_map.c:183
sock_map_free+0x137/0x2b0 net/core/sock_map.c:353
bpf_map_free_deferred+0x10d/0x1e0 kernel/bpf/syscall.c:481
process_one_work+0x6bb/0xc10 kernel/workqueue.c:2317
worker_thread+0xad5/0x12a0 kernel/workqueue.c:2464
kthread+0x421/0x510 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
Allocated by task 315:
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:3248 [inline]
kmem_cache_alloc+0xf5/0x200 mm/slub.c:3253
skb_clone+0x1d1/0x360 net/core/skbuff.c:1547
sk_psock_verdict_recv+0x53/0x840 net/core/skmsg.c:1182
unix_read_sock+0x132/0x370 net/unix/af_unix.c:2433
sk_psock_verdict_data_ready+0x147/0x1a0 net/core/skmsg.c:1225
unix_dgram_sendmsg+0x15fa/0x2090 net/unix/af_unix.c:1949
sock_sendmsg_nosec net/socket.c:704 [inline]
sock_sendmsg net/socket.c:724 [inline]
____sys_sendmsg+0x59e/0x8f0 net/socket.c:2412
___sys_sendmsg+0x252/0x2e0 net/socket.c:2466
__sys_sendmmsg+0x2bf/0x530 net/socket.c:2552
__do_sys_sendmmsg net/socket.c:2581 [inline]
__se_sys_sendmmsg net/socket.c:2578 [inline]
__x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2578
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
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:3519 [inline]
kmem_cache_free+0x116/0x2e0 mm/slub.c:3535
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+0xc21/0xd90 net/core/skmsg.c:681
process_one_work+0x6bb/0xc10 kernel/workqueue.c:2317
worker_thread+0xad5/0x12a0 kernel/workqueue.c:2464
kthread+0x421/0x510 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
The buggy address belongs to the object at ffff88811e763dc0
which belongs to the cache skbuff_head_cache of size 248
The buggy address is located 0 bytes inside of
248-byte region [ffff88811e763dc0, ffff88811e763eb8)
The buggy address belongs to the page:
page:ffffea000479d8c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11e763
flags: 0x4000000000000200(slab|zone=1)
raw: 4000000000000200 0000000000000000 dead000000000122 ffff888100351c80
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 0x12a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY), pid 285, ts 27936446828, free_ts 27936005500
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2602
prep_new_page+0x1b/0x110 mm/page_alloc.c:2608
get_page_from_freelist+0x3550/0x35d0 mm/page_alloc.c:4482
__alloc_pages+0x206/0x5e0 mm/page_alloc.c:5773
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:3248 [inline]
kmem_cache_alloc+0x134/0x200 mm/slub.c:3253
skb_clone+0x1d1/0x360 net/core/skbuff.c:1547
dev_queue_xmit_nit+0x25b/0xa40 net/core/dev.c:2297
xmit_one net/core/dev.c:3596 [inline]
dev_hard_start_xmit+0x149/0x620 net/core/dev.c:3617
sch_direct_xmit+0x298/0x9b0 net/sched/sch_generic.c:342
__dev_xmit_skb net/core/dev.c:3828 [inline]
__dev_queue_xmit+0x161e/0x2e70 net/core/dev.c:4197
dev_queue_xmit+0x17/0x20 net/core/dev.c:4265
neigh_hh_output include/net/neighbour.h:501 [inline]
neigh_output include/net/neighbour.h:515 [inline]
ip_finish_output2+0xb9f/0xf60 net/ipv4/ip_output.c:228
__ip_finish_output+0x162/0x360
page last free stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
free_pages_prepare mm/page_alloc.c:1469 [inline]
free_pcp_prepare mm/page_alloc.c:1541 [inline]
free_unref_page_prepare+0x7c8/0x7d0 mm/page_alloc.c:3531
free_unref_page+0xe6/0x730 mm/page_alloc.c:3613
free_the_page mm/page_alloc.c:802 [inline]
__free_pages+0x61/0xf0 mm/page_alloc.c:5849
free_pages+0x7c/0x90 mm/page_alloc.c:5860
kasan_depopulate_vmalloc_pte+0x6a/0x90 mm/kasan/shadow.c:354
apply_to_pte_range mm/memory.c:2604 [inline]
apply_to_pmd_range mm/memory.c:2648 [inline]
apply_to_pud_range mm/memory.c:2684 [inline]
apply_to_p4d_range mm/memory.c:2720 [inline]
__apply_to_page_range+0x8dd/0xbe0 mm/memory.c:2754
apply_to_existing_page_range+0x38/0x50 mm/memory.c:2787
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:888 [inline]
bpf_int_jit_compile+0xbf42/0xc6d0 arch/x86/net/bpf_jit_comp.c:2372
bpf_prog_select_runtime+0x706/0x9e0 kernel/bpf/core.c:1926
bpf_prog_load+0x1315/0x1b50 kernel/bpf/syscall.c:2331
Memory state around the buggy address:
ffff88811e763c80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88811e763d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc
>ffff88811e763d80: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
^
ffff88811e763e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88811e763e80: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc
==================================================================