random: sshd: uninitialized urandom read (32 bytes read, 128 bits of entropy available) ================================================================== BUG: KASAN: slab-out-of-bounds in list_empty include/linux/list.h:189 [inline] BUG: KASAN: slab-out-of-bounds in sg_remove_request+0xf9/0x110 drivers/scsi/sg.c:2130 Read of size 8 at addr ffff8800b51e4140 by task syzkaller681895/3338 CPU: 1 PID: 3338 Comm: syzkaller681895 Not tainted 4.4.112-g3fc4284 #32 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 0c97d5196efad1fd ffff8801d01a79f0 ffffffff81d054ed ffffea0002d47900 ffff8800b51e4140 0000000000000000 ffff8800b51e4140 ffff8800b49ec438 ffff8801d01a7a28 ffffffff814fd953 ffff8800b51e4140 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x124 lib/dump_stack.c:51 [] print_address_description+0x73/0x260 mm/kasan/report.c:252 [] kasan_report_error mm/kasan/report.c:351 [inline] [] kasan_report+0x285/0x370 mm/kasan/report.c:408 [] __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:429 [] list_empty include/linux/list.h:189 [inline] [] sg_remove_request+0xf9/0x110 drivers/scsi/sg.c:2130 [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1848 [] sg_read+0xa21/0x1490 drivers/scsi/sg.c:538 [] do_loop_readv_writev+0x141/0x1e0 fs/read_write.c:680 [] do_readv_writev+0x5dd/0x6e0 fs/read_write.c:810 [] vfs_readv+0x78/0xb0 fs/read_write.c:834 [] SYSC_readv fs/read_write.c:860 [inline] [] SyS_readv+0xd9/0x240 fs/read_write.c:852 [] entry_SYSCALL_64_fastpath+0x16/0x92 Allocated by task 0: (stack is not available) Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8800b51e4100 which belongs to the cache fasync_cache of size 96 The buggy address is located 64 bytes inside of 96-byte region [ffff8800b51e4100, ffff8800b51e4160) The buggy address belongs to the page: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory accessgeneral protection fault: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 1 Comm: init Not tainted 4.4.112-g3fc4284 #32 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801da308000 task.stack: ffff8801da310000 RIP: 0010:[] [] __lock_acquire+0x61f/0x4b50 kernel/locking/lockdep.c:3100 RSP: 0000:ffff8801da317400 EFLAGS: 00010086 RAX: dffffc0000000000 RBX: 838a8740c7c748ff RCX: 0000000000000000 RDX: 1ffffffff0291fda RSI: 0000000000000001 RDI: ffffffff8148fed1 RBP: ffff8801da317598 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 1ffff1003b462e92 R12: 0000000000000000 R13: ffff8801da308000 R14: ffffffff8148fec9 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000000420c000 CR4: 0000000000160670 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffff8801da308000 ffff8801da308870 0000000000000002 ffff8801da308000 0000000000000000 0000000000000000 ffff8801da3175e0 0000000000000046 ffff8801da308870 ffff8801da308848 ffff8801da317510 0000000000000046 Call Trace: [] lock_acquire+0x15e/0x460 kernel/locking/lockdep.c:3592 [] __raw_spin_lock include/linux/spinlock_api_smp.h:144 [inline] [] _raw_spin_lock+0x36/0x50 kernel/locking/spinlock.c:151 [] spin_lock include/linux/spinlock.h:302 [inline] [] __posix_lock_file+0x142/0x1640 fs/locks.c:966 [] posix_lock_file fs/locks.c:1165 [inline] [] vfs_lock_file+0xc1/0xe0 fs/locks.c:2109 [] locks_remove_posix.part.34+0x121/0x1e0 fs/locks.c:2423 [] locks_remove_posix+0x9b/0xd0 fs/locks.c:2410 [] filp_close+0xf1/0x150 fs/open.c:1099 [] close_files fs/file.c:405 [inline] [] put_files_struct+0x15a/0x270 fs/file.c:433 [] exit_files+0x83/0xb0 fs/file.c:462 [] do_exit+0x842/0x2a20 kernel/exit.c:750 [] do_group_exit+0x108/0x320 kernel/exit.c:885 [] get_signal+0x565/0x1660 kernel/signal.c:2317 [] do_signal+0x8b/0x1d40 arch/x86/kernel/signal.c:712 [] exit_to_usermode_loop+0x122/0x170 arch/x86/entry/common.c:247 [] prepare_exit_to_usermode+0xe3/0x100 arch/x86/entry/common.c:282 [] retint_user+0x8/0x3c Code: 00 fc ff df 44 89 e3 49 8d 7c de 08 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 b6 37 00 00 49 8b 5c de 08 48 85 db 0f 84 28 fb ff ff ff 83 98 01 00 00 49 8d 85 68 08 00 00 48 89 c2 48 89 44 24 RIP [] __lock_acquire+0x61f/0x4b50 kernel/locking/lockdep.c:3100 RSP ---[ end trace 8453a54f730ed207 ]---