[?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. [ 18.498582] audit: type=1400 audit(1517286160.599:6): avc: denied { map } for pid=4146 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 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.15.202' (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 executing program syzkaller login: [ 41.441192] audit: type=1400 audit(1517286183.541:7): avc: denied { map } for pid=4165 comm="syzkaller047682" path="/root/syzkaller047682349" 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 42.013917] ================================================================== [ 42.021341] BUG: KASAN: use-after-free in xt_rateest_put+0x2e3/0x300 [ 42.027816] Write of size 8 at addr ffff8801b16a2c58 by task syzkaller047682/4171 [ 42.035403] [ 42.037003] CPU: 0 PID: 4171 Comm: syzkaller047682 Not tainted 4.15.0-rc9+ #215 [ 42.046502] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.055827] Call Trace: [ 42.058387] dump_stack+0x194/0x257 [ 42.061988] ? arch_local_irq_restore+0x53/0x53 [ 42.066631] ? show_regs_print_info+0x18/0x18 [ 42.071104] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 42.076180] ? xt_rateest_put+0x2e3/0x300 [ 42.080301] print_address_description+0x73/0x250 [ 42.085115] ? xt_rateest_put+0x2e3/0x300 [ 42.089237] kasan_report+0x25b/0x340 [ 42.093014] __asan_report_store8_noabort+0x17/0x20 [ 42.098002] xt_rateest_put+0x2e3/0x300 [ 42.101952] ? xt_rateest_tg+0x1d0/0x1d0 [ 42.105983] ? cpumask_next+0x24/0x30 [ 42.109759] ? __lock_is_held+0xb6/0x140 [ 42.113792] ? xt_rateest_put+0x300/0x300 [ 42.117912] xt_rateest_tg_destroy+0x50/0x70 [ 42.122308] cleanup_entry+0x242/0x380 [ 42.126169] ? cleanup_match+0x220/0x220 [ 42.130204] ? find_next_bit+0x27/0x30 [ 42.134065] __do_replace+0x7ac/0xa70 [ 42.137852] ? compat_table_info+0x4a0/0x4a0 [ 42.142234] ? kasan_check_write+0x14/0x20 [ 42.146443] ? _copy_from_user+0x99/0x110 [ 42.150565] do_ip6t_set_ctl+0x40f/0x5f0 [ 42.154598] ? translate_compat_table+0x1c50/0x1c50 [ 42.159596] ? mutex_unlock+0xd/0x10 [ 42.163280] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 42.168533] nf_setsockopt+0x67/0xc0 [ 42.172221] ipv6_setsockopt+0x115/0x150 [ 42.176254] udpv6_setsockopt+0x45/0x80 [ 42.180204] sock_common_setsockopt+0x95/0xd0 [ 42.184673] SyS_setsockopt+0x189/0x360 [ 42.188622] ? SyS_recv+0x40/0x40 [ 42.192062] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 42.196879] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.201868] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.206601] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 42.211330] RIP: 0033:0x4412c9 [ 42.214492] RSP: 002b:00007ffc5b598678 EFLAGS: 00000207 ORIG_RAX: 0000000000000036 [ 42.222170] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 00000000004412c9 [ 42.229414] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000072 [ 42.236654] RBP: f6fcce9cd855ec40 R08: 00000000000003b8 R09: 0000000000000000 [ 42.243909] R10: 0000000020019c48 R11: 0000000000000207 R12: fbfe5b6031634428 [ 42.251151] R13: 5826b2d59f7fe9a1 R14: fd7217c033abf8b5 R15: 0000000000000000 [ 42.258407] [ 42.260006] Allocated by task 4173: [ 42.263605] save_stack+0x43/0xd0 [ 42.267027] kasan_kmalloc+0xad/0xe0 [ 42.270710] kmem_cache_alloc_trace+0x136/0x750 [ 42.275349] xt_rateest_tg_checkentry+0x25a/0xaa0 [ 42.280162] xt_check_target+0x22c/0x7d0 [ 42.284193] find_check_entry.isra.7+0x935/0xcf0 [ 42.288919] translate_table+0xf52/0x1690 [ 42.293035] do_ip6t_set_ctl+0x370/0x5f0 [ 42.297065] nf_setsockopt+0x67/0xc0 [ 42.300749] ipv6_setsockopt+0x115/0x150 [ 42.304788] udpv6_setsockopt+0x45/0x80 [ 42.308732] sock_common_setsockopt+0x95/0xd0 [ 42.313197] SyS_setsockopt+0x189/0x360 [ 42.317140] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 42.321862] [ 42.323461] Freed by task 4170: [ 42.326725] save_stack+0x43/0xd0 [ 42.330149] kasan_slab_free+0x71/0xc0 [ 42.334006] kfree+0xd6/0x260 [ 42.337084] rcu_process_callbacks+0xe94/0x17f0 [ 42.341722] __do_softirq+0x2d7/0xb85 [ 42.345491] [ 42.347090] The buggy address belongs to the object at ffff8801b16a2c00 [ 42.347090] which belongs to the cache kmalloc-192 of size 192 [ 42.359724] The buggy address is located 88 bytes inside of [ 42.359724] 192-byte region [ffff8801b16a2c00, ffff8801b16a2cc0) [ 42.371506] The buggy address belongs to the page: [ 42.376406] page:ffffea0006c5a880 count:1 mapcount:0 mapping:ffff8801b16a2000 index:0x0 [ 42.384518] flags: 0x2fffc0000000100(slab) [ 42.388737] raw: 02fffc0000000100 ffff8801b16a2000 0000000000000000 0000000100000010 [ 42.396592] raw: ffffea0006cee060 ffffea0006bed1a0 ffff8801db000040 0000000000000000 [ 42.404455] page dumped because: kasan: bad access detected [ 42.410133] [ 42.411729] Memory state around the buggy address: [ 42.416630] ffff8801b16a2b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 42.423961] ffff8801b16a2b80: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 42.431290] >ffff8801b16a2c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.438619] ^ [ 42.444820] ffff8801b16a2c80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 42.452147] ffff8801b16a2d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.459487] ================================================================== [ 42.466813] Disabling lock debugging due to kernel taint [ 42.472311] Kernel panic - not syncing: panic_on_warn set ... [ 42.472311] [ 42.479647] CPU: 0 PID: 4171 Comm: syzkaller047682 Tainted: G B 4.15.0-rc9+ #215 [ 42.488362] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.497687] Call Trace: [ 42.500242] dump_stack+0x194/0x257 [ 42.503841] ? arch_local_irq_restore+0x53/0x53 [ 42.508482] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.513207] ? vsnprintf+0x1ed/0x1900 [ 42.516976] ? xt_rateest_put+0x2d0/0x300 [ 42.521094] panic+0x1e4/0x41c [ 42.524257] ? refcount_error_report+0x214/0x214 [ 42.528984] ? add_taint+0x1c/0x50 [ 42.532496] ? add_taint+0x1c/0x50 [ 42.536017] ? xt_rateest_put+0x2e3/0x300 [ 42.540136] kasan_end_report+0x50/0x50 [ 42.544077] kasan_report+0x144/0x340 [ 42.547849] __asan_report_store8_noabort+0x17/0x20 [ 42.552834] xt_rateest_put+0x2e3/0x300 [ 42.556790] ? xt_rateest_tg+0x1d0/0x1d0 [ 42.560821] ? cpumask_next+0x24/0x30 [ 42.564593] ? __lock_is_held+0xb6/0x140 [ 42.568627] ? xt_rateest_put+0x300/0x300 [ 42.572744] xt_rateest_tg_destroy+0x50/0x70 [ 42.577123] cleanup_entry+0x242/0x380 [ 42.580984] ? cleanup_match+0x220/0x220 [ 42.585020] ? find_next_bit+0x27/0x30 [ 42.588881] __do_replace+0x7ac/0xa70 [ 42.592659] ? compat_table_info+0x4a0/0x4a0 [ 42.597039] ? kasan_check_write+0x14/0x20 [ 42.601243] ? _copy_from_user+0x99/0x110 [ 42.605364] do_ip6t_set_ctl+0x40f/0x5f0 [ 42.609397] ? translate_compat_table+0x1c50/0x1c50 [ 42.614389] ? mutex_unlock+0xd/0x10 [ 42.618085] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 42.623335] nf_setsockopt+0x67/0xc0 [ 42.627022] ipv6_setsockopt+0x115/0x150 [ 42.631055] udpv6_setsockopt+0x45/0x80 [ 42.635003] sock_common_setsockopt+0x95/0xd0 [ 42.639470] SyS_setsockopt+0x189/0x360 [ 42.643416] ? SyS_recv+0x40/0x40 [ 42.646853] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 42.651677] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 42.656666] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.661422] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 42.666147] RIP: 0033:0x4412c9 [ 42.669306] RSP: 002b:00007ffc5b598678 EFLAGS: 00000207 ORIG_RAX: 0000000000000036 [ 42.676983] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 00000000004412c9 [ 42.684223] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000072 [ 42.691474] RBP: f6fcce9cd855ec40 R08: 00000000000003b8 R09: 0000000000000000 [ 42.698714] R10: 0000000020019c48 R11: 0000000000000207 R12: fbfe5b6031634428 [ 42.705956] R13: 5826b2d59f7fe9a1 R14: fd7217c033abf8b5 R15: 0000000000000000 [ 42.713574] Dumping ftrace buffer: [ 42.717089] (ftrace buffer empty) [ 42.720771] Kernel Offset: disabled [ 42.724372] Rebooting in 86400 seconds..