Warning: Permanently added '10.128.10.0' (ECDSA) to the list of known hosts. executing program [ 45.931885] audit: type=1400 audit(1540511784.284:36): avc: denied { map } for pid=5526 comm="syz-executor435" path="/root/syz-executor435209504" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 46.029550] ================================================================== [ 46.037096] BUG: KASAN: slab-out-of-bounds in sctp_getsockopt+0x7516/0x7cc2 [ 46.044246] Read of size 8 at addr ffff8801ca1ff168 by task syz-executor435/5529 [ 46.051770] [ 46.053396] CPU: 1 PID: 5529 Comm: syz-executor435 Not tainted 4.19.0+ #82 [ 46.060401] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.069752] Call Trace: [ 46.072340] dump_stack+0x244/0x39d [ 46.075970] ? dump_stack_print_info.cold.1+0x20/0x20 [ 46.081162] ? printk+0xa7/0xcf [ 46.084441] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 46.089203] print_address_description.cold.7+0x9/0x1ff [ 46.094578] kasan_report.cold.8+0x242/0x309 [ 46.098995] ? sctp_getsockopt+0x7516/0x7cc2 [ 46.103421] __asan_report_load8_noabort+0x14/0x20 [ 46.108457] sctp_getsockopt+0x7516/0x7cc2 [ 46.112701] ? trace_hardirqs_off_caller+0x310/0x310 [ 46.117800] ? compat_start_thread+0x80/0x80 [ 46.122207] ? sctp_getsockopt_peeloff_common.isra.24+0x2f0/0x2f0 [ 46.128444] ? kasan_check_write+0x14/0x20 [ 46.132686] ? finish_task_switch+0x2f4/0x910 [ 46.137179] ? __switch_to_asm+0x40/0x70 [ 46.141242] ? preempt_notifier_register+0x200/0x200 [ 46.146338] ? __switch_to_asm+0x34/0x70 [ 46.150389] ? __switch_to_asm+0x34/0x70 [ 46.154444] ? __switch_to_asm+0x40/0x70 [ 46.158503] ? __switch_to_asm+0x34/0x70 [ 46.162567] ? __switch_to_asm+0x40/0x70 [ 46.166617] ? __switch_to_asm+0x34/0x70 [ 46.170671] ? __switch_to_asm+0x40/0x70 [ 46.174727] ? __switch_to_asm+0x34/0x70 [ 46.178783] ? __switch_to_asm+0x34/0x70 [ 46.182839] ? __switch_to_asm+0x40/0x70 [ 46.186892] ? __switch_to_asm+0x34/0x70 [ 46.190949] ? __switch_to_asm+0x40/0x70 [ 46.195003] ? __switch_to_asm+0x34/0x70 [ 46.199165] ? __switch_to_asm+0x40/0x70 [ 46.203309] ? __schedule+0x8d7/0x21d0 [ 46.207249] ? __enqueue_entity+0x10d/0x1f0 [ 46.211575] ? __sched_text_start+0x8/0x8 [ 46.215716] ? zap_class+0x640/0x640 [ 46.219434] ? plist_check_list+0xa0/0xa0 [ 46.223575] ? zap_class+0x640/0x640 [ 46.227299] ? perf_trace_sched_process_exec+0x860/0x860 [ 46.232836] ? print_usage_bug+0xc0/0xc0 [ 46.236891] ? lock_acquire+0x1ed/0x520 [ 46.240867] ? __might_sleep+0x95/0x190 [ 46.244845] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.250380] ? futex_wait_queue_me+0x55d/0x840 [ 46.255011] ? __lock_acquire+0x62f/0x4c20 [ 46.259261] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.264960] ? get_futex_value_locked+0xcb/0xf0 [ 46.269634] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 46.274664] ? futex_wait_setup+0x266/0x3e0 [ 46.279017] ? mark_held_locks+0x130/0x130 [ 46.283259] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 46.288516] ? drop_futex_key_refs.isra.14+0x6d/0xe0 [ 46.293629] ? futex_wait+0x5ec/0xa50 [ 46.297442] ? futex_wait_setup+0x3e0/0x3e0 [ 46.301769] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 46.306965] ? drop_futex_key_refs.isra.14+0x6d/0xe0 [ 46.312063] ? futex_wake+0x304/0x760 [ 46.315859] ? zap_class+0x640/0x640 [ 46.319575] ? find_held_lock+0x36/0x1c0 [ 46.323642] ? avc_has_perm+0x469/0x7e0 [ 46.327697] ? lock_downgrade+0x900/0x900 [ 46.331849] ? check_preemption_disabled+0x48/0x280 [ 46.336920] ? rcu_read_unlock_special+0x1c0/0x1c0 [ 46.341864] ? kasan_check_read+0x11/0x20 [ 46.346079] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 46.351441] ? rcu_softirq_qs+0x20/0x20 [ 46.355424] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.361025] ? avc_has_perm+0x55f/0x7e0 [ 46.365008] ? avc_has_perm_noaudit+0x630/0x630 [ 46.369680] ? ksys_dup3+0x680/0x680 [ 46.373397] ? __wake_up_common_lock+0x1d0/0x330 [ 46.378150] ? find_held_lock+0x36/0x1c0 [ 46.382271] ? __local_bh_enable_ip+0x160/0x260 [ 46.387047] ? __local_bh_enable_ip+0x160/0x260 [ 46.391713] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 46.396290] ? sock_has_perm+0x2bc/0x3e0 [ 46.400476] ? selinux_secmark_relabel_packet+0xe0/0xe0 [ 46.405844] ? __local_bh_enable_ip+0x160/0x260 [ 46.410567] sock_common_getsockopt+0x9a/0xe0 [ 46.415074] ? sctp_getsockopt_peeloff_common.isra.24+0x2f0/0x2f0 [ 46.421316] ? sock_common_getsockopt+0x9a/0xe0 [ 46.425985] __sys_getsockopt+0x1ad/0x390 [ 46.430176] ? kernel_setsockopt+0x1d0/0x1d0 [ 46.434588] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 46.439168] ? trace_hardirqs_on+0xbd/0x310 [ 46.443491] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.449143] ? trace_hardirqs_off_caller+0x310/0x310 [ 46.454254] __x64_sys_getsockopt+0xbe/0x150 [ 46.458671] do_syscall_64+0x1b9/0x820 [ 46.462630] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 46.468002] ? syscall_return_slowpath+0x5e0/0x5e0 [ 46.472984] ? trace_hardirqs_on_caller+0x310/0x310 [ 46.478034] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 46.483065] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 46.489781] ? __switch_to_asm+0x40/0x70 [ 46.493899] ? __switch_to_asm+0x34/0x70 [ 46.497972] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.502819] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.508003] RIP: 0033:0x445789 [ 46.511196] 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 [ 46.530097] RSP: 002b:00007ff683eb6db8 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 [ 46.537867] RAX: ffffffffffffffda RBX: 00000000006dac48 RCX: 0000000000445789 [ 46.545204] RDX: 0000000000000074 RSI: 0000000000000084 RDI: 0000000000000003 [ 46.552498] RBP: 00000000006dac40 R08: 0000000020000040 R09: 0000000000000000 [ 46.559788] R10: 0000000020000080 R11: 0000000000000246 R12: 00000000006dac4c [ 46.567058] R13: 00007ffedd6edd7f R14: 00007ff683eb79c0 R15: 00000000006dad2c [ 46.574333] [ 46.575947] Allocated by task 5528: [ 46.579642] save_stack+0x43/0xd0 [ 46.583102] kasan_kmalloc+0xc7/0xe0 [ 46.586815] kmem_cache_alloc_trace+0x152/0x750 [ 46.591484] sctp_stream_init_ext+0x4f/0xf0 [ 46.595801] sctp_sendmsg_to_asoc+0x1308/0x1a20 [ 46.600463] sctp_sendmsg+0x13c2/0x1da0 [ 46.604430] inet_sendmsg+0x1a1/0x690 [ 46.608217] sock_sendmsg+0xd5/0x120 [ 46.612058] __sys_sendto+0x3d7/0x670 [ 46.615846] __x64_sys_sendto+0xe1/0x1a0 [ 46.619965] do_syscall_64+0x1b9/0x820 [ 46.623849] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.629016] [ 46.630626] Freed by task 4060: [ 46.633897] save_stack+0x43/0xd0 [ 46.637345] __kasan_slab_free+0x102/0x150 [ 46.641561] kasan_slab_free+0xe/0x10 [ 46.645347] kfree+0xcf/0x230 [ 46.648504] free_rb_tree_fname+0x85/0xe0 [ 46.652658] ext4_release_dir+0x44/0x60 [ 46.656622] __fput+0x385/0xa30 [ 46.659962] ____fput+0x15/0x20 [ 46.663233] task_work_run+0x1e8/0x2a0 [ 46.667215] exit_to_usermode_loop+0x318/0x380 [ 46.671789] do_syscall_64+0x6be/0x820 [ 46.675777] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.681007] [ 46.682633] The buggy address belongs to the object at ffff8801ca1ff100 [ 46.682633] which belongs to the cache kmalloc-96 of size 96 [ 46.695111] The buggy address is located 8 bytes to the right of [ 46.695111] 96-byte region [ffff8801ca1ff100, ffff8801ca1ff160) [ 46.707241] The buggy address belongs to the page: [ 46.712162] page:ffffea0007287fc0 count:1 mapcount:0 mapping:ffff8801da8004c0 index:0xffff8801ca1ff200 [ 46.721597] flags: 0x2fffc0000000100(slab) [ 46.725824] raw: 02fffc0000000100 ffffea000728ac48 ffffea00071ea348 ffff8801da8004c0 [ 46.733709] raw: ffff8801ca1ff200 ffff8801ca1ff000 000000010000001b 0000000000000000 [ 46.741578] page dumped because: kasan: bad access detected [ 46.747278] [ 46.748890] Memory state around the buggy address: [ 46.753844] ffff8801ca1ff000: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 46.761241] ffff8801ca1ff080: 00 00 00 00 00 00 00 00 05 fc fc fc fc fc fc fc [ 46.768595] >ffff8801ca1ff100: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc [ 46.776004] ^ [ 46.782758] ffff8801ca1ff180: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 46.790101] ffff8801ca1ff200: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 46.797443] ================================================================== [ 46.804785] Disabling lock debugging due to kernel taint [ 46.810835] Kernel panic - not syncing: panic_on_warn set ... [ 46.810835] [ 46.818243] CPU: 1 PID: 5529 Comm: syz-executor435 Tainted: G B 4.19.0+ #82 [ 46.826643] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.836050] Call Trace: [ 46.838632] dump_stack+0x244/0x39d [ 46.842250] ? dump_stack_print_info.cold.1+0x20/0x20 [ 46.847436] panic+0x238/0x4e7 [ 46.850622] ? add_taint.cold.5+0x16/0x16 [ 46.854760] ? preempt_schedule+0x4d/0x60 [ 46.858907] ? ___preempt_schedule+0x16/0x18 [ 46.863314] ? trace_hardirqs_on+0xb4/0x310 [ 46.867624] kasan_end_report+0x47/0x4f [ 46.871588] kasan_report.cold.8+0x76/0x309 [ 46.875921] ? sctp_getsockopt+0x7516/0x7cc2 [ 46.880326] __asan_report_load8_noabort+0x14/0x20 [ 46.885248] sctp_getsockopt+0x7516/0x7cc2 [ 46.889561] ? trace_hardirqs_off_caller+0x310/0x310 [ 46.894718] ? compat_start_thread+0x80/0x80 [ 46.899139] ? sctp_getsockopt_peeloff_common.isra.24+0x2f0/0x2f0 [ 46.905366] ? kasan_check_write+0x14/0x20 [ 46.909589] ? finish_task_switch+0x2f4/0x910 [ 46.914076] ? __switch_to_asm+0x40/0x70 [ 46.918129] ? preempt_notifier_register+0x200/0x200 [ 46.923282] ? __switch_to_asm+0x34/0x70 [ 46.927507] ? __switch_to_asm+0x34/0x70 [ 46.931558] ? __switch_to_asm+0x40/0x70 [ 46.935607] ? __switch_to_asm+0x34/0x70 [ 46.939711] ? __switch_to_asm+0x40/0x70 [ 46.943771] ? __switch_to_asm+0x34/0x70 [ 46.947819] ? __switch_to_asm+0x40/0x70 [ 46.951869] ? __switch_to_asm+0x34/0x70 [ 46.955925] ? __switch_to_asm+0x34/0x70 [ 46.959975] ? __switch_to_asm+0x40/0x70 [ 46.964078] ? __switch_to_asm+0x34/0x70 [ 46.968143] ? __switch_to_asm+0x40/0x70 [ 46.972194] ? __switch_to_asm+0x34/0x70 [ 46.976257] ? __switch_to_asm+0x40/0x70 [ 46.980319] ? __schedule+0x8d7/0x21d0 [ 46.984197] ? __enqueue_entity+0x10d/0x1f0 [ 46.988559] ? __sched_text_start+0x8/0x8 [ 46.992707] ? zap_class+0x640/0x640 [ 46.996461] ? plist_check_list+0xa0/0xa0 [ 47.000601] ? zap_class+0x640/0x640 [ 47.004317] ? perf_trace_sched_process_exec+0x860/0x860 [ 47.009816] ? print_usage_bug+0xc0/0xc0 [ 47.013874] ? lock_acquire+0x1ed/0x520 [ 47.017840] ? __might_sleep+0x95/0x190 [ 47.021847] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.027386] ? futex_wait_queue_me+0x55d/0x840 [ 47.031958] ? __lock_acquire+0x62f/0x4c20 [ 47.036177] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.041700] ? get_futex_value_locked+0xcb/0xf0 [ 47.046352] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 47.051476] ? futex_wait_setup+0x266/0x3e0 [ 47.055787] ? mark_held_locks+0x130/0x130 [ 47.060057] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 47.065239] ? drop_futex_key_refs.isra.14+0x6d/0xe0 [ 47.070328] ? futex_wait+0x5ec/0xa50 [ 47.074129] ? futex_wait_setup+0x3e0/0x3e0 [ 47.078440] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 47.083616] ? drop_futex_key_refs.isra.14+0x6d/0xe0 [ 47.088806] ? futex_wake+0x304/0x760 [ 47.092591] ? zap_class+0x640/0x640 [ 47.096289] ? find_held_lock+0x36/0x1c0 [ 47.100335] ? avc_has_perm+0x469/0x7e0 [ 47.104290] ? lock_downgrade+0x900/0x900 [ 47.108425] ? check_preemption_disabled+0x48/0x280 [ 47.113434] ? rcu_read_unlock_special+0x1c0/0x1c0 [ 47.118401] ? kasan_check_read+0x11/0x20 [ 47.122552] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 47.127825] ? rcu_softirq_qs+0x20/0x20 [ 47.131803] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.137331] ? avc_has_perm+0x55f/0x7e0 [ 47.141306] ? avc_has_perm_noaudit+0x630/0x630 [ 47.145971] ? ksys_dup3+0x680/0x680 [ 47.149680] ? __wake_up_common_lock+0x1d0/0x330 [ 47.154425] ? find_held_lock+0x36/0x1c0 [ 47.158553] ? __local_bh_enable_ip+0x160/0x260 [ 47.163218] ? __local_bh_enable_ip+0x160/0x260 [ 47.167881] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 47.172454] ? sock_has_perm+0x2bc/0x3e0 [ 47.176506] ? selinux_secmark_relabel_packet+0xe0/0xe0 [ 47.181861] ? __local_bh_enable_ip+0x160/0x260 [ 47.186532] sock_common_getsockopt+0x9a/0xe0 [ 47.191027] ? sctp_getsockopt_peeloff_common.isra.24+0x2f0/0x2f0 [ 47.197246] ? sock_common_getsockopt+0x9a/0xe0 [ 47.201908] __sys_getsockopt+0x1ad/0x390 [ 47.206051] ? kernel_setsockopt+0x1d0/0x1d0 [ 47.210450] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 47.215023] ? trace_hardirqs_on+0xbd/0x310 [ 47.219353] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.224765] ? trace_hardirqs_off_caller+0x310/0x310 [ 47.229871] __x64_sys_getsockopt+0xbe/0x150 [ 47.234294] do_syscall_64+0x1b9/0x820 [ 47.238185] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 47.243554] ? syscall_return_slowpath+0x5e0/0x5e0 [ 47.248484] ? trace_hardirqs_on_caller+0x310/0x310 [ 47.253486] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 47.258498] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 47.265160] ? __switch_to_asm+0x40/0x70 [ 47.269214] ? __switch_to_asm+0x34/0x70 [ 47.273266] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 47.278209] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.283440] RIP: 0033:0x445789 [ 47.286628] 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 [ 47.305618] RSP: 002b:00007ff683eb6db8 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 [ 47.313321] RAX: ffffffffffffffda RBX: 00000000006dac48 RCX: 0000000000445789 [ 47.320581] RDX: 0000000000000074 RSI: 0000000000000084 RDI: 0000000000000003 [ 47.327842] RBP: 00000000006dac40 R08: 0000000020000040 R09: 0000000000000000 [ 47.335106] R10: 0000000020000080 R11: 0000000000000246 R12: 00000000006dac4c [ 47.342368] R13: 00007ffedd6edd7f R14: 00007ff683eb79c0 R15: 00000000006dad2c [ 47.350546] Kernel Offset: disabled [ 47.354173] Rebooting in 86400 seconds..