random: sshd: uninitialized urandom read (32 bytes read, 97 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 ffff8801d2247140 by task syzkaller455472/3312 CPU: 1 PID: 3312 Comm: syzkaller455472 Not tainted 4.4.112-g3fc4284 #32 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 859da19eb456a9db ffff8801d22679f0 ffffffff81d054ed ffffea00074891c0 ffff8801d2247140 0000000000000000 ffff8801d2247140 ffff8801d0f8a338 ffff8801d2267a28 ffffffff814fd953 ffff8801d2247140 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 ffff8801d2247100 which belongs to the cache fasync_cache of size 96 The buggy address is located 64 bytes inside of 96-byte region [ffff8801d2247100, ffff8801d2247160) 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: 0 Comm: swapper/0 Not tainted 4.4.112-g3fc4284 #32 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffffffff84217840 task.stack: ffffffff84200000 RIP: 0010:[] [] lookup_object lib/debugobjects.c:120 [inline] RIP: 0010:[] [] debug_object_deactivate+0x1a6/0x3c0 lib/debugobjects.c:465 RSP: 0018:ffff8801db207d10 EFLAGS: 00010803 RAX: 0000000000000096 RBX: e90006e0d8e80b0f RCX: ffff8800b7bafaf0 RDX: 1d2000dc1b1d0164 RSI: ffffffff842c2560 RDI: e90006e0d8e80b27 RBP: ffff8801db207dd8 R08: 1ffff10039a9c1ae R09: ffffffff85133d90 R10: 0000000000000001 R11: 1ffff1003b640f68 R12: 1ffff1003b640fa6 R13: 0000000000000003 R14: dffffc0000000000 R15: ffffffff857cea08 FS: 0000000000000000(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005561e7130110 CR3: 00000000b6a4a000 CR4: 0000000000160670 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: 0000000000000000 0000000000000000 ffffffff842c2560 ffff8800b7bafaf0 0000000041b58ab3 ffffffff83fccf59 ffffffff81d67300 ffffffff812a1f4c ffffffff00000000 ffffffff00000000 0000000000000000 ffffffff838691c0 Call Trace: [] debug_timer_deactivate kernel/time/timer.c:618 [inline] [] debug_deactivate kernel/time/timer.c:670 [inline] [] detach_timer kernel/time/timer.c:716 [inline] [] detach_expired_timer kernel/time/timer.c:727 [inline] [] __run_timers kernel/time/timer.c:1246 [inline] [] run_timer_softirq+0x336/0xbb0 kernel/time/timer.c:1437 [] __do_softirq+0x24d/0xa59 kernel/softirq.c:273 [] invoke_softirq kernel/softirq.c:350 [inline] [] irq_exit+0x119/0x140 kernel/softirq.c:391 [] exiting_irq arch/x86/include/asm/apic.h:653 [inline] [] smp_apic_timer_interrupt+0x7b/0xa0 arch/x86/kernel/apic/apic.c:926 [] apic_timer_interrupt+0xa0/0xb0 arch/x86/entry/entry_64.S:725 [] arch_safe_halt arch/x86/include/asm/paravirt.h:117 [inline] [] default_idle+0x55/0x3c0 arch/x86/kernel/process.c:291 [] arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:282 [] default_idle_call+0x48/0x70 kernel/sched/idle.c:93 [] cpuidle_idle_call kernel/sched/idle.c:157 [inline] [] cpu_idle_loop kernel/sched/idle.c:253 [inline] [] cpu_startup_entry+0x605/0x820 kernel/sched/idle.c:301 [] rest_init+0x189/0x190 init/main.c:410 [] start_kernel+0x6b9/0x6ee init/main.c:682 [] x86_64_start_reservations+0x2a/0x2c arch/x86/kernel/head64.c:196 [] x86_64_start_kernel+0x140/0x163 arch/x86/kernel/head64.c:185 Code: eb 1a 48 89 da 48 c1 ea 03 42 80 3c 32 00 0f 85 86 01 00 00 48 8b 1b 48 85 db 74 7a 48 8d 7b 18 41 83 c5 01 48 89 fa 48 c1 ea 03 <42> 80 3c 32 00 0f 85 3c 01 00 00 48 3b 4b 18 75 c6 48 8d 7b 10 RIP [] lookup_object lib/debugobjects.c:120 [inline] RIP [] debug_object_deactivate+0x1a6/0x3c0 lib/debugobjects.c:465 RSP ---[ end trace b6f6716181a16c76 ]---