================================================================== 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 ffff8801bc503ff0 by task syz-executor0/7428 CPU: 0 PID: 7428 Comm: syz-executor0 Not tainted 4.19.0-rc4+ #228 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 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:0x457679 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:00007f62929dac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f62929db6d4 RCX: 0000000000457679 RDX: 0000000000000019 RSI: 0000000000000006 RDI: 0000000000000003 RBP: 000000000072bf00 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000020000040 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004d6090 R14: 00000000004c3f0c R15: 0000000000000000 Allocated by task 3198: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 __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 __alloc_skb+0x155/0x770 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:995 [inline] alloc_uevent_skb+0x86/0x220 lib/kobject_uevent.c:288 uevent_net_broadcast_untagged lib/kobject_uevent.c:324 [inline] kobject_uevent_net_broadcast lib/kobject_uevent.c:406 [inline] kobject_uevent_env+0x9ac/0x1360 lib/kobject_uevent.c:587 kobject_synth_uevent+0xa59/0xc1a lib/kobject_uevent.c:208 uevent_store+0x26/0x70 drivers/base/core.c:1070 dev_attr_store+0x5e/0x90 drivers/base/core.c:781 sysfs_kf_write+0x118/0x170 fs/sysfs/file.c:139 kernfs_fop_write+0x2ba/0x480 fs/kernfs/file.c:316 __vfs_write+0x119/0x9f0 fs/read_write.c:485 vfs_write+0x1fc/0x560 fs/read_write.c:549 ksys_write+0x101/0x260 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 3198: 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 __kfree_skb net/core/skbuff.c:641 [inline] consume_skb+0x1ae/0x570 net/core/skbuff.c:701 skb_free_datagram+0x1a/0xf0 net/core/datagram.c:329 netlink_recvmsg+0x70f/0x1480 net/netlink/af_netlink.c:1980 sock_recvmsg_nosec net/socket.c:794 [inline] sock_recvmsg+0xd0/0x110 net/socket.c:801 ___sys_recvmsg+0x2b6/0x680 net/socket.c:2278 __sys_recvmsg+0x11a/0x280 net/socket.c:2327 __do_sys_recvmsg net/socket.c:2337 [inline] __se_sys_recvmsg net/socket.c:2334 [inline] __x64_sys_recvmsg+0x78/0xb0 net/socket.c:2334 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8801bc503c80 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 368 bytes to the right of 512-byte region [ffff8801bc503c80, ffff8801bc503e80) The buggy address belongs to the page: page:ffffea0006f140c0 count:1 mapcount:0 mapping:ffff8801da800940 index:0x0 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea000756b9c8 ffffea0006e87088 ffff8801da800940 raw: 0000000000000000 ffff8801bc503000 0000000100000006 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801bc503e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801bc503f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801bc503f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801bc504000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801bc504080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================