[....] Starting enhanced syslogd: rsyslogd[ 13.587347] audit: type=1400 audit(1516824612.342:5): avc: denied { syslog } for pid=3507 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: [ 17.662200] audit: type=1400 audit(1516824616.416:6): avc: denied { map } for pid=3647 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.34' (ECDSA) to the list of known hosts. [ 27.275863] audit: type=1400 audit(1516824626.030:7): avc: denied { map } for pid=3662 comm="syzkaller894186" path="/root/syzkaller894186316" 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 [ 27.277888] ================================================================== [ 27.277907] BUG: KASAN: slab-out-of-bounds in string+0x1e8/0x200 [ 27.277912] Read of size 1 at addr ffff8801bc4873d0 by task syzkaller894186/3662 [ 27.277913] [ 27.277919] CPU: 1 PID: 3662 Comm: syzkaller894186 Not tainted 4.15.0-rc9+ #188 [ 27.277922] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.277924] Call Trace: [ 27.277935] dump_stack+0x194/0x257 [ 27.277944] ? arch_local_irq_restore+0x53/0x53 [ 27.277954] ? show_regs_print_info+0x18/0x18 [ 27.277964] ? string+0x1e8/0x200 [ 27.277975] print_address_description+0x73/0x250 [ 27.277980] ? string+0x1e8/0x200 [ 27.277986] kasan_report+0x25b/0x340 [ 27.277995] __asan_report_load1_noabort+0x14/0x20 [ 27.278000] string+0x1e8/0x200 [ 27.278017] vsnprintf+0x863/0x1900 [ 27.278029] ? pointer+0x9e0/0x9e0 [ 27.278048] __request_module+0x1bf/0xc20 [ 27.278054] ? lock_downgrade+0x980/0x980 [ 27.278062] ? free_modprobe_argv+0xa0/0xa0 [ 27.278067] ? lock_downgrade+0x980/0x980 [ 27.278083] ? is_bpf_text_address+0x7b/0x120 [ 27.278097] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 27.278106] ? wait_for_completion+0x770/0x770 [ 27.278112] ? lock_downgrade+0x980/0x980 [ 27.278120] ? wait_for_completion+0x770/0x770 [ 27.278124] ? lock_release+0xa40/0xa40 [ 27.278134] ? mark_held_locks+0xaf/0x100 [ 27.278140] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 27.278147] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.278160] ? xt_find_target+0x17b/0x1e0 [ 27.278177] xt_request_find_target+0x8b/0xb0 [ 27.278187] translate_compat_table+0x910/0x1b90 [ 27.278207] ? ipt_register_table+0x3a0/0x3a0 [ 27.278216] ? __might_fault+0x110/0x1d0 [ 27.278222] ? lock_downgrade+0x980/0x980 [ 27.278226] ? __kmalloc_node+0x33/0x70 [ 27.278233] ? lock_release+0xa40/0xa40 [ 27.278238] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.278246] ? __check_object_size+0x25d/0x4f0 [ 27.278258] ? __might_sleep+0x95/0x190 [ 27.278275] compat_do_replace.isra.15+0x30e/0x720 [ 27.278280] ? compat_do_replace.isra.15+0x30e/0x720 [ 27.278288] ? cred_has_capability+0x1a0/0x3d0 [ 27.278298] ? compat_do_ipt_get_ctl+0xbc0/0xbc0 [ 27.278303] ? find_held_lock+0x35/0x1d0 [ 27.278314] ? module_unload_free+0x5b0/0x5b0 [ 27.278318] ? lock_acquire+0x1d5/0x580 [ 27.278338] ? ns_capable_common+0xcf/0x160 [ 27.278347] compat_do_ipt_set_ctl+0x106/0x150 [ 27.278358] compat_nf_setsockopt+0x88/0x130 [ 27.278362] ? compat_do_replace.isra.15+0x720/0x720 [ 27.278372] compat_ip_setsockopt+0x9d/0xf0 [ 27.278382] compat_udp_setsockopt+0x45/0x80 [ 27.278393] compat_sock_common_setsockopt+0xb2/0x140 [ 27.278397] ? udp_lib_unhash+0xa10/0xa10 [ 27.278407] compat_SyS_setsockopt+0x17c/0x410 [ 27.278411] ? sock_common_setsockopt+0xd0/0xd0 [ 27.278420] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 27.278430] ? do_fast_syscall_32+0x156/0xf9d [ 27.278439] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 27.278445] do_fast_syscall_32+0x3ee/0xf9d [ 27.278456] ? do_int80_syscall_32+0x9d0/0x9d0 [ 27.278461] ? kasan_check_read+0x11/0x20 [ 27.278469] ? syscall_return_slowpath+0x550/0x550 [ 27.278477] ? SyS_rt_sigaction+0x94/0x1b0 [ 27.278484] ? SyS_sigprocmask+0x4b0/0x4b0 [ 27.278490] ? SyS_read+0x184/0x220 [ 27.278495] ? retint_user+0x18/0x18 [ 27.278505] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 27.278517] entry_SYSENTER_compat+0x54/0x63 [ 27.278521] RIP: 0023:0xf7fbdc79 [ 27.278524] RSP: 002b:00000000fffeefdc EFLAGS: 00000286 ORIG_RAX: 000000000000016e [ 27.278529] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000 [ 27.278532] RDX: 0000000000000040 RSI: 0000000020f20000 RDI: 00000000000000f0 [ 27.278534] RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000 [ 27.278537] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 27.278539] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 27.278556] [ 27.278559] Allocated by task 3662: [ 27.278563] save_stack+0x43/0xd0 [ 27.278566] kasan_kmalloc+0xad/0xe0 [ 27.278570] __kmalloc_node+0x47/0x70 [ 27.278582] kvmalloc_node+0x99/0xd0 [ 27.278586] xt_alloc_table_info+0x64/0xe0 [ 27.278590] compat_do_replace.isra.15+0x17f/0x720 [ 27.278594] compat_do_ipt_set_ctl+0x106/0x150 [ 27.278597] compat_nf_setsockopt+0x88/0x130 [ 27.278601] compat_ip_setsockopt+0x9d/0xf0 [ 27.278605] compat_udp_setsockopt+0x45/0x80 [ 27.278608] compat_sock_common_setsockopt+0xb2/0x140 [ 27.278612] compat_SyS_setsockopt+0x17c/0x410 [ 27.278616] do_fast_syscall_32+0x3ee/0xf9d [ 27.278619] entry_SYSENTER_compat+0x54/0x63 [ 27.278621] [ 27.278623] Freed by task 2021: [ 27.278627] save_stack+0x43/0xd0 [ 27.278630] kasan_slab_free+0x71/0xc0 [ 27.278633] kfree+0xd6/0x260 [ 27.278641] single_release+0x80/0xb0 [ 27.278645] __fput+0x327/0x7e0 [ 27.278648] ____fput+0x15/0x20 [ 27.278654] task_work_run+0x199/0x270 [ 27.278659] exit_to_usermode_loop+0x296/0x310 [ 27.278662] syscall_return_slowpath+0x490/0x550 [ 27.278666] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 27.278667] [ 27.278670] The buggy address belongs to the object at ffff8801bc487300 [ 27.278670] which belongs to the cache kmalloc-256 of size 256 [ 27.278673] The buggy address is located 208 bytes inside of [ 27.278673] 256-byte region [ffff8801bc487300, ffff8801bc487400) [ 27.278675] The buggy address belongs to the page: [ 27.278679] page:ffffea0006f121c0 count:1 mapcount:0 mapping:ffff8801bc487080 index:0x0 [ 27.278685] flags: 0x2fffc0000000100(slab) [ 27.278691] raw: 02fffc0000000100 ffff8801bc487080 0000000000000000 000000010000000c [ 27.278696] raw: ffffea0006f213e0 ffffea0006f144e0 ffff8801dac007c0 0000000000000000 [ 27.278698] page dumped because: kasan: bad access detected [ 27.278699] [ 27.278700] Memory state around the buggy address: [ 27.278704] ffff8801bc487280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 27.278707] ffff8801bc487300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.278710] >ffff8801bc487380: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc [ 27.278717] ^ [ 27.278720] ffff8801bc487400: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 27.278723] ffff8801bc487480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.278724] ================================================================== [ 27.278726] Disabling lock debugging due to kernel taint [ 27.278749] Kernel panic - not syncing: panic_on_warn set ... [ 27.278749] [ 27.278753] CPU: 1 PID: 3662 Comm: syzkaller894186 Tainted: G B 4.15.0-rc9+ #188 [ 27.278755] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.278757] Call Trace: [ 27.278762] dump_stack+0x194/0x257 [ 27.278768] ? arch_local_irq_restore+0x53/0x53 [ 27.278773] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.278778] ? vsnprintf+0x1ed/0x1900 [ 27.278782] ? string+0x120/0x200 [ 27.278788] panic+0x1e4/0x41c [ 27.278792] ? refcount_error_report+0x214/0x214 [ 27.278798] ? add_taint+0x1c/0x50 [ 27.278802] ? add_taint+0x1c/0x50 [ 27.278808] ? string+0x1e8/0x200 [ 27.278812] kasan_end_report+0x50/0x50 [ 27.278816] kasan_report+0x144/0x340 [ 27.278822] __asan_report_load1_noabort+0x14/0x20 [ 27.278826] string+0x1e8/0x200 [ 27.278834] vsnprintf+0x863/0x1900 [ 27.278842] ? pointer+0x9e0/0x9e0 [ 27.278853] __request_module+0x1bf/0xc20 [ 27.278857] ? lock_downgrade+0x980/0x980 [ 27.278863] ? free_modprobe_argv+0xa0/0xa0 [ 27.278868] ? lock_downgrade+0x980/0x980 [ 27.278876] ? is_bpf_text_address+0x7b/0x120 [ 27.278884] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 27.278890] ? wait_for_completion+0x770/0x770 [ 27.278895] ? lock_downgrade+0x980/0x980 [ 27.278901] ? wait_for_completion+0x770/0x770 [ 27.278904] ? lock_release+0xa40/0xa40 [ 27.278911] ? mark_held_locks+0xaf/0x100 [ 27.278916] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 27.278921] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.278929] ? xt_find_target+0x17b/0x1e0 [ 27.278940] xt_request_find_target+0x8b/0xb0 [ 27.278946] translate_compat_table+0x910/0x1b90 [ 27.278958] ? ipt_register_table+0x3a0/0x3a0 [ 27.278964] ? __might_fault+0x110/0x1d0 [ 27.278969] ? lock_downgrade+0x980/0x980 [ 27.278973] ? __kmalloc_node+0x33/0x70 [ 27.278978] ? lock_release+0xa40/0xa40 [ 27.278982] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 27.278986] ? __check_object_size+0x25d/0x4f0 [ 27.278994] ? __might_sleep+0x95/0x190 [ 27.279007] compat_do_replace.isra.15+0x30e/0x720 [ 27.279012] ? compat_do_replace.isra.15+0x30e/0x720 [ 27.279017] ? cred_has_capability+0x1a0/0x3d0 [ 27.279024] ? compat_do_ipt_get_ctl+0xbc0/0xbc0 [ 27.279028] ? find_held_lock+0x35/0x1d0 [ 27.279035] ? module_unload_free+0x5b0/0x5b0 [ 27.279038] ? lock_acquire+0x1d5/0x580 [ 27.279050] ? ns_capable_common+0xcf/0x160 [ 27.279057] compat_do_ipt_set_ctl+0x106/0x150 [ 27.279063] compat_nf_setsockopt+0x88/0x130 [ 27.279067] ? compat_do_replace.isra.15+0x720/0x720 [ 27.279073] compat_ip_setsockopt+0x9d/0xf0 [ 27.279080] compat_udp_setsockopt+0x45/0x80 [ 27.279086] compat_sock_common_setsockopt+0xb2/0x140 [ 27.279089] ? udp_lib_unhash+0xa10/0xa10 [ 27.279095] compat_SyS_setsockopt+0x17c/0x410 [ 27.279099] ? sock_common_setsockopt+0xd0/0xd0 [ 27.279105] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 27.279110] ? do_fast_syscall_32+0x156/0xf9d [ 27.279116] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 27.279121] do_fast_syscall_32+0x3ee/0xf9d [ 27.279128] ? do_int80_syscall_32+0x9d0/0x9d0 [ 27.279133] ? kasan_check_read+0x11/0x20 [ 27.279138] ? syscall_return_slowpath+0x550/0x550 [ 27.279143] ? SyS_rt_sigaction+0x94/0x1b0 [ 27.279148] ? SyS_sigprocmask+0x4b0/0x4b0 [ 27.279151] ? SyS_read+0x184/0x220 [ 27.279155] ? retint_user+0x18/0x18 [ 27.279161] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 27.279169] entry_SYSENTER_compat+0x54/0x63 [ 27.279171] RIP: 0023:0xf7fbdc79 [ 27.279173] RSP: 002b:00000000fffeefdc EFLAGS: 00000286 ORIG_RAX: 000000000000016e [ 27.279178] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000 [ 27.279180] RDX: 0000000000000040 RSI: 0000000020f20000 RDI: 00000000000000f0 [ 27.279182] RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000 [ 27.279184] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 27.279186] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 27.302146] Dumping ftrace buffer: [ 27.302150] (ftrace buffer empty) [ 27.302152] Kernel Offset: disabled [ 28.295018] Rebooting in 86400 seconds..