random: sshd: uninitialized urandom read (32 bytes read, 117 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 ffff8800b4600838 by task syzkaller256195/3328 CPU: 0 PID: 3328 Comm: syzkaller256195 Not tainted 4.4.110-gdac1439 #13 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 d532430ea1d99229 ffff8801d14c7830 ffffffff81d04e3d ffffea0002d18000 ffff8800b4600838 0000000000000000 ffff8800b4600838 0000000000000000 ffff8801d14c7868 ffffffff814fd1f3 ffff8800b4600838 Call Trace: [<ffffffff81d04e3d>] __dump_stack lib/dump_stack.c:15 [inline] [<ffffffff81d04e3d>] dump_stack+0xc1/0x124 lib/dump_stack.c:51 [<ffffffff814fd1f3>] print_address_description+0x73/0x260 mm/kasan/report.c:252 [<ffffffff814fd705>] kasan_report_error mm/kasan/report.c:351 [inline] [<ffffffff814fd705>] kasan_report+0x285/0x370 mm/kasan/report.c:408 [<ffffffff814fd864>] __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:429 [<ffffffff81239bde>] __lock_acquire+0x387e/0x4b50 kernel/locking/lockdep.c:3092 [<ffffffff8123c71e>] lock_acquire+0x15e/0x460 kernel/locking/lockdep.c:3592 [<ffffffff837751be>] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:112 [inline] [<ffffffff837751be>] _raw_spin_lock_irqsave+0x4e/0x70 kernel/locking/spinlock.c:159 [<ffffffff8121f0c4>] remove_wait_queue+0x14/0x40 kernel/sched/wait.c:49 [<ffffffff815f65f8>] ep_remove_wait_queue fs/eventpoll.c:530 [inline] [<ffffffff815f65f8>] ep_unregister_pollwait.isra.6+0xa8/0x220 fs/eventpoll.c:548 [<ffffffff815f7041>] ep_remove+0x41/0x290 fs/eventpoll.c:711 [<ffffffff815f9035>] eventpoll_release_file+0xc5/0x140 fs/eventpoll.c:935 [<ffffffff81522b21>] eventpoll_release include/linux/eventpoll.h:61 [inline] [<ffffffff81522b21>] __fput+0x521/0x6d0 fs/file_table.c:199 [<ffffffff81522d55>] ____fput+0x15/0x20 fs/file_table.c:244 [<ffffffff8118ba14>] task_work_run+0x104/0x180 kernel/task_work.c:115 [<ffffffff81132e11>] exit_task_work include/linux/task_work.h:21 [inline] [<ffffffff81132e11>] do_exit+0x871/0x2a20 kernel/exit.c:755 [<ffffffff81139288>] do_group_exit+0x108/0x320 kernel/exit.c:885 [<ffffffff811394bd>] SYSC_exit_group kernel/exit.c:896 [inline] [<ffffffff811394bd>] SyS_exit_group+0x1d/0x20 kernel/exit.c:894 [<ffffffff81006d84>] do_syscall_32_irqs_on arch/x86/entry/common.c:390 [inline] [<ffffffff81006d84>] do_fast_syscall_32+0x314/0x890 arch/x86/entry/common.c:457 [<ffffffff83776f6a>] sysenter_flags_fixed+0xd/0x17 Allocated by task 3328: [<ffffffff81035d26>] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [<ffffffff814fc263>] save_stack+0x43/0xd0 mm/kasan/kasan.c:512 [<ffffffff814fc52d>] set_track mm/kasan/kasan.c:524 [inline] [<ffffffff814fc52d>] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:616 [<ffffffff814f84a0>] kmem_cache_alloc_trace+0x100/0x2b0 mm/slub.c:2642 [<ffffffff82c7e9a1>] kmalloc include/linux/slab.h:476 [inline] [<ffffffff82c7e9a1>] kzalloc include/linux/slab.h:620 [inline] [<ffffffff82c7e9a1>] binder_get_thread+0x181/0x7a0 drivers/android/binder.c:4452 [<ffffffff82c7f00a>] binder_poll+0x4a/0x210 drivers/android/binder.c:4555 [<ffffffff815fa481>] ep_item_poll fs/eventpoll.c:806 [inline] [<ffffffff815fa481>] ep_insert fs/eventpoll.c:1319 [inline] [<ffffffff815fa481>] SYSC_epoll_ctl fs/eventpoll.c:1934 [inline] [<ffffffff815fa481>] SyS_epoll_ctl+0x10b1/0x2050 fs/eventpoll.c:1833 [<ffffffff81006d84>] do_syscall_32_irqs_on arch/x86/entry/common.c:390 [inline] [<ffffffff81006d84>] do_fast_syscall_32+0x314/0x890 arch/x86/entry/common.c:457 [<ffffffff83776f6a>] sysenter_flags_fixed+0xd/0x17 Freed by task 3328: [<ffffffff81035d26>] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [<ffffffff814fc263>] save_stack+0x43/0xd0 mm/kasan/kasan.c:512 [<ffffffff814fcb82>] set_track mm/kasan/kasan.c:524 [inline] [<ffffffff814fcb82>] kasan_slab_free+0x72/0xc0 mm/kasan/kasan.c:589 [<ffffffff814f960c>] slab_free_hook mm/slub.c:1383 [inline] [<ffffffff814f960c>] slab_free_freelist_hook mm/slub.c:1405 [inline] [<ffffffff814f960c>] slab_free mm/slub.c:2859 [inline] [<ffffffff814f960c>] kfree+0xfc/0x300 mm/slub.c:3749 [<ffffffff82c77ef1>] binder_free_thread drivers/android/binder.c:4480 [inline] [<ffffffff82c77ef1>] binder_thread_dec_tmpref+0x1c1/0x250 drivers/android/binder.c:2036 [<ffffffff82c78a2d>] binder_thread_release+0x27d/0x540 drivers/android/binder.c:4544 [<ffffffff82c93694>] binder_ioctl+0xb94/0x12e0 drivers/android/binder.c:4760 [<ffffffff8161de7a>] C_SYSC_ioctl fs/compat_ioctl.c:1592 [inline] [<ffffffff8161de7a>] compat_SyS_ioctl+0x28a/0x2540 fs/compat_ioctl.c:1544 [<ffffffff81006d84>] do_syscall_32_irqs_on arch/x86/entry/common.c:390 [inline] [<ffffffff81006d84>] do_fast_syscall_32+0x314/0x890 arch/x86/entry/common.c:457 [<ffffffff83776f6a>] sysenter_flags_fixed+0xd/0x17 The buggy address belongs to the object at ffff8800b4600780 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 184 bytes inside of 512-byte region [ffff8800b4600780, ffff8800b4600980) The buggy address belongs to the page: PANIC: double fault, error_code: 0x0 CPU: 0 PID: 3328 Comm: syzkaller256195 Not tainted 4.4.110-gdac1439 #13 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8800b52ac740 task.stack: ffff8801d14c0000 RIP: 0010:[<ffffffff8148f5c8>] [<ffffffff8148f5c8>] dump_page_badflags+0x8/0x250 mm/debug.c:84 RSP: 0018:ffff880100000000 EFLAGS: 00010046 RAX: ffff8800b52ac740 RBX: ffffea0002d18000 RCX: ffffffff8148f740 RDX: 0000000000000000 RSI: ffffffff838a8320 RDI: ffffea0002d18000 RBP: ffff880100000010 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000002 R11: fffffbfff0ad781e R12: 0000000000000000 R13: ffffffff838a8320 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: ffff8800fffffff8 CR3: 000000000420c000 CR4: 0000000000160670 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: Call Trace: <UNK> Code: 00 e9 83 fd ff ff e8 a8 e2 06 00 e9 50 fd ff ff e8 9e e2 06 00 e9 1d fd ff ff 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 <41> 55 49 89 f5 41 54 49 89 d4 53 48 89 fb 48 83 ec 08 e8 61 06