random: sshd: uninitialized urandom read (32 bytes read) audit: type=1400 audit(1555915395.634:36): avc: denied { map } for pid=7071 comm="syz-executor825" path="/root/syz-executor825187896" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 ================================================================== BUG: KASAN: slab-out-of-bounds in tls_push_record+0x1009/0x1210 net/tls/tls_sw.c:255 Read of size 8 at addr ffff8880915ac5b8 by task syz-executor825/7071 CPU: 0 PID: 7071 Comm: syz-executor825 Not tainted 4.14.113 #3 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+0x138/0x19c lib/dump_stack.c:53 print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xaf/0x2b5 mm/kasan/report.c:393 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:430 tls_push_record+0x1009/0x1210 net/tls/tls_sw.c:255 tls_sw_push_pending_record+0x23/0x30 net/tls/tls_sw.c:299 tls_handle_open_record net/tls/tls_main.c:158 [inline] tls_sk_proto_close+0x5da/0x760 net/tls/tls_main.c:270 inet_release+0xf2/0x1c0 net/ipv4/af_inet.c:425 __sock_release+0x20a/0x2c0 net/socket.c:602 sock_release+0x18/0x20 net/socket.c:623 smc_release+0x240/0x640 net/smc/af_smc.c:141 __sock_release+0xd3/0x2c0 net/socket.c:602 sock_close+0x1b/0x30 net/socket.c:1139 __fput+0x277/0x7a0 fs/file_table.c:210 ____fput+0x16/0x20 fs/file_table.c:244 task_work_run+0x119/0x190 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x7df/0x2c10 kernel/exit.c:874 do_group_exit+0x111/0x330 kernel/exit.c:977 SYSC_exit_group kernel/exit.c:988 [inline] SyS_exit_group+0x1d/0x20 kernel/exit.c:986 do_syscall_64+0x1eb/0x630 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x43eeb8 RSP: 002b:00007ffe819ce2a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043eeb8 RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 RBP: 00000000004be6c8 R08: 00000000000000e7 R09: ffffffffffffffd0 R10: 0000000000000028 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 7071: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 kmem_cache_alloc_trace+0x152/0x790 mm/slab.c:3618 kmalloc include/linux/slab.h:488 [inline] kzalloc include/linux/slab.h:661 [inline] tls_set_sw_offload+0x8b/0xe70 net/tls/tls_sw.c:683 do_tls_setsockopt_tx net/tls/tls_main.c:443 [inline] do_tls_setsockopt net/tls/tls_main.c:468 [inline] tls_setsockopt+0x22e/0x410 net/tls/tls_main.c:486 sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2966 smc_setsockopt+0xc7/0x120 net/smc/af_smc.c:1240 SYSC_setsockopt net/socket.c:1865 [inline] SyS_setsockopt+0x141/0x210 net/socket.c:1844 do_syscall_64+0x1eb/0x630 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8880915ac5c0 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 8 bytes to the left of 2048-byte region [ffff8880915ac5c0, ffff8880915acdc0) The buggy address belongs to the page: page:ffffea0002456b00 count:1 mapcount:0 mapping:ffff8880915ac5c0 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000008100(slab|head) raw: 01fffc0000008100 ffff8880915ac5c0 0000000000000000 0000000100000003 raw: ffffea00021aa7a0 ffff8880aa801948 ffff8880aa800c40 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880915ac480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880915ac500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880915ac580: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ^ ffff8880915ac600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880915ac680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================