[ 41.829365][ T23] audit: type=1800 audit(1575125849.117:26): pid=8008 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 41.868172][ T23] audit: type=1800 audit(1575125849.117:27): pid=8008 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [ 41.894562][ T23] audit: type=1800 audit(1575125849.127:28): pid=8008 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="ssh" dev="sda1" ino=2417 res=0 [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 42.613259][ T23] audit: type=1800 audit(1575125849.927:29): pid=8008 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.10.59' (ECDSA) to the list of known hosts. 2019/11/30 14:57:40 parsed 1 programs 2019/11/30 14:57:41 executed programs: 0 syzkaller login: [ 54.370692][ T8173] IPVS: ftp: loaded support on port[0] = 21 [ 54.424607][ T8173] chnl_net:caif_netlink_parms(): no params data found [ 54.448668][ T8173] bridge0: port 1(bridge_slave_0) entered blocking state [ 54.457877][ T8173] bridge0: port 1(bridge_slave_0) entered disabled state [ 54.465885][ T8173] device bridge_slave_0 entered promiscuous mode [ 54.474419][ T8173] bridge0: port 2(bridge_slave_1) entered blocking state [ 54.481611][ T8173] bridge0: port 2(bridge_slave_1) entered disabled state [ 54.489147][ T8173] device bridge_slave_1 entered promiscuous mode [ 54.505880][ T8173] bond0: (slave bond_slave_0): Enslaving as an active interface with an up link [ 54.517069][ T8173] bond0: (slave bond_slave_1): Enslaving as an active interface with an up link [ 54.535494][ T8173] team0: Port device team_slave_0 added [ 54.542801][ T8173] team0: Port device team_slave_1 added [ 54.621378][ T8173] device hsr_slave_0 entered promiscuous mode [ 54.690512][ T8173] device hsr_slave_1 entered promiscuous mode [ 54.750029][ T8173] netdevsim netdevsim0 netdevsim0: renamed from eth0 [ 54.811880][ T8173] netdevsim netdevsim0 netdevsim1: renamed from eth1 [ 54.872508][ T8173] netdevsim netdevsim0 netdevsim2: renamed from eth2 [ 54.921778][ T8173] netdevsim netdevsim0 netdevsim3: renamed from eth3 [ 54.969350][ T8173] bridge0: port 2(bridge_slave_1) entered blocking state [ 54.976534][ T8173] bridge0: port 2(bridge_slave_1) entered forwarding state [ 54.984462][ T8173] bridge0: port 1(bridge_slave_0) entered blocking state [ 54.991571][ T8173] bridge0: port 1(bridge_slave_0) entered forwarding state [ 55.023255][ T8173] 8021q: adding VLAN 0 to HW filter on device bond0 [ 55.035966][ T12] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready [ 55.056772][ T12] bridge0: port 1(bridge_slave_0) entered disabled state [ 55.076820][ T12] bridge0: port 2(bridge_slave_1) entered disabled state [ 55.085189][ T12] IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready [ 55.098430][ T8173] 8021q: adding VLAN 0 to HW filter on device team0 [ 55.108691][ T2887] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_0: link becomes ready [ 55.117341][ T2887] bridge0: port 1(bridge_slave_0) entered blocking state [ 55.124623][ T2887] bridge0: port 1(bridge_slave_0) entered forwarding state [ 55.147510][ T8173] hsr0: Slave A (hsr_slave_0) is not up; please bring it up to get a fully working HSR network [ 55.158821][ T8173] hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network [ 55.173620][ T8177] IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_1: link becomes ready [ 55.182202][ T8177] bridge0: port 2(bridge_slave_1) entered blocking state [ 55.189244][ T8177] bridge0: port 2(bridge_slave_1) entered forwarding state [ 55.197257][ T8177] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready [ 55.207748][ T8177] IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_1: link becomes ready [ 55.216258][ T8177] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_0: link becomes ready [ 55.225048][ T8177] IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready [ 55.234003][ T17] IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready [ 55.241664][ T17] IPv6: ADDRCONF(NETDEV_CHANGE): team0: link becomes ready [ 55.257615][ T12] IPv6: ADDRCONF(NETDEV_CHANGE): vxcan0: link becomes ready [ 55.265349][ T12] IPv6: ADDRCONF(NETDEV_CHANGE): vxcan1: link becomes ready [ 55.276996][ T8173] 8021q: adding VLAN 0 to HW filter on device batadv0 [ 56.636170][ T8451] [ 56.638548][ T8451] ===================================== [ 56.644066][ T8451] WARNING: bad unlock balance detected! [ 56.649598][ T8451] 5.4.0-syzkaller #0 Not tainted [ 56.654508][ T8451] ------------------------------------- [ 56.660031][ T8451] syz-executor.0/8451 is trying to release lock (&file->mut) at: [ 56.667751][ T8451] [] ucma_destroy_id+0x212/0x400 [ 56.674235][ T8451] but there are no more locks to release! [ 56.679922][ T8451] [ 56.679922][ T8451] other info that might help us debug this: [ 56.687956][ T8451] 1 lock held by syz-executor.0/8451: [ 56.693298][ T8451] #0: ffff888092228e60 (&file->mut){+.+.}, at: ucma_destroy_id+0x1d1/0x400 [ 56.701949][ T8451] [ 56.701949][ T8451] stack backtrace: [ 56.707819][ T8451] CPU: 1 PID: 8451 Comm: syz-executor.0 Not tainted 5.4.0-syzkaller #0 [ 56.716033][ T8451] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.726080][ T8451] Call Trace: [ 56.729347][ T8451] dump_stack+0x1fb/0x318 [ 56.733653][ T8451] ? ucma_destroy_id+0x212/0x400 [ 56.738566][ T8451] print_unlock_imbalance_bug+0x20b/0x240 [ 56.744268][ T8451] ? mutex_optimistic_spin+0x337/0x480 [ 56.749714][ T8451] ? ucma_destroy_id+0x212/0x400 [ 56.754630][ T8451] lock_release+0x473/0x780 [ 56.759114][ T8451] ? ucma_destroy_id+0x212/0x400 [ 56.764045][ T8451] ? ucma_destroy_id+0x212/0x400 [ 56.768974][ T8451] __mutex_unlock_slowpath+0x80/0x5b0 [ 56.774338][ T8451] mutex_unlock+0x1b/0x30 [ 56.778646][ T8451] ucma_destroy_id+0x212/0x400 [ 56.783384][ T8451] ? ucma_create_id+0x540/0x540 [ 56.788224][ T8451] ucma_write+0x2da/0x360 [ 56.792558][ T8451] ? ucma_get_global_nl_info+0x70/0x70 [ 56.797996][ T8451] __vfs_write+0xb8/0x740 [ 56.802302][ T8451] ? security_file_permission+0x148/0x350 [ 56.807997][ T8451] ? rw_verify_area+0x1c2/0x360 [ 56.812819][ T8451] vfs_write+0x275/0x590 [ 56.817039][ T8451] ksys_write+0x117/0x220 [ 56.821340][ T8451] __x64_sys_write+0x7b/0x90 [ 56.825906][ T8451] do_syscall_64+0xf7/0x1c0 [ 56.830386][ T8451] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.836251][ T8451] RIP: 0033:0x45a679 [ 56.840124][ T8451] Code: ad b6 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 56.859709][ T8451] RSP: 002b:00007f223f1ccc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 56.868115][ T8451] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a679 [ 56.876070][ T8451] RDX: 0000000000000018 RSI: 0000000020000140 RDI: 0000000000000003 [ 56.884023][ T8451] RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 [ 56.891990][ T8451] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f223f1cd6d4 [ 56.899936][ T8451] R13: 00000000004d2b38 R14: 00000000004e3be0 R15: 00000000ffffffff [ 56.910221][ T8451] ================================================================== [ 56.918307][ T8451] BUG: KASAN: use-after-free in __mutex_unlock_slowpath+0x8d/0x5b0 [ 56.926175][ T8451] Read of size 8 at addr ffff8880a8da3e00 by task syz-executor.0/8451 [ 56.934296][ T8451] [ 56.936608][ T8451] CPU: 1 PID: 8451 Comm: syz-executor.0 Not tainted 5.4.0-syzkaller #0 [ 56.944923][ T8451] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.955002][ T8451] Call Trace: [ 56.958301][ T8451] dump_stack+0x1fb/0x318 [ 56.962623][ T8451] print_address_description+0x75/0x5c0 [ 56.968151][ T8451] ? vprintk_func+0x158/0x170 [ 56.972808][ T8451] ? printk+0x62/0x8d [ 56.976769][ T8451] ? vprintk_emit+0x2d4/0x3a0 [ 56.981421][ T8451] __kasan_report+0x14b/0x1c0 [ 56.986087][ T8451] ? __mutex_unlock_slowpath+0x8d/0x5b0 [ 56.991605][ T8451] kasan_report+0x26/0x50 [ 56.995908][ T8451] check_memory_region+0x2cf/0x2e0 [ 57.001011][ T8451] ? ucma_destroy_id+0x212/0x400 [ 57.005934][ T8451] __kasan_check_read+0x11/0x20 [ 57.010808][ T8451] __mutex_unlock_slowpath+0x8d/0x5b0 [ 57.016190][ T8451] mutex_unlock+0x1b/0x30 [ 57.020563][ T8451] ucma_destroy_id+0x212/0x400 [ 57.025321][ T8451] ? ucma_create_id+0x540/0x540 [ 57.030165][ T8451] ucma_write+0x2da/0x360 [ 57.034476][ T8451] ? ucma_get_global_nl_info+0x70/0x70 [ 57.039922][ T8451] __vfs_write+0xb8/0x740 [ 57.044234][ T8451] ? security_file_permission+0x148/0x350 [ 57.050004][ T8451] ? rw_verify_area+0x1c2/0x360 [ 57.054835][ T8451] vfs_write+0x275/0x590 [ 57.059060][ T8451] ksys_write+0x117/0x220 [ 57.063367][ T8451] __x64_sys_write+0x7b/0x90 [ 57.067943][ T8451] do_syscall_64+0xf7/0x1c0 [ 57.072437][ T8451] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 57.078310][ T8451] RIP: 0033:0x45a679 [ 57.082190][ T8451] Code: ad b6 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 57.101785][ T8451] RSP: 002b:00007f223f1ccc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 57.110172][ T8451] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a679 [ 57.118132][ T8451] RDX: 0000000000000018 RSI: 0000000020000140 RDI: 0000000000000003 [ 57.126516][ T8451] RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 [ 57.134575][ T8451] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f223f1cd6d4 [ 57.142520][ T8451] R13: 00000000004d2b38 R14: 00000000004e3be0 R15: 00000000ffffffff [ 57.150477][ T8451] [ 57.152781][ T8451] Allocated by task 8453: [ 57.157085][ T8451] __kasan_kmalloc+0x11c/0x1b0 [ 57.161837][ T8451] kasan_kmalloc+0x9/0x10 [ 57.166146][ T8451] kmem_cache_alloc_trace+0x221/0x2f0 [ 57.171501][ T8451] ucma_open+0x57/0x1f0 [ 57.175634][ T8451] misc_open+0x3ef/0x440 [ 57.179852][ T8451] chrdev_open+0x509/0x590 [ 57.184242][ T8451] do_dentry_open+0x740/0x10c0 [ 57.189005][ T8451] vfs_open+0x73/0x80 [ 57.192959][ T8451] path_openat+0x1397/0x4420 [ 57.197522][ T8451] do_filp_open+0x192/0x3d0 [ 57.202004][ T8451] do_sys_open+0x29f/0x560 [ 57.206391][ T8451] __x64_sys_openat+0xa2/0xb0 [ 57.211039][ T8451] do_syscall_64+0xf7/0x1c0 [ 57.215515][ T8451] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 57.221376][ T8451] [ 57.223680][ T8451] Freed by task 8445: [ 57.227639][ T8451] __kasan_slab_free+0x12a/0x1e0 [ 57.232566][ T8451] kasan_slab_free+0xe/0x10 [ 57.237043][ T8451] kfree+0x115/0x200 [ 57.240914][ T8451] ucma_close+0x2ac/0x2c0 [ 57.245230][ T8451] __fput+0x2e4/0x740 [ 57.249192][ T8451] ____fput+0x15/0x20 [ 57.253321][ T8451] task_work_run+0x17e/0x1b0 [ 57.257882][ T8451] prepare_exit_to_usermode+0x483/0x5b0 [ 57.263399][ T8451] syscall_return_slowpath+0x113/0x4a0 [ 57.268828][ T8451] do_syscall_64+0x11f/0x1c0 [ 57.273391][ T8451] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 57.279360][ T8451] [ 57.281716][ T8451] The buggy address belongs to the object at ffff8880a8da3e00 [ 57.281716][ T8451] which belongs to the cache kmalloc-256 of size 256 [ 57.295815][ T8451] The buggy address is located 0 bytes inside of [ 57.295815][ T8451] 256-byte region [ffff8880a8da3e00, ffff8880a8da3f00) [ 57.308980][ T8451] The buggy address belongs to the page: [ 57.314594][ T8451] page:ffffea0002a368c0 refcount:1 mapcount:0 mapping:ffff8880aa4008c0 index:0x0 [ 57.323716][ T8451] raw: 00fffe0000000200 ffffea0002488a08 ffff8880aa401648 ffff8880aa4008c0 [ 57.332302][ T8451] raw: 0000000000000000 ffff8880a8da3000 0000000100000008 0000000000000000 [ 57.340866][ T8451] page dumped because: kasan: bad access detected [ 57.347262][ T8451] [ 57.349571][ T8451] Memory state around the buggy address: [ 57.355187][ T8451] ffff8880a8da3d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 57.363226][ T8451] ffff8880a8da3d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 57.371267][ T8451] >ffff8880a8da3e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 57.379305][ T8451] ^ [ 57.383351][ T8451] ffff8880a8da3e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 57.391395][ T8451] ffff8880a8da3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 57.399451][ T8451] ================================================================== [ 57.411059][ T8451] Kernel panic - not syncing: panic_on_warn set ... [ 57.417945][ T8451] CPU: 1 PID: 8451 Comm: syz-executor.0 Tainted: G B 5.4.0-syzkaller #0 [ 57.427613][ T8451] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 57.437661][ T8451] Call Trace: [ 57.440952][ T8451] dump_stack+0x1fb/0x318 [ 57.445264][ T8451] panic+0x264/0x7a9 [ 57.449142][ T8451] ? __kasan_report+0x195/0x1c0 [ 57.453979][ T8451] ? trace_hardirqs_on+0x34/0x80 [ 57.458901][ T8451] ? __kasan_report+0x195/0x1c0 [ 57.463740][ T8451] __kasan_report+0x1bb/0x1c0 [ 57.468398][ T8451] ? __mutex_unlock_slowpath+0x8d/0x5b0 [ 57.473919][ T8451] kasan_report+0x26/0x50 [ 57.478222][ T8451] check_memory_region+0x2cf/0x2e0 [ 57.483325][ T8451] ? ucma_destroy_id+0x212/0x400 [ 57.488239][ T8451] __kasan_check_read+0x11/0x20 [ 57.493063][ T8451] __mutex_unlock_slowpath+0x8d/0x5b0 [ 57.498426][ T8451] mutex_unlock+0x1b/0x30 [ 57.502730][ T8451] ucma_destroy_id+0x212/0x400 [ 57.507474][ T8451] ? ucma_create_id+0x540/0x540 [ 57.512298][ T8451] ucma_write+0x2da/0x360 [ 57.516604][ T8451] ? ucma_get_global_nl_info+0x70/0x70 [ 57.522059][ T8451] __vfs_write+0xb8/0x740 [ 57.526389][ T8451] ? security_file_permission+0x148/0x350 [ 57.532085][ T8451] ? rw_verify_area+0x1c2/0x360 [ 57.536912][ T8451] vfs_write+0x275/0x590 [ 57.541136][ T8451] ksys_write+0x117/0x220 [ 57.545450][ T8451] __x64_sys_write+0x7b/0x90 [ 57.550041][ T8451] do_syscall_64+0xf7/0x1c0 [ 57.554521][ T8451] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 57.560396][ T8451] RIP: 0033:0x45a679 [ 57.564269][ T8451] Code: ad b6 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 57.583853][ T8451] RSP: 002b:00007f223f1ccc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 57.592240][ T8451] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a679 [ 57.600206][ T8451] RDX: 0000000000000018 RSI: 0000000020000140 RDI: 0000000000000003 [ 57.608161][ T8451] RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 [ 57.616123][ T8451] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f223f1cd6d4 [ 57.624085][ T8451] R13: 00000000004d2b38 R14: 00000000004e3be0 R15: 00000000ffffffff [ 57.633365][ T8451] Kernel Offset: disabled [ 57.637701][ T8451] Rebooting in 86400 seconds..