syzkaller login: [ 80.424237][ T26] audit: type=1400 audit(1563507530.737:35): avc: denied { map } for pid=10289 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.79' (ECDSA) to the list of known hosts. [ 975.660442][ T26] audit: type=1400 audit(1563508425.977:36): avc: denied { map } for pid=10301 comm="syz-execprog" path="/root/syz-execprog" 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 2019/07/19 03:53:47 parsed 1 programs [ 976.753397][ T26] audit: type=1400 audit(1563508427.067:37): avc: denied { map } for pid=10301 comm="syz-execprog" path="/sys/kernel/debug/kcov" dev="debugfs" ino=16283 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:debugfs_t:s0 tclass=file permissive=1 2019/07/19 03:53:48 executed programs: 0 [ 978.677774][T10316] IPVS: ftp: loaded support on port[0] = 21 [ 978.749332][T10316] chnl_net:caif_netlink_parms(): no params data found [ 978.780372][T10316] bridge0: port 1(bridge_slave_0) entered blocking state [ 978.788549][T10316] bridge0: port 1(bridge_slave_0) entered disabled state [ 978.796606][T10316] device bridge_slave_0 entered promiscuous mode [ 978.805133][T10316] bridge0: port 2(bridge_slave_1) entered blocking state [ 978.812348][T10316] bridge0: port 2(bridge_slave_1) entered disabled state [ 978.820153][T10316] device bridge_slave_1 entered promiscuous mode [ 978.838880][T10316] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link [ 978.849728][T10316] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link [ 978.872138][T10316] team0: Port device team_slave_0 added [ 978.879626][T10316] team0: Port device team_slave_1 added [ 978.937484][T10316] device hsr_slave_0 entered promiscuous mode [ 978.974623][T10316] device hsr_slave_1 entered promiscuous mode [ 979.043953][T10316] bridge0: port 2(bridge_slave_1) entered blocking state [ 979.051416][T10316] bridge0: port 2(bridge_slave_1) entered forwarding state [ 979.059643][T10316] bridge0: port 1(bridge_slave_0) entered blocking state [ 979.067231][T10316] bridge0: port 1(bridge_slave_0) entered forwarding state [ 979.104122][T10316] 8021q: adding VLAN 0 to HW filter on device bond0 [ 979.119215][T10318] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 979.130132][T10318] bridge0: port 1(bridge_slave_0) entered disabled state [ 979.138767][T10318] bridge0: port 2(bridge_slave_1) entered disabled state [ 979.147129][T10318] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready [ 979.159824][T10316] 8021q: adding VLAN 0 to HW filter on device team0 [ 979.171667][ T2995] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_0: link becomes ready [ 979.180969][ T2995] bridge0: port 1(bridge_slave_0) entered blocking state [ 979.188475][ T2995] bridge0: port 1(bridge_slave_0) entered forwarding state [ 979.205986][T10318] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_1: link becomes ready [ 979.215628][T10318] bridge0: port 2(bridge_slave_1) entered blocking state [ 979.222803][T10318] bridge0: port 2(bridge_slave_1) entered forwarding state [ 979.236195][ T2995] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready [ 979.246296][ T2995] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 979.263035][T10316] hsr0: Slave A (hsr_slave_0) is not up; please bring it up to get a fully working HSR network [ 979.275679][T10316] hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network [ 979.288774][ T2995] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready [ 979.297472][ T2995] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready [ 979.306781][ T2995] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready [ 979.315426][ T2995] IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready [ 979.332343][T10316] 8021q: adding VLAN 0 to HW filter on device batadv0 [ 979.375924][ T26] audit: type=1400 audit(1563508429.697:38): avc: denied { associate } for pid=10316 comm="syz-executor.0" name="syz0" scontext=unconfined_u:object_r:unlabeled_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem permissive=1 [ 980.775601][T10316] BUG: Bad rss-counter state mm:00000000a8ae171f idx:1 val:4 [ 980.775723][T10339] ================================================================== [ 980.783016][T10316] BUG: non-zero pgtables_bytes on freeing mm: 65536 [ 980.797775][T10339] BUG: KASAN: use-after-free in unmap_page_range+0x1e1c/0x2170 [ 980.805351][T10339] Read of size 8 at addr ffff88808dc0a7f8 by task syz-executor.0/10339 [ 980.813655][T10339] [ 980.815977][T10339] CPU: 0 PID: 10339 Comm: syz-executor.0 Not tainted 5.2.0+ #61 [ 980.823921][T10339] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 980.833968][T10339] Call Trace: [ 980.837313][T10339] dump_stack+0x172/0x1f0 [ 980.843005][T10339] ? unmap_page_range+0x1e1c/0x2170 [ 980.848360][T10339] print_address_description.cold+0xd4/0x306 [ 980.854454][T10339] ? unmap_page_range+0x1e1c/0x2170 [ 980.859833][T10339] ? unmap_page_range+0x1e1c/0x2170 [ 980.865357][T10339] __kasan_report.cold+0x1b/0x36 [ 980.870311][T10339] ? unmap_page_range+0x1e1c/0x2170 [ 980.875764][T10339] kasan_report+0x12/0x17 [ 980.880481][T10339] __asan_report_load8_noabort+0x14/0x20 [ 980.886126][T10339] unmap_page_range+0x1e1c/0x2170 [ 980.891387][T10339] ? vm_normal_page_pmd+0x510/0x510 [ 980.896753][T10339] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 980.903006][T10339] ? uprobe_munmap+0xad/0x320 [ 980.907686][T10339] unmap_single_vma+0x19d/0x300 [ 980.912529][T10339] unmap_vmas+0x135/0x280 [ 980.916995][T10339] ? zap_vma_ptes+0x110/0x110 [ 980.921801][T10339] ? pagevec_lru_move_fn+0x215/0x2a0 [ 980.927262][T10339] ? __kasan_check_write+0x14/0x20 [ 980.932583][T10339] exit_mmap+0x2ba/0x530 [ 980.936822][T10339] ? __ia32_sys_munmap+0x80/0x80 [ 980.941772][T10339] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 980.948376][T10339] ? __khugepaged_exit+0xcf/0x410 [ 980.953525][T10339] mmput+0x179/0x4d0 [ 980.957605][T10339] do_exit+0x84e/0x2ea0 [ 980.961760][T10339] ? mm_update_next_owner+0x640/0x640 [ 980.967135][T10339] ? lock_downgrade+0x920/0x920 [ 980.972038][T10339] ? _raw_spin_unlock_irq+0x28/0x90 [ 980.977360][T10339] ? get_signal+0x392/0x2500 [ 980.982206][T10339] ? _raw_spin_unlock_irq+0x28/0x90 [ 980.987406][T10339] do_group_exit+0x135/0x360 [ 980.992250][T10339] get_signal+0x47c/0x2500 [ 980.996669][T10339] ? do_vfs_ioctl+0x120/0x1380 [ 981.001449][T10339] do_signal+0x87/0x1670 [ 981.005688][T10339] ? selinux_file_mprotect+0x620/0x620 [ 981.011143][T10339] ? __fget+0x384/0x560 [ 981.015410][T10339] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 981.021645][T10339] ? setup_sigcontext+0x7d0/0x7d0 [ 981.026668][T10339] ? kick_process+0xef/0x180 [ 981.031256][T10339] ? exit_to_usermode_loop+0x43/0x380 [ 981.036790][T10339] ? do_syscall_64+0x5a9/0x6a0 [ 981.041554][T10339] ? exit_to_usermode_loop+0x43/0x380 [ 981.047021][T10339] ? lockdep_hardirqs_on+0x418/0x5d0 [ 981.052318][T10339] ? trace_hardirqs_on+0x67/0x240 [ 981.057405][T10339] exit_to_usermode_loop+0x286/0x380 [ 981.062804][T10339] do_syscall_64+0x5a9/0x6a0 [ 981.067400][T10339] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 981.073294][T10339] RIP: 0033:0x459819 [ 981.077202][T10339] Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 981.096856][T10339] RSP: 002b:00007f8400eddc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 981.105417][T10339] RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000459819 [ 981.113588][T10339] RDX: 00000000200023c0 RSI: 000000004028af11 RDI: 0000000000000003 [ 981.121554][T10339] RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 [ 981.129635][T10339] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8400ede6d4 [ 981.137763][T10339] R13: 00000000004c4722 R14: 00000000004d87d0 R15: 00000000ffffffff [ 981.145896][T10339] [ 981.148212][T10339] The buggy address belongs to the page: [ 981.153943][T10339] page:ffffea0002370280 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 981.163213][T10339] flags: 0x1fffc0000000000() [ 981.167936][T10339] raw: 01fffc0000000000 ffffea00024c5908 ffffea00023df488 0000000000000000 [ 981.176767][T10339] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 981.185738][T10339] page dumped because: kasan: bad access detected [ 981.192189][T10339] [ 981.194770][T10339] Memory state around the buggy address: [ 981.200481][T10339] ffff88808dc0a680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 981.208587][T10339] ffff88808dc0a700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 981.216652][T10339] >ffff88808dc0a780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 981.224881][T10339] ^ [ 981.232886][T10339] ffff88808dc0a800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 981.240944][T10339] ffff88808dc0a880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 981.249264][T10339] ================================================================== [ 981.257312][T10339] Disabling lock debugging due to kernel taint [ 981.269370][T10339] Kernel panic - not syncing: panic_on_warn set ... [ 981.276118][T10339] CPU: 1 PID: 10339 Comm: syz-executor.0 Tainted: G B 5.2.0+ #61 [ 981.285264][T10339] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 981.295451][T10339] Call Trace: [ 981.298736][T10339] dump_stack+0x172/0x1f0 [ 981.303159][T10339] panic+0x2dc/0x755 [ 981.307126][T10339] ? add_taint.cold+0x16/0x16 [ 981.311848][T10339] ? unmap_page_range+0x1e1c/0x2170 [ 981.317036][T10339] ? preempt_schedule+0x4b/0x60 [ 981.322099][T10339] ? ___preempt_schedule+0x16/0x18 [ 981.327230][T10339] ? trace_hardirqs_on+0x5e/0x240 [ 981.332365][T10339] ? unmap_page_range+0x1e1c/0x2170 [ 981.337605][T10339] end_report+0x47/0x4f [ 981.341749][T10339] ? unmap_page_range+0x1e1c/0x2170 [ 981.346937][T10339] __kasan_report.cold+0xe/0x36 [ 981.351781][T10339] ? unmap_page_range+0x1e1c/0x2170 [ 981.357070][T10339] kasan_report+0x12/0x17 [ 981.361385][T10339] __asan_report_load8_noabort+0x14/0x20 [ 981.367098][T10339] unmap_page_range+0x1e1c/0x2170 [ 981.372112][T10339] ? vm_normal_page_pmd+0x510/0x510 [ 981.377301][T10339] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 981.383646][T10339] ? uprobe_munmap+0xad/0x320 [ 981.388535][T10339] unmap_single_vma+0x19d/0x300 [ 981.393632][T10339] unmap_vmas+0x135/0x280 [ 981.404040][T10339] ? zap_vma_ptes+0x110/0x110 [ 981.408755][T10339] ? pagevec_lru_move_fn+0x215/0x2a0 [ 981.414126][T10339] ? __kasan_check_write+0x14/0x20 [ 981.419232][T10339] exit_mmap+0x2ba/0x530 [ 981.423469][T10339] ? __ia32_sys_munmap+0x80/0x80 [ 981.428403][T10339] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 981.434633][T10339] ? __khugepaged_exit+0xcf/0x410 [ 981.440141][T10339] mmput+0x179/0x4d0 [ 981.444464][T10339] do_exit+0x84e/0x2ea0 [ 981.448623][T10339] ? mm_update_next_owner+0x640/0x640 [ 981.454120][T10339] ? lock_downgrade+0x920/0x920 [ 981.459059][T10339] ? _raw_spin_unlock_irq+0x28/0x90 [ 981.464261][T10339] ? get_signal+0x392/0x2500 [ 981.468856][T10339] ? _raw_spin_unlock_irq+0x28/0x90 [ 981.474155][T10339] do_group_exit+0x135/0x360 [ 981.478792][T10339] get_signal+0x47c/0x2500 [ 981.483210][T10339] ? do_vfs_ioctl+0x120/0x1380 [ 981.487967][T10339] do_signal+0x87/0x1670 [ 981.492373][T10339] ? selinux_file_mprotect+0x620/0x620 [ 981.497821][T10339] ? __fget+0x384/0x560 [ 981.501968][T10339] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 981.508200][T10339] ? setup_sigcontext+0x7d0/0x7d0 [ 981.513575][T10339] ? kick_process+0xef/0x180 [ 981.518157][T10339] ? exit_to_usermode_loop+0x43/0x380 [ 981.523521][T10339] ? do_syscall_64+0x5a9/0x6a0 [ 981.528997][T10339] ? exit_to_usermode_loop+0x43/0x380 [ 981.534382][T10339] ? lockdep_hardirqs_on+0x418/0x5d0 [ 981.539763][T10339] ? trace_hardirqs_on+0x67/0x240 [ 981.544798][T10339] exit_to_usermode_loop+0x286/0x380 [ 981.550387][T10339] do_syscall_64+0x5a9/0x6a0 [ 981.555363][T10339] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 981.561386][T10339] RIP: 0033:0x459819 [ 981.565270][T10339] Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 981.585087][T10339] RSP: 002b:00007f8400eddc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 981.593505][T10339] RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000459819 [ 981.601475][T10339] RDX: 00000000200023c0 RSI: 000000004028af11 RDI: 0000000000000003 [ 981.610180][T10339] RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 [ 981.618395][T10339] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8400ede6d4 [ 981.626487][T10339] R13: 00000000004c4722 R14: 00000000004d87d0 R15: 00000000ffffffff [ 981.635495][T10339] Kernel Offset: disabled [ 981.640004][T10339] Rebooting in 86400 seconds..