[....] Starting enhanced syslogd: rsyslogd[ 13.829740] audit: type=1400 audit(1516827351.655:5): avc: denied { syslog } for pid=3512 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 periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] 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: [ 18.872916] audit: type=1400 audit(1516827356.698:6): avc: denied { map } for pid=3653 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.15.198' (ECDSA) to the list of known hosts. executing program [ 25.133334] audit: type=1400 audit(1516827362.958:7): avc: denied { map } for pid=3667 comm="syzkaller290406" path="/root/syzkaller290406766" 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 [ 25.137222] ================================================================== [ 25.137246] BUG: KASAN: slab-out-of-bounds in string+0x1e8/0x200 [ 25.137252] Read of size 1 at addr ffff8801bc710350 by task syzkaller290406/3667 [ 25.137255] [ 25.137263] CPU: 1 PID: 3667 Comm: syzkaller290406 Not tainted 4.15.0-rc9+ #188 [ 25.137268] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.137272] Call Trace: [ 25.137284] dump_stack+0x194/0x257 [ 25.137299] ? arch_local_irq_restore+0x53/0x53 [ 25.137311] ? show_regs_print_info+0x18/0x18 [ 25.137328] ? string+0x1e8/0x200 [ 25.137342] print_address_description+0x73/0x250 [ 25.137351] ? string+0x1e8/0x200 [ 25.137360] kasan_report+0x25b/0x340 [ 25.137376] __asan_report_load1_noabort+0x14/0x20 [ 25.137383] string+0x1e8/0x200 [ 25.137403] vsnprintf+0x863/0x1900 [ 25.137423] ? pointer+0x9e0/0x9e0 [ 25.137452] __request_module+0x1bf/0xc20 [ 25.137461] ? lock_downgrade+0x980/0x980 [ 25.137475] ? free_modprobe_argv+0xa0/0xa0 [ 25.137484] ? lock_downgrade+0x980/0x980 [ 25.137506] ? is_bpf_text_address+0x7b/0x120 [ 25.137527] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 25.137542] ? wait_for_completion+0x770/0x770 [ 25.137552] ? lock_downgrade+0x980/0x980 [ 25.137564] ? wait_for_completion+0x770/0x770 [ 25.137570] ? lock_release+0xa40/0xa40 [ 25.137587] ? mark_held_locks+0xaf/0x100 [ 25.137597] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 25.137608] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.137630] ? xt_find_target+0x17b/0x1e0 [ 25.137660] xt_request_find_target+0x8b/0xb0 [ 25.137676] translate_compat_table+0x910/0x1b90 [ 25.137683] ? entry_SYSENTER_compat+0x54/0x63 [ 25.137716] ? ipt_register_table+0x3a0/0x3a0 [ 25.137730] ? __might_fault+0x110/0x1d0 [ 25.137740] ? lock_downgrade+0x980/0x980 [ 25.137746] ? __kmalloc_node+0x33/0x70 [ 25.137759] ? lock_release+0xa40/0xa40 [ 25.137766] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.137776] ? __check_object_size+0x25d/0x4f0 [ 25.137795] ? __might_sleep+0x95/0x190 [ 25.137823] compat_do_replace.isra.15+0x30e/0x720 [ 25.137831] ? compat_do_replace.isra.15+0x30e/0x720 [ 25.137840] ? cred_has_capability+0x1a0/0x3d0 [ 25.137856] ? compat_do_ipt_get_ctl+0xbc0/0xbc0 [ 25.137865] ? find_held_lock+0x35/0x1d0 [ 25.137886] ? module_unload_free+0x5b0/0x5b0 [ 25.137894] ? lock_acquire+0x1d5/0x580 [ 25.137926] ? ns_capable_common+0xcf/0x160 [ 25.137943] compat_do_ipt_set_ctl+0x106/0x150 [ 25.137960] compat_nf_setsockopt+0x88/0x130 [ 25.137967] ? compat_do_replace.isra.15+0x720/0x720 [ 25.137984] compat_ip_setsockopt+0x9d/0xf0 [ 25.137998] inet_csk_compat_setsockopt+0x95/0x120 [ 25.138008] ? ip_setsockopt+0xb0/0xb0 [ 25.138021] compat_tcp_setsockopt+0x3d/0x70 [ 25.138039] compat_sock_common_setsockopt+0xb2/0x140 [ 25.138045] ? tcp_setsockopt+0xd0/0xd0 [ 25.138062] compat_SyS_setsockopt+0x17c/0x410 [ 25.138069] ? sock_common_setsockopt+0xd0/0xd0 [ 25.138083] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 25.138098] ? do_fast_syscall_32+0x156/0xf9d [ 25.138112] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 25.138122] do_fast_syscall_32+0x3ee/0xf9d [ 25.138141] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.138150] ? kasan_check_read+0x11/0x20 [ 25.138161] ? syscall_return_slowpath+0x550/0x550 [ 25.138173] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.138184] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.138190] ? SyS_read+0x184/0x220 [ 25.138198] ? retint_user+0x18/0x18 [ 25.138215] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.138234] entry_SYSENTER_compat+0x54/0x63 [ 25.138240] RIP: 0023:0xf7fc7c79 [ 25.138244] RSP: 002b:00000000ffaf453c EFLAGS: 00000286 ORIG_RAX: 000000000000016e [ 25.138251] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000 [ 25.138256] RDX: 0000000000000040 RSI: 00000000208e4000 RDI: 00000000000000ec [ 25.138260] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.138264] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.138267] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.138356] [ 25.138359] Allocated by task 3667: [ 25.138366] save_stack+0x43/0xd0 [ 25.138372] kasan_kmalloc+0xad/0xe0 [ 25.138377] __kmalloc_node+0x47/0x70 [ 25.138414] kvmalloc_node+0x99/0xd0 [ 25.138420] xt_alloc_table_info+0x64/0xe0 [ 25.138426] compat_do_replace.isra.15+0x17f/0x720 [ 25.138433] compat_do_ipt_set_ctl+0x106/0x150 [ 25.138452] compat_nf_setsockopt+0x88/0x130 [ 25.138458] compat_ip_setsockopt+0x9d/0xf0 [ 25.138464] inet_csk_compat_setsockopt+0x95/0x120 [ 25.138473] compat_tcp_setsockopt+0x3d/0x70 [ 25.138479] compat_sock_common_setsockopt+0xb2/0x140 [ 25.138485] compat_SyS_setsockopt+0x17c/0x410 [ 25.138491] do_fast_syscall_32+0x3ee/0xf9d [ 25.138497] entry_SYSENTER_compat+0x54/0x63 [ 25.138499] [ 25.138502] Freed by task 2016: [ 25.138507] save_stack+0x43/0xd0 [ 25.138513] kasan_slab_free+0x71/0xc0 [ 25.138518] kfree+0xd6/0x260 [ 25.138526] single_release+0x80/0xb0 [ 25.138533] __fput+0x327/0x7e0 [ 25.138539] ____fput+0x15/0x20 [ 25.138547] task_work_run+0x199/0x270 [ 25.138553] exit_to_usermode_loop+0x296/0x310 [ 25.138559] syscall_return_slowpath+0x490/0x550 [ 25.138564] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 25.138566] [ 25.138571] The buggy address belongs to the object at ffff8801bc710280 [ 25.138571] which belongs to the cache kmalloc-256 of size 256 [ 25.138577] The buggy address is located 208 bytes inside of [ 25.138577] 256-byte region [ffff8801bc710280, ffff8801bc710380) [ 25.138579] The buggy address belongs to the page: [ 25.138585] page:ffffea0006f1c400 count:1 mapcount:0 mapping:ffff8801bc710000 index:0x0 [ 25.138592] flags: 0x2fffc0000000100(slab) [ 25.138602] raw: 02fffc0000000100 ffff8801bc710000 0000000000000000 000000010000000c [ 25.138610] raw: ffffea0006f1c2e0 ffffea0006f1c7e0 ffff8801dac007c0 0000000000000000 [ 25.138613] page dumped because: kasan: bad access detected [ 25.138614] [ 25.138617] Memory state around the buggy address: [ 25.138622] ffff8801bc710200: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.138627] ffff8801bc710280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.138632] >ffff8801bc710300: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc [ 25.138635] ^ [ 25.138640] ffff8801bc710380: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 25.138645] ffff8801bc710400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.138648] ================================================================== [ 25.138650] Disabling lock debugging due to kernel taint [ 25.138673] Kernel panic - not syncing: panic_on_warn set ... [ 25.138673] [ 25.138680] CPU: 1 PID: 3667 Comm: syzkaller290406 Tainted: G B 4.15.0-rc9+ #188 [ 25.138683] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.138685] Call Trace: [ 25.138693] dump_stack+0x194/0x257 [ 25.138702] ? arch_local_irq_restore+0x53/0x53 [ 25.138710] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.138719] ? vsnprintf+0x1ed/0x1900 [ 25.138726] ? string+0x120/0x200 [ 25.138735] panic+0x1e4/0x41c [ 25.138741] ? refcount_error_report+0x214/0x214 [ 25.138750] ? add_taint+0x1c/0x50 [ 25.138758] ? add_taint+0x1c/0x50 [ 25.138766] ? string+0x1e8/0x200 [ 25.138773] kasan_end_report+0x50/0x50 [ 25.138780] kasan_report+0x144/0x340 [ 25.138790] __asan_report_load1_noabort+0x14/0x20 [ 25.138796] string+0x1e8/0x200 [ 25.138809] vsnprintf+0x863/0x1900 [ 25.138822] ? pointer+0x9e0/0x9e0 [ 25.138837] __request_module+0x1bf/0xc20 [ 25.138844] ? lock_downgrade+0x980/0x980 [ 25.138854] ? free_modprobe_argv+0xa0/0xa0 [ 25.138860] ? lock_downgrade+0x980/0x980 [ 25.138873] ? is_bpf_text_address+0x7b/0x120 [ 25.138891] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 25.138901] ? wait_for_completion+0x770/0x770 [ 25.138909] ? lock_downgrade+0x980/0x980 [ 25.138917] ? wait_for_completion+0x770/0x770 [ 25.138923] ? lock_release+0xa40/0xa40 [ 25.138934] ? mark_held_locks+0xaf/0x100 [ 25.138941] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 25.138950] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.138962] ? xt_find_target+0x17b/0x1e0 [ 25.138978] xt_request_find_target+0x8b/0xb0 [ 25.138988] translate_compat_table+0x910/0x1b90 [ 25.138993] ? entry_SYSENTER_compat+0x54/0x63 [ 25.139016] ? ipt_register_table+0x3a0/0x3a0 [ 25.139026] ? __might_fault+0x110/0x1d0 [ 25.139033] ? lock_downgrade+0x980/0x980 [ 25.139038] ? __kmalloc_node+0x33/0x70 [ 25.139047] ? lock_release+0xa40/0xa40 [ 25.139054] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.139061] ? __check_object_size+0x25d/0x4f0 [ 25.139073] ? __might_sleep+0x95/0x190 [ 25.139090] compat_do_replace.isra.15+0x30e/0x720 [ 25.139097] ? compat_do_replace.isra.15+0x30e/0x720 [ 25.139104] ? cred_has_capability+0x1a0/0x3d0 [ 25.139115] ? compat_do_ipt_get_ctl+0xbc0/0xbc0 [ 25.139122] ? find_held_lock+0x35/0x1d0 [ 25.139133] ? module_unload_free+0x5b0/0x5b0 [ 25.139139] ? lock_acquire+0x1d5/0x580 [ 25.139157] ? ns_capable_common+0xcf/0x160 [ 25.139168] compat_do_ipt_set_ctl+0x106/0x150 [ 25.139178] compat_nf_setsockopt+0x88/0x130 [ 25.139184] ? compat_do_replace.isra.15+0x720/0x720 [ 25.139194] compat_ip_setsockopt+0x9d/0xf0 [ 25.139203] inet_csk_compat_setsockopt+0x95/0x120 [ 25.139209] ? ip_setsockopt+0xb0/0xb0 [ 25.139218] compat_tcp_setsockopt+0x3d/0x70 [ 25.139228] compat_sock_common_setsockopt+0xb2/0x140 [ 25.139234] ? tcp_setsockopt+0xd0/0xd0 [ 25.139244] compat_SyS_setsockopt+0x17c/0x410 [ 25.139250] ? sock_common_setsockopt+0xd0/0xd0 [ 25.139259] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 25.139268] ? do_fast_syscall_32+0x156/0xf9d [ 25.139277] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 25.139285] do_fast_syscall_32+0x3ee/0xf9d [ 25.139297] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.139304] ? kasan_check_read+0x11/0x20 [ 25.139312] ? syscall_return_slowpath+0x550/0x550 [ 25.139320] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.139328] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.139334] ? SyS_read+0x184/0x220 [ 25.139340] ? retint_user+0x18/0x18 [ 25.139351] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.139363] entry_SYSENTER_compat+0x54/0x63 [ 25.139367] RIP: 0023:0xf7fc7c79 [ 25.139370] RSP: 002b:00000000ffaf453c EFLAGS: 00000286 ORIG_RAX: 000000000000016e [ 25.139377] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000 [ 25.139380] RDX: 0000000000000040 RSI: 00000000208e4000 RDI: 00000000000000ec [ 25.139384] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 25.139387] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.139390] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.159710] Dumping ftrace buffer: [ 25.159715] (ftrace buffer empty) [ 25.159718] Kernel Offset: disabled [ 26.185209] Rebooting in 86400 seconds..