[....] Starting enhanced syslogd: rsyslogd[ 11.866043] audit: type=1400 audit(1515647003.309:5): avc: denied { syslog } for pid=3350 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: [ 19.098561] audit: type=1400 audit(1515647010.542:6): avc: denied { map } for pid=3492 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.15.233' (ECDSA) to the list of known hosts. executing program [ 33.962416] audit: type=1400 audit(1515647025.406:7): avc: denied { map } for pid=3509 comm="syzkaller237178" path="/root/syzkaller237178711" 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 [ 34.125438] [ 34.127083] ========================= [ 34.130851] WARNING: held lock freed! [ 34.134618] 4.15.0-rc7-mm1+ #53 Not tainted [ 34.138903] ------------------------- [ 34.142668] syzkaller237178/3513 is freeing memory 00000000b50ec59f-0000000009cc4a55, with a lock still held there! [ 34.153202] (sk_lock-AF_INET6){+.+.}, at: [<00000000d9902a40>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 34.162106] 1 lock held by syzkaller237178/3513: [ 34.166831] #0: (sk_lock-AF_INET6){+.+.}, at: [<00000000d9902a40>] sctp_wait_for_sndbuf+0x509/0x8d0 [ 34.176166] [ 34.176166] stack backtrace: [ 34.180631] CPU: 1 PID: 3513 Comm: syzkaller237178 Not tainted 4.15.0-rc7-mm1+ #53 [ 34.188301] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.197621] Call Trace: [ 34.200181] dump_stack+0x194/0x257 [ 34.203778] ? arch_local_irq_restore+0x53/0x53 [ 34.208423] debug_check_no_locks_freed+0x32f/0x3c0 [ 34.213414] kmem_cache_free+0x68/0x2b0 [ 34.217364] __sk_destruct+0x622/0x910 [ 34.221218] ? kfree+0xd9/0x260 [ 34.224467] ? sock_rfree+0x160/0x160 [ 34.228234] ? sock_sendmsg+0xca/0x110 [ 34.232086] ? SyS_sendto+0x40/0x50 [ 34.235693] ? entry_SYSCALL_64_fastpath+0x29/0xa0 [ 34.240600] ? debug_check_no_obj_freed+0x611/0xf1f [ 34.245586] ? check_noncircular+0x20/0x20 [ 34.249787] ? print_irqtrace_events+0x270/0x270 [ 34.254513] ? __local_bh_enable_ip+0x121/0x230 [ 34.259157] ? sctp_put_port+0x495/0x640 [ 34.263191] ? sctp_poll+0xc00/0xc00 [ 34.266874] ? refcount_sub_and_test+0x115/0x1b0 [ 34.271596] ? refcount_inc+0x50/0x50 [ 34.275366] ? refcount_inc+0x50/0x50 [ 34.279144] sk_destruct+0x47/0x80 [ 34.282651] __sk_free+0xf1/0x2b0 [ 34.286072] sk_free+0x2a/0x40 [ 34.289232] sctp_association_put+0x14c/0x2f0 [ 34.293690] ? sctp_association_hold+0x20/0x20 [ 34.298236] ? lock_sock_nested+0x91/0x110 [ 34.302441] ? trace_hardirqs_on+0xd/0x10 [ 34.306557] ? __local_bh_enable_ip+0x121/0x230 [ 34.311197] sctp_wait_for_sndbuf+0x673/0x8d0 [ 34.315670] ? sctp_init_sock+0x13b0/0x13b0 [ 34.319960] ? do_raw_spin_trylock+0x190/0x190 [ 34.324508] ? __local_bh_enable_ip+0x121/0x230 [ 34.329144] ? sctp_prsctp_prune+0x97/0x790 [ 34.333434] ? prepare_to_wait+0x4d0/0x4d0 [ 34.337635] ? trace_hardirqs_on+0xd/0x10 [ 34.341753] sctp_sendmsg+0x28f7/0x33f0 [ 34.345700] ? sctp_id2assoc+0x390/0x390 [ 34.349728] ? avc_has_perm+0x43e/0x680 [ 34.353698] ? avc_has_perm_noaudit+0x520/0x520 [ 34.358335] ? __fget+0x35c/0x570 [ 34.361758] ? iterate_fd+0x3f0/0x3f0 [ 34.365530] ? find_held_lock+0x35/0x1d0 [ 34.369562] ? sock_has_perm+0x2a4/0x420 [ 34.373589] ? lock_release+0x9e2/0xa40 [ 34.377532] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 34.383383] ? __check_object_size+0x8b/0x530 [ 34.387850] inet_sendmsg+0x11f/0x5e0 [ 34.391616] ? inet_sendmsg+0x11f/0x5e0 [ 34.395558] ? __might_sleep+0x95/0x190 [ 34.399499] ? inet_create+0xf50/0xf50 [ 34.403354] ? selinux_socket_sendmsg+0x36/0x40 [ 34.407989] ? security_socket_sendmsg+0x89/0xb0 [ 34.412711] ? inet_create+0xf50/0xf50 [ 34.416567] sock_sendmsg+0xca/0x110 [ 34.420248] SYSC_sendto+0x361/0x5c0 [ 34.423928] ? SYSC_connect+0x4a0/0x4a0 [ 34.427871] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 34.433200] ? __do_page_fault+0x3d6/0xc90 [ 34.437402] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 34.442657] ? SyS_futex+0x269/0x390 [ 34.446334] ? SyS_setsockopt+0x215/0x360 [ 34.450449] ? do_futex+0x22a0/0x22a0 [ 34.454218] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 34.459032] SyS_sendto+0x40/0x50 [ 34.462454] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 34.467173] RIP: 0033:0x4457e9 [ 34.470337] RSP: 002b:00007f4ce6eedda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 34.478009] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 34.485247] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 34.492484] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 34.499721] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 34.506957] R13: 00007fff9eeb698f R14: 00007f4ce6eee9c0 R15: 0000000000000001 [ 34.514298] ================================================================== [ 34.521632] BUG: KASAN: use-after-free in do_raw_spin_lock+0x1e0/0x220 [ 34.528263] Read of size 4 at addr ffff8801bf10c08c by task syzkaller237178/3513 [ 34.535758] [ 34.537353] CPU: 1 PID: 3513 Comm: syzkaller237178 Not tainted 4.15.0-rc7-mm1+ #53 [ 34.545041] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.554365] Call Trace: [ 34.556923] dump_stack+0x194/0x257 [ 34.560521] ? arch_local_irq_restore+0x53/0x53 [ 34.565155] ? show_regs_print_info+0x18/0x18 [ 34.569614] ? lock_acquire+0x1d5/0x580 executing program [ 34.573555] ? trace_hardirqs_on+0xd/0x10 [ 34.577667] ? do_raw_spin_lock+0x1e0/0x220 [ 34.581955] print_address_description+0x73/0x250 [ 34.586769] ? do_raw_spin_lock+0x1e0/0x220 [ 34.591063] kasan_report+0x23b/0x360 [ 34.594829] __asan_report_load4_noabort+0x14/0x20 [ 34.599724] do_raw_spin_lock+0x1e0/0x220 [ 34.603840] _raw_spin_lock_bh+0x39/0x40 [ 34.607869] ? release_sock+0x74/0x2a0 [ 34.611719] release_sock+0x74/0x2a0 [ 34.615398] ? sctp_prsctp_prune+0x97/0x790 [ 34.619687] ? __release_sock+0x360/0x360 [ 34.623800] ? trace_hardirqs_on+0xd/0x10 [ 34.627915] sctp_sendmsg+0x2993/0x33f0 [ 34.631862] ? sctp_id2assoc+0x390/0x390 [ 34.635889] ? avc_has_perm+0x43e/0x680 [ 34.639828] ? avc_has_perm_noaudit+0x520/0x520 [ 34.644462] ? __fget+0x35c/0x570 [ 34.647886] ? iterate_fd+0x3f0/0x3f0 [ 34.651657] ? find_held_lock+0x35/0x1d0 [ 34.655685] ? sock_has_perm+0x2a4/0x420 [ 34.659710] ? lock_release+0x9e2/0xa40 [ 34.663648] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 34.669495] ? __check_object_size+0x8b/0x530 [ 34.673959] inet_sendmsg+0x11f/0x5e0 [ 34.677723] ? inet_sendmsg+0x11f/0x5e0 [ 34.681660] ? __might_sleep+0x95/0x190 [ 34.685599] ? inet_create+0xf50/0xf50 [ 34.689452] ? selinux_socket_sendmsg+0x36/0x40 [ 34.694088] ? security_socket_sendmsg+0x89/0xb0 [ 34.698805] ? inet_create+0xf50/0xf50 [ 34.702659] sock_sendmsg+0xca/0x110 [ 34.706339] SYSC_sendto+0x361/0x5c0 [ 34.710021] ? SYSC_connect+0x4a0/0x4a0 [ 34.713975] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 34.719308] ? __do_page_fault+0x3d6/0xc90 [ 34.723530] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 34.728791] ? SyS_futex+0x269/0x390 [ 34.732471] ? SyS_setsockopt+0x215/0x360 [ 34.736588] ? do_futex+0x22a0/0x22a0 [ 34.740355] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 34.745178] SyS_sendto+0x40/0x50 [ 34.748613] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 34.753333] RIP: 0033:0x4457e9 [ 34.756487] RSP: 002b:00007f4ce6eedda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 34.764159] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 34.771398] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 34.778634] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 34.785871] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 34.793109] R13: 00007fff9eeb698f R14: 00007f4ce6eee9c0 R15: 0000000000000001 [ 34.800355] [ 34.801948] Allocated by task 3518: [ 34.805548] save_stack+0x43/0xd0 [ 34.808967] kasan_kmalloc+0xad/0xe0 [ 34.812643] kasan_slab_alloc+0x12/0x20 [ 34.816582] kmem_cache_alloc+0x12e/0x760 [ 34.820695] sk_prot_alloc+0x65/0x2a0 [ 34.824461] sk_alloc+0x105/0x1440 [ 34.827977] sctp_v6_create_accept_sk+0x15a/0x9b0 [ 34.832783] sctp_accept+0x5c4/0x970 [ 34.836459] inet_accept+0x12c/0x930 [ 34.840137] SYSC_accept4+0x38d/0x870 [ 34.843900] SyS_accept+0x26/0x30 [ 34.847327] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 34.852050] [ 34.853641] Freed by task 3513: [ 34.856886] save_stack+0x43/0xd0 [ 34.860301] __kasan_slab_free+0x11a/0x170 [ 34.864520] kasan_slab_free+0xe/0x10 [ 34.868286] kmem_cache_free+0x86/0x2b0 [ 34.872223] __sk_destruct+0x622/0x910 [ 34.876074] sk_destruct+0x47/0x80 [ 34.879576] __sk_free+0xf1/0x2b0 [ 34.882994] sk_free+0x2a/0x40 [ 34.886153] sctp_association_put+0x14c/0x2f0 [ 34.890612] sctp_wait_for_sndbuf+0x673/0x8d0 [ 34.895072] sctp_sendmsg+0x28f7/0x33f0 [ 34.899009] inet_sendmsg+0x11f/0x5e0 [ 34.902778] sock_sendmsg+0xca/0x110 [ 34.906467] SYSC_sendto+0x361/0x5c0 [ 34.910147] SyS_sendto+0x40/0x50 [ 34.913564] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 34.918279] [ 34.919874] The buggy address belongs to the object at ffff8801bf10c000 [ 34.919874] which belongs to the cache SCTPv6 of size 1888 [ 34.932149] The buggy address is located 140 bytes inside of [ 34.932149] 1888-byte region [ffff8801bf10c000, ffff8801bf10c760) [ 34.944078] The buggy address belongs to the page: [ 34.948980] page:ffffea0006fc4300 count:1 mapcount:0 mapping:ffff8801bf10c000 index:0x0 [ 34.957109] flags: 0x2fffc0000000100(slab) [ 34.961309] raw: 02fffc0000000100 ffff8801bf10c000 0000000000000000 0000000100000002 [ 34.969160] raw: ffffea00074b4160 ffffea0006fc4e60 ffff8801d2d00080 0000000000000000 [ 34.977003] page dumped because: kasan: bad access detected [ 34.982675] [ 34.984264] Memory state around the buggy address: [ 34.989159] ffff8801bf10bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 34.996483] ffff8801bf10c000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.003804] >ffff8801bf10c080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.011124] ^ [ 35.014714] ffff8801bf10c100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.022036] ffff8801bf10c180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.029355] ================================================================== [ 35.036726] Kernel panic - not syncing: panic_on_warn set ... [ 35.036726] [ 35.044062] CPU: 1 PID: 3513 Comm: syzkaller237178 Tainted: G B 4.15.0-rc7-mm1+ #53 [ 35.053037] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.062358] Call Trace: [ 35.064919] dump_stack+0x194/0x257 [ 35.068517] ? arch_local_irq_restore+0x53/0x53 [ 35.073152] ? trace_hardirqs_on_thunk+0x1a/0x1c executing program [ 35.077873] ? vsnprintf+0x1ed/0x1900 [ 35.081638] ? do_raw_spin_lock+0x180/0x220 [ 35.085924] panic+0x1e4/0x41c [ 35.089087] ? refcount_error_report+0x214/0x214 [ 35.093807] ? add_taint+0x1c/0x50 [ 35.097314] ? add_taint+0x1c/0x50 [ 35.100826] ? do_raw_spin_lock+0x1e0/0x220 [ 35.105120] kasan_end_report+0x50/0x50 [ 35.109061] kasan_report+0x148/0x360 [ 35.112827] __asan_report_load4_noabort+0x14/0x20 [ 35.117722] do_raw_spin_lock+0x1e0/0x220 [ 35.121841] _raw_spin_lock_bh+0x39/0x40 [ 35.125866] ? release_sock+0x74/0x2a0 [ 35.129716] release_sock+0x74/0x2a0 [ 35.133395] ? sctp_prsctp_prune+0x97/0x790 [ 35.137686] ? __release_sock+0x360/0x360 [ 35.141805] ? trace_hardirqs_on+0xd/0x10 [ 35.145923] sctp_sendmsg+0x2993/0x33f0 [ 35.149869] ? sctp_id2assoc+0x390/0x390 [ 35.153896] ? avc_has_perm+0x43e/0x680 [ 35.157841] ? avc_has_perm_noaudit+0x520/0x520 [ 35.162477] ? __fget+0x35c/0x570 [ 35.165899] ? iterate_fd+0x3f0/0x3f0 [ 35.169669] ? find_held_lock+0x35/0x1d0 [ 35.173698] ? sock_has_perm+0x2a4/0x420 [ 35.177729] ? lock_release+0x9e2/0xa40 [ 35.181668] ? trace_event_raw_event_sched_switch+0x800/0x800 [ 35.187519] ? __check_object_size+0x8b/0x530 [ 35.191992] inet_sendmsg+0x11f/0x5e0 [ 35.195758] ? inet_sendmsg+0x11f/0x5e0 [ 35.199699] ? __might_sleep+0x95/0x190 [ 35.203637] ? inet_create+0xf50/0xf50 [ 35.207495] ? selinux_socket_sendmsg+0x36/0x40 [ 35.212129] ? security_socket_sendmsg+0x89/0xb0 [ 35.216849] ? inet_create+0xf50/0xf50 [ 35.220703] sock_sendmsg+0xca/0x110 [ 35.224391] SYSC_sendto+0x361/0x5c0 [ 35.228071] ? SYSC_connect+0x4a0/0x4a0 [ 35.232012] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 35.237342] ? __do_page_fault+0x3d6/0xc90 [ 35.241547] ? selinux_netlbl_sock_rcv_skb+0x730/0x730 [ 35.246800] ? SyS_futex+0x269/0x390 [ 35.250480] ? SyS_setsockopt+0x215/0x360 [ 35.254604] ? do_futex+0x22a0/0x22a0 [ 35.258372] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 35.263185] SyS_sendto+0x40/0x50 [ 35.266607] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 35.271341] RIP: 0033:0x4457e9 [ 35.274502] RSP: 002b:00007f4ce6eedda8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 35.282179] RAX: ffffffffffffffda RBX: 00000000006dac6c RCX: 00000000004457e9 [ 35.289415] RDX: 0000000000000001 RSI: 000000002010bf14 RDI: 0000000000000004 [ 35.296651] RBP: 00000000006dac68 R08: 00000000204d9000 R09: 000000000000001c [ 35.303888] R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 [ 35.311123] R13: 00007fff9eeb698f R14: 00007f4ce6eee9c0 R15: 0000000000000001 [ 35.318396] Dumping ftrace buffer: [ 35.321903] (ftrace buffer empty) [ 35.325580] Kernel Offset: disabled [ 35.329175] Rebooting in 86400 seconds..