================================================================== 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 ffff8801c1e32ff0 by task syz-executor0/12207 CPU: 1 PID: 12207 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:00007f73b30acc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f73b30ad6d4 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 11864: 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 kmem_cache_alloc_trace+0x152/0x750 mm/slab.c:3620 kmalloc include/linux/slab.h:513 [inline] kzalloc include/linux/slab.h:707 [inline] sctp_endpoint_new+0xfd/0xec0 net/sctp/endpointola.c:191 sctp_init_sock+0xc5f/0x1490 net/sctp/socket.c:4793 inet_create+0xa22/0x1070 net/ipv4/af_inet.c:379 __sock_create+0x536/0x930 net/socket.c:1277 sock_create net/socket.c:1317 [inline] __sys_socketpair+0x200/0x7a0 net/socket.c:1405 __do_sys_socketpair net/socket.c:1458 [inline] __se_sys_socketpair net/socket.c:1455 [inline] __x64_sys_socketpair+0x97/0xf0 net/socket.c:1455 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 11864: 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 sctp_endpoint_destroy net/sctp/endpointola.c:281 [inline] sctp_endpoint_put+0x22d/0x2c0 net/sctp/endpointola.c:297 sctp_endpoint_free+0x71/0x90 net/sctp/endpointola.c:240 sctp_destroy_sock+0x101/0x590 net/sctp/socket.c:4846 sk_common_release+0x6d/0x320 net/core/sock.c:3059 sctp_close+0x513/0xb10 net/sctp/socket.c:1583 inet_release+0x104/0x1f0 net/ipv4/af_inet.c:428 __sock_release+0x1d9/0x250 net/socket.c:579 sock_release net/socket.c:598 [inline] __sys_socketpair+0x5ca/0x7a0 net/socket.c:1425 __do_sys_socketpair net/socket.c:1458 [inline] __se_sys_socketpair net/socket.c:1455 [inline] __x64_sys_socketpair+0x97/0xf0 net/socket.c:1455 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 ffff8801c1e32c80 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 368 bytes to the right of 512-byte region [ffff8801c1e32c80, ffff8801c1e32e80) The buggy address belongs to the page: page:ffffea0007078c80 count:1 mapcount:0 mapping:ffff8801da800940 index:0xffff8801c1e32280 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea0006f97bc8 ffffea0006854248 ffff8801da800940 raw: ffff8801c1e32280 ffff8801c1e32000 0000000100000005 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801c1e32e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801c1e32f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801c1e32f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801c1e33000: fb fb fb fb fb fb fb fc fc fc fc fb fb fb fb fb ffff8801c1e33080: fb fb fc fc fc fc fb fb fb fb fb fb fb fc fc fc ==================================================================