[....] Starting enhanced syslogd: rsyslogd[ 12.126527] audit: type=1400 audit(1515135839.556:5): avc: denied { syslog } for pid=3341 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 file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting periodic command scheduler: cron[?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: [ 17.446627] audit: type=1400 audit(1515135844.876:6): avc: denied { map } for pid=3481 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.14' (ECDSA) to the list of known hosts. executing program [ 23.650270] audit: type=1400 audit(1515135851.080:7): avc: denied { map } for pid=3496 comm="syzkaller090520" path="/root/syzkaller090520351" 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 [ 23.656824] ================================================================== [ 23.656841] BUG: KASAN: use-after-free in __lock_acquire+0x3d4d/0x3e00 [ 23.656846] Read of size 8 at addr ffff8801cb645830 by task syzkaller090520/3496 [ 23.656848] [ 23.656855] CPU: 1 PID: 3496 Comm: syzkaller090520 Not tainted 4.15.0-rc6+ #248 [ 23.656859] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.656861] Call Trace: [ 23.656873] dump_stack+0x194/0x257 [ 23.656880] ? arch_local_irq_restore+0x53/0x53 [ 23.656889] ? show_regs_print_info+0x18/0x18 [ 23.656895] ? print_irqtrace_events+0x270/0x270 [ 23.656901] ? __lock_acquire+0x664/0x3e00 [ 23.656908] ? __lock_acquire+0x3d4d/0x3e00 [ 23.656918] print_address_description+0x73/0x250 [ 23.656924] ? __lock_acquire+0x3d4d/0x3e00 [ 23.656930] kasan_report+0x25b/0x340 [ 23.656939] __asan_report_load8_noabort+0x14/0x20 [ 23.656944] __lock_acquire+0x3d4d/0x3e00 [ 23.656950] ? __lock_acquire+0x664/0x3e00 [ 23.656955] ? lock_downgrade+0x980/0x980 [ 23.656961] ? lock_downgrade+0x980/0x980 [ 23.656970] ? remove_wait_queue+0x81/0x350 [ 23.656979] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.656986] ? __lock_acquire+0x664/0x3e00 [ 23.656991] ? check_noncircular+0x20/0x20 [ 23.657008] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.657015] ? lock_acquire+0x1d5/0x580 [ 23.657020] ? lock_acquire+0x1d5/0x580 [ 23.657030] ? ep_free+0xf4/0x320 [ 23.657038] ? lock_release+0xa40/0xa40 [ 23.657046] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.657052] ? print_irqtrace_events+0x270/0x270 [ 23.657059] ? rcu_note_context_switch+0x710/0x710 [ 23.657066] ? __might_sleep+0x95/0x190 [ 23.657072] ? ep_free+0xf4/0x320 [ 23.657079] ? __mutex_lock+0x16f/0x1a80 [ 23.657084] ? ep_free+0xf4/0x320 [ 23.657091] ? print_irqtrace_events+0x270/0x270 [ 23.657096] ? ep_free+0xf4/0x320 [ 23.657104] lock_acquire+0x1d5/0x580 [ 23.657109] ? lock_acquire+0x1d5/0x580 [ 23.657115] ? remove_wait_queue+0x81/0x350 [ 23.657121] ? __lock_acquire+0x664/0x3e00 [ 23.657128] ? lock_release+0xa40/0xa40 [ 23.657138] ? lock_acquire+0x1d5/0x580 [ 23.657143] ? lock_acquire+0x1d5/0x580 [ 23.657149] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.657157] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.657163] ? remove_wait_queue+0x81/0x350 [ 23.657169] remove_wait_queue+0x81/0x350 [ 23.657177] ? add_wait_queue+0x290/0x290 [ 23.657182] ? rcutorture_record_progress+0x10/0x10 [ 23.657193] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.657200] ? __kernel_text_address+0xd/0x40 [ 23.657208] ? clear_tfile_check_list+0x370/0x370 [ 23.657216] ? check_noncircular+0x20/0x20 [ 23.657225] ? locks_remove_file+0x3fa/0x5a0 [ 23.657234] ep_free+0x13f/0x320 [ 23.657241] ? ep_remove+0x800/0x800 [ 23.657247] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.657255] ? ep_free+0x320/0x320 [ 23.657261] ep_eventpoll_release+0x44/0x60 [ 23.657268] __fput+0x327/0x7e0 [ 23.657276] ? fput+0x140/0x140 [ 23.657283] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.657291] ____fput+0x15/0x20 [ 23.657298] task_work_run+0x199/0x270 [ 23.657305] ? task_work_cancel+0x210/0x210 [ 23.657312] ? _raw_spin_unlock+0x22/0x30 [ 23.657318] ? switch_task_namespaces+0x87/0xc0 [ 23.657326] do_exit+0x9bb/0x1ad0 [ 23.657336] ? binder_ioctl+0x551/0x1417 [ 23.657342] ? mm_update_next_owner+0x930/0x930 [ 23.657350] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.657360] ? avc_ss_reset+0x110/0x110 [ 23.657365] ? mutex_unlock+0xd/0x10 [ 23.657371] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.657395] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.657400] ? up_read+0x1a/0x40 [ 23.657407] ? rcu_note_context_switch+0x710/0x710 [ 23.657412] ? __fd_install+0x288/0x740 [ 23.657421] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.657427] ? do_vfs_ioctl+0x486/0x1520 [ 23.657432] ? _cond_resched+0x14/0x30 [ 23.657440] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.657447] ? selinux_capable+0x40/0x40 [ 23.657454] ? __alloc_fd+0x750/0x750 [ 23.657462] do_group_exit+0x149/0x400 [ 23.657469] ? SyS_exit+0x30/0x30 [ 23.657476] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.657486] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.657494] SyS_exit_group+0x1d/0x20 [ 23.657500] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.657506] RIP: 0033:0x4429f8 [ 23.657509] RSP: 002b:00007ffc961d2658 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.657516] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.657519] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.657523] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.657526] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.657530] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.657538] [ 23.657541] Allocated by task 3496: [ 23.657546] save_stack+0x43/0xd0 [ 23.657551] kasan_kmalloc+0xad/0xe0 [ 23.657556] kmem_cache_alloc_trace+0x136/0x750 [ 23.657561] binder_get_thread+0x1cf/0x870 [ 23.657565] binder_poll+0x8c/0x390 [ 23.657570] ep_item_poll.isra.10+0xec/0x320 [ 23.657575] ep_insert+0x6a3/0x1b10 [ 23.657580] SyS_epoll_ctl+0x12e4/0x1ab0 [ 23.657585] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.657586] [ 23.657588] Freed by task 3496: [ 23.657593] save_stack+0x43/0xd0 [ 23.657598] kasan_slab_free+0x71/0xc0 [ 23.657602] kfree+0xd6/0x260 [ 23.657606] binder_thread_dec_tmpref+0x27f/0x310 [ 23.657611] binder_thread_release+0x27d/0x540 [ 23.657615] binder_ioctl+0xc02/0x1417 [ 23.657619] do_vfs_ioctl+0x1b1/0x1520 [ 23.657624] SyS_ioctl+0x8f/0xc0 [ 23.657629] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.657630] [ 23.657634] The buggy address belongs to the object at ffff8801cb645780 [ 23.657634] which belongs to the cache kmalloc-512 of size 512 [ 23.657639] The buggy address is located 176 bytes inside of [ 23.657639] 512-byte region [ffff8801cb645780, ffff8801cb645980) [ 23.657641] The buggy address belongs to the page: [ 23.657646] page:00000000868c3db3 count:1 mapcount:0 mapping:000000003a1bb5fc index:0x0 [ 23.657652] flags: 0x2fffc0000000100(slab) [ 23.657661] raw: 02fffc0000000100 ffff8801cb645000 0000000000000000 0000000100000006 [ 23.657667] raw: ffffea00072bbe20 ffffea00072a42e0 ffff8801dac00940 0000000000000000 [ 23.657670] page dumped because: kasan: bad access detected [ 23.657671] [ 23.657673] Memory state around the buggy address: [ 23.657677] ffff8801cb645700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.657682] ffff8801cb645780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.657686] >ffff8801cb645800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.657689] ^ [ 23.657693] ffff8801cb645880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.657697] ffff8801cb645900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.657700] ================================================================== [ 23.657701] Disabling lock debugging due to kernel taint [ 23.657705] Kernel panic - not syncing: panic_on_warn set ... [ 23.657705] [ 23.657711] CPU: 1 PID: 3496 Comm: syzkaller090520 Tainted: G B 4.15.0-rc6+ #248 [ 23.657714] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.657715] Call Trace: [ 23.657721] dump_stack+0x194/0x257 [ 23.657728] ? arch_local_irq_restore+0x53/0x53 [ 23.657734] ? kasan_end_report+0x32/0x50 [ 23.657740] ? lock_downgrade+0x980/0x980 [ 23.657746] ? vsnprintf+0x1ed/0x1900 [ 23.657752] ? __lock_acquire+0x3cb0/0x3e00 [ 23.657757] panic+0x1e4/0x41c [ 23.657764] ? refcount_error_report+0x214/0x214 [ 23.657771] ? add_taint+0x40/0x50 [ 23.657776] ? add_taint+0x1c/0x50 [ 23.657782] ? __lock_acquire+0x3d4d/0x3e00 [ 23.657788] kasan_end_report+0x50/0x50 [ 23.657794] kasan_report+0x144/0x340 [ 23.657802] __asan_report_load8_noabort+0x14/0x20 [ 23.657807] __lock_acquire+0x3d4d/0x3e00 [ 23.657813] ? __lock_acquire+0x664/0x3e00 [ 23.657818] ? lock_downgrade+0x980/0x980 [ 23.657823] ? lock_downgrade+0x980/0x980 [ 23.657830] ? remove_wait_queue+0x81/0x350 [ 23.657839] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.657845] ? __lock_acquire+0x664/0x3e00 [ 23.657850] ? check_noncircular+0x20/0x20 [ 23.657863] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 23.657869] ? lock_acquire+0x1d5/0x580 [ 23.657875] ? lock_acquire+0x1d5/0x580 [ 23.657880] ? ep_free+0xf4/0x320 [ 23.657888] ? lock_release+0xa40/0xa40 [ 23.657894] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.657900] ? print_irqtrace_events+0x270/0x270 [ 23.657906] ? rcu_note_context_switch+0x710/0x710 [ 23.657913] ? __might_sleep+0x95/0x190 [ 23.657918] ? ep_free+0xf4/0x320 [ 23.657924] ? __mutex_lock+0x16f/0x1a80 [ 23.657929] ? ep_free+0xf4/0x320 [ 23.657936] ? print_irqtrace_events+0x270/0x270 [ 23.657941] ? ep_free+0xf4/0x320 [ 23.657948] lock_acquire+0x1d5/0x580 [ 23.657954] ? lock_acquire+0x1d5/0x580 [ 23.657960] ? remove_wait_queue+0x81/0x350 [ 23.657965] ? __lock_acquire+0x664/0x3e00 [ 23.657972] ? lock_release+0xa40/0xa40 [ 23.657981] ? lock_acquire+0x1d5/0x580 [ 23.657986] ? lock_acquire+0x1d5/0x580 [ 23.657992] ? ep_unregister_pollwait.isra.7+0x323/0x590 [ 23.658000] _raw_spin_lock_irqsave+0x96/0xc0 [ 23.658006] ? remove_wait_queue+0x81/0x350 [ 23.658012] remove_wait_queue+0x81/0x350 [ 23.658019] ? add_wait_queue+0x290/0x290 [ 23.658025] ? rcutorture_record_progress+0x10/0x10 [ 23.658035] ep_unregister_pollwait.isra.7+0x18c/0x590 [ 23.658041] ? __kernel_text_address+0xd/0x40 [ 23.658049] ? clear_tfile_check_list+0x370/0x370 [ 23.658056] ? check_noncircular+0x20/0x20 [ 23.658064] ? locks_remove_file+0x3fa/0x5a0 [ 23.658073] ep_free+0x13f/0x320 [ 23.658079] ? ep_remove+0x800/0x800 [ 23.658085] ? fsnotify_first_mark+0x2b0/0x2b0 [ 23.658092] ? ep_free+0x320/0x320 [ 23.658098] ep_eventpoll_release+0x44/0x60 [ 23.658104] __fput+0x327/0x7e0 [ 23.658112] ? fput+0x140/0x140 [ 23.658119] ? _raw_spin_unlock_irq+0x27/0x70 [ 23.658127] ____fput+0x15/0x20 [ 23.658133] task_work_run+0x199/0x270 [ 23.658141] ? task_work_cancel+0x210/0x210 [ 23.658147] ? _raw_spin_unlock+0x22/0x30 [ 23.658153] ? switch_task_namespaces+0x87/0xc0 [ 23.658160] do_exit+0x9bb/0x1ad0 [ 23.658167] ? binder_ioctl+0x551/0x1417 [ 23.658173] ? mm_update_next_owner+0x930/0x930 [ 23.658180] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.658189] ? avc_ss_reset+0x110/0x110 [ 23.658194] ? mutex_unlock+0xd/0x10 [ 23.658200] ? SyS_epoll_ctl+0x30a/0x1ab0 [ 23.658218] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 23.658222] ? up_read+0x1a/0x40 [ 23.658229] ? rcu_note_context_switch+0x710/0x710 [ 23.658234] ? __fd_install+0x288/0x740 [ 23.658242] ? binder_ioctl_write_read.isra.38+0xcb0/0xcb0 [ 23.658247] ? do_vfs_ioctl+0x486/0x1520 [ 23.658252] ? _cond_resched+0x14/0x30 [ 23.658259] ? ioctl_preallocate+0x2b0/0x2b0 [ 23.658266] ? selinux_capable+0x40/0x40 [ 23.658273] ? __alloc_fd+0x750/0x750 [ 23.658280] do_group_exit+0x149/0x400 [ 23.658287] ? SyS_exit+0x30/0x30 [ 23.658293] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.658300] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.658307] SyS_exit_group+0x1d/0x20 [ 23.658314] entry_SYSCALL_64_fastpath+0x23/0x9a [ 23.658317] RIP: 0033:0x4429f8 [ 23.658320] RSP: 002b:00007ffc961d2658 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 23.658326] RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 00000000004429f8 [ 23.658329] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 23.658332] RBP: 00000000006ce018 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 23.658335] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40 [ 23.658339] R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000 [ 23.676697] Dumping ftrace buffer: [ 23.676701] (ftrace buffer empty) [ 23.676705] Kernel Offset: disabled [ 24.799373] Rebooting in 86400 seconds..