random: sshd: uninitialized urandom read (32 bytes read) random: sshd: uninitialized urandom read (32 bytes read) random: sshd: uninitialized urandom read (32 bytes read) random: sshd: uninitialized urandom read (32 bytes read) ================================================================== BUG: KASAN: use-after-free in __swab64p include/uapi/linux/swab.h:192 [inline] BUG: KASAN: use-after-free in __be64_to_cpup include/uapi/linux/byteorder/little_endian.h:74 [inline] BUG: KASAN: use-after-free in is_tx_ready include/net/tls.h:354 [inline] BUG: KASAN: use-after-free in tls_write_space+0x29d/0x2d0 net/tls/tls_main.c:236 Read of size 8 at addr ffff8801bf880070 by task syz-executor343/5324 CPU: 0 PID: 5324 Comm: syz-executor343 Not tainted 4.19.0-rc4+ #227 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:0x440979 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffdb31c8378 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007ffdb31c8380 RCX: 0000000000440979 RDX: 0000000000000019 RSI: 0000000000000006 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000004 R09: 00000000004009ae R10: 0000000020000040 R11: 0000000000000246 R12: 0000000000402200 R13: 0000000000402290 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 3898: 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 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x730 mm/slab.c:3554 anon_vma_chain_alloc mm/rmap.c:129 [inline] __anon_vma_prepare+0xc6/0x6c0 mm/rmap.c:183 anon_vma_prepare include/linux/rmap.h:153 [inline] do_anonymous_page mm/memory.c:3170 [inline] handle_pte_fault mm/memory.c:3981 [inline] __handle_mm_fault+0x40e2/0x53e0 mm/memory.c:4107 handle_mm_fault+0x54f/0xc70 mm/memory.c:4144 __do_page_fault+0x67d/0xed0 arch/x86/mm/fault.c:1395 do_page_fault+0xf2/0x7e0 arch/x86/mm/fault.c:1470 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1161 Freed by task 3898: 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] kmem_cache_free+0x83/0x290 mm/slab.c:3756 anon_vma_chain_free mm/rmap.c:134 [inline] unlink_anon_vmas+0x5f0/0xa60 mm/rmap.c:419 free_pgtables+0xe6/0x380 mm/memory.c:626 exit_mmap+0x2cd/0x590 mm/mmap.c:3094 __mmput kernel/fork.c:1001 [inline] mmput+0x247/0x610 kernel/fork.c:1022 exit_mm kernel/exit.c:545 [inline] do_exit+0xe6f/0x2610 kernel/exit.c:854 do_group_exit+0x177/0x440 kernel/exit.c:970 __do_sys_exit_group kernel/exit.c:981 [inline] __se_sys_exit_group kernel/exit.c:979 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:979 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 ffff8801bf880070 which belongs to the cache anon_vma_chain of size 80 The buggy address is located 0 bytes inside of 80-byte region [ffff8801bf880070, ffff8801bf8800c0) The buggy address belongs to the page: page:ffffea0006fe2000 count:1 mapcount:0 mapping:ffff8801da94c500 index:0x0 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffffea0007080f08 ffffea00075cc1c8 ffff8801da94c500 raw: 0000000000000000 ffff8801bf880000 0000000100000024 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801bf87ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801bf87ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8801bf880000: fb fb fb fb fb fb fb fb fb fb fc fc fc fc fb fb ^ ffff8801bf880080: fb fb fb fb fb fb fb fb fc fc fc fc fb fb fb fb ffff8801bf880100: fb fb fb fb fb fb fc fc fc fc fb fb fb fb fb fb ==================================================================