INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] 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 Warning: Permanently added 'ci-upstream-kasan-gce-7,10.128.15.207' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 29.551209] ================================================================== [ 29.552315] BUG: KASAN: slab-out-of-bounds in strcmp+0x96/0xb0 [ 29.553136] Read of size 1 at addr ffff8801d8e19ac1 by task syzkaller027880/3083 [ 29.554149] [ 29.554382] CPU: 0 PID: 3083 Comm: syzkaller027880 Not tainted 4.15.0-rc1+ #205 [ 29.555372] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.556591] Call Trace: [ 29.556947] dump_stack+0x194/0x257 [ 29.557439] ? arch_local_irq_restore+0x53/0x53 [ 29.558088] ? show_regs_print_info+0x65/0x65 [ 29.558693] ? save_stack+0xa3/0xd0 [ 29.559181] ? strcmp+0x96/0xb0 [ 29.559654] print_address_description+0x73/0x250 [ 29.560298] ? strcmp+0x96/0xb0 [ 29.560744] kasan_report+0x25b/0x340 [ 29.561260] __asan_report_load1_noabort+0x14/0x20 [ 29.561912] strcmp+0x96/0xb0 [ 29.562334] ? avc_has_perm_noaudit+0x520/0x520 [ 29.562960] security_context_to_sid_core+0x437/0x620 [ 29.563666] ? security_compute_validatetrans.part.6+0x7d0/0x7d0 [ 29.564489] ? check_stack_object+0x68/0x140 [ 29.565082] security_context_to_sid+0x32/0x40 [ 29.565696] selinux_setprocattr+0x51c/0xb50 [ 29.566288] ? ptrace_parent_sid+0x540/0x540 [ 29.566876] ? __kmalloc_track_caller+0x46d/0x760 [ 29.567532] security_setprocattr+0x85/0xc0 [ 29.568115] proc_pid_attr_write+0x1e6/0x280 [ 29.568709] ? proc_task_getattr+0x180/0x180 [ 29.569295] __vfs_write+0xef/0x970 [ 29.569783] ? trace_hardirqs_on+0xd/0x10 [ 29.570338] ? kernel_read+0x120/0x120 [ 29.570862] ? __lock_is_held+0xbc/0x140 [ 29.571421] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.577266] ? save_stack+0xa3/0xd0 [ 29.580861] ? rcu_note_context_switch+0x710/0x710 [ 29.585758] __kernel_write+0xfe/0x350 [ 29.589616] write_pipe_buf+0x175/0x220 [ 29.593557] ? default_file_splice_read+0xae0/0xae0 [ 29.598536] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 29.604387] ? splice_from_pipe_next.part.9+0x22e/0x2f0 [ 29.609721] __splice_from_pipe+0x328/0x730 [ 29.614008] ? default_file_splice_read+0xae0/0xae0 [ 29.619000] splice_from_pipe+0x1e9/0x330 [ 29.623114] ? default_file_splice_read+0xae0/0xae0 [ 29.628104] ? splice_shrink_spd+0xb0/0xb0 [ 29.632312] ? security_file_permission+0x89/0x1f0 [ 29.637213] default_file_splice_write+0x40/0x90 [ 29.641932] ? generic_splice_sendpage+0x50/0x50 [ 29.647439] direct_splice_actor+0x125/0x180 [ 29.651815] splice_direct_to_actor+0x2c1/0x820 [ 29.656449] ? _cond_resched+0x14/0x30 [ 29.660303] ? generic_pipe_buf_nosteal+0x10/0x10 [ 29.665116] ? do_splice_to+0x170/0x170 [ 29.669056] ? security_file_permission+0x89/0x1f0 [ 29.673956] ? rw_verify_area+0xe5/0x2b0 [ 29.677986] do_splice_direct+0x2a7/0x3d0 [ 29.682103] ? splice_direct_to_actor+0x820/0x820 [ 29.686918] ? rcu_sync_lockdep_assert+0x6d/0xb0 [ 29.691638] ? __sb_start_write+0x203/0x290 [ 29.695930] do_sendfile+0x5d5/0xe90 [ 29.699619] ? do_compat_pwritev64+0x100/0x100 [ 29.704174] ? __might_sleep+0x95/0x190 [ 29.708120] ? kasan_check_write+0x14/0x20 [ 29.712327] ? _copy_from_user+0x99/0x110 [ 29.716445] SyS_sendfile64+0xbd/0x160 [ 29.720299] ? SyS_sendfile+0x1a0/0x1a0 [ 29.724238] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.729227] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.733954] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 29.738673] RIP: 0033:0x440189 [ 29.741829] RSP: 002b:00007ffc1a9e6a08 EFLAGS: 00000207 ORIG_RAX: 0000000000000028 [ 29.749507] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440189 [ 29.756743] RDX: 0000000020004ff8 RSI: 0000000000000003 RDI: 0000000000000003 [ 29.763986] RBP: 00000000006ca018 R08: 68742f636f72702f R09: 68742f636f72702f [ 29.771226] R10: 0000000000000001 R11: 0000000000000207 R12: 0000000000401a50 [ 29.778464] R13: 0000000000401ae0 R14: 0000000000000000 R15: 0000000000000000 [ 29.785718] [ 29.787311] Allocated by task 3083: [ 29.790905] save_stack+0x43/0xd0 [ 29.794345] kasan_kmalloc+0xad/0xe0 [ 29.798030] __kmalloc_track_caller+0x15e/0x760 [ 29.802670] memdup_user+0x2c/0x90 [ 29.806176] proc_pid_attr_write+0x115/0x280 [ 29.810550] __vfs_write+0xef/0x970 [ 29.814141] __kernel_write+0xfe/0x350 [ 29.817993] write_pipe_buf+0x175/0x220 [ 29.821931] __splice_from_pipe+0x328/0x730 [ 29.826219] splice_from_pipe+0x1e9/0x330 [ 29.830329] default_file_splice_write+0x40/0x90 [ 29.835047] direct_splice_actor+0x125/0x180 [ 29.839419] splice_direct_to_actor+0x2c1/0x820 [ 29.844051] do_splice_direct+0x2a7/0x3d0 [ 29.848162] do_sendfile+0x5d5/0xe90 [ 29.851842] SyS_sendfile64+0xbd/0x160 [ 29.855695] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 29.860414] [ 29.862006] Freed by task 485: [ 29.865161] save_stack+0x43/0xd0 [ 29.868579] kasan_slab_free+0x71/0xc0 [ 29.872432] kfree+0xca/0x250 [ 29.875501] selinux_cred_free+0x48/0x70 [ 29.879529] security_cred_free+0x48/0x80 [ 29.883642] put_cred_rcu+0x106/0x400 [ 29.887410] rcu_process_callbacks+0xd74/0x17d0 [ 29.892050] __do_softirq+0x29d/0xbb2 [ 29.895815] [ 29.897409] The buggy address belongs to the object at ffff8801d8e19ac0 [ 29.897409] which belongs to the cache kmalloc-32 of size 32 [ 29.909856] The buggy address is located 1 bytes inside of [ 29.909856] 32-byte region [ffff8801d8e19ac0, ffff8801d8e19ae0) [ 29.921432] The buggy address belongs to the page: [ 29.926327] page:00000000da19e7a5 count:1 mapcount:0 mapping:000000009b2c396f index:0xffff8801d8e19fc1 [ 29.935736] flags: 0x2fffc0000000100(slab) [ 29.939937] raw: 02fffc0000000100 ffff8801d8e19000 ffff8801d8e19fc1 000000010000003f [ 29.947781] raw: ffffea0007635d60 ffff8801db001250 ffff8801db0001c0 0000000000000000 [ 29.955624] page dumped because: kasan: bad access detected [ 29.961295] [ 29.962888] Memory state around the buggy address: [ 29.967780] ffff8801d8e19980: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 29.975103] ffff8801d8e19a00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 29.982428] >ffff8801d8e19a80: fb fb fb fb fc fc fc fc 01 fc fc fc fc fc fc fc [ 29.989750] ^ [ 29.995166] ffff8801d8e19b00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 30.002492] ffff8801d8e19b80: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc [ 30.009814] ================================================================== [ 30.017137] Disabling lock debugging due to kernel taint [ 30.022616] Kernel panic - not syncing: panic_on_warn set ... [ 30.022616] [ 30.029952] CPU: 0 PID: 3083 Comm: syzkaller027880 Tainted: G B 4.15.0-rc1+ #205 [ 30.038665] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.047991] Call Trace: [ 30.050546] dump_stack+0x194/0x257 [ 30.054137] ? arch_local_irq_restore+0x53/0x53 [ 30.058994] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.063717] ? vsnprintf+0x1ed/0x1900 [ 30.067484] ? strscpy+0x680/0x680 [ 30.070991] panic+0x1e4/0x41c [ 30.074148] ? refcount_error_report+0x214/0x214 [ 30.078868] ? add_taint+0x1c/0x50 [ 30.082372] ? add_taint+0x1c/0x50 [ 30.085880] ? strcmp+0x96/0xb0 [ 30.089131] kasan_end_report+0x50/0x50 [ 30.093073] kasan_report+0x144/0x340 [ 30.096838] __asan_report_load1_noabort+0x14/0x20 [ 30.101731] strcmp+0x96/0xb0 [ 30.104801] ? avc_has_perm_noaudit+0x520/0x520 [ 30.109438] security_context_to_sid_core+0x437/0x620 [ 30.114597] ? security_compute_validatetrans.part.6+0x7d0/0x7d0 [ 30.120722] ? check_stack_object+0x68/0x140 [ 30.125097] security_context_to_sid+0x32/0x40 [ 30.129646] selinux_setprocattr+0x51c/0xb50 [ 30.134021] ? ptrace_parent_sid+0x540/0x540 [ 30.138395] ? __kmalloc_track_caller+0x46d/0x760 [ 30.143204] security_setprocattr+0x85/0xc0 [ 30.147493] proc_pid_attr_write+0x1e6/0x280 [ 30.151864] ? proc_task_getattr+0x180/0x180 [ 30.156236] __vfs_write+0xef/0x970 [ 30.159827] ? trace_hardirqs_on+0xd/0x10 [ 30.163937] ? kernel_read+0x120/0x120 [ 30.167788] ? __lock_is_held+0xbc/0x140 [ 30.171819] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 30.177664] ? save_stack+0xa3/0xd0 [ 30.181256] ? rcu_note_context_switch+0x710/0x710 [ 30.186149] __kernel_write+0xfe/0x350 [ 30.190009] write_pipe_buf+0x175/0x220 [ 30.193948] ? default_file_splice_read+0xae0/0xae0 [ 30.198927] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 30.204774] ? splice_from_pipe_next.part.9+0x22e/0x2f0 [ 30.210103] __splice_from_pipe+0x328/0x730 [ 30.214394] ? default_file_splice_read+0xae0/0xae0 [ 30.219378] splice_from_pipe+0x1e9/0x330 [ 30.223490] ? default_file_splice_read+0xae0/0xae0 [ 30.228469] ? splice_shrink_spd+0xb0/0xb0 [ 30.232672] ? security_file_permission+0x89/0x1f0 [ 30.237566] default_file_splice_write+0x40/0x90 [ 30.242283] ? generic_splice_sendpage+0x50/0x50 [ 30.247001] direct_splice_actor+0x125/0x180 [ 30.251375] splice_direct_to_actor+0x2c1/0x820 [ 30.256007] ? _cond_resched+0x14/0x30 [ 30.259857] ? generic_pipe_buf_nosteal+0x10/0x10 [ 30.264665] ? do_splice_to+0x170/0x170 [ 30.268603] ? security_file_permission+0x89/0x1f0 [ 30.273497] ? rw_verify_area+0xe5/0x2b0 [ 30.277524] do_splice_direct+0x2a7/0x3d0 [ 30.281637] ? splice_direct_to_actor+0x820/0x820 [ 30.286444] ? rcu_sync_lockdep_assert+0x6d/0xb0 [ 30.291164] ? __sb_start_write+0x203/0x290 [ 30.295451] do_sendfile+0x5d5/0xe90 [ 30.299134] ? do_compat_pwritev64+0x100/0x100 [ 30.303684] ? __might_sleep+0x95/0x190 [ 30.307624] ? kasan_check_write+0x14/0x20 [ 30.311821] ? _copy_from_user+0x99/0x110 [ 30.315935] SyS_sendfile64+0xbd/0x160 [ 30.319788] ? SyS_sendfile+0x1a0/0x1a0 [ 30.323724] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.328704] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.333426] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 30.338145] RIP: 0033:0x440189 [ 30.341300] RSP: 002b:00007ffc1a9e6a08 EFLAGS: 00000207 ORIG_RAX: 0000000000000028 [ 30.348971] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440189 [ 30.356206] RDX: 0000000020004ff8 RSI: 0000000000000003 RDI: 0000000000000003 [ 30.363441] RBP: 00000000006ca018 R08: 68742f636f72702f R09: 68742f636f72702f [ 30.370677] R10: 0000000000000001 R11: 0000000000000207 R12: 0000000000401a50 [ 30.377911] R13: 0000000000401ae0 R14: 0000000000000000 R15: 0000000000000000 [ 30.385187] Dumping ftrace buffer: [ 30.388690] (ftrace buffer empty) [ 30.392364] Kernel Offset: disabled [ 30.395955] Rebooting in 86400 seconds..