================================================================== BUG: KASAN: slab-out-of-bounds in __swab64p include/uapi/linux/swab.h:192 [inline] BUG: KASAN: slab-out-of-bounds in __be64_to_cpup include/uapi/linux/byteorder/little_endian.h:74 [inline] BUG: KASAN: slab-out-of-bounds in is_tx_ready include/net/tls.h:354 [inline] BUG: KASAN: slab-out-of-bounds in tls_write_space+0x29d/0x2d0 net/tls/tls_main.c:236 Read of size 8 at addr ffff8801bc34aff0 by task syz-executor1/8680 CPU: 1 PID: 8680 Comm: syz-executor1 Not tainted 4.19.0-rc4+ #230 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1c4/0x2b4 lib/dump_stack.c:113 print_address_description.cold.8+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.9+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __swab64p include/uapi/linux/swab.h:192 [inline] __be64_to_cpup include/uapi/linux/byteorder/little_endian.h:74 [inline] is_tx_ready include/net/tls.h:354 [inline] tls_write_space+0x29d/0x2d0 net/tls/tls_main.c:236 do_tcp_setsockopt.isra.40+0x1371/0x2770 net/ipv4/tcp.c:3041 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 tcp_setsockopt+0xc1/0xe0 net/ipv4/tcp.c:3066 tls_setsockopt+0xaa/0x770 net/tls/tls_main.c:531 sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:3038 __sys_setsockopt+0x1ba/0x3c0 net/socket.c:1902 __do_sys_setsockopt net/socket.c:1913 [inline] __se_sys_setsockopt net/socket.c:1910 [inline] __x64_sys_setsockopt+0xbe/0x150 net/socket.c:1910 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457579 Code: 1d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 eb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f13ea643c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000457579 RDX: 0000000000000019 RSI: 0000000000000006 RDI: 0000000000000003 RBP: 000000000072c040 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000020000040 R11: 0000000000000246 R12: 00007f13ea6446d4 R13: 00000000004c3e46 R14: 00000000004d6128 R15: 00000000ffffffff CPU: 0 PID: 8693 Comm: syz-executor0 Not tainted 4.19.0-rc4+ #230 Allocated by task 7310: Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 save_stack+0x43/0xd0 mm/kasan/kasan.c:448 Call Trace: set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1c4/0x2b4 lib/dump_stack.c:113 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node_track_caller+0x47/0x70 mm/slab.c:3696 __kmalloc_reserve.isra.39+0x41/0xe0 net/core/skbuff.c:137 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0xa/0x17 lib/fault-inject.c:149 __alloc_skb+0x155/0x770 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:995 [inline] alloc_skb_with_frags+0x133/0x7d0 net/core/skbuff.c:5268 sock_alloc_send_pskb+0x865/0xab0 net/core/sock.c:2082 sock_alloc_send_skb+0x32/0x40 net/core/sock.c:2099 __ip_append_data.isra.48+0x15b8/0x29b0 net/ipv4/ip_output.c:981 ip_make_skb+0x2aa/0x340 net/ipv4/ip_output.c:1507 udp_sendmsg+0x29a7/0x3b70 net/ipv4/udp.c:1111 udpv6_sendmsg+0x182f/0x3710 net/ipv6/udp.c:1205 inet_sendmsg+0x1a1/0x690 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:631 ___sys_sendmsg+0x51d/0x930 net/socket.c:2116 __sys_sendmmsg+0x246/0x6d0 net/socket.c:2211 __should_failslab+0x124/0x180 mm/failslab.c:32 __do_sys_sendmmsg net/socket.c:2240 [inline] __se_sys_sendmmsg net/socket.c:2237 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2237 should_failslab+0x9/0x14 mm/slab_common.c:1557 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc_node mm/slab.c:3299 [inline] kmem_cache_alloc_node_trace+0x270/0x740 mm/slab.c:3661 entry_SYSCALL_64_after_hwframe+0x49/0xbe __do_kmalloc_node mm/slab.c:3681 [inline] __kmalloc_node_track_caller+0x33/0x70 mm/slab.c:3696 __kmalloc_reserve.isra.39+0x41/0xe0 net/core/skbuff.c:137 Freed by task 7310: __alloc_skb+0x155/0x770 net/core/skbuff.c:205 save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kfree+0xcf/0x230 mm/slab.c:3813 skb_free_head+0x99/0xc0 net/core/skbuff.c:550 skb_release_data+0x6a4/0x880 net/core/skbuff.c:570 skb_release_all+0x4a/0x60 net/core/skbuff.c:627 alloc_skb include/linux/skbuff.h:995 [inline] netlink_alloc_large_skb net/netlink/af_netlink.c:1182 [inline] netlink_sendmsg+0xb29/0xfc0 net/netlink/af_netlink.c:1876 __kfree_skb net/core/skbuff.c:641 [inline] kfree_skb+0x1bb/0x580 net/core/skbuff.c:659 ip_rcv_finish_core.isra.16+0xd1d/0x1f40 net/ipv4/ip_input.c:393 ip_rcv_finish+0xc6/0x300 net/ipv4/ip_input.c:413 NF_HOOK include/linux/netfilter.h:287 [inline] ip_rcv+0xed/0x610 net/ipv4/ip_input.c:524 __netif_receive_skb_one_core+0x14d/0x200 net/core/dev.c:4894 __netif_receive_skb+0x2c/0x1e0 net/core/dev.c:5004 netif_receive_skb_internal+0x12c/0x620 net/core/dev.c:5107 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:631 napi_skb_finish net/core/dev.c:5564 [inline] napi_gro_receive+0x450/0x5f0 net/core/dev.c:5595 ___sys_sendmsg+0x7fd/0x930 net/socket.c:2116 gro_cell_poll+0x132/0x210 net/core/gro_cells.c:46 napi_poll net/core/dev.c:6228 [inline] net_rx_action+0x7c5/0x1950 net/core/dev.c:6294 __do_softirq+0x30b/0xad8 kernel/softirq.c:292 The buggy address belongs to the object at ffff8801bc34ac80 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 368 bytes to the right of 512-byte region [ffff8801bc34ac80, ffff8801bc34ae80) The buggy address belongs to the page: page:ffffea0006f0d280 count:1 mapcount:0 mapping:ffff8801da800940 index:0xffff8801bc34ac80 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea000705e808 ffffea000765f7c8 ffff8801da800940 raw: ffff8801bc34ac80 ffff8801bc34a000 0000000100000005 0000000000000000 __sys_sendmsg+0x11d/0x280 net/socket.c:2154 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801bc34ae80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801bc34af00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801bc34af80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ __do_sys_sendmsg net/socket.c:2163 [inline] __se_sys_sendmsg net/socket.c:2161 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2161 ffff8801bc34b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 ffff8801bc34b080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================