random: sshd: uninitialized urandom read (32 bytes read, 119 bits of entropy available) ================================================================== BUG: KASAN: use-after-free in __lock_acquire+0x387e/0x4b50 kernel/locking/lockdep.c:3092 Read of size 8 at addr ffff8800ad23f9b8 by task syzkaller103734/4058 CPU: 1 PID: 4058 Comm: syzkaller103734 Not tainted 4.4.114-ga81d322 #4 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 3857ec35d32e2232 ffff8800b964f650 ffffffff81d0394d ffffea0002b48f80 ffff8800ad23f9b8 0000000000000000 ffff8800ad23f9b8 0000000000000000 ffff8800b964f688 ffffffff814fe1d3 ffff8800ad23f9b8 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 [] __lock_acquire+0x387e/0x4b50 kernel/locking/lockdep.c:3092 [] lock_acquire+0x15e/0x460 kernel/locking/lockdep.c:3592 [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:112 [inline] [] _raw_spin_lock_irqsave+0x4e/0x70 kernel/locking/spinlock.c:159 [] remove_wait_queue+0x14/0x40 kernel/sched/wait.c:49 [] ep_remove_wait_queue fs/eventpoll.c:530 [inline] [] ep_unregister_pollwait.isra.6+0xa8/0x220 fs/eventpoll.c:548 [] ep_free+0x93/0x1c0 fs/eventpoll.c:765 [] ep_eventpoll_release+0x44/0x60 fs/eventpoll.c:797 [] __fput+0x233/0x6d0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x104/0x180 kernel/task_work.c:115 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x82a/0x2a10 kernel/exit.c:755 [] do_group_exit+0x108/0x320 kernel/exit.c:885 [] get_signal+0x4f2/0x1550 kernel/signal.c:2317 [] do_signal+0x8b/0x1d40 arch/x86/kernel/signal.c:712 [] exit_to_usermode_loop+0x11a/0x160 arch/x86/entry/common.c:247 [] prepare_exit_to_usermode arch/x86/entry/common.c:282 [inline] [] syscall_return_slowpath+0x1b5/0x1f0 arch/x86/entry/common.c:347 [] int_ret_from_sys_call+0x25/0xa3 Allocated by task 4058: [] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [] save_stack+0x43/0xd0 mm/kasan/kasan.c:512 [] set_track mm/kasan/kasan.c:524 [inline] [] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:616 [] kmem_cache_alloc_trace+0x100/0x2b0 mm/slub.c:2642 [] kmalloc include/linux/slab.h:476 [inline] [] kzalloc include/linux/slab.h:620 [inline] [] binder_get_thread+0x15d/0x750 drivers/android/binder.c:4452 [] binder_poll+0x4a/0x210 drivers/android/binder.c:4555 [] ep_item_poll fs/eventpoll.c:806 [inline] [] ep_insert fs/eventpoll.c:1319 [inline] [] SYSC_epoll_ctl fs/eventpoll.c:1934 [inline] [] SyS_epoll_ctl+0x10b1/0x2040 fs/eventpoll.c:1833 [] entry_SYSCALL_64_fastpath+0x1c/0x98 Freed by task 4058: [] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [] save_stack+0x43/0xd0 mm/kasan/kasan.c:512 [] set_track mm/kasan/kasan.c:524 [inline] [] kasan_slab_free+0x72/0xc0 mm/kasan/kasan.c:589 [] slab_free_hook mm/slub.c:1383 [inline] [] slab_free_freelist_hook mm/slub.c:1405 [inline] [] slab_free mm/slub.c:2859 [inline] [] kfree+0xfc/0x300 mm/slub.c:3749 [] binder_free_thread drivers/android/binder.c:4480 [inline] [] binder_thread_dec_tmpref+0x1c1/0x250 drivers/android/binder.c:2036 [] binder_thread_release+0x27d/0x540 drivers/android/binder.c:4544 [] binder_ioctl+0xb94/0x12e0 drivers/android/binder.c:4760 [] vfs_ioctl fs/ioctl.c:43 [inline] [] do_vfs_ioctl+0x7aa/0xee0 fs/ioctl.c:607 [] SYSC_ioctl fs/ioctl.c:622 [inline] [] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:613 [] entry_SYSCALL_64_fastpath+0x1c/0x98 The buggy address belongs to the object at ffff8800ad23f900 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 184 bytes inside of 512-byte region [ffff8800ad23f900, ffff8800ad23fb00) The buggy address belongs to the page: BUG: unable to handle kernel paging request at ffffffff847dd808 IP: [] __read_once_size include/linux/compiler.h:218 [inline] IP: [] atomic_read arch/x86/include/asm/atomic.h:27 [inline] IP: [] static_key_count include/linux/jump_label.h:172 [inline] IP: [] static_key_false include/linux/jump_label.h:182 [inline] IP: [] trace_cpu_idle_rcuidle include/trace/events/power.h:34 [inline] IP: [] default_idle+0x7d/0x3c0 arch/x86/kernel/process.c:292 PGD 420f067 PUD 4210063 PMD b6e1e063 PTE 0 Oops: 0000 [#1] PREEMPT SMP KASAN BUG: unable to handle kernel paging request at ffffffff847ed1f0 IP: [] trace_init_global_iter+0xde/0x2c0 kernel/trace/trace.c:7166 PGD 420f067 PUD 4210063 PMD b6e1e063 PTE 0 Oops: 0000 [#2] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.4.114-ga81d322 #4 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffffffff84217840 task.stack: ffffffff84200000 RIP: 0010:[] [] trace_init_global_iter+0xde/0x2c0 kernel/trace/trace.c:7166 RSP: 0018:ffffffff84207930 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffffffff8572bd80 RCX: ffffffff8139ff2f RDX: 1ffffffff08fda3e RSI: 0000000000000001 RDI: ffffffff847ed1f0 RBP: ffffffff84207950 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff838443e0 R11: 1ffffffff0840f10 R12: ffffffff842e5ed8 R13: ffffffff847ed1c0 R14: ffffffff8572bd90 R15: 1ffffffff08fd994 FS: 0000000000000000(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffff847ed1f0 CR3: 000000000420c000 CR4: 0000000000160670 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: 00000000ffffffff dffffc0000000000 dffffc0000000000 0000000000000007 ffffffff842079a0 ffffffff813a01da 000000000000a078 0000000000000093 0000000200000000 0000000000000002 dffffc0000000000 00000000fffffffd Call Trace: [] ftrace_dump+0xaa/0x4b0 kernel/trace/trace.c:7207 [] trace_die_handler+0x3b/0x50 kernel/trace/trace.c:7110 [] notifier_call_chain+0x95/0x1b0 kernel/notifier.c:93 [] __atomic_notifier_call_chain kernel/notifier.c:183 [inline] [] atomic_notifier_call_chain+0x7b/0x140 kernel/notifier.c:193 [] notify_die+0xdf/0x160 kernel/notifier.c:549 [] __die+0x8c/0xf0 arch/x86/kernel/dumpstack.c:275 [] no_context+0x349/0x840 arch/x86/mm/fault.c:729 [] __bad_area_nosemaphore+0x24b/0x420 arch/x86/mm/fault.c:815 [] bad_area_nosemaphore+0x2a/0x40 arch/x86/mm/fault.c:822 [] __do_page_fault+0x144/0xa00 arch/x86/mm/fault.c:1187