[....] Starting enhanced syslogd: rsyslogd[ 10.535387] audit: type=1400 audit(1514551882.410:5): avc: denied { syslog } for pid=2994 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 15.321218] audit: type=1400 audit(1514551887.196:6): avc: denied { map } for pid=3134 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Warning: Permanently added '10.128.0.54' (ECDSA) to the list of known hosts. executing program [ 33.764182] audit: type=1400 audit(1514551905.638:7): avc: denied { map } for pid=3152 comm="syzkaller297169" path="/root/syzkaller297169224" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 33.768511] ================================================================== [ 33.768523] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 33.768526] Read of size 8 at addr ffff8801c9e75db8 by task syzkaller297169/3152 [ 33.768527] [ 33.768533] CPU: 1 PID: 3152 Comm: syzkaller297169 Not tainted 4.15.0-rc4-next-20171221+ #78 [ 33.768535] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.768536] Call Trace: [ 33.768543] dump_stack+0x194/0x257 [ 33.768548] ? arch_local_irq_restore+0x53/0x53 [ 33.768554] ? show_regs_print_info+0x18/0x18 [ 33.768557] ? print_irqtrace_events+0x270/0x270 [ 33.768561] ? __lock_acquire+0x664/0x3e00 [ 33.768566] ? __lock_acquire+0x3d4d/0x3e00 [ 33.768572] print_address_description+0x73/0x250 [ 33.768575] ? __lock_acquire+0x3d4d/0x3e00 [ 33.768579] kasan_report+0x25b/0x340 [ 33.768585] __asan_report_load8_noabort+0x14/0x20 [ 33.768588] __lock_acquire+0x3d4d/0x3e00 [ 33.768592] ? __lock_acquire+0x664/0x3e00 [ 33.768595] ? lock_downgrade+0x980/0x980 [ 33.768599] ? lock_downgrade+0x980/0x980 [ 33.768605] ? remove_wait_queue+0x81/0x350 [ 33.768611] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.768615] ? __lock_acquire+0x664/0x3e00 [ 33.768618] ? check_noncircular+0x20/0x20 [ 33.768626] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.768630] ? lock_acquire+0x1d5/0x580 [ 33.768633] ? lock_acquire+0x1d5/0x580 [ 33.768638] ? ep_free+0xf4/0x320 [ 33.768643] ? lock_release+0xa40/0xa40 [ 33.768649] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 33.768652] ? print_irqtrace_events+0x270/0x270 [ 33.768658] ? rcu_note_context_switch+0x710/0x710 [ 33.768663] ? __might_sleep+0x95/0x190 [ 33.768666] ? ep_free+0xf4/0x320 [ 33.768673] ? __mutex_lock+0x16f/0x1a80 [ 33.768676] ? ep_free+0xf4/0x320 [ 33.768680] ? print_irqtrace_events+0x270/0x270 [ 33.768683] ? ep_free+0xf4/0x320 [ 33.768688] lock_acquire+0x1d5/0x580 [ 33.768691] ? lock_acquire+0x1d5/0x580 [ 33.768695] ? remove_wait_queue+0x81/0x350 [ 33.768698] ? __lock_acquire+0x664/0x3e00 [ 33.768703] ? lock_release+0xa40/0xa40 [ 33.768709] ? lock_acquire+0x1d5/0x580 [ 33.768712] ? lock_acquire+0x1d5/0x580 [ 33.768716] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 33.768720] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.768724] ? remove_wait_queue+0x81/0x350 [ 33.768728] remove_wait_queue+0x81/0x350 [ 33.768733] ? add_wait_queue+0x290/0x290 [ 33.768736] ? rcutorture_record_progress+0x10/0x10 [ 33.768743] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 33.768749] ? __kernel_text_address+0xd/0x40 [ 33.768754] ? clear_tfile_check_list+0x370/0x370 [ 33.768758] ? check_noncircular+0x20/0x20 [ 33.768765] ? locks_remove_file+0x3fa/0x5a0 [ 33.768770] ep_free+0x13f/0x320 [ 33.768774] ? ep_remove+0x800/0x800 [ 33.768777] ? fsnotify_first_mark+0x2b0/0x2b0 [ 33.768782] ? ep_free+0x320/0x320 [ 33.768786] ep_eventpoll_release+0x44/0x60 [ 33.768791] __fput+0x327/0x7e0 [ 33.768796] ? fput+0x140/0x140 [ 33.768800] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.768805] ____fput+0x15/0x20 [ 33.768810] task_work_run+0x199/0x270 [ 33.768815] ? task_work_cancel+0x210/0x210 [ 33.768818] ? _raw_spin_unlock+0x22/0x30 [ 33.768822] ? switch_task_namespaces+0x87/0xc0 [ 33.768828] do_exit+0x9bb/0x1ad0 [ 33.768834] ? binder_ioctl+0x491/0x1417 [ 33.768838] ? mm_update_next_owner+0x930/0x930 [ 33.768843] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 33.768849] ? avc_ss_reset+0x110/0x110 [ 33.768853] ? mutex_unlock+0xd/0x10 [ 33.768856] ? SyS_epoll_ctl+0x30a/0x1a80 [ 33.768868] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 33.768871] ? up_read+0x1a/0x40 [ 33.768875] ? rcu_note_context_switch+0x710/0x710 [ 33.768879] ? __fd_install+0x288/0x740 [ 33.768884] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 33.768888] ? do_vfs_ioctl+0x486/0x1520 [ 33.768891] ? _cond_resched+0x14/0x30 [ 33.768896] ? ioctl_preallocate+0x2b0/0x2b0 [ 33.768900] ? selinux_capable+0x40/0x40 [ 33.768904] ? __alloc_fd+0x750/0x750 [ 33.768909] do_group_exit+0x149/0x400 [ 33.768913] ? SyS_exit+0x30/0x30 [ 33.768918] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.768924] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.768934] SyS_exit_group+0x1d/0x20 [ 33.768938] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 33.768941] RIP: 0033:0x4429f8 [ 33.768943] RSP: 002b:00007ffd9453a398 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.768948] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 33.768950] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.768952] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.768954] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 33.768956] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 33.768961] [ 33.768963] Allocated by task 3152: [ 33.768967] save_stack+0x43/0xd0 [ 33.768970] kasan_kmalloc+0xad/0xe0 [ 33.768973] kmem_cache_alloc_trace+0x136/0x750 [ 33.768976] binder_get_thread+0x1cf/0x870 [ 33.768979] binder_poll+0x8c/0x390 [ 33.768983] ep_item_poll.isra.10+0xf2/0x320 [ 33.768986] ep_insert+0x6a2/0x1ac0 [ 33.768989] SyS_epoll_ctl+0x12bf/0x1a80 [ 33.768992] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 33.768993] [ 33.768995] Freed by task 3152: [ 33.768997] save_stack+0x43/0xd0 [ 33.769003] kasan_slab_free+0x71/0xc0 [ 33.769006] kfree+0xd6/0x260 [ 33.769009] binder_thread_dec_tmpref+0x27f/0x310 [ 33.769011] binder_thread_release+0x27d/0x540 [ 33.769014] binder_ioctl+0xc02/0x1417 [ 33.769017] do_vfs_ioctl+0x1b1/0x1520 [ 33.769019] SyS_ioctl+0x8f/0xc0 [ 33.769022] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 33.769023] [ 33.769026] The buggy address belongs to the object at ffff8801c9e75d00 [ 33.769026] which belongs to the cache kmalloc-512 of size 512 [ 33.769029] The buggy address is located 184 bytes inside of [ 33.769029] 512-byte region [ffff8801c9e75d00, ffff8801c9e75f00) [ 33.769030] The buggy address belongs to the page: [ 33.769034] page:00000000a253d342 count:1 mapcount:0 mapping:00000000ad8a1dc2 index:0x0 [ 33.769037] flags: 0x2fffc0000000100(slab) [ 33.769044] raw: 02fffc0000000100 ffff8801c9e75080 0000000000000000 0000000100000006 [ 33.769048] raw: ffffea0007272ca0 ffffea0007311920 ffff8801dac00940 0000000000000000 [ 33.769049] page dumped because: kasan: bad access detected [ 33.769050] [ 33.769051] Memory state around the buggy address: [ 33.769054] ffff8801c9e75c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.769057] ffff8801c9e75d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.769059] >ffff8801c9e75d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.769061] ^ [ 33.769063] ffff8801c9e75e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.769066] ffff8801c9e75e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.769067] ================================================================== [ 33.769068] Disabling lock debugging due to kernel taint [ 33.769070] Kernel panic - not syncing: panic_on_warn set ... [ 33.769070] [ 33.769074] CPU: 1 PID: 3152 Comm: syzkaller297169 Tainted: G B 4.15.0-rc4-next-20171221+ #78 [ 33.769076] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.769077] Call Trace: [ 33.769080] dump_stack+0x194/0x257 [ 33.769085] ? arch_local_irq_restore+0x53/0x53 [ 33.769088] ? kasan_end_report+0x32/0x50 [ 33.769092] ? lock_downgrade+0x980/0x980 [ 33.769095] ? vsnprintf+0x1ed/0x1900 [ 33.769099] ? __lock_acquire+0x3d30/0x3e00 [ 33.769103] panic+0x1e4/0x41c [ 33.769106] ? refcount_error_report+0x214/0x214 [ 33.769110] ? add_taint+0x40/0x50 [ 33.769113] ? add_taint+0x1c/0x50 [ 33.769118] ? __lock_acquire+0x3d4d/0x3e00 [ 33.769121] kasan_end_report+0x50/0x50 [ 33.769125] kasan_report+0x144/0x340 [ 33.769129] __asan_report_load8_noabort+0x14/0x20 [ 33.769133] __lock_acquire+0x3d4d/0x3e00 [ 33.769136] ? __lock_acquire+0x664/0x3e00 [ 33.769140] ? lock_downgrade+0x980/0x980 [ 33.769143] ? lock_downgrade+0x980/0x980 [ 33.769147] ? remove_wait_queue+0x81/0x350 [ 33.769152] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.769156] ? __lock_acquire+0x664/0x3e00 [ 33.769159] ? check_noncircular+0x20/0x20 [ 33.769166] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 33.769170] ? lock_acquire+0x1d5/0x580 [ 33.769174] ? lock_acquire+0x1d5/0x580 [ 33.769177] ? ep_free+0xf4/0x320 [ 33.769181] ? lock_release+0xa40/0xa40 [ 33.769185] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 33.769189] ? print_irqtrace_events+0x270/0x270 [ 33.769193] ? rcu_note_context_switch+0x710/0x710 [ 33.769197] ? __might_sleep+0x95/0x190 [ 33.769200] ? ep_free+0xf4/0x320 [ 33.769204] ? __mutex_lock+0x16f/0x1a80 [ 33.769207] ? ep_free+0xf4/0x320 [ 33.769211] ? print_irqtrace_events+0x270/0x270 [ 33.769214] ? ep_free+0xf4/0x320 [ 33.769219] lock_acquire+0x1d5/0x580 [ 33.769222] ? lock_acquire+0x1d5/0x580 [ 33.769226] ? remove_wait_queue+0x81/0x350 [ 33.769229] ? __lock_acquire+0x664/0x3e00 [ 33.769233] ? lock_release+0xa40/0xa40 [ 33.769239] ? lock_acquire+0x1d5/0x580 [ 33.769242] ? lock_acquire+0x1d5/0x580 [ 33.769245] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 33.769249] _raw_spin_lock_irqsave+0x96/0xc0 [ 33.769253] ? remove_wait_queue+0x81/0x350 [ 33.769257] remove_wait_queue+0x81/0x350 [ 33.769261] ? add_wait_queue+0x290/0x290 [ 33.769265] ? rcutorture_record_progress+0x10/0x10 [ 33.769270] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 33.769274] ? __kernel_text_address+0xd/0x40 [ 33.769279] ? clear_tfile_check_list+0x370/0x370 [ 33.769283] ? check_noncircular+0x20/0x20 [ 33.769288] ? locks_remove_file+0x3fa/0x5a0 [ 33.769293] ep_free+0x13f/0x320 [ 33.769297] ? ep_remove+0x800/0x800 [ 33.769300] ? fsnotify_first_mark+0x2b0/0x2b0 [ 33.769304] ? ep_free+0x320/0x320 [ 33.769308] ep_eventpoll_release+0x44/0x60 [ 33.769311] __fput+0x327/0x7e0 [ 33.769316] ? fput+0x140/0x140 [ 33.769320] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.769324] ____fput+0x15/0x20 [ 33.769328] task_work_run+0x199/0x270 [ 33.769333] ? task_work_cancel+0x210/0x210 [ 33.769336] ? _raw_spin_unlock+0x22/0x30 [ 33.769340] ? switch_task_namespaces+0x87/0xc0 [ 33.769344] do_exit+0x9bb/0x1ad0 [ 33.769348] ? binder_ioctl+0x491/0x1417 [ 33.769352] ? mm_update_next_owner+0x930/0x930 [ 33.769356] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 33.769361] ? avc_ss_reset+0x110/0x110 [ 33.769365] ? mutex_unlock+0xd/0x10 [ 33.769368] ? SyS_epoll_ctl+0x30a/0x1a80 [ 33.769378] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 33.769381] ? up_read+0x1a/0x40 [ 33.769385] ? rcu_note_context_switch+0x710/0x710 [ 33.769388] ? __fd_install+0x288/0x740 [ 33.769393] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 33.769396] ? do_vfs_ioctl+0x486/0x1520 [ 33.769400] ? _cond_resched+0x14/0x30 [ 33.769404] ? ioctl_preallocate+0x2b0/0x2b0 [ 33.769408] ? selinux_capable+0x40/0x40 [ 33.769412] ? __alloc_fd+0x750/0x750 [ 33.769417] do_group_exit+0x149/0x400 [ 33.769421] ? SyS_exit+0x30/0x30 [ 33.769425] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.769428] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.769433] SyS_exit_group+0x1d/0x20 [ 33.769437] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 33.769439] RIP: 0033:0x4429f8 [ 33.769441] RSP: 002b:00007ffd9453a398 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 33.769445] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 33.769447] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 33.769449] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 33.769451] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 33.769452] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 33.802675] Dumping ftrace buffer: [ 33.802679] (ftrace buffer empty) [ 33.802681] Kernel Offset: disabled [ 34.945909] Rebooting in 86400 seconds..