[ 23.061900] audit: type=1800 audit(1540511772.876:21): pid=5166 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="bootlogs" dev="sda1" ino=2419 res=0 [ 23.091816] audit: type=1800 audit(1540511772.886:22): pid=5166 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="motd" dev="sda1" ino=2447 res=0 [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [ 23.905759] sshd (5233) used greatest stack depth: 15488 bytes left [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.47' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 34.441635] ================================================================== [ 34.449108] BUG: KASAN: slab-out-of-bounds in sctp_getsockopt+0x7516/0x7cc2 [ 34.456200] Read of size 8 at addr ffff8801bc16d7e8 by task syz-executor735/5322 [ 34.463717] [ 34.465334] CPU: 1 PID: 5322 Comm: syz-executor735 Not tainted 4.19.0+ #276 [ 34.472415] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.481748] Call Trace: [ 34.484324] dump_stack+0x244/0x39d [ 34.487947] ? dump_stack_print_info.cold.1+0x20/0x20 [ 34.493127] ? printk+0xa7/0xcf [ 34.496403] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.501161] print_address_description.cold.7+0x9/0x1ff [ 34.506531] kasan_report.cold.8+0x242/0x309 [ 34.510925] ? sctp_getsockopt+0x7516/0x7cc2 [ 34.515320] __asan_report_load8_noabort+0x14/0x20 [ 34.520234] sctp_getsockopt+0x7516/0x7cc2 [ 34.524456] ? trace_hardirqs_off_caller+0x310/0x310 [ 34.529549] ? compat_start_thread+0x80/0x80 [ 34.533948] ? sctp_getsockopt_peeloff_common.isra.24+0x2f0/0x2f0 [ 34.540178] ? kasan_check_write+0x14/0x20 [ 34.544409] ? finish_task_switch+0x2f4/0x910 [ 34.548889] ? __switch_to_asm+0x40/0x70 [ 34.552936] ? preempt_notifier_register+0x200/0x200 [ 34.558022] ? __switch_to_asm+0x34/0x70 [ 34.562067] ? __switch_to_asm+0x34/0x70 [ 34.566112] ? __switch_to_asm+0x40/0x70 [ 34.570171] ? __switch_to_asm+0x34/0x70 [ 34.574216] ? __switch_to_asm+0x40/0x70 [ 34.578261] ? __switch_to_asm+0x34/0x70 [ 34.582306] ? __switch_to_asm+0x40/0x70 [ 34.586355] ? __switch_to_asm+0x34/0x70 [ 34.590404] ? __switch_to_asm+0x34/0x70 [ 34.594450] ? __switch_to_asm+0x40/0x70 [ 34.598498] ? __switch_to_asm+0x34/0x70 [ 34.602541] ? __switch_to_asm+0x40/0x70 [ 34.606588] ? __switch_to_asm+0x34/0x70 [ 34.610631] ? __switch_to_asm+0x40/0x70 [ 34.614685] ? __schedule+0x8d7/0x21d0 [ 34.618562] ? __sched_text_start+0x8/0x8 [ 34.622698] ? zap_class+0x640/0x640 [ 34.626400] ? plist_check_list+0xa0/0xa0 [ 34.630530] ? lock_pin_lock+0x350/0x350 [ 34.634635] ? perf_trace_sched_process_exec+0x860/0x860 [ 34.640080] ? print_usage_bug+0xc0/0xc0 [ 34.644124] ? do_raw_spin_trylock+0x270/0x270 [ 34.648698] ? lock_acquire+0x1ed/0x520 [ 34.652659] ? __might_sleep+0x95/0x190 [ 34.656619] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.662164] ? futex_wait_queue_me+0x55d/0x840 [ 34.666736] ? __lock_acquire+0x62f/0x4c20 [ 34.670957] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.676495] ? get_futex_value_locked+0xcb/0xf0 [ 34.681164] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 34.686168] ? futex_wait_setup+0x266/0x3e0 [ 34.690476] ? mark_held_locks+0x130/0x130 [ 34.694694] ? futex_wake+0x760/0x760 [ 34.698479] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 34.703659] ? drop_futex_key_refs.isra.14+0x6d/0xe0 [ 34.708758] ? futex_wait+0x5ec/0xa50 [ 34.712548] ? futex_wait_setup+0x3e0/0x3e0 [ 34.716854] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 34.722037] ? drop_futex_key_refs.isra.14+0x6d/0xe0 [ 34.727134] ? futex_wake+0x304/0x760 [ 34.730935] ? _raw_spin_unlock_bh+0x30/0x40 [ 34.735326] ? zap_class+0x640/0x640 [ 34.739035] ? find_held_lock+0x36/0x1c0 [ 34.743084] ? __fget+0x4aa/0x740 [ 34.746521] ? lock_downgrade+0x900/0x900 [ 34.750655] ? check_preemption_disabled+0x48/0x280 [ 34.755665] ? rcu_read_unlock_special+0x1c0/0x1c0 [ 34.760579] ? kasan_check_read+0x11/0x20 [ 34.764710] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 34.769970] ? rcu_softirq_qs+0x20/0x20 [ 34.773933] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 34.779452] ? aa_label_sk_perm+0x46d/0x8e0 [ 34.783759] ? aa_profile_af_perm+0x410/0x410 [ 34.788248] ? ksys_dup3+0x680/0x680 [ 34.791967] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.797518] ? security_socket_sendmsg+0x94/0xc0 [ 34.802263] ? fput+0x130/0x1a0 [ 34.805530] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 34.810443] ? aa_sk_perm+0x218/0x8b0 [ 34.814232] ? fget_raw+0x20/0x20 [ 34.817675] ? __do_page_fault+0x620/0xe60 [ 34.821899] ? aa_af_perm+0x5a0/0x5a0 [ 34.825685] ? rcu_read_unlock_special+0x1c0/0x1c0 [ 34.830595] ? kasan_check_read+0x11/0x20 [ 34.834727] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 34.839997] sock_common_getsockopt+0x9a/0xe0 [ 34.844478] ? sctp_getsockopt_peeloff_common.isra.24+0x2f0/0x2f0 [ 34.850692] ? sock_common_getsockopt+0x9a/0xe0 [ 34.855347] __sys_getsockopt+0x1ad/0x390 [ 34.859481] ? kernel_setsockopt+0x1d0/0x1d0 [ 34.863874] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 34.868444] ? trace_hardirqs_on+0xbd/0x310 [ 34.872749] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.878096] ? trace_hardirqs_off_caller+0x310/0x310 [ 34.883193] __x64_sys_getsockopt+0xbe/0x150 [ 34.887588] do_syscall_64+0x1b9/0x820 [ 34.891459] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.896808] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.901720] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.906549] ? trace_hardirqs_on_caller+0x310/0x310 [ 34.911552] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.916555] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.921562] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.926394] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.931569] RIP: 0033:0x445789 [ 34.934760] Code: e8 6c b6 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 2b 12 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 34.953644] RSP: 002b:00007f357dbe5db8 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 [ 34.961344] RAX: ffffffffffffffda RBX: 00000000006dac28 RCX: 0000000000445789 [ 34.968595] RDX: 0000000000000074 RSI: 0000000000000084 RDI: 0000000000000003 [ 34.975849] RBP: 00000000006dac20 R08: 0000000020000040 R09: 0000000000000000 [ 34.983102] R10: 0000000020000080 R11: 0000000000000246 R12: 00000000006dac2c [ 34.990354] R13: 00007fff0c20b01f R14: 00007f357dbe69c0 R15: 00000000006dad2c [ 34.997616] [ 34.999224] Allocated by task 5323: [ 35.002849] save_stack+0x43/0xd0 [ 35.006286] kasan_kmalloc+0xc7/0xe0 [ 35.009981] kmem_cache_alloc_trace+0x152/0x750 [ 35.014635] sctp_stream_init_ext+0x4f/0xf0 [ 35.018943] sctp_sendmsg_to_asoc+0x1308/0x1a20 [ 35.023591] sctp_sendmsg+0x13c2/0x1da0 [ 35.027550] inet_sendmsg+0x1a1/0x690 [ 35.031334] sock_sendmsg+0xd5/0x120 [ 35.035034] __sys_sendto+0x3d7/0x670 [ 35.038832] __x64_sys_sendto+0xe1/0x1a0 [ 35.042905] do_syscall_64+0x1b9/0x820 [ 35.046779] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.051944] [ 35.053553] Freed by task 3229: [ 35.056816] save_stack+0x43/0xd0 [ 35.060253] __kasan_slab_free+0x102/0x150 [ 35.064471] kasan_slab_free+0xe/0x10 [ 35.068255] kfree+0xcf/0x230 [ 35.071344] kzfree+0x28/0x30 [ 35.074436] apparmor_file_free_security+0x133/0x1a0 [ 35.079769] security_file_free+0x4a/0x80 [ 35.083902] __fput+0x4e8/0xa30 [ 35.087168] ____fput+0x15/0x20 [ 35.090429] task_work_run+0x1e8/0x2a0 [ 35.094301] exit_to_usermode_loop+0x318/0x380 [ 35.098875] do_syscall_64+0x6be/0x820 [ 35.102746] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.107910] [ 35.109521] The buggy address belongs to the object at ffff8801bc16d780 [ 35.109521] which belongs to the cache kmalloc-96 of size 96 [ 35.121987] The buggy address is located 8 bytes to the right of [ 35.121987] 96-byte region [ffff8801bc16d780, ffff8801bc16d7e0) [ 35.134115] The buggy address belongs to the page: [ 35.139133] page:ffffea0006f05b40 count:1 mapcount:0 mapping:ffff8801da8004c0 index:0x0 [ 35.147277] flags: 0x2fffc0000000100(slab) [ 35.151500] raw: 02fffc0000000100 ffffea0006f13f88 ffffea0006f140c8 ffff8801da8004c0 [ 35.159366] raw: 0000000000000000 ffff8801bc16d000 0000000100000020 0000000000000000 [ 35.167239] page dumped because: kasan: bad access detected [ 35.172926] [ 35.174531] Memory state around the buggy address: [ 35.179440] ffff8801bc16d680: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 35.186795] ffff8801bc16d700: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 35.194144] >ffff8801bc16d780: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc [ 35.201500] ^ [ 35.208237] ffff8801bc16d800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 35.215596] ffff8801bc16d880: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 35.222934] ================================================================== [ 35.230271] Disabling lock debugging due to kernel taint [ 35.236372] Kernel panic - not syncing: panic_on_warn set ... [ 35.236372] [ 35.243768] CPU: 1 PID: 5322 Comm: syz-executor735 Tainted: G B 4.19.0+ #276 [ 35.252250] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.261597] Call Trace: [ 35.264175] dump_stack+0x244/0x39d [ 35.267788] ? dump_stack_print_info.cold.1+0x20/0x20 [ 35.272970] panic+0x238/0x4e7 [ 35.276154] ? add_taint.cold.5+0x16/0x16 [ 35.280289] ? preempt_schedule+0x4d/0x60 [ 35.284422] ? ___preempt_schedule+0x16/0x18 [ 35.288825] ? trace_hardirqs_on+0xb4/0x310 [ 35.293131] kasan_end_report+0x47/0x4f [ 35.297113] kasan_report.cold.8+0x76/0x309 [ 35.301425] ? sctp_getsockopt+0x7516/0x7cc2 [ 35.305818] __asan_report_load8_noabort+0x14/0x20 [ 35.310727] sctp_getsockopt+0x7516/0x7cc2 [ 35.314960] ? trace_hardirqs_off_caller+0x310/0x310 [ 35.320046] ? compat_start_thread+0x80/0x80 [ 35.324441] ? sctp_getsockopt_peeloff_common.isra.24+0x2f0/0x2f0 [ 35.330657] ? kasan_check_write+0x14/0x20 [ 35.334878] ? finish_task_switch+0x2f4/0x910 [ 35.339355] ? __switch_to_asm+0x40/0x70 [ 35.343398] ? preempt_notifier_register+0x200/0x200 [ 35.348483] ? __switch_to_asm+0x34/0x70 [ 35.352523] ? __switch_to_asm+0x34/0x70 [ 35.356565] ? __switch_to_asm+0x40/0x70 [ 35.360607] ? __switch_to_asm+0x34/0x70 [ 35.364656] ? __switch_to_asm+0x40/0x70 [ 35.368696] ? __switch_to_asm+0x34/0x70 [ 35.372735] ? __switch_to_asm+0x40/0x70 [ 35.376777] ? __switch_to_asm+0x34/0x70 [ 35.380819] ? __switch_to_asm+0x34/0x70 [ 35.384862] ? __switch_to_asm+0x40/0x70 [ 35.388905] ? __switch_to_asm+0x34/0x70 [ 35.392948] ? __switch_to_asm+0x40/0x70 [ 35.397004] ? __switch_to_asm+0x34/0x70 [ 35.401046] ? __switch_to_asm+0x40/0x70 [ 35.405093] ? __schedule+0x8d7/0x21d0 [ 35.408964] ? __sched_text_start+0x8/0x8 [ 35.413098] ? zap_class+0x640/0x640 [ 35.416798] ? plist_check_list+0xa0/0xa0 [ 35.420929] ? lock_pin_lock+0x350/0x350 [ 35.424983] ? perf_trace_sched_process_exec+0x860/0x860 [ 35.430415] ? print_usage_bug+0xc0/0xc0 [ 35.434460] ? do_raw_spin_trylock+0x270/0x270 [ 35.439022] ? lock_acquire+0x1ed/0x520 [ 35.442981] ? __might_sleep+0x95/0x190 [ 35.446942] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.452464] ? futex_wait_queue_me+0x55d/0x840 [ 35.457049] ? __lock_acquire+0x62f/0x4c20 [ 35.461270] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.466803] ? get_futex_value_locked+0xcb/0xf0 [ 35.471455] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 35.476467] ? futex_wait_setup+0x266/0x3e0 [ 35.480774] ? mark_held_locks+0x130/0x130 [ 35.484996] ? futex_wake+0x760/0x760 [ 35.488778] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 35.493955] ? drop_futex_key_refs.isra.14+0x6d/0xe0 [ 35.499042] ? futex_wait+0x5ec/0xa50 [ 35.502843] ? futex_wait_setup+0x3e0/0x3e0 [ 35.507167] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 35.512342] ? drop_futex_key_refs.isra.14+0x6d/0xe0 [ 35.517427] ? futex_wake+0x304/0x760 [ 35.521234] ? _raw_spin_unlock_bh+0x30/0x40 [ 35.525641] ? zap_class+0x640/0x640 [ 35.529354] ? find_held_lock+0x36/0x1c0 [ 35.533410] ? __fget+0x4aa/0x740 [ 35.536845] ? lock_downgrade+0x900/0x900 [ 35.540976] ? check_preemption_disabled+0x48/0x280 [ 35.545977] ? rcu_read_unlock_special+0x1c0/0x1c0 [ 35.550903] ? kasan_check_read+0x11/0x20 [ 35.555032] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 35.560291] ? rcu_softirq_qs+0x20/0x20 [ 35.564253] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 35.569770] ? aa_label_sk_perm+0x46d/0x8e0 [ 35.574076] ? aa_profile_af_perm+0x410/0x410 [ 35.578556] ? ksys_dup3+0x680/0x680 [ 35.582257] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.587794] ? security_socket_sendmsg+0x94/0xc0 [ 35.592555] ? fput+0x130/0x1a0 [ 35.595819] ? debug_lockdep_rcu_enabled+0x77/0x90 [ 35.600727] ? aa_sk_perm+0x218/0x8b0 [ 35.604512] ? fget_raw+0x20/0x20 [ 35.607946] ? __do_page_fault+0x620/0xe60 [ 35.612165] ? aa_af_perm+0x5a0/0x5a0 [ 35.615954] ? rcu_read_unlock_special+0x1c0/0x1c0 [ 35.620891] ? kasan_check_read+0x11/0x20 [ 35.625023] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 35.630288] sock_common_getsockopt+0x9a/0xe0 [ 35.634782] ? sctp_getsockopt_peeloff_common.isra.24+0x2f0/0x2f0 [ 35.641008] ? sock_common_getsockopt+0x9a/0xe0 [ 35.645663] __sys_getsockopt+0x1ad/0x390 [ 35.649816] ? kernel_setsockopt+0x1d0/0x1d0 [ 35.654210] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 35.658773] ? trace_hardirqs_on+0xbd/0x310 [ 35.663076] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.668424] ? trace_hardirqs_off_caller+0x310/0x310 [ 35.673508] __x64_sys_getsockopt+0xbe/0x150 [ 35.677916] do_syscall_64+0x1b9/0x820 [ 35.681785] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.687156] ? syscall_return_slowpath+0x5e0/0x5e0 [ 35.692073] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.696896] ? trace_hardirqs_on_caller+0x310/0x310 [ 35.701892] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.706891] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.711891] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.716746] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.721920] RIP: 0033:0x445789 [ 35.725097] Code: e8 6c b6 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 2b 12 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 35.743982] RSP: 002b:00007f357dbe5db8 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 [ 35.751671] RAX: ffffffffffffffda RBX: 00000000006dac28 RCX: 0000000000445789 [ 35.758921] RDX: 0000000000000074 RSI: 0000000000000084 RDI: 0000000000000003 [ 35.766171] RBP: 00000000006dac20 R08: 0000000020000040 R09: 0000000000000000 [ 35.773423] R10: 0000000020000080 R11: 0000000000000246 R12: 00000000006dac2c [ 35.780675] R13: 00007fff0c20b01f R14: 00007f357dbe69c0 R15: 00000000006dad2c [ 35.788816] Kernel Offset: disabled [ 35.792439] Rebooting in 86400 seconds..