[ 2660.242871][ C2] ================================================================== [ 2660.243164][ C2] BUG: KASAN: slab-out-of-bounds in tcp_v6_send_response+0xe7d/0x24e0 [ 2660.243423][ C2] Read of size 8 at addr ff110000180fcbf8 by task sk_so_peek_off/4563 [ 2660.243674][ C2] [ 2660.243764][ C2] CPU: 2 UID: 0 PID: 4563 Comm: sk_so_peek_off Not tainted 7.2.0-virtme #1 PREEMPT(full) [ 2660.243768][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 2660.243770][ C2] Call Trace: [ 2660.243771][ C2] [ 2660.243773][ C2] dump_stack_lvl+0x6f/0xa0 [ 2660.243778][ C2] print_address_description.constprop.0+0x56/0x2d0 [ 2660.243782][ C2] print_report+0xfc/0x1fa [ 2660.243784][ C2] ? __virt_addr_valid+0x102/0x440 [ 2660.243787][ C2] ? __virt_addr_valid+0x1da/0x440 [ 2660.243788][ C2] kasan_report+0x108/0x130 [ 2660.243792][ C2] ? tcp_v6_send_response+0xe7d/0x24e0 [ 2660.243794][ C2] ? tcp_v6_send_response+0xe7d/0x24e0 [ 2660.243796][ C2] kasan_check_range+0x130/0x200 [ 2660.243798][ C2] ? make_kuid+0x13/0x20 [ 2660.243801][ C2] tcp_v6_send_response+0xe7d/0x24e0 [ 2660.243803][ C2] ? __mod_timer+0x91/0xc60 [ 2660.243806][ C2] ? tcp_v6_send_synack+0xe10/0xe10 [ 2660.243808][ C2] ? __lock_acquire+0x518/0xc20 [ 2660.243811][ C2] ? logarithmic_accumulation.constprop.0+0x115/0x350 [ 2660.243814][ C2] ? __lock_release.isra.0+0x69/0x1a0 [ 2660.243815][ C2] ? rcu_is_watching+0x16/0xd0 [ 2660.243818][ C2] tcp_v6_rcv+0x24c5/0x3250 [ 2660.243822][ C2] ? tcp_v6_syn_recv_sock+0x1b90/0x1b90 [ 2660.243826][ C2] ip6_protocol_deliver_rcu+0x15c/0x1480 [ 2660.243830][ C2] ip6_input_finish+0x196/0x590 [ 2660.243831][ C2] ip6_input+0x130/0x570 [ 2660.243832][ C2] ? ip6_input_finish+0x590/0x590 [ 2660.243834][ C2] ? ip6_input_finish+0x590/0x590 [ 2660.243835][ C2] ? ip6_rcv_core+0xde3/0x1be0 [ 2660.243836][ C2] ? __asan_memset+0x27/0x50 [ 2660.243839][ C2] ? ip6_rcv_core+0xded/0x1be0 [ 2660.243841][ C2] ipv6_rcv+0x3c1/0x5a0 [ 2660.243842][ C2] ? ip6_rcv_core+0x1be0/0x1be0 [ 2660.243844][ C2] ? mark_usage+0x61/0x170 [ 2660.243845][ C2] ? __lock_acquire+0x518/0xc20 [ 2660.243847][ C2] ? process_backlog+0x3f1/0x14c0 [ 2660.243851][ C2] __netif_receive_skb_one_core+0xfc/0x180 [ 2660.243853][ C2] ? lock_acquire.part.0+0xd4/0x280 [ 2660.243854][ C2] ? process_backlog+0x3f1/0x14c0 [ 2660.243856][ C2] ? __netif_receive_skb_list_core+0x9e0/0x9e0 [ 2660.243858][ C2] ? rcu_is_watching+0x16/0xd0 [ 2660.243860][ C2] process_backlog+0x431/0x14c0 [ 2660.243863][ C2] __napi_poll+0xa7/0x3b0 [ 2660.243865][ C2] net_rx_action+0x513/0xf50 [ 2660.243868][ C2] ? __napi_poll+0x3b0/0x3b0 [ 2660.243870][ C2] ? __napi_poll+0x3b0/0x3b0 [ 2660.243874][ C2] ? mark_held_locks+0x40/0x70 [ 2660.243876][ C2] ? rcu_is_watching+0x16/0xd0 [ 2660.243877][ C2] ? mark_held_locks+0x40/0x70 [ 2660.243879][ C2] handle_softirqs+0x1d3/0x900 [ 2660.243882][ C2] ? _local_bh_enable+0xc0/0xc0 [ 2660.243884][ C2] ? _local_bh_enable+0xc0/0xc0 [ 2660.243885][ C2] ? __dev_queue_xmit+0x974/0x1b90 [ 2660.243887][ C2] do_softirq+0xac/0xe0 [ 2660.243889][ C2] [ 2660.243890][ C2] [ 2660.243890][ C2] __local_bh_enable_ip+0x118/0x150 [ 2660.243892][ C2] __dev_queue_xmit+0x989/0x1b90 [ 2660.243894][ C2] ? __lock_acquire+0x518/0xc20 [ 2660.243897][ C2] ? netdev_core_pick_tx+0x2c0/0x2c0 [ 2660.243899][ C2] ? lock_acquire.part.0+0x60/0x280 [ 2660.243900][ C2] ? find_held_lock+0x2b/0x80 [ 2660.243902][ C2] ? __lock_release.isra.0+0x69/0x1a0 [ 2660.243904][ C2] ? rcu_is_watching+0x16/0xd0 [ 2660.243905][ C2] ? mark_held_locks+0x40/0x70 [ 2660.243907][ C2] ? __asan_memcpy+0x3c/0x60 [ 2660.243909][ C2] ? neigh_hh_output+0x152/0x4c0 [ 2660.243912][ C2] ip6_finish_output2+0x9e0/0x13f0 [ 2660.243915][ C2] ? ip6_dst_lookup+0x80/0x80 [ 2660.243916][ C2] ? find_held_lock+0x2b/0x80 [ 2660.243918][ C2] ? __lock_release.isra.0+0x69/0x1a0 [ 2660.243920][ C2] ? ip6_mtu+0x174/0x410 [ 2660.243923][ C2] ip6_finish_output+0x701/0xe80 [ 2660.243925][ C2] ip6_output+0x23f/0x7f0 [ 2660.243927][ C2] ? ip6_finish_output+0xe80/0xe80 [ 2660.243929][ C2] ? lock_acquire.part.0+0xd4/0x280 [ 2660.243931][ C2] ? find_held_lock+0x2b/0x80 [ 2660.243932][ C2] ? __lock_release.isra.0+0x69/0x1a0 [ 2660.243935][ C2] ip6_xmit+0xc44/0x1ec0 [ 2660.243937][ C2] ? mark_usage+0x61/0x170 [ 2660.243938][ C2] ? __lock_acquire+0x518/0xc20 [ 2660.243941][ C2] ? ip6_autoflowlabel+0x120/0x120 [ 2660.243943][ C2] ? __lock_release.isra.0+0x69/0x1a0 [ 2660.243944][ C2] ? mark_usage+0x61/0x170 [ 2660.243946][ C2] ? __lock_acquire+0x518/0xc20 [ 2660.243948][ C2] ? lock_acquire.part.0+0xd4/0x280 [ 2660.243950][ C2] ? inet6_csk_xmit+0xfe/0x5f0 [ 2660.243952][ C2] ? rcu_is_watching+0x16/0xd0 [ 2660.243953][ C2] ? lock_acquire+0x13c/0x160 [ 2660.243955][ C2] inet6_csk_xmit+0x2f6/0x5f0 [ 2660.243958][ C2] __tcp_transmit_skb+0x1c3e/0x3cd0 [ 2660.243962][ C2] ? __lock_acquire+0x518/0xc20 [ 2660.243964][ C2] ? __tcp_select_window+0x1040/0x1040 [ 2660.243966][ C2] ? lock_acquire.part.0+0xd4/0x280 [ 2660.243968][ C2] ? find_held_lock+0x2b/0x80 [ 2660.243971][ C2] tcp_write_xmit+0x5a4/0x3080 [ 2660.243975][ C2] ? tcp_retrans_try_collapse+0x1090/0x1090 [ 2660.243977][ C2] ? skb_attempt_defer_free+0x270/0x790 [ 2660.243979][ C2] ? tcp_set_state+0x101/0x580 [ 2660.243981][ C2] __tcp_push_pending_frames+0x8f/0x3b0 [ 2660.243983][ C2] __tcp_close+0x84e/0xe70 [ 2660.243986][ C2] tcp_close+0x23/0xb0 [ 2660.243987][ C2] inet_release+0x10a/0x240 [ 2660.243990][ C2] ? fcntl_setlk+0xce0/0xce0 [ 2660.243993][ C2] __sock_release+0xb8/0x280 [ 2660.243996][ C2] sock_close+0x18/0x20 [ 2660.243998][ C2] __fput+0x36c/0xad0 [ 2660.244001][ C2] fput_close_sync+0xde/0x1b0 [ 2660.244003][ C2] ? alloc_file_clone+0xe0/0xe0 [ 2660.244005][ C2] ? do_raw_spin_unlock+0x59/0x250 [ 2660.244007][ C2] __x64_sys_close+0x8b/0xf0 [ 2660.244009][ C2] do_syscall_64+0xff/0x530 [ 2660.244012][ C2] ? exc_page_fault+0xee/0x100 [ 2660.244014][ C2] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 2660.244016][ C2] RIP: 0033:0x7f154089254e [ 2660.244019][ C2] Code: 4d 89 d8 e8 b4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [ 2660.244021][ C2] RSP: 002b:00007ffec4281250 EFLAGS: 00000202 ORIG_RAX: 0000000000000003 [ 2660.244026][ C2] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f154089254e [ 2660.244027][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 [ 2660.244028][ C2] RBP: 00007ffec4281260 R08: 0000000000000000 R09: 0000000000000000 [ 2660.244029][ C2] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000005 [ 2660.244029][ C2] R13: 000000000000000a R14: 0000000000000006 R15: 0000000000402e00 [ 2660.244032][ C2] [ 2660.244033][ C2] [ 2660.266472][ C2] The buggy address belongs to the object at ff110000180fcb68 [ 2660.266472][ C2] which belongs to the cache tw_sock_TCPv6 of size 288 [ 2660.266973][ C2] The buggy address is located 144 bytes inside of [ 2660.266973][ C2] allocated 288-byte region [ff110000180fcb68, ff110000180fcc88) [ 2660.267524][ C2] [ 2660.267605][ C2] The buggy address belongs to the physical page: [ 2660.267865][ C2] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xff110000180fc9c8 pfn:0x180fc [ 2660.268254][ C2] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 2660.268499][ C2] flags: 0x80000000000240(workingset|head|node=0|zone=1) [ 2660.268771][ C2] page_type: f5(slab) [ 2660.268898][ C2] raw: 0080000000000240 ff11000005e01e40 ffd40000002e4c10 ff11000005e090c8 [ 2660.269251][ C2] raw: ff110000180fc9c8 0000000000130001 00000000f5000000 0000000000000000 [ 2660.269599][ C2] head: 0080000000000240 ff11000005e01e40 ffd40000002e4c10 ff11000005e090c8 [ 2660.269954][ C2] head: ff110000180fc9c8 0000000000130001 00000000f5000000 0000000000000000 [ 2660.270303][ C2] head: 0080000000000001 ffffffffffffff81 00000000ffffffff 00000000ffffffff [ 2660.270650][ C2] head: ff11000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 2660.271000][ C2] page dumped because: kasan: bad access detected [ 2660.271202][ C2] [ 2660.271284][ C2] Memory state around the buggy address: [ 2660.271444][ C2] ff110000180fca80: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc [ 2660.271745][ C2] ff110000180fcb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 2660.271979][ C2] >ff110000180fcb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 2660.272269][ C2] ^ [ 2660.272560][ C2] ff110000180fcc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 2660.272852][ C2] ff110000180fcc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 2660.273085][ C2] ================================================================== [ 2660.273419][ C2] Disabling lock debugging due to kernel taint