[....] Starting enhanced syslogd: rsyslogd[ 12.269516] audit: type=1400 audit(1515633498.330:5): avc: denied { syslog } for pid=3342 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.465992] audit: type=1400 audit(1515633504.526:6): avc: denied { map } for pid=3482 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.51' (ECDSA) to the list of known hosts. executing program [ 33.078352] audit: type=1400 audit(1515633519.138:7): avc: denied { map } for pid=3498 comm="syzkaller647117" path="/root/syzkaller647117056" 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 executing program executing program [ 33.261511] [ 33.263186] ========================= [ 33.266954] WARNING: held lock freed! [ 33.270722] 4.15.0-rc7+ #182 Not tainted [ 33.274746] ------------------------- [ 33.278516] syzkaller647117/3502 is freeing memory 00000000e62b7b4a-00000000a0326f84, with a lock still held there! [ 33.289050] (sk_lock-AF_INET6){+.+.}, at: [<00000000fb3f24f8>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 33.297950] 1 lock held by syzkaller647117/3502: [ 33.302669] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000fb3f24f8>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 33.311998] [ 33.311998] stack backtrace: [ 33.316459] CPU: 1 PID: 3502 Comm: syzkaller647117 Not tainted 4.15.0-rc7+ #182 [ 33.323881] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.333201] Call Trace: [ 33.335754] dump_stack+0x194/0x257 [ 33.339350] ? arch_local_irq_restore+0x53/0x53 [ 33.343992] debug_check_no_locks_freed+0x32f/0x3c0 [ 33.348979] kmem_cache_free+0x68/0x2a0 [ 33.352923] __sk_destruct+0x622/0x910 [ 33.356776] ? save_stack+0x43/0xd0 [ 33.360369] ? sock_rfree+0x160/0x160 [ 33.364137] ? sctp_sendmsg+0x28f7/0x33f0 [ 33.368250] ? sock_sendmsg+0xca/0x110 [ 33.372103] ? SYSC_sendto+0x361/0x5c0 [ 33.375956] ? SyS_sendto+0x40/0x50 [ 33.379557] ? entry_SYSCALL_64_fastpath+0x23/0x9a [ 33.384456] ? check_noncircular+0x20/0x20 [ 33.388659] ? print_irqtrace_events+0x270/0x270 [ 33.393385] ? __local_bh_enable_ip+0x121/0x230 [ 33.398023] ? sctp_put_port+0x495/0x640 [ 33.402053] ? sctp_poll+0xc00/0xc00 [ 33.405745] ? refcount_sub_and_test+0x115/0x1b0 [ 33.410467] ? refcount_inc+0x50/0x50 [ 33.414232] ? refcount_inc+0x50/0x50 [ 33.418004] sk_destruct+0x47/0x80 [ 33.421513] __sk_free+0xf1/0x2b0 [ 33.424935] sk_free+0x2a/0x40 [ 33.428095] sctp_association_put+0x14c/0x2f0 [ 33.432556] ? sctp_association_hold+0x20/0x20 [ 33.437105] ? lock_sock_nested+0x91/0x110 [ 33.441306] ? trace_hardirqs_on+0xd/0x10 [ 33.445421] ? __local_bh_enable_ip+0x121/0x230 [ 33.450071] sctp_wait_for_sndbuf+0x673/0x8d0 [ 33.454540] ? sctp_init_sock+0x13b0/0x13b0 [ 33.458830] ? do_raw_spin_trylock+0x190/0x190 [ 33.463380] ? __local_bh_enable_ip+0x121/0x230 [ 33.468026] ? sctp_prsctp_prune+0x97/0x790 [ 33.472319] ? prepare_to_wait+0x4d0/0x4d0 [ 33.476520] ? trace_hardirqs_on+0xd/0x10 [ 33.480643] sctp_sendmsg+0x28f7/0x33f0 [ 33.484596] ? sctp_id2assoc+0x390/0x390 [ 33.488629] ? avc_has_perm+0x43e/0x680 [ 33.492571] ? avc_has_perm_noaudit+0x520/0x520 [ 33.497221] ? __fget+0x35c/0x570 [ 33.500644] ? iterate_fd+0x3f0/0x3f0 [ 33.504415] ? find_held_lock+0x35/0x1d0 [ 33.508447] ? sock_has_perm+0x2a4/0x420 [ 33.512482] ? lock_release+0x9a2/0xa40 [ 33.516425] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 33.522376] ? __check_object_size+0x25d/0x4f0 [ 33.526930] inet_sendmsg+0x11f/0x5e0 [ 33.530699] ? inet_sendmsg+0x11f/0x5e0 [ 33.534640] ? __might_sleep+0x95/0x190 [ 33.538581] ? inet_create+0xf50/0xf50 [ 33.543308] ? selinux_socket_sendmsg+0x36/0x40 [ 33.547944] ? security_socket_sendmsg+0x89/0xb0 [ 33.552666] ? inet_create+0xf50/0xf50 [ 33.556533] sock_sendmsg+0xca/0x110 [ 33.560216] SYSC_sendto+0x361/0x5c0 [ 33.563897] ? SYSC_connect+0x4a0/0x4a0 [ 33.567840] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 33.573170] ? __do_page_fault+0x3d6/0xc90 [ 33.577374] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 33.582634] ? SyS_futex+0x269/0x390 [ 33.586316] ? SyS_setsockopt+0x215/0x360 [ 33.590785] ? do_futex+0x22a0/0x22a0 [ 33.594555] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 33.599386] SyS_sendto+0x40/0x50 [ 33.602809] entry_SYSCALL_64_fastpath+0x23/0x9a [ 33.607530] RIP: 0033:0x4457e9 [ 33.610688] RSP: 002b:00007feb52881da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 33.618375] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 33.625631] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 33.633309] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 33.640574] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 33.649035] R13: 00007ffc65ed42af R14: 00007feb528829c0 R15: 0000000000000001 [ 33.657243] ================================================================== [ 33.664580] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 33.671303] Read of size 4 at addr ffff8801c0dbd08c by task syzkaller647117/3502 [ 33.680663] [ 33.682259] CPU: 1 PID: 3502 Comm: syzkaller647117 Not tainted 4.15.0-rc7+ #182 [ 33.689671] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.698993] Call Trace: [ 33.701551] dump_stack+0x194/0x257 [ 33.705151] ? arch_local_irq_restore+0x53/0x53 [ 33.709791] ? show_regs_print_info+0x18/0x18 [ 33.714252] ? lock_acquire+0x1d5/0x580 [ 33.718194] ? trace_hardirqs_on+0xd/0x10 [ 33.722309] ? do_raw_spin_lock+0x1e0/0x220 [ 33.726861] print_address_description+0x73/0x250 [ 33.732370] ? do_raw_spin_lock+0x1e0/0x220 [ 33.736659] kasan_report+0x25b/0x340 [ 33.740442] __asan_report_load4_noabort+0x14/0x20 [ 33.745347] do_raw_spin_lock+0x1e0/0x220 [ 33.749463] _raw_spin_lock_bh+0x39/0x40 [ 33.753489] ? release_sock+0x74/0x2a0 [ 33.757342] release_sock+0x74/0x2a0 [ 33.761021] ? sctp_prsctp_prune+0x97/0x790 [ 33.765308] ? __release_sock+0x360/0x360 [ 33.769422] ? trace_hardirqs_on+0xd/0x10 [ 33.773542] sctp_sendmsg+0x2993/0x33f0 [ 33.777510] ? sctp_id2assoc+0x390/0x390 [ 33.781803] ? avc_has_perm+0x43e/0x680 [ 33.785759] ? avc_has_perm_noaudit+0x520/0x520 [ 33.790395] ? __fget+0x35c/0x570 [ 33.793819] ? iterate_fd+0x3f0/0x3f0 [ 33.797589] ? find_held_lock+0x35/0x1d0 [ 33.801625] ? sock_has_perm+0x2a4/0x420 [ 33.805658] ? lock_release+0x9a2/0xa40 [ 33.809602] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 33.815464] ? __check_object_size+0x25d/0x4f0 [ 33.820016] inet_sendmsg+0x11f/0x5e0 [ 33.823780] ? inet_sendmsg+0x11f/0x5e0 [ 33.827719] ? __might_sleep+0x95/0x190 [ 33.831659] ? inet_create+0xf50/0xf50 [ 33.835536] ? selinux_socket_sendmsg+0x36/0x40 [ 33.840173] ? security_socket_sendmsg+0x89/0xb0 [ 33.844904] ? inet_create+0xf50/0xf50 [ 33.848761] sock_sendmsg+0xca/0x110 [ 33.852441] SYSC_sendto+0x361/0x5c0 [ 33.856132] ? SYSC_connect+0x4a0/0x4a0 [ 33.860076] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 33.865407] ? __do_page_fault+0x3d6/0xc90 [ 33.869622] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 33.874876] ? SyS_futex+0x269/0x390 [ 33.878556] ? SyS_setsockopt+0x215/0x360 [ 33.882680] ? do_futex+0x22a0/0x22a0 [ 33.886449] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 33.891265] SyS_sendto+0x40/0x50 [ 33.894697] entry_SYSCALL_64_fastpath+0x23/0x9a [ 33.899431] RIP: 0033:0x4457e9 [ 33.902591] RSP: 002b:00007feb52881da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 33.910265] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 33.917503] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 33.924744] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 33.931982] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 33.939244] R13: 00007ffc65ed42af R14: 00007feb528829c0 R15: 0000000000000001 [ 33.946493] [ 33.948089] Allocated by task 3507: [ 33.951688] save_stack+0x43/0xd0 [ 33.955110] kasan_kmalloc+0xad/0xe0 [ 33.958789] kasan_slab_alloc+0x12/0x20 [ 33.962729] kmem_cache_alloc+0x12e/0x760 [ 33.966854] sk_prot_alloc+0x65/0x2a0 [ 33.970621] sk_alloc+0x105/0x1440 [ 33.974130] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 33.978937] sctp_accept+0x5c4/0x970 [ 33.983317] inet_accept+0x12c/0x930 [ 33.987009] SYSC_accept4+0x38d/0x870 [ 33.990778] SyS_accept+0x26/0x30 [ 33.994200] entry_SYSCALL_64_fastpath+0x23/0x9a [ 33.998920] [ 34.000513] Freed by task 3502: [ 34.003772] save_stack+0x43/0xd0 [ 34.007190] kasan_slab_free+0x71/0xc0 [ 34.011052] kmem_cache_free+0x83/0x2a0 [ 34.014991] __sk_destruct+0x622/0x910 [ 34.018842] sk_destruct+0x47/0x80 [ 34.022347] __sk_free+0xf1/0x2b0 [ 34.025764] sk_free+0x2a/0x40 [ 34.028935] sctp_association_put+0x14c/0x2f0 [ 34.033395] sctp_wait_for_sndbuf+0x673/0x8d0 [ 34.037855] sctp_sendmsg+0x28f7/0x33f0 [ 34.041795] inet_sendmsg+0x11f/0x5e0 [ 34.045560] sock_sendmsg+0xca/0x110 [ 34.049240] SYSC_sendto+0x361/0x5c0 [ 34.052921] SyS_sendto+0x40/0x50 [ 34.056341] entry_SYSCALL_64_fastpath+0x23/0x9a [ 34.061059] [ 34.062657] The buggy address belongs to the object at ffff8801c0dbd000 [ 34.062657] which belongs to the cache SCTPv6 of size 1888 [ 34.075633] The buggy address is located 140 bytes inside of [ 34.075633] 1888-byte region [ffff8801c0dbd000, ffff8801c0dbd760) [ 34.087559] The buggy address belongs to the page: [ 34.092459] page:ffffea0007036f40 count:1 mapcount:0 mapping:ffff8801c0dbd000 index:0x0 [ 34.100568] flags: 0x2fffc0000000100(slab) [ 34.104784] raw: 02fffc0000000100 ffff8801c0dbd000 0000000000000000 0000000100000002 [ 34.112632] raw: ffffea00074caee0 ffffea000703df60 ffff8801d32b8b40 0000000000000000 [ 34.120485] page dumped because: kasan: bad access detected [ 34.126158] [ 34.127750] Memory state around the buggy address: [ 34.132653] ffff8801c0dbcf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.139979] ffff8801c0dbd000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.147304] >ffff8801c0dbd080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.154625] ^ [ 34.158223] ffff8801c0dbd100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.165547] ffff8801c0dbd180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.172889] ================================================================== [ 34.180257] Kernel panic - not syncing: panic_on_warn set ... [ 34.180257] [ 34.187591] CPU: 1 PID: 3502 Comm: syzkaller647117 Tainted: G B 4.15.0-rc7+ #182 [ 34.196305] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.205626] Call Trace: [ 34.208184] dump_stack+0x194/0x257 [ 34.211783] ? arch_local_irq_restore+0x53/0x53 [ 34.216421] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.221145] ? vsnprintf+0x1ed/0x1900 [ 34.224927] ? do_raw_spin_lock+0x140/0x220 [ 34.229393] panic+0x1e4/0x41c [ 34.233421] ? refcount_error_report+0x214/0x214 [ 34.238936] ? add_taint+0x1c/0x50 [ 34.242443] ? add_taint+0x1c/0x50 [ 34.246311] ? do_raw_spin_lock+0x1e0/0x220 [ 34.251906] kasan_end_report+0x50/0x50 [ 34.256720] kasan_report+0x144/0x340 [ 34.260504] __asan_report_load4_noabort+0x14/0x20 [ 34.265401] do_raw_spin_lock+0x1e0/0x220 [ 34.269520] _raw_spin_lock_bh+0x39/0x40 [ 34.273546] ? release_sock+0x74/0x2a0 [ 34.277836] release_sock+0x74/0x2a0 [ 34.281778] ? sctp_prsctp_prune+0x97/0x790 [ 34.287197] ? __release_sock+0x360/0x360 [ 34.291746] ? trace_hardirqs_on+0xd/0x10 [ 34.295866] sctp_sendmsg+0x2993/0x33f0 [ 34.299814] ? sctp_id2assoc+0x390/0x390 [ 34.303843] ? avc_has_perm+0x43e/0x680 [ 34.307789] ? avc_has_perm_noaudit+0x520/0x520 [ 34.312434] ? __fget+0x35c/0x570 [ 34.315867] ? iterate_fd+0x3f0/0x3f0 [ 34.319638] ? find_held_lock+0x35/0x1d0 [ 34.323671] ? sock_has_perm+0x2a4/0x420 [ 34.327700] ? lock_release+0x9a2/0xa40 [ 34.331640] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 34.337491] ? __check_object_size+0x25d/0x4f0 [ 34.342041] inet_sendmsg+0x11f/0x5e0 [ 34.345808] ? inet_sendmsg+0x11f/0x5e0 [ 34.349746] ? __might_sleep+0x95/0x190 [ 34.353687] ? inet_create+0xf50/0xf50 [ 34.357541] ? selinux_socket_sendmsg+0x36/0x40 [ 34.362179] ? security_socket_sendmsg+0x89/0xb0 [ 34.366901] ? inet_create+0xf50/0xf50 [ 34.370768] sock_sendmsg+0xca/0x110 [ 34.374453] SYSC_sendto+0x361/0x5c0 [ 34.378149] ? SYSC_connect+0x4a0/0x4a0 [ 34.382092] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 34.387435] ? __do_page_fault+0x3d6/0xc90 [ 34.391639] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 34.397243] ? SyS_futex+0x269/0x390 [ 34.400925] ? SyS_setsockopt+0x215/0x360 [ 34.405043] ? do_futex+0x22a0/0x22a0 [ 34.408813] ? entry_SYSCALL_64_fastpath+0x5/0x9a [ 34.413660] SyS_sendto+0x40/0x50 [ 34.417082] entry_SYSCALL_64_fastpath+0x23/0x9a [ 34.421812] RIP: 0033:0x4457e9 [ 34.424969] RSP: 002b:00007feb52881da8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 34.432651] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 34.439888] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 34.447387] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 34.454634] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 34.461872] R13: 00007ffc65ed42af R14: 00007feb528829c0 R15: 0000000000000001 [ 34.469319] Dumping ftrace buffer: [ 34.474054] (ftrace buffer empty) [ 34.478608] Kernel Offset: disabled [ 34.482204] Rebooting in 86400 seconds..