================================================================== BUG: KASAN: slab-out-of-bounds in sg_mark_end include/linux/scatterlist.h:190 [inline] BUG: KASAN: slab-out-of-bounds in tls_push_record+0x10cc/0x1270 net/tls/tls_sw.c:255 Read of size 8 at addr ffff888047a68c38 by task syz-executor.5/8482 CPU: 0 PID: 8482 Comm: syz-executor.5 Not tainted 4.14.232-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 overlayfs: missing 'lowerdir' print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load8_noabort+0x68/0x70 mm/kasan/report.c:430 sg_mark_end include/linux/scatterlist.h:190 [inline] tls_push_record+0x10cc/0x1270 net/tls/tls_sw.c:255 tmpfs: No value for mount option '00000000000000060928' tls_handle_open_record net/tls/tls_main.c:158 [inline] tls_sk_proto_close+0x6f0/0x8b0 net/tls/tls_main.c:270 overlayfs: fs on './file0' does not support file handles, falling back to index=off. inet_release+0xdf/0x1b0 net/ipv4/af_inet.c:425 inet6_release+0x4c/0x70 net/ipv6/af_inet6.c:450 __sock_release+0xcd/0x2b0 net/socket.c:602 sock_close+0x15/0x20 net/socket.c:1139 __fput+0x25f/0x7a0 fs/file_table.c:210 task_work_run+0x11f/0x190 kernel/task_work.c:113 tmpfs: No value for mount option '00000000000000060928' tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x41940b RSP: 002b:00007ffcc40b1910 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 000000000041940b RDX: 0000000000000000 RSI: 0000001b2e225d58 RDI: 0000000000000003 RBP: 0000000000000001 R08: 0000000000000000 R09: 000000000000033a R10: 0000000078e0233d R11: 0000000000000293 R12: 000000000056c9e0 R13: 000000000056c9e0 R14: 000000000056bf60 R15: 00000000000b0316 Allocated by task 7031: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15a/0x400 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] sk_prot_alloc+0x1ba/0x290 net/core/sock.c:1467 sk_alloc+0x36/0xcd0 net/core/sock.c:1521 __netlink_create+0x63/0x270 net/netlink/af_netlink.c:611 netlink_create+0x270/0x510 net/netlink/af_netlink.c:674 __sock_create+0x303/0x620 net/socket.c:1275 sock_create net/socket.c:1315 [inline] SYSC_socket net/socket.c:1345 [inline] SyS_socket+0xd1/0x1b0 net/socket.c:1325 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 overlayfs: failed to resolve './fil': -2 entry_SYSCALL_64_after_hwframe+0x46/0xbb Freed by task 7960: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 skb_free_head net/core/skbuff.c:563 [inline] skb_release_data+0x5f6/0x820 net/core/skbuff.c:583 tmpfs: No value for mount option '00000000000000060928' skb_release_all net/core/skbuff.c:640 [inline] __kfree_skb+0x46/0x60 net/core/skbuff.c:654 sk_wmem_free_skb include/net/sock.h:1425 [inline] tcp_clean_rtx_queue net/ipv4/tcp_input.c:3187 [inline] tcp_ack+0x187b/0x4580 net/ipv4/tcp_input.c:3687 tcp_rcv_established+0xebb/0x1810 net/ipv4/tcp_input.c:5501 tcp_v4_do_rcv+0x541/0x7d0 net/ipv4/tcp_ipv4.c:1476 sk_backlog_rcv include/net/sock.h:921 [inline] __release_sock+0x12a/0x350 net/core/sock.c:2269 release_sock+0x54/0x1b0 net/core/sock.c:2805 tcp_sendmsg+0x36/0x40 net/ipv4/tcp.c:1458 inet_sendmsg+0x11a/0x4e0 net/ipv4/af_inet.c:762 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 sock_write_iter+0x22c/0x370 net/socket.c:925 call_write_iter include/linux/fs.h:1778 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x44c/0x630 fs/read_write.c:482 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb The buggy address belongs to the object at ffff888047a683c0 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 120 bytes to the right of 2048-byte region [ffff888047a683c0, ffff888047a68bc0) The buggy address belongs to the page: page:ffffea00011e9a00 count:1 mapcount:0 mapping:ffff888047a683c0 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffff888047a683c0 0000000000000000 0000000100000003 raw: ffffea0002476220 ffffea000282f020 ffff88813fe80c40 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888047a68b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888047a68b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888047a68c00: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ^ ffff888047a68c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888047a68d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== overlayfs: missing 'lowerdir' overlayfs: failed to resolve './fil': -2 tmpfs: No value for mount option '00000000000000060928' overlayfs: fs on './file0' does not support file handles, falling back to index=off. tmpfs: No value for mount option '00000000000000060928'