[....] Starting enhanced syslogd: rsyslogd[ 16.699673] audit: type=1400 audit(1517240652.238:5): avc: denied { syslog } for pid=4014 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: [ 22.137942] audit: type=1400 audit(1517240657.676:6): avc: denied { map } for pid=4152 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.217' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 48.681451] audit: type=1400 audit(1517240684.220:7): avc: denied { map } for pid=4170 comm="syzkaller651062" path="/root/syzkaller651062286" 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 49.225598] ================================================================== [ 49.233046] BUG: KASAN: use-after-free in xt_rateest_put+0x2e3/0x300 [ 49.239511] Write of size 8 at addr ffff8801b1384c58 by task syzkaller651062/4176 [ 49.247114] [ 49.248718] CPU: 0 PID: 4176 Comm: syzkaller651062 Not tainted 4.15.0-rc9+ #214 [ 49.256145] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.265509] Call Trace: [ 49.268072] dump_stack+0x194/0x257 [ 49.271677] ? arch_local_irq_restore+0x53/0x53 [ 49.276320] ? show_regs_print_info+0x18/0x18 [ 49.280792] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 49.285866] ? xt_rateest_put+0x2e3/0x300 [ 49.289990] print_address_description+0x73/0x250 [ 49.294806] ? xt_rateest_put+0x2e3/0x300 [ 49.298927] kasan_report+0x25b/0x340 [ 49.302706] __asan_report_store8_noabort+0x17/0x20 [ 49.307692] xt_rateest_put+0x2e3/0x300 [ 49.311654] ? xt_rateest_tg+0x1d0/0x1d0 [ 49.315691] ? cpumask_next+0x24/0x30 [ 49.319468] ? __lock_is_held+0xb6/0x140 [ 49.323502] ? xt_rateest_put+0x300/0x300 [ 49.327619] xt_rateest_tg_destroy+0x50/0x70 [ 49.332005] cleanup_entry+0x242/0x380 [ 49.335882] ? cleanup_match+0x220/0x220 [ 49.339921] ? find_next_bit+0x27/0x30 [ 49.343785] __do_replace+0x7ac/0xa70 [ 49.347584] ? compat_table_info+0x4a0/0x4a0 [ 49.351980] ? kasan_check_write+0x14/0x20 [ 49.356186] ? _copy_from_user+0x99/0x110 [ 49.360311] do_ip6t_set_ctl+0x40f/0x5f0 [ 49.364349] ? translate_compat_table+0x1c50/0x1c50 [ 49.369351] ? mutex_unlock+0xd/0x10 [ 49.373040] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 49.378295] nf_setsockopt+0x67/0xc0 [ 49.381984] ipv6_setsockopt+0x115/0x150 [ 49.386020] udpv6_setsockopt+0x45/0x80 [ 49.389973] sock_common_setsockopt+0x95/0xd0 [ 49.394457] SyS_setsockopt+0x189/0x360 [ 49.398409] ? SyS_recv+0x40/0x40 [ 49.401839] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 49.406667] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 49.411661] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 49.416413] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 49.421143] RIP: 0033:0x4412d9 [ 49.424307] RSP: 002b:00007ffffaf60e78 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 49.431986] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 00000000004412d9 [ 49.439230] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000063 [ 49.446493] RBP: f6fcce9cd855ec40 R08: 00000000000003b8 R09: 0000000000000000 [ 49.453750] R10: 0000000020019c48 R11: 0000000000000203 R12: fbfe5b6031634428 [ 49.460994] R13: 5826b2d59f7fe9a1 R14: fd7217c033abf8b5 R15: 0000000000000000 [ 49.468253] [ 49.469855] Allocated by task 4178: [ 49.473502] save_stack+0x43/0xd0 [ 49.476934] kasan_kmalloc+0xad/0xe0 [ 49.480708] kmem_cache_alloc_trace+0x136/0x750 [ 49.485347] xt_rateest_tg_checkentry+0x25a/0xaa0 [ 49.490160] xt_check_target+0x22c/0x7d0 [ 49.494197] find_check_entry.isra.7+0x935/0xcf0 [ 49.498924] translate_table+0xf52/0x1690 [ 49.503056] do_ip6t_set_ctl+0x370/0x5f0 [ 49.507087] nf_setsockopt+0x67/0xc0 [ 49.510774] ipv6_setsockopt+0x115/0x150 [ 49.514817] udpv6_setsockopt+0x45/0x80 [ 49.518767] sock_common_setsockopt+0x95/0xd0 [ 49.523253] SyS_setsockopt+0x189/0x360 [ 49.527199] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 49.531931] [ 49.533530] Freed by task 4176: [ 49.536781] save_stack+0x43/0xd0 [ 49.540203] kasan_slab_free+0x71/0xc0 [ 49.544062] kfree+0xd6/0x260 [ 49.547140] rcu_process_callbacks+0xe94/0x17f0 [ 49.551791] __do_softirq+0x2d7/0xb85 [ 49.555571] [ 49.557169] The buggy address belongs to the object at ffff8801b1384c00 [ 49.557169] which belongs to the cache kmalloc-192 of size 192 [ 49.569797] The buggy address is located 88 bytes inside of [ 49.569797] 192-byte region [ffff8801b1384c00, ffff8801b1384cc0) [ 49.581558] The buggy address belongs to the page: [ 49.586459] page:ffffea0006c4e100 count:1 mapcount:0 mapping:ffff8801b1384000 index:0x0 [ 49.594577] flags: 0x2fffc0000000100(slab) [ 49.598785] raw: 02fffc0000000100 ffff8801b1384000 0000000000000000 0000000100000010 [ 49.606641] raw: ffffea0006c5d3a0 ffff8801db001148 ffff8801db000040 0000000000000000 [ 49.614505] page dumped because: kasan: bad access detected [ 49.620183] [ 49.621781] Memory state around the buggy address: [ 49.626683] ffff8801b1384b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.634012] ffff8801b1384b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 49.641342] >ffff8801b1384c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.648671] ^ [ 49.654872] ffff8801b1384c80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 49.662212] ffff8801b1384d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.669542] ================================================================== [ 49.676881] Disabling lock debugging due to kernel taint [ 49.682358] Kernel panic - not syncing: panic_on_warn set ... [ 49.682358] [ 49.689698] CPU: 0 PID: 4176 Comm: syzkaller651062 Tainted: G B 4.15.0-rc9+ #214 [ 49.698419] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.707745] Call Trace: [ 49.710308] dump_stack+0x194/0x257 [ 49.713915] ? arch_local_irq_restore+0x53/0x53 [ 49.718555] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 49.723283] ? vsnprintf+0x1ed/0x1900 [ 49.727057] ? xt_rateest_put+0x2d0/0x300 [ 49.731178] panic+0x1e4/0x41c [ 49.734350] ? refcount_error_report+0x214/0x214 [ 49.739090] ? add_taint+0x1c/0x50 [ 49.742610] ? add_taint+0x1c/0x50 [ 49.746122] ? xt_rateest_put+0x2e3/0x300 [ 49.750241] kasan_end_report+0x50/0x50 [ 49.754185] kasan_report+0x144/0x340 [ 49.757960] __asan_report_store8_noabort+0x17/0x20 [ 49.762947] xt_rateest_put+0x2e3/0x300 [ 49.766894] ? xt_rateest_tg+0x1d0/0x1d0 [ 49.770930] ? cpumask_next+0x24/0x30 [ 49.774705] ? __lock_is_held+0xb6/0x140 [ 49.778734] ? xt_rateest_put+0x300/0x300 [ 49.782859] xt_rateest_tg_destroy+0x50/0x70 [ 49.787248] cleanup_entry+0x242/0x380 [ 49.791118] ? cleanup_match+0x220/0x220 [ 49.795151] ? find_next_bit+0x27/0x30 [ 49.799012] __do_replace+0x7ac/0xa70 [ 49.802796] ? compat_table_info+0x4a0/0x4a0 [ 49.807178] ? kasan_check_write+0x14/0x20 [ 49.811391] ? _copy_from_user+0x99/0x110 [ 49.815511] do_ip6t_set_ctl+0x40f/0x5f0 [ 49.819545] ? translate_compat_table+0x1c50/0x1c50 [ 49.824535] ? mutex_unlock+0xd/0x10 [ 49.828219] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 49.833480] nf_setsockopt+0x67/0xc0 [ 49.837165] ipv6_setsockopt+0x115/0x150 [ 49.841205] udpv6_setsockopt+0x45/0x80 [ 49.845154] sock_common_setsockopt+0x95/0xd0 [ 49.849631] SyS_setsockopt+0x189/0x360 [ 49.853578] ? SyS_recv+0x40/0x40 [ 49.857002] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 49.861816] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 49.866802] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 49.871529] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 49.876255] RIP: 0033:0x4412d9 [ 49.879413] RSP: 002b:00007ffffaf60e78 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 49.887089] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 00000000004412d9 [ 49.894332] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000063 [ 49.901576] RBP: f6fcce9cd855ec40 R08: 00000000000003b8 R09: 0000000000000000 [ 49.908817] R10: 0000000020019c48 R11: 0000000000000203 R12: fbfe5b6031634428 [ 49.916066] R13: 5826b2d59f7fe9a1 R14: fd7217c033abf8b5 R15: 0000000000000000 [ 49.923366] Dumping ftrace buffer: [ 49.926877] (ftrace buffer empty) [ 49.931366] Kernel Offset: disabled [ 49.934971] Rebooting in 86400 seconds..