FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 1
CPU: 0 UID: 0 PID: 5327 Comm: syz.0.0 Not tainted 6.14.0-rc2-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
fail_dump lib/fault-inject.c:73 [inline]
should_fail_ex+0x40a/0x550 lib/fault-inject.c:174
should_failslab+0xac/0x100 mm/failslab.c:46
slab_pre_alloc_hook mm/slub.c:4068 [inline]
slab_alloc_node mm/slub.c:4144 [inline]
__kmalloc_cache_noprof+0x70/0x390 mm/slub.c:4320
kmalloc_noprof include/linux/slab.h:901 [inline]
dccp_feat_entry_new+0x173/0x3a0 net/dccp/feat.c:464
dccp_feat_push_confirm net/dccp/feat.c:512 [inline]
dccp_feat_handle_nn_established net/dccp/feat.c:1353 [inline]
dccp_feat_parse_options+0xeac/0x2c40 net/dccp/feat.c:1439
dccp_parse_options+0x13bd/0x2670 net/dccp/options.c:125
dccp_rcv_established+0x55/0x320 net/dccp/input.c:370
dccp_v4_do_rcv+0xff/0x1f0 net/dccp/ipv4.c:681
sk_backlog_rcv include/net/sock.h:1122 [inline]
__release_sock+0x243/0x350 net/core/sock.c:3106
release_sock+0x61/0x1f0 net/core/sock.c:3660
dccp_sendmsg+0x4f0/0xb90 net/dccp/proto.c:803
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg+0x1a6/0x270 net/socket.c:733
____sys_sendmsg+0x52a/0x7e0 net/socket.c:2573
___sys_sendmsg net/socket.c:2627 [inline]
__sys_sendmsg+0x269/0x350 net/socket.c:2659
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff68798cde9
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:00007ff688881038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007ff687ba5fa0 RCX: 00007ff68798cde9
RDX: 0000000000000000 RSI: 0000400000000480 RDI: 0000000000000007
RBP: 00007ff688881090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 0000000000000000 R14: 00007ff687ba5fa0 R15: 00007fff387463c8
dccp_parse_options: DCCP(ffff88803f3f2100): Option 32 (len=7) error=9
==================================================================
BUG: KASAN: slab-use-after-free in dccp_ackvec_runlen net/dccp/ackvec.h:43 [inline]
BUG: KASAN: slab-use-after-free in ccid2_hc_tx_packet_recv+0x1902/0x2070 net/dccp/ccids/ccid2.c:593
Read of size 1 at addr ffff888053057494 by task syz.0.0/5327
CPU: 0 UID: 0 PID: 5327 Comm: syz.0.0 Not tainted 6.14.0-rc2-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x169/0x550 mm/kasan/report.c:489
kasan_report+0x143/0x180 mm/kasan/report.c:602
dccp_ackvec_runlen net/dccp/ackvec.h:43 [inline]
ccid2_hc_tx_packet_recv+0x1902/0x2070 net/dccp/ccids/ccid2.c:593
ccid_hc_tx_packet_recv net/dccp/ccid.h:189 [inline]
dccp_deliver_input_to_ccids net/dccp/input.c:182 [inline]
dccp_rcv_established+0x295/0x320 net/dccp/input.c:374
dccp_v4_do_rcv+0xff/0x1f0 net/dccp/ipv4.c:681
sk_backlog_rcv include/net/sock.h:1122 [inline]
__release_sock+0x243/0x350 net/core/sock.c:3106
release_sock+0x61/0x1f0 net/core/sock.c:3660
dccp_sendmsg+0x4f0/0xb90 net/dccp/proto.c:803
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg+0x1a6/0x270 net/socket.c:733
____sys_sendmsg+0x52a/0x7e0 net/socket.c:2573
___sys_sendmsg net/socket.c:2627 [inline]
__sys_sendmsg+0x269/0x350 net/socket.c:2659
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff68798cde9
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:00007ff688881038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007ff687ba5fa0 RCX: 00007ff68798cde9
RDX: 0000000000000000 RSI: 0000400000000480 RDI: 0000000000000007
RBP: 00007ff688881090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 0000000000000000 R14: 00007ff687ba5fa0 R15: 00007fff387463c8
Allocated by task 5327:
kasan_save_stack mm/kasan/common.c:47 [inline]
kasan_save_track+0x3f/0x80 mm/kasan/common.c:68
poison_kmalloc_redzone mm/kasan/common.c:377 [inline]
__kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:394
kasan_kmalloc include/linux/kasan.h:260 [inline]
__do_kmalloc_node mm/slub.c:4294 [inline]
__kmalloc_node_track_caller_noprof+0x28b/0x4c0 mm/slub.c:4313
kmalloc_reserve+0x111/0x2a0 net/core/skbuff.c:609
__alloc_skb+0x1f3/0x440 net/core/skbuff.c:678
alloc_skb include/linux/skbuff.h:1331 [inline]
dccp_send_ack+0xaa/0x310 net/dccp/output.c:585
ccid2_hc_rx_packet_recv+0x10c/0x1c0 net/dccp/ccids/ccid2.c:772
ccid_hc_rx_packet_recv net/dccp/ccid.h:182 [inline]
dccp_deliver_input_to_ccids net/dccp/input.c:176 [inline]
dccp_rcv_established+0x1bb/0x320 net/dccp/input.c:374
dccp_v4_do_rcv+0xff/0x1f0 net/dccp/ipv4.c:681
sk_backlog_rcv include/net/sock.h:1122 [inline]
__sk_receive_skb+0x82b/0x8b0 net/core/sock.c:575
ip_protocol_deliver_rcu+0x2e9/0x440 net/ipv4/ip_input.c:205
ip_local_deliver_finish+0x341/0x5f0 net/ipv4/ip_input.c:233
NF_HOOK+0x3a4/0x450 include/linux/netfilter.h:314
NF_HOOK+0x3a4/0x450 include/linux/netfilter.h:314
__netif_receive_skb_one_core net/core/dev.c:5828 [inline]
__netif_receive_skb+0x2bf/0x650 net/core/dev.c:5941
process_backlog+0x662/0x15b0 net/core/dev.c:6289
__napi_poll+0xcb/0x490 net/core/dev.c:7106
napi_poll net/core/dev.c:7175 [inline]
net_rx_action+0x89b/0x1240 net/core/dev.c:7297
handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561
do_softirq+0x11b/0x1e0 kernel/softirq.c:462
__local_bh_enable_ip+0x1bb/0x200 kernel/softirq.c:389
local_bh_enable include/linux/bottom_half.h:33 [inline]
rcu_read_unlock_bh include/linux/rcupdate.h:919 [inline]
__dev_queue_xmit+0x1775/0x3f50 net/core/dev.c:4611
dev_queue_xmit include/linux/netdevice.h:3305 [inline]
neigh_hh_output include/net/neighbour.h:523 [inline]
neigh_output include/net/neighbour.h:537 [inline]
ip_finish_output2+0xd76/0x12b0 net/ipv4/ip_output.c:236
ip_local_out net/ipv4/ip_output.c:130 [inline]
__ip_queue_xmit+0x1258/0x1d50 net/ipv4/ip_output.c:528
dccp_transmit_skb+0xf65/0x16f0 net/dccp/output.c:138
dccp_xmit_packet+0x376/0x610 net/dccp/output.c:281
dccp_write_xmit+0x138/0x220 net/dccp/output.c:366
dccp_sendmsg+0x76f/0xb90 net/dccp/proto.c:801
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg+0x1a6/0x270 net/socket.c:733
____sys_sendmsg+0x52a/0x7e0 net/socket.c:2573
___sys_sendmsg net/socket.c:2627 [inline]
__sys_sendmsg+0x269/0x350 net/socket.c:2659
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Freed by task 5327:
kasan_save_stack mm/kasan/common.c:47 [inline]
kasan_save_track+0x3f/0x80 mm/kasan/common.c:68
kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:576
poison_slab_object mm/kasan/common.c:247 [inline]
__kasan_slab_free+0x59/0x70 mm/kasan/common.c:264
kasan_slab_free include/linux/kasan.h:233 [inline]
slab_free_hook mm/slub.c:2353 [inline]
slab_free mm/slub.c:4609 [inline]
kfree+0x196/0x430 mm/slub.c:4757
skb_kfree_head net/core/skbuff.c:1086 [inline]
skb_free_head net/core/skbuff.c:1098 [inline]
skb_release_data+0x6a0/0x8a0 net/core/skbuff.c:1125
skb_release_all net/core/skbuff.c:1190 [inline]
__kfree_skb net/core/skbuff.c:1204 [inline]
sk_skb_reason_drop+0x1c9/0x380 net/core/skbuff.c:1242
kfree_skb_reason include/linux/skbuff.h:1271 [inline]
kfree_skb include/linux/skbuff.h:1280 [inline]
dccp_v4_do_rcv+0x145/0x1f0 net/dccp/ipv4.c:716
sk_backlog_rcv include/net/sock.h:1122 [inline]
__release_sock+0x243/0x350 net/core/sock.c:3106
release_sock+0x61/0x1f0 net/core/sock.c:3660
dccp_sendmsg+0x4f0/0xb90 net/dccp/proto.c:803
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg+0x1a6/0x270 net/socket.c:733
____sys_sendmsg+0x52a/0x7e0 net/socket.c:2573
___sys_sendmsg net/socket.c:2627 [inline]
__sys_sendmsg+0x269/0x350 net/socket.c:2659
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
The buggy address belongs to the object at ffff888053057000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 1172 bytes inside of
freed 2048-byte region [ffff888053057000, ffff888053057800)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x53050
head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x4fff00000000040(head|node=1|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 04fff00000000040 ffff88801ac42000 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000
head: 04fff00000000040 ffff88801ac42000 dead000000000122 0000000000000000
head: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000
head: 04fff00000000003 ffffea00014c1401 ffffffffffffffff 0000000000000000
head: 0000000000000008 0000000000000000 00000000ffffffff 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 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5327, tgid 5326 (syz.0.0), ts 70854912342, free_ts 0
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551
prep_new_page mm/page_alloc.c:1559 [inline]
get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477
__alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4739
alloc_pages_mpol+0x311/0x660 mm/mempolicy.c:2270
alloc_slab_page mm/slub.c:2423 [inline]
allocate_slab+0x8f/0x3a0 mm/slub.c:2587
new_slab mm/slub.c:2640 [inline]
___slab_alloc+0xc27/0x14a0 mm/slub.c:3826
__slab_alloc+0x58/0xa0 mm/slub.c:3916
__slab_alloc_node mm/slub.c:3991 [inline]
slab_alloc_node mm/slub.c:4152 [inline]
__do_kmalloc_node mm/slub.c:4293 [inline]
__kmalloc_node_track_caller_noprof+0x2e9/0x4c0 mm/slub.c:4313
kmalloc_reserve+0x111/0x2a0 net/core/skbuff.c:609
__alloc_skb+0x1f3/0x440 net/core/skbuff.c:678
alloc_skb include/linux/skbuff.h:1331 [inline]
dccp_send_ack+0xaa/0x310 net/dccp/output.c:585
ccid2_hc_rx_packet_recv+0x10c/0x1c0 net/dccp/ccids/ccid2.c:772
ccid_hc_rx_packet_recv net/dccp/ccid.h:182 [inline]
dccp_deliver_input_to_ccids net/dccp/input.c:176 [inline]
dccp_rcv_established+0x1bb/0x320 net/dccp/input.c:374
dccp_v4_do_rcv+0xff/0x1f0 net/dccp/ipv4.c:681
sk_backlog_rcv include/net/sock.h:1122 [inline]
__sk_receive_skb+0x82b/0x8b0 net/core/sock.c:575
ip_protocol_deliver_rcu+0x2e9/0x440 net/ipv4/ip_input.c:205
page_owner free stack trace missing
Memory state around the buggy address:
ffff888053057380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888053057400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888053057480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888053057500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888053057580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================