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 ffff8800b463eab8 by task syzkaller037249/3313 CPU: 0 PID: 3313 Comm: syzkaller037249 Not tainted 4.4.112-g52c02cf #23 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 26face2f2f54bd9b ffff8801d08cf850 ffffffff81d056fd ffffea0002d18f80 ffff8800b463eab8 0000000000000000 ffff8800b463eab8 0000000000000000 ffff8801d08cf888 ffffffff814fd953 ffff8800b463eab8 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+0x871/0x2a20 kernel/exit.c:755 [] do_group_exit+0x108/0x320 kernel/exit.c:885 [] SYSC_exit_group kernel/exit.c:896 [inline] [] SyS_exit_group+0x1d/0x20 kernel/exit.c:894 [] 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 3313: [] 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+0x181/0x7a0 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/0x2050 fs/eventpoll.c:1833 [] 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 Freed by task 3313: [] 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 [] C_SYSC_ioctl fs/compat_ioctl.c:1592 [inline] [] compat_SyS_ioctl+0x28a/0x2540 fs/compat_ioctl.c:1544 [] 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 The buggy address belongs to the object at ffff8800b463ea00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 184 bytes inside of 512-byte region [ffff8800b463ea00, ffff8800b463ec00) The buggy address belongs to the page: PANIC: double fault, error_code: 0x0 CPU: 0 PID: 3313 Comm: syzkaller037249 Not tainted 4.4.112-g52c02cf #23 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8800b458af80 task.stack: ffff8801d08c8000 RIP: 0010:[] [] dump_page_badflags+0x1a/0x250 mm/debug.c:84 RSP: 0018:ffff880100000000 EFLAGS: 00010086 RAX: ffff8800b458af80 RBX: ffffea0002d18f80 RCX: ffffffff8148fea0 RDX: 0000000000000000 RSI: ffffffff838a8620 RDI: ffffea0002d18f80 RBP: ffff880100000030 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000002 R11: fffffbfff0ad7a1e R12: 0000000000000000 R13: ffffffff838a8620 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: Code: 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 [ 30.490187] SELinux: Invalid class 65201 ------------[ cut here ]------------ kernel BUG at security/selinux/avc.c:119! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 1 Comm: init Not tainted 4.4.112-g52c02cf #23 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801da308000 task.stack: ffff8801da310000 RIP: 0010:[] [] avc_dump_av security/selinux/avc.c:119 [inline] RIP: 0010:[] [] avc_audit_pre_callback+0x25f/0x2b0 security/selinux/avc.c:716 RSP: 0018:ffff8801da317818 EFLAGS: 00010293 RAX: ffff8801da308000 RBX: 000000000000feb1 RCX: ffffffff81b49e5f RDX: 0000000000000000 RSI: 000000000000000d RDI: ffff8801da317a98 RBP: ffff8801da317850 R08: ffffed001678c007 R09: ffffed001678c007 R10: 0000000000000001 R11: ffffed001678c006 R12: ffffffff839c6f40 R13: 0000000000000010 R14: ffffffff81b49800 R15: ffffffff81b49c00 FS: 00007fa9709497a0(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000019613e0 CR3: 00000001d41a6000 CR4: 0000000000160670 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffff8801d8428f00 0c1f826840f40e65 1ffff1003b462f10 ffff8801da317cc0 ffff8801d8428f00 ffffffff81b49800 ffffffff81b49c00 ffff8801da317a48 ffffffff81bad8f8 0000000000000000 ffff8801da308868 00000002842bca80 Call Trace: [] common_lsm_audit+0x128/0x1a40 security/lsm_audit.c:428 [] slow_avc_audit+0x181/0x210 security/selinux/avc.c:775 [] avc_audit security/selinux/include/avc.h:140 [inline] [] avc_has_perm+0x420/0x500 security/selinux/avc.c:1150 [] inode_has_perm security/selinux/hooks.c:1630 [inline] [] path_has_perm security/selinux/hooks.c:1660 [inline] [] selinux_inode_getattr+0x23c/0x300 security/selinux/hooks.c:2957 [] security_inode_getattr+0xec/0x140 security/security.c:620 [] vfs_getattr+0x1c/0x50 fs/stat.c:69 [] vfs_fstatat+0xe1/0x170 fs/stat.c:110 [] vfs_stat fs/stat.c:123 [inline] [] SYSC_newstat+0x86/0x100 fs/stat.c:270 [] SyS_newstat+0x1d/0x30 fs/stat.c:266 [] entry_SYSCALL_64_fastpath+0x16/0x92 Code: ea 48 c7 c6 c0 70 9c 83 e8 9f 01 7f ff eb ad e8 08 60 81 ff 48 8b 7d c8 48 c7 c6 00 70 9c 83 e8 88 01 7f ff eb ab e8 f1 5f 81 ff <0f> 0b e8 0a 41 9b ff e9 c2 fe ff ff 48 89 df e8 3d 41 9b ff e9 RIP [] avc_dump_av security/selinux/avc.c:119 [inline] RIP [] avc_audit_pre_callback+0x25f/0x2b0 security/selinux/avc.c:716 RSP ---[ end trace 18d293637c993a75 ]---