random: sshd: uninitialized urandom read (32 bytes read, 111 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 ffff8800b7c7a140 by task syzkaller243578/3321 CPU: 0 PID: 3321 Comm: syzkaller243578 Not tainted 4.4.111-g3301b55 #17 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 f388bd83d2935dea ffff8801d1357a40 ffffffff81d0509d ffffea0002df1e80 ffff8800b7c7a140 0000000000000000 ffff8800b7c7a140 ffff8800b55e8238 ffff8801d1357a78 ffffffff814fd433 ffff8800b7c7a140 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 [] __vfs_read+0x103/0x440 fs/read_write.c:432 [] vfs_read+0x123/0x3a0 fs/read_write.c:454 [] SYSC_read fs/read_write.c:569 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:562 [] do_syscall_32_irqs_on arch/x86/entry/common.c:390 [inline] [] do_fast_syscall_32+0x314/0x890 arch/x86/entry/common.c:457 [] sysenter_flags_fixed+0xd/0x17 Allocated by task 0: (stack is not available) Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8800b7c7a100 which belongs to the cache fasync_cache of size 96 The buggy address is located 64 bytes inside of 96-byte region [ffff8800b7c7a100, ffff8800b7c7a160) The buggy address belongs to the page: page:ffffea0002df1e80 count:1 mapcount:-2145386463 mapping: (null) index:0x0 kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.111-g3301b55 #17 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801da3a97c0 task.stack: ffff8801da3b8000 RIP: 0010:[] [] __rb_change_child include/linux/rbtree_augmented.h:125 [inline] RIP: 0010:[] [] __rb_rotate_set_parents lib/rbtree.c:93 [inline] RIP: 0010:[] [] __rb_insert lib/rbtree.c:181 [inline] RIP: 0010:[] [] rb_insert_color+0x1d0/0xcb0 lib/rbtree.c:420 RSP: 0018:ffff8801db307d18 EFLAGS: 00010006 RAX: ffff8801db319c40 RBX: ffffea0002df1e80 RCX: 0800000000000012 RDX: dffffc0000000000 RSI: ffff8801db319710 RDI: ffffea0002df1e90 RBP: ffff8801db307d60 R08: ffffffff857d0748 R09: 0000000000000001 R10: 0000000000000000 R11: 1ffff1003b660f62 R12: 4000000000000090 R13: 4000000000000080 R14: 4000000000000080 R15: ffff8801db319c48 FS: 0000000000000000(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000556a07519100 CR3: 00000001ccd9c000 CR4: 0000000000160670 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffffffff842bcb20 ffff8801da3aa030 0000000000000000 ffff8801db307d70 ffff8801db319c40 dffffc0000000000 0000000000000000 ffff8801db319710 ffff8801d0d3fe00 ffff8801db307db0 ffffffff81d22967 ffff8801db319c58 Call Trace: [] timerqueue_add+0x157/0x2a0 lib/timerqueue.c:57 [] enqueue_hrtimer+0x168/0x450 kernel/time/hrtimer.c:890 [] __run_hrtimer kernel/time/hrtimer.c:1268 [inline] [] __hrtimer_run_queues+0x732/0xfe0 kernel/time/hrtimer.c:1317 [] hrtimer_interrupt+0x1a6/0x440 kernel/time/hrtimer.c:1351 [] local_apic_timer_interrupt+0x6a/0xb0 arch/x86/kernel/apic/apic.c:901 [] smp_apic_timer_interrupt+0x76/0xa0 arch/x86/kernel/apic/apic.c:925 [] 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 [] start_secondary+0x304/0x3e0 arch/x86/kernel/smpboot.c:242 Code: 48 c1 e9 03 80 3c 11 00 0f 85 83 06 00 00 4d 85 ed 48 89 03 74 5b 4d 8d 65 10 48 ba 00 00 00 00 00 fc ff df 4c 89 e1 48 c1 e9 03 <80> 3c 11 00 0f 85 19 07 00 00 49 3b 5d 10 0f 84 eb 04 00 00 49 RIP [] __rb_change_child include/linux/rbtree_augmented.h:125 [inline] RIP [] __rb_rotate_set_parents lib/rbtree.c:93 [inline] RIP [] __rb_insert lib/rbtree.c:181 [inline] RIP [] rb_insert_color+0x1d0/0xcb0 lib/rbtree.c:420 RSP ---[ end trace 86fe05d9a345e847 ]---