[....] Starting enhanced syslogd: rsyslogd[ 13.188164] audit: type=1400 audit(1516821933.433:5): avc: denied { syslog } for pid=3509 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.548605] audit: type=1400 audit(1516821938.793:6): avc: denied { map } for pid=3649 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.57' (ECDSA) to the list of known hosts. executing program [ 25.040980] audit: type=1400 audit(1516821945.285:7): avc: denied { map } for pid=3663 comm="syzkaller293765" path="/root/syzkaller293765956" 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.044324] ================================================================== [ 25.044344] BUG: KASAN: slab-out-of-bounds in string+0x1e8/0x200 [ 25.044350] Read of size 1 at addr ffff8801d9900e10 by task syzkaller293765/3663 [ 25.044352] [ 25.044359] CPU: 1 PID: 3663 Comm: syzkaller293765 Not tainted 4.15.0-rc9+ #188 [ 25.044363] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.044366] Call Trace: [ 25.044377] dump_stack+0x194/0x257 [ 25.044391] ? arch_local_irq_restore+0x53/0x53 [ 25.044402] ? show_regs_print_info+0x18/0x18 [ 25.044419] ? string+0x1e8/0x200 [ 25.044432] print_address_description+0x73/0x250 [ 25.044441] ? string+0x1e8/0x200 [ 25.044450] kasan_report+0x25b/0x340 [ 25.044466] __asan_report_load1_noabort+0x14/0x20 [ 25.044473] string+0x1e8/0x200 [ 25.044493] vsnprintf+0x863/0x1900 [ 25.044513] ? pointer+0x9e0/0x9e0 [ 25.044540] __request_module+0x1bf/0xc20 [ 25.044549] ? lock_downgrade+0x980/0x980 [ 25.044563] ? free_modprobe_argv+0xa0/0xa0 [ 25.044572] ? lock_downgrade+0x980/0x980 [ 25.044591] ? is_bpf_text_address+0x7b/0x120 [ 25.044610] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 25.044625] ? wait_for_completion+0x770/0x770 [ 25.044635] ? lock_downgrade+0x980/0x980 [ 25.044648] ? wait_for_completion+0x770/0x770 [ 25.044653] ? lock_release+0xa40/0xa40 [ 25.044670] ? mark_held_locks+0xaf/0x100 [ 25.044680] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 25.044692] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.044712] ? xt_find_target+0x17b/0x1e0 [ 25.044741] xt_request_find_target+0x8b/0xb0 [ 25.044755] translate_compat_table+0x910/0x1b90 [ 25.044789] ? ipt_register_table+0x3a0/0x3a0 [ 25.044803] ? __might_fault+0x110/0x1d0 [ 25.044813] ? lock_downgrade+0x980/0x980 [ 25.044818] ? __kmalloc_node+0x33/0x70 [ 25.044830] ? lock_release+0xa40/0xa40 [ 25.044838] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.044848] ? __check_object_size+0x25d/0x4f0 [ 25.044867] ? __might_sleep+0x95/0x190 [ 25.044895] compat_do_replace.isra.15+0x30e/0x720 [ 25.044903] ? compat_do_replace.isra.15+0x30e/0x720 [ 25.044911] ? cred_has_capability+0x1a0/0x3d0 [ 25.044928] ? compat_do_ipt_get_ctl+0xbc0/0xbc0 [ 25.044936] ? find_held_lock+0x35/0x1d0 [ 25.044953] ? module_unload_free+0x5b0/0x5b0 [ 25.044961] ? lock_acquire+0x1d5/0x580 [ 25.044992] ? ns_capable_common+0xcf/0x160 [ 25.045012] compat_do_ipt_set_ctl+0x106/0x150 [ 25.045028] compat_nf_setsockopt+0x88/0x130 [ 25.045035] ? compat_do_replace.isra.15+0x720/0x720 [ 25.045050] compat_ip_setsockopt+0x9d/0xf0 [ 25.045065] compat_udp_setsockopt+0x45/0x80 [ 25.045081] compat_sock_common_setsockopt+0xb2/0x140 [ 25.045087] ? udp_lib_unhash+0xa10/0xa10 [ 25.045102] compat_SyS_setsockopt+0x17c/0x410 [ 25.045108] ? sock_common_setsockopt+0xd0/0xd0 [ 25.045122] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 25.045136] ? do_fast_syscall_32+0x156/0xf9d [ 25.045154] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 25.045164] do_fast_syscall_32+0x3ee/0xf9d [ 25.045183] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.045192] ? kasan_check_read+0x11/0x20 [ 25.045203] ? syscall_return_slowpath+0x550/0x550 [ 25.045214] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.045224] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.045231] ? SyS_read+0x184/0x220 [ 25.045239] ? retint_user+0x18/0x18 [ 25.045255] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.045274] entry_SYSENTER_compat+0x54/0x63 [ 25.045280] RIP: 0023:0xf7fa0c79 [ 25.045284] RSP: 002b:00000000ff8efd6c EFLAGS: 00000282 ORIG_RAX: 000000000000016e [ 25.045291] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000 [ 25.045296] RDX: 0000000000000040 RSI: 00000000208ce6a0 RDI: 00000000000000ec [ 25.045300] RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000 [ 25.045304] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.045307] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.045336] [ 25.045339] Allocated by task 3663: [ 25.045346] save_stack+0x43/0xd0 [ 25.045351] kasan_kmalloc+0xad/0xe0 [ 25.045356] __kmalloc_node+0x47/0x70 [ 25.045363] kvmalloc_node+0x99/0xd0 [ 25.045369] xt_alloc_table_info+0x64/0xe0 [ 25.045375] compat_do_replace.isra.15+0x17f/0x720 [ 25.045381] compat_do_ipt_set_ctl+0x106/0x150 [ 25.045387] compat_nf_setsockopt+0x88/0x130 [ 25.045393] compat_ip_setsockopt+0x9d/0xf0 [ 25.045399] compat_udp_setsockopt+0x45/0x80 [ 25.045405] compat_sock_common_setsockopt+0xb2/0x140 [ 25.045411] compat_SyS_setsockopt+0x17c/0x410 [ 25.045417] do_fast_syscall_32+0x3ee/0xf9d [ 25.045423] entry_SYSENTER_compat+0x54/0x63 [ 25.045425] [ 25.045428] Freed by task 2026: [ 25.045433] save_stack+0x43/0xd0 [ 25.045438] kasan_slab_free+0x71/0xc0 [ 25.045443] kfree+0xd6/0x260 [ 25.045451] single_release+0x80/0xb0 [ 25.045456] __fput+0x327/0x7e0 [ 25.045462] ____fput+0x15/0x20 [ 25.045469] task_work_run+0x199/0x270 [ 25.045475] exit_to_usermode_loop+0x296/0x310 [ 25.045481] syscall_return_slowpath+0x490/0x550 [ 25.045486] entry_SYSCALL_64_fastpath+0x9e/0xa0 [ 25.045488] [ 25.045492] The buggy address belongs to the object at ffff8801d9900d40 [ 25.045492] which belongs to the cache kmalloc-256 of size 256 [ 25.045498] The buggy address is located 208 bytes inside of [ 25.045498] 256-byte region [ffff8801d9900d40, ffff8801d9900e40) [ 25.045500] The buggy address belongs to the page: [ 25.045507] page:ffffea0007664000 count:1 mapcount:0 mapping:ffff8801d99000c0 index:0xffff8801d99000c0 [ 25.045513] flags: 0x2fffc0000000100(slab) [ 25.045522] raw: 02fffc0000000100 ffff8801d99000c0 ffff8801d99000c0 0000000100000008 [ 25.045530] raw: ffffea0007661060 ffffea000766e820 ffff8801dac007c0 0000000000000000 [ 25.045533] page dumped because: kasan: bad access detected [ 25.045535] [ 25.045537] Memory state around the buggy address: [ 25.045542] ffff8801d9900d00: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 [ 25.045548] ffff8801d9900d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.045553] >ffff8801d9900e00: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.045555] ^ [ 25.045561] ffff8801d9900e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.045566] ffff8801d9900f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.045568] ================================================================== [ 25.045570] Disabling lock debugging due to kernel taint [ 25.045590] Kernel panic - not syncing: panic_on_warn set ... [ 25.045590] [ 25.045596] CPU: 1 PID: 3663 Comm: syzkaller293765 Tainted: G B 4.15.0-rc9+ #188 [ 25.045599] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 25.045601] Call Trace: [ 25.045609] dump_stack+0x194/0x257 [ 25.045618] ? arch_local_irq_restore+0x53/0x53 [ 25.045626] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.045634] ? vsnprintf+0x1ed/0x1900 [ 25.045641] ? string+0x120/0x200 [ 25.045648] panic+0x1e4/0x41c [ 25.045655] ? refcount_error_report+0x214/0x214 [ 25.045664] ? add_taint+0x1c/0x50 [ 25.045671] ? add_taint+0x1c/0x50 [ 25.045680] ? string+0x1e8/0x200 [ 25.045687] kasan_end_report+0x50/0x50 [ 25.045693] kasan_report+0x144/0x340 [ 25.045704] __asan_report_load1_noabort+0x14/0x20 [ 25.045710] string+0x1e8/0x200 [ 25.045723] vsnprintf+0x863/0x1900 [ 25.045735] ? pointer+0x9e0/0x9e0 [ 25.045750] __request_module+0x1bf/0xc20 [ 25.045757] ? lock_downgrade+0x980/0x980 [ 25.045767] ? free_modprobe_argv+0xa0/0xa0 [ 25.045773] ? lock_downgrade+0x980/0x980 [ 25.045786] ? is_bpf_text_address+0x7b/0x120 [ 25.045798] ? __mutex_unlock_slowpath+0xe9/0xac0 [ 25.045808] ? wait_for_completion+0x770/0x770 [ 25.045815] ? lock_downgrade+0x980/0x980 [ 25.045824] ? wait_for_completion+0x770/0x770 [ 25.045830] ? lock_release+0xa40/0xa40 [ 25.045841] ? mark_held_locks+0xaf/0x100 [ 25.045848] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 25.045856] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 25.045868] ? xt_find_target+0x17b/0x1e0 [ 25.045885] xt_request_find_target+0x8b/0xb0 [ 25.045894] translate_compat_table+0x910/0x1b90 [ 25.045914] ? ipt_register_table+0x3a0/0x3a0 [ 25.045923] ? __might_fault+0x110/0x1d0 [ 25.045930] ? lock_downgrade+0x980/0x980 [ 25.045935] ? __kmalloc_node+0x33/0x70 [ 25.045944] ? lock_release+0xa40/0xa40 [ 25.045951] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 25.045957] ? __check_object_size+0x25d/0x4f0 [ 25.045969] ? __might_sleep+0x95/0x190 [ 25.045986] compat_do_replace.isra.15+0x30e/0x720 [ 25.045993] ? compat_do_replace.isra.15+0x30e/0x720 [ 25.045999] ? cred_has_capability+0x1a0/0x3d0 [ 25.046014] ? compat_do_ipt_get_ctl+0xbc0/0xbc0 [ 25.046021] ? find_held_lock+0x35/0x1d0 [ 25.046032] ? module_unload_free+0x5b0/0x5b0 [ 25.046038] ? lock_acquire+0x1d5/0x580 [ 25.046055] ? ns_capable_common+0xcf/0x160 [ 25.046066] compat_do_ipt_set_ctl+0x106/0x150 [ 25.046076] compat_nf_setsockopt+0x88/0x130 [ 25.046083] ? compat_do_replace.isra.15+0x720/0x720 [ 25.046093] compat_ip_setsockopt+0x9d/0xf0 [ 25.046103] compat_udp_setsockopt+0x45/0x80 [ 25.046113] compat_sock_common_setsockopt+0xb2/0x140 [ 25.046119] ? udp_lib_unhash+0xa10/0xa10 [ 25.046129] compat_SyS_setsockopt+0x17c/0x410 [ 25.046135] ? sock_common_setsockopt+0xd0/0xd0 [ 25.046148] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 25.046157] ? do_fast_syscall_32+0x156/0xf9d [ 25.046167] ? scm_detach_fds_compat+0x3c0/0x3c0 [ 25.046175] do_fast_syscall_32+0x3ee/0xf9d [ 25.046187] ? do_int80_syscall_32+0x9d0/0x9d0 [ 25.046194] ? kasan_check_read+0x11/0x20 [ 25.046202] ? syscall_return_slowpath+0x550/0x550 [ 25.046210] ? SyS_rt_sigaction+0x94/0x1b0 [ 25.046218] ? SyS_sigprocmask+0x4b0/0x4b0 [ 25.046224] ? SyS_read+0x184/0x220 [ 25.046230] ? retint_user+0x18/0x18 [ 25.046241] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 25.046253] entry_SYSENTER_compat+0x54/0x63 [ 25.046257] RIP: 0023:0xf7fa0c79 [ 25.046260] RSP: 002b:00000000ff8efd6c EFLAGS: 00000282 ORIG_RAX: 000000000000016e [ 25.046266] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000 [ 25.046270] RDX: 0000000000000040 RSI: 00000000208ce6a0 RDI: 00000000000000ec [ 25.046273] RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000 [ 25.046277] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 25.046280] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 25.067284] Dumping ftrace buffer: [ 25.067287] (ftrace buffer empty) [ 25.067290] Kernel Offset: disabled [ 26.058818] Rebooting in 86400 seconds..