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: slab-out-of-bounds in rmd320_final+0x201/0x240 crypto/rmd320.c:358 Write of size 4 at addr ffff8801d06f8440 by task syz-executor818/4547 CPU: 0 PID: 4547 Comm: syz-executor818 Not tainted 4.17.0+ #89 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+0x1b9/0x294 lib/dump_stack.c:113 print_address_description+0x6c/0x20b mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:412 __asan_report_store4_noabort+0x17/0x20 mm/kasan/report.c:437 rmd320_final+0x201/0x240 crypto/rmd320.c:358 crypto_shash_final+0x104/0x260 crypto/shash.c:152 kdf_ctr security/keys/dh.c:186 [inline] keyctl_dh_compute_kdf security/keys/dh.c:217 [inline] __keyctl_dh_compute+0x1184/0x1bc0 security/keys/dh.c:389 keyctl_dh_compute+0xb9/0x100 security/keys/dh.c:425 __do_sys_keyctl security/keys/keyctl.c:1741 [inline] __se_sys_keyctl security/keys/keyctl.c:1637 [inline] __x64_sys_keyctl+0x12a/0x3b0 security/keys/keyctl.c:1637 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x440019 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 6b 45 00 00 c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffc632dd578 EFLAGS: 00000217 ORIG_RAX: 00000000000000fa RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440019 RDX: 0000000020a53ffb RSI: 0000000020000100 RDI: 0000000000000017 RBP: 00000000006ca018 R08: 0000000020c61fc8 R09: 00000000004002c8 R10: 000000000000001c R11: 0000000000000217 R12: 0000000000401940 R13: 00000000004019d0 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 4547: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc4/0xe0 mm/kasan/kasan.c:553 __do_kmalloc mm/slab.c:3718 [inline] __kmalloc+0x14e/0x760 mm/slab.c:3727 kmalloc include/linux/slab.h:518 [inline] keyctl_dh_compute_kdf security/keys/dh.c:211 [inline] __keyctl_dh_compute+0xfe9/0x1bc0 security/keys/dh.c:389 keyctl_dh_compute+0xb9/0x100 security/keys/dh.c:425 __do_sys_keyctl security/keys/keyctl.c:1741 [inline] __se_sys_keyctl security/keys/keyctl.c:1637 [inline] __x64_sys_keyctl+0x12a/0x3b0 security/keys/keyctl.c:1637 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 1: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kfree+0xd9/0x260 mm/slab.c:3813 virtscsi_target_destroy+0x37/0x50 drivers/scsi/virtio_scsi.c:716 scsi_target_destroy+0x1fa/0x560 drivers/scsi/scsi_scan.c:327 scsi_target_reap_ref_release drivers/scsi/scsi_scan.c:398 [inline] kref_put include/linux/kref.h:70 [inline] scsi_target_reap_ref_put drivers/scsi/scsi_scan.c:403 [inline] scsi_target_reap+0xf8/0x140 drivers/scsi/scsi_scan.c:523 __scsi_scan_target+0x221/0xfe0 drivers/scsi/scsi_scan.c:1586 scsi_scan_channel.part.7+0x11f/0x190 drivers/scsi/scsi_scan.c:1657 scsi_scan_channel drivers/scsi/scsi_scan.c:1684 [inline] scsi_scan_host_selected+0x2b9/0x3d0 drivers/scsi/scsi_scan.c:1686 do_scsi_scan_host+0x1ee/0x260 drivers/scsi/scsi_scan.c:1824 scsi_scan_host+0x4a2/0x590 drivers/scsi/scsi_scan.c:1854 virtscsi_probe+0xbe5/0xf04 drivers/scsi/virtio_scsi.c:913 virtio_dev_probe+0x592/0x942 drivers/virtio/virtio.c:245 really_probe drivers/base/dd.c:446 [inline] driver_probe_device+0x68e/0x950 drivers/base/dd.c:588 __driver_attach+0x28b/0x2f0 drivers/base/dd.c:821 bus_for_each_dev+0x151/0x1d0 drivers/base/bus.c:311 driver_attach+0x3d/0x50 drivers/base/dd.c:840 bus_add_driver+0x4b2/0x600 drivers/base/bus.c:667 driver_register+0x1c8/0x320 drivers/base/driver.c:170 register_virtio_driver+0x79/0xd0 drivers/virtio/virtio.c:296 is_blacklisted_cpu arch/x86/crypto/camellia_glue.c:1473 [inline] init+0xa3/0x114 arch/x86/crypto/camellia_glue.c:1494 do_one_initcall+0x127/0x913 init/main.c:884 do_initcall_level init/main.c:952 [inline] do_initcalls init/main.c:960 [inline] do_basic_setup init/main.c:978 [inline] kernel_init_freeable+0x49b/0x58e init/main.c:1135 kernel_init+0x11/0x1b3 init/main.c:1061 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 The buggy address belongs to the object at ffff8801d06f8400 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 0 bytes to the right of 64-byte region [ffff8801d06f8400, ffff8801d06f8440) The buggy address belongs to the page: page:ffffea000741be00 count:1 mapcount:0 mapping:ffff8801d06f8000 index:0x0 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffff8801d06f8000 0000000000000000 0000000100000020 raw: ffffea000749d360 ffffea0007485860 ffff8801da800340 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801d06f8300: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8801d06f8380: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff8801d06f8400: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff8801d06f8480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8801d06f8500: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================