[....] Starting enhanced syslogd: rsyslogd[ 17.184053] audit: type=1400 audit(1517238521.368:5): avc: denied { syslog } for pid=4022 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.787087] audit: type=1400 audit(1517238526.971:6): avc: denied { map } for pid=4161 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.208' (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 [ 29.125070] audit: type=1400 audit(1517238533.309:7): avc: denied { map } for pid=4175 comm="syzkaller158323" path="/root/syzkaller158323308" 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 29.801736] ================================================================== [ 29.809194] BUG: KASAN: use-after-free in xt_rateest_put+0x2e3/0x300 [ 29.815666] Write of size 8 at addr ffff8801afc27758 by task syzkaller158323/4182 [ 29.823258] [ 29.824868] CPU: 0 PID: 4182 Comm: syzkaller158323 Not tainted 4.15.0+ #285 [ 29.831936] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.841260] Call Trace: [ 29.843825] dump_stack+0x194/0x257 [ 29.847429] ? arch_local_irq_restore+0x53/0x53 [ 29.852083] ? show_regs_print_info+0x18/0x18 [ 29.856554] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 29.861631] ? xt_rateest_put+0x2e3/0x300 [ 29.865755] print_address_description+0x73/0x250 [ 29.870567] ? xt_rateest_put+0x2e3/0x300 [ 29.874687] kasan_report+0x25b/0x340 [ 29.878463] __asan_report_store8_noabort+0x17/0x20 [ 29.883450] xt_rateest_put+0x2e3/0x300 [ 29.887399] ? xt_rateest_tg+0x1d0/0x1d0 [ 29.891431] ? cpumask_next+0x24/0x30 [ 29.895211] ? __lock_is_held+0xb6/0x140 [ 29.899245] ? xt_rateest_put+0x300/0x300 [ 29.903365] xt_rateest_tg_destroy+0x50/0x70 [ 29.907754] cleanup_entry+0x242/0x380 [ 29.911615] ? cleanup_match+0x220/0x220 [ 29.915663] ? find_next_bit+0x27/0x30 [ 29.919526] __do_replace+0x7e6/0xab0 [ 29.923319] ? compat_table_info+0x4a0/0x4a0 [ 29.927706] ? kasan_check_write+0x14/0x20 [ 29.931923] ? _copy_from_user+0x99/0x110 [ 29.936047] do_ip6t_set_ctl+0x40f/0x5f0 [ 29.940085] ? translate_compat_table+0x1c50/0x1c50 [ 29.945086] ? mutex_unlock+0xd/0x10 [ 29.948773] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 29.954035] nf_setsockopt+0x67/0xc0 [ 29.957728] ipv6_setsockopt+0x115/0x150 [ 29.961773] udpv6_setsockopt+0x45/0x80 [ 29.965731] sock_common_setsockopt+0x95/0xd0 [ 29.970202] SyS_setsockopt+0x189/0x360 [ 29.974152] ? SyS_recv+0x40/0x40 [ 29.977580] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 29.982396] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.987389] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 29.992136] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 29.996872] RIP: 0033:0x4412d9 [ 30.000035] RSP: 002b:00007ffd3766a5f8 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 30.007713] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 00000000004412d9 [ 30.014963] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000077 [ 30.022205] RBP: f6fcce9cd855ec40 R08: 00000000000003b8 R09: 0000000000000000 [ 30.029447] R10: 0000000020019c48 R11: 0000000000000203 R12: fbfe5b6031634428 [ 30.036688] R13: 5826b2d59f7fe9a1 R14: fd7217c033abf8b5 R15: 0000000000000000 [ 30.043954] [ 30.045555] Allocated by task 4176: [ 30.049176] save_stack+0x43/0xd0 [ 30.052602] kasan_kmalloc+0xad/0xe0 [ 30.056285] kmem_cache_alloc_trace+0x136/0x750 [ 30.060927] xt_rateest_tg_checkentry+0x25a/0xaa0 [ 30.065742] xt_check_target+0x22c/0x7d0 [ 30.069774] find_check_entry.isra.7+0x935/0xcf0 [ 30.074517] translate_table+0xf52/0x1690 [ 30.078634] do_ip6t_set_ctl+0x370/0x5f0 [ 30.082668] nf_setsockopt+0x67/0xc0 [ 30.086354] ipv6_setsockopt+0x115/0x150 [ 30.090387] udpv6_setsockopt+0x45/0x80 [ 30.094331] sock_common_setsockopt+0x95/0xd0 [ 30.098796] SyS_setsockopt+0x189/0x360 [ 30.102743] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.107466] [ 30.109064] Freed by task 4176: [ 30.112318] save_stack+0x43/0xd0 [ 30.115741] kasan_slab_free+0x71/0xc0 [ 30.119606] kfree+0xd6/0x260 [ 30.122702] rcu_process_callbacks+0xe94/0x17f0 [ 30.127352] __do_softirq+0x2d7/0xb85 [ 30.131119] [ 30.132720] The buggy address belongs to the object at ffff8801afc27700 [ 30.132720] which belongs to the cache kmalloc-192 of size 192 [ 30.145347] The buggy address is located 88 bytes inside of [ 30.145347] 192-byte region [ffff8801afc27700, ffff8801afc277c0) [ 30.157121] The buggy address belongs to the page: [ 30.162027] page:ffffea0006bf09c0 count:1 mapcount:0 mapping:ffff8801afc27000 index:0x0 [ 30.170151] flags: 0x2fffc0000000100(slab) [ 30.174358] raw: 02fffc0000000100 ffff8801afc27000 0000000000000000 0000000100000010 [ 30.182221] raw: ffffea00073810e0 ffffea00073a91a0 ffff8801db000040 0000000000000000 [ 30.190072] page dumped because: kasan: bad access detected [ 30.195750] [ 30.197348] Memory state around the buggy address: [ 30.202247] ffff8801afc27600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.209576] ffff8801afc27680: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 30.216904] >ffff8801afc27700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.224234] ^ [ 30.230435] ffff8801afc27780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 30.237764] ffff8801afc27800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.245104] ================================================================== executing program [ 30.252431] Disabling lock debugging due to kernel taint [ 30.257943] Kernel panic - not syncing: panic_on_warn set ... [ 30.257943] [ 30.265291] CPU: 0 PID: 4182 Comm: syzkaller158323 Tainted: G B 4.15.0+ #285 [ 30.273661] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.282990] Call Trace: [ 30.285553] dump_stack+0x194/0x257 [ 30.289151] ? arch_local_irq_restore+0x53/0x53 [ 30.293803] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.298529] ? vsnprintf+0x1ed/0x1900 [ 30.302304] ? xt_rateest_put+0x250/0x300 [ 30.306436] panic+0x1e4/0x41c [ 30.309600] ? refcount_error_report+0x214/0x214 [ 30.314326] ? add_taint+0x1c/0x50 [ 30.317845] ? add_taint+0x1c/0x50 [ 30.321359] ? xt_rateest_put+0x2e3/0x300 [ 30.325485] kasan_end_report+0x50/0x50 [ 30.329430] kasan_report+0x144/0x340 [ 30.333202] __asan_report_store8_noabort+0x17/0x20 [ 30.338190] xt_rateest_put+0x2e3/0x300 [ 30.342135] ? xt_rateest_tg+0x1d0/0x1d0 [ 30.346169] ? cpumask_next+0x24/0x30 [ 30.349955] ? __lock_is_held+0xb6/0x140 [ 30.353989] ? xt_rateest_put+0x300/0x300 [ 30.358113] xt_rateest_tg_destroy+0x50/0x70 [ 30.362493] cleanup_entry+0x242/0x380 [ 30.366352] ? cleanup_match+0x220/0x220 [ 30.370386] ? find_next_bit+0x27/0x30 [ 30.374254] __do_replace+0x7e6/0xab0 [ 30.378048] ? compat_table_info+0x4a0/0x4a0 [ 30.382429] ? kasan_check_write+0x14/0x20 [ 30.386635] ? _copy_from_user+0x99/0x110 [ 30.390771] do_ip6t_set_ctl+0x40f/0x5f0 [ 30.394805] ? translate_compat_table+0x1c50/0x1c50 [ 30.399808] ? mutex_unlock+0xd/0x10 [ 30.403493] ? nf_sockopt_find.constprop.0+0x1a7/0x220 [ 30.408745] nf_setsockopt+0x67/0xc0 [ 30.412445] ipv6_setsockopt+0x115/0x150 [ 30.416479] udpv6_setsockopt+0x45/0x80 [ 30.420428] sock_common_setsockopt+0x95/0xd0 [ 30.424896] SyS_setsockopt+0x189/0x360 [ 30.428844] ? SyS_recv+0x40/0x40 [ 30.432274] ? entry_SYSCALL_64_fastpath+0x5/0xa0 [ 30.437090] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.442081] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.446821] entry_SYSCALL_64_fastpath+0x29/0xa0 [ 30.451546] RIP: 0033:0x4412d9 [ 30.454707] RSP: 002b:00007ffd3766a5f8 EFLAGS: 00000203 ORIG_RAX: 0000000000000036 [ 30.462384] RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 00000000004412d9 [ 30.469625] RDX: 0000000000000040 RSI: 0000000000000029 RDI: 0000000000000077 [ 30.476867] RBP: f6fcce9cd855ec40 R08: 00000000000003b8 R09: 0000000000000000 [ 30.484106] R10: 0000000020019c48 R11: 0000000000000203 R12: fbfe5b6031634428 [ 30.491347] R13: 5826b2d59f7fe9a1 R14: fd7217c033abf8b5 R15: 0000000000000000 [ 30.499047] Dumping ftrace buffer: [ 30.502574] (ftrace buffer empty) [ 30.506256] Kernel Offset: disabled [ 30.509856] Rebooting in 86400 seconds..