audit: type=1804 audit(1583624174.702:93): pid=12912 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir252334487/syzkaller.ozKmRr/65/file0/bus" dev="loop2" ino=119 res=1 ====================================================== WARNING: possible circular locking dependency detected 4.19.108-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.3/12796 is trying to acquire lock: 000000005cf5bcef (console_owner){-.-.}, at: console_trylock_spinning kernel/printk/printk.c:1669 [inline] 000000005cf5bcef (console_owner){-.-.}, at: vprintk_emit+0x3d8/0x6e0 kernel/printk/printk.c:1936 but task is already holding lock: 0000000067d7f7e6 (&(&port->lock)->rlock){-.-.}, at: tty_port_close_start.part.0+0x28/0x540 drivers/tty/tty_port.c:574 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&(&port->lock)->rlock){-.-.}: tty_port_tty_get+0x1d/0x80 drivers/tty/tty_port.c:289 tty_port_default_wakeup+0x11/0x40 drivers/tty/tty_port.c:47 serial8250_tx_chars+0x48f/0xae0 drivers/tty/serial/8250/8250_port.c:1806 serial8250_handle_irq.part.0+0x24b/0x290 drivers/tty/serial/8250/8250_port.c:1879 serial8250_handle_irq drivers/tty/serial/8250/8250_port.c:1865 [inline] serial8250_default_handle_irq+0xb5/0x140 drivers/tty/serial/8250/8250_port.c:1895 serial8250_interrupt+0xf2/0x1d0 drivers/tty/serial/8250/8250_core.c:125 __handle_irq_event_percpu+0x144/0x8e0 kernel/irq/handle.c:149 handle_irq_event_percpu+0x76/0x160 kernel/irq/handle.c:189 handle_irq_event+0xa2/0x12d kernel/irq/handle.c:206 handle_edge_irq+0x24b/0x8c0 kernel/irq/chip.c:797 generic_handle_irq_desc include/linux/irqdesc.h:155 [inline] handle_irq+0x35/0x50 arch/x86/kernel/irq_64.c:87 do_IRQ+0x93/0x1c0 arch/x86/kernel/irq.c:246 ret_from_intr+0x0/0x1e native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:60 arch_safe_halt arch/x86/include/asm/paravirt.h:94 [inline] default_idle+0x49/0x320 arch/x86/kernel/process.c:565 cpuidle_idle_call kernel/sched/idle.c:153 [inline] do_idle+0x2ee/0x4b0 kernel/sched/idle.c:263 cpu_startup_entry+0xc6/0xd0 kernel/sched/idle.c:369 start_secondary+0x3e4/0x590 arch/x86/kernel/smpboot.c:271 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243 -> #1 (&port_lock_key){-.-.}: serial8250_console_write+0x79f/0x9c0 drivers/tty/serial/8250/8250_port.c:3251 call_console_drivers kernel/printk/printk.c:1736 [inline] console_unlock+0xb26/0xfe0 kernel/printk/printk.c:2429 vprintk_emit+0x282/0x6e0 kernel/printk/printk.c:1937 vprintk_func+0x79/0x17e kernel/printk/printk_safe.c:398 printk+0xba/0xed kernel/printk/printk.c:2012 register_console+0x752/0xb50 kernel/printk/printk.c:2745 univ8250_console_init+0x3a/0x46 drivers/tty/serial/8250/8250_core.c:684 console_init+0x4cb/0x718 kernel/printk/printk.c:2831 start_kernel+0x594/0x81c init/main.c:660 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243 -> #0 (console_owner){-.-.}: console_trylock_spinning kernel/printk/printk.c:1690 [inline] vprintk_emit+0x415/0x6e0 kernel/printk/printk.c:1936 vprintk_func+0x79/0x17e kernel/printk/printk_safe.c:398 printk+0xba/0xed kernel/printk/printk.c:2012 tty_port_close_start.part.0+0x4f0/0x540 drivers/tty/tty_port.c:576 tty_port_close_start drivers/tty/tty_port.c:648 [inline] tty_port_close+0x46/0xe0 drivers/tty/tty_port.c:641 tty_release+0x3b9/0xe90 drivers/tty/tty_io.c:1678 __fput+0x2cd/0x890 fs/file_table.c:278 task_work_run+0x13f/0x1b0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x25a/0x2b0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Chain exists of: console_owner --> &port_lock_key --> &(&port->lock)->rlock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&(&port->lock)->rlock); lock(&port_lock_key); lock(&(&port->lock)->rlock); lock(console_owner); *** DEADLOCK *** 2 locks held by syz-executor.3/12796: #0: 000000007b82f33f (&tty->legacy_mutex){+.+.}, at: tty_lock+0x6a/0xa0 drivers/tty/tty_mutex.c:19 #1: 0000000067d7f7e6 (&(&port->lock)->rlock){-.-.}, at: tty_port_close_start.part.0+0x28/0x540 drivers/tty/tty_port.c:574 stack backtrace: CPU: 1 PID: 12796 Comm: syz-executor.3 Not tainted 4.19.108-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 print_circular_bug.isra.0.cold+0x1c4/0x282 kernel/locking/lockdep.c:1221 check_prev_add kernel/locking/lockdep.c:1861 [inline] check_prevs_add kernel/locking/lockdep.c:1974 [inline] validate_chain kernel/locking/lockdep.c:2415 [inline] __lock_acquire+0x2e19/0x49c0 kernel/locking/lockdep.c:3411 lock_acquire+0x170/0x400 kernel/locking/lockdep.c:3903 console_trylock_spinning kernel/printk/printk.c:1690 [inline] vprintk_emit+0x415/0x6e0 kernel/printk/printk.c:1936 vprintk_func+0x79/0x17e kernel/printk/printk_safe.c:398 printk+0xba/0xed kernel/printk/printk.c:2012 tty_port_close_start.part.0+0x4f0/0x540 drivers/tty/tty_port.c:576 tty_port_close_start drivers/tty/tty_port.c:648 [inline] tty_port_close+0x46/0xe0 drivers/tty/tty_port.c:641 tty_release+0x3b9/0xe90 drivers/tty/tty_io.c:1678 __fput+0x2cd/0x890 fs/file_table.c:278 task_work_run+0x13f/0x1b0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x25a/0x2b0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x416041 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 04 1b 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007ffef1d12ec0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000416041 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 0000000000000001 R08: 00000000f3a1259a R09: 00ffffffffffffff R10: 00007ffef1d12fa0 R11: 0000000000000293 R12: 000000000076bf20 R13: 0000000000772668 R14: 00000000000485f7 R15: 000000000076bf2c FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 0 PID: 13038 Comm: syz-executor.0 Not tainted 4.19.108-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0xa/0x1b lib/fault-inject.c:149 __should_failslab+0x115/0x180 mm/failslab.c:32 should_failslab+0x5/0xf mm/slab_common.c:1558 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc mm/slab.c:3383 [inline] kmem_cache_alloc_trace+0x2c6/0x7a0 mm/slab.c:3623 kmalloc include/linux/slab.h:515 [inline] kzalloc include/linux/slab.h:709 [inline] vicodec_open+0xd5/0xad0 drivers/media/platform/vicodec/vicodec-core.c:1229 v4l2_open+0x1af/0x350 drivers/media/v4l2-core/v4l2-dev.c:427 chrdev_open+0x219/0x5c0 fs/char_dev.c:423 do_dentry_open+0x4a8/0x1160 fs/open.c:796 do_last fs/namei.c:3421 [inline] path_openat+0x1031/0x4200 fs/namei.c:3537 do_filp_open+0x1a1/0x280 fs/namei.c:3567 do_sys_open+0x3c0/0x500 fs/open.c:1088 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c4a9 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 RSP: 002b:00007f4d535afc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f4d535b06d4 RCX: 000000000045c4a9 RDX: 0000000000000002 RSI: 00000000200001c0 RDI: ffffffffffffff9c RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005 R13: 0000000000000805 R14: 00000000004ca849 R15: 0000000000000004 minix_free_inode: bit 1 already cleared FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 audit: type=1800 audit(1583624175.942:94): pid=13164 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=16864 res=0 CPU: 1 PID: 13159 Comm: syz-executor.0 Not tainted 4.19.108-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0xa/0x1b lib/fault-inject.c:149 __should_failslab+0x115/0x180 mm/failslab.c:32 should_failslab+0x5/0xf mm/slab_common.c:1558 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc_node mm/slab.c:3304 [inline] kmem_cache_alloc_node_trace+0x272/0x750 mm/slab.c:3666 __do_kmalloc_node mm/slab.c:3688 [inline] __kmalloc_node+0x38/0x70 mm/slab.c:3696 kmalloc_node include/linux/slab.h:557 [inline] kvmalloc_node+0x61/0xf0 mm/util.c:423 kvmalloc include/linux/mm.h:577 [inline] kvmalloc_array include/linux/mm.h:595 [inline] v4l2_ctrl_handler_init_class+0x159/0x230 drivers/media/v4l2-core/v4l2-ctrls.c:1901 vicodec_open+0x184/0xad0 drivers/media/platform/vicodec/vicodec-core.c:1242 v4l2_open+0x1af/0x350 drivers/media/v4l2-core/v4l2-dev.c:427 chrdev_open+0x219/0x5c0 fs/char_dev.c:423 do_dentry_open+0x4a8/0x1160 fs/open.c:796 do_last fs/namei.c:3421 [inline] path_openat+0x1031/0x4200 fs/namei.c:3537 init_special_inode: bogus i_mode (0) for inode loop5:1 do_filp_open+0x1a1/0x280 fs/namei.c:3567 MINIX-fs: mounting unchecked file system, running fsck is recommended do_sys_open+0x3c0/0x500 fs/open.c:1088 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c4a9 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 RSP: 002b:00007f4d535afc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f4d535b06d4 RCX: 000000000045c4a9 RDX: 0000000000000002 RSI: 00000000200001c0 RDI: ffffffffffffff9c RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005 R13: 0000000000000805 R14: 00000000004ca849 R15: 0000000000000005 minix_free_inode: bit 1 already cleared FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 0 PID: 13342 Comm: syz-executor.0 Not tainted 4.19.108-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0xa/0x1b lib/fault-inject.c:149 __should_failslab+0x115/0x180 mm/failslab.c:32 should_failslab+0x5/0xf mm/slab_common.c:1558 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc_node mm/slab.c:3304 [inline] kmem_cache_alloc_node_trace+0x272/0x750 mm/slab.c:3666 __do_kmalloc_node mm/slab.c:3688 [inline] __kmalloc_node+0x38/0x70 mm/slab.c:3696 kmalloc_node include/linux/slab.h:557 [inline] kvmalloc_node+0x61/0xf0 mm/util.c:423 kvmalloc include/linux/mm.h:577 [inline] kvzalloc include/linux/mm.h:585 [inline] v4l2_ctrl_new.part.0+0x22c/0x14c0 drivers/media/v4l2-core/v4l2-ctrls.c:2176 v4l2_ctrl_new drivers/media/v4l2-core/v4l2-ctrls.c:2109 [inline] v4l2_ctrl_new_std+0x211/0x330 drivers/media/v4l2-core/v4l2-ctrls.c:2293 vicodec_open+0x1a6/0xad0 drivers/media/platform/vicodec/vicodec-core.c:1243 v4l2_open+0x1af/0x350 drivers/media/v4l2-core/v4l2-dev.c:427 chrdev_open+0x219/0x5c0 fs/char_dev.c:423 do_dentry_open+0x4a8/0x1160 fs/open.c:796 do_last fs/namei.c:3421 [inline] path_openat+0x1031/0x4200 fs/namei.c:3537 audit: type=1800 audit(1583624176.492:95): pid=13402 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=16869 res=0 do_filp_open+0x1a1/0x280 fs/namei.c:3567 init_special_inode: bogus i_mode (0) for inode loop5:1 do_sys_open+0x3c0/0x500 fs/open.c:1088 MINIX-fs: mounting unchecked file system, running fsck is recommended do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c4a9 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 RSP: 002b:00007f4d535afc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f4d535b06d4 RCX: 000000000045c4a9 RDX: 0000000000000002 RSI: 00000000200001c0 RDI: ffffffffffffff9c RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005 R13: 0000000000000805 R14: 00000000004ca849 R15: 0000000000000006 minix_free_inode: bit 1 already cleared audit: type=1800 audit(1583624176.932:96): pid=13479 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=16864 res=0 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended CPU: 0 PID: 13537 Comm: syz-executor.0 Not tainted 4.19.108-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0xa/0x1b lib/fault-inject.c:149 __should_failslab+0x115/0x180 mm/failslab.c:32 should_failslab+0x5/0xf mm/slab_common.c:1558 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc_node mm/slab.c:3304 [inline] kmem_cache_alloc_node_trace+0x272/0x750 mm/slab.c:3666 __do_kmalloc_node mm/slab.c:3688 [inline] __kmalloc_node+0x38/0x70 mm/slab.c:3696 kmalloc_node include/linux/slab.h:557 [inline] kvmalloc_node+0x61/0xf0 mm/util.c:423 kvmalloc include/linux/mm.h:577 [inline] kvzalloc include/linux/mm.h:585 [inline] v4l2_ctrl_new.part.0+0x22c/0x14c0 drivers/media/v4l2-core/v4l2-ctrls.c:2176 v4l2_ctrl_new drivers/media/v4l2-core/v4l2-ctrls.c:2109 [inline] v4l2_ctrl_new_std+0x211/0x330 drivers/media/v4l2-core/v4l2-ctrls.c:2293 handler_new_ref+0x170/0x9f0 drivers/media/v4l2-core/v4l2-ctrls.c:2034 v4l2_ctrl_new.part.0+0x902/0x14c0 drivers/media/v4l2-core/v4l2-ctrls.c:2224 v4l2_ctrl_new drivers/media/v4l2-core/v4l2-ctrls.c:2109 [inline] v4l2_ctrl_new_std+0x211/0x330 drivers/media/v4l2-core/v4l2-ctrls.c:2293 vicodec_open+0x1a6/0xad0 drivers/media/platform/vicodec/vicodec-core.c:1243 v4l2_open+0x1af/0x350 drivers/media/v4l2-core/v4l2-dev.c:427 chrdev_open+0x219/0x5c0 fs/char_dev.c:423 do_dentry_open+0x4a8/0x1160 fs/open.c:796 do_last fs/namei.c:3421 [inline] path_openat+0x1031/0x4200 fs/namei.c:3537 do_filp_open+0x1a1/0x280 fs/namei.c:3567 do_sys_open+0x3c0/0x500 fs/open.c:1088 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c4a9 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 RSP: 002b:00007f4d535afc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f4d535b06d4 RCX: 000000000045c4a9 RDX: 0000000000000002 RSI: 00000000200001c0 RDI: ffffffffffffff9c RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005 R13: 0000000000000805 R14: 00000000004ca849 R15: 0000000000000007 minix_free_inode: bit 1 already cleared FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 audit: type=1800 audit(1583624177.612:97): pid=13576 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=16798 res=0 CPU: 0 PID: 13564 Comm: syz-executor.0 Not tainted 4.19.108-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0xa/0x1b lib/fault-inject.c:149 __should_failslab+0x115/0x180 mm/failslab.c:32 should_failslab+0x5/0xf mm/slab_common.c:1558 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc mm/slab.c:3383 [inline] kmem_cache_alloc_trace+0x2c6/0x7a0 mm/slab.c:3623 kmalloc include/linux/slab.h:515 [inline] kzalloc include/linux/slab.h:709 [inline] handler_new_ref+0x1f6/0x9f0 drivers/media/v4l2-core/v4l2-ctrls.c:2040 init_special_inode: bogus i_mode (0) for inode loop5:1 v4l2_ctrl_new.part.0+0x902/0x14c0 drivers/media/v4l2-core/v4l2-ctrls.c:2224 v4l2_ctrl_new drivers/media/v4l2-core/v4l2-ctrls.c:2109 [inline] v4l2_ctrl_new_std+0x211/0x330 drivers/media/v4l2-core/v4l2-ctrls.c:2293 MINIX-fs: mounting unchecked file system, running fsck is recommended handler_new_ref+0x170/0x9f0 drivers/media/v4l2-core/v4l2-ctrls.c:2034 v4l2_ctrl_new.part.0+0x902/0x14c0 drivers/media/v4l2-core/v4l2-ctrls.c:2224 v4l2_ctrl_new drivers/media/v4l2-core/v4l2-ctrls.c:2109 [inline] v4l2_ctrl_new_std+0x211/0x330 drivers/media/v4l2-core/v4l2-ctrls.c:2293 vicodec_open+0x1a6/0xad0 drivers/media/platform/vicodec/vicodec-core.c:1243 v4l2_open+0x1af/0x350 drivers/media/v4l2-core/v4l2-dev.c:427 chrdev_open+0x219/0x5c0 fs/char_dev.c:423 do_dentry_open+0x4a8/0x1160 fs/open.c:796 do_last fs/namei.c:3421 [inline] path_openat+0x1031/0x4200 fs/namei.c:3537 do_filp_open+0x1a1/0x280 fs/namei.c:3567 do_sys_open+0x3c0/0x500 fs/open.c:1088 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c4a9 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 RSP: 002b:00007f4d535afc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f4d535b06d4 RCX: 000000000045c4a9 RDX: 0000000000000002 RSI: 00000000200001c0 RDI: ffffffffffffff9c RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005 R13: 0000000000000805 R14: 00000000004ca849 R15: 0000000000000008 minix_free_inode: bit 1 already cleared audit: type=1800 audit(1583624178.172:98): pid=13757 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=16864 res=0 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 0 PID: 13758 Comm: syz-executor.0 Not tainted 4.19.108-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0xa/0x1b lib/fault-inject.c:149 __should_failslab+0x115/0x180 mm/failslab.c:32 should_failslab+0x5/0xf mm/slab_common.c:1558 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc mm/slab.c:3383 [inline] kmem_cache_alloc_trace+0x2c6/0x7a0 mm/slab.c:3623 kmalloc include/linux/slab.h:515 [inline] kzalloc include/linux/slab.h:709 [inline] handler_new_ref+0x1f6/0x9f0 drivers/media/v4l2-core/v4l2-ctrls.c:2040 v4l2_ctrl_new.part.0+0x902/0x14c0 drivers/media/v4l2-core/v4l2-ctrls.c:2224 v4l2_ctrl_new drivers/media/v4l2-core/v4l2-ctrls.c:2109 [inline] v4l2_ctrl_new_std+0x211/0x330 drivers/media/v4l2-core/v4l2-ctrls.c:2293 vicodec_open+0x1a6/0xad0 drivers/media/platform/vicodec/vicodec-core.c:1243 v4l2_open+0x1af/0x350 drivers/media/v4l2-core/v4l2-dev.c:427 chrdev_open+0x219/0x5c0 fs/char_dev.c:423 do_dentry_open+0x4a8/0x1160 fs/open.c:796 do_last fs/namei.c:3421 [inline] path_openat+0x1031/0x4200 fs/namei.c:3537 do_filp_open+0x1a1/0x280 fs/namei.c:3567 do_sys_open+0x3c0/0x500 fs/open.c:1088 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c4a9 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 RSP: 002b:00007f4d535afc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f4d535b06d4 RCX: 000000000045c4a9 RDX: 0000000000000002 RSI: 00000000200001c0 RDI: ffffffffffffff9c RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005 R13: 0000000000000805 R14: 00000000004ca849 R15: 0000000000000009 init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 14048 Comm: syz-executor.0 Not tainted 4.19.108-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0xa/0x1b lib/fault-inject.c:149 __should_failslab+0x115/0x180 mm/failslab.c:32 should_failslab+0x5/0xf mm/slab_common.c:1558 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc mm/slab.c:3383 [inline] kmem_cache_alloc_trace+0x2c6/0x7a0 mm/slab.c:3623 minix_free_inode: bit 1 already cleared kmalloc include/linux/slab.h:515 [inline] kzalloc include/linux/slab.h:709 [inline] v4l2_m2m_ctx_init+0x49/0x37b drivers/media/v4l2-core/v4l2-mem2mem.c:885 vicodec_open+0x528/0xad0 drivers/media/platform/vicodec/vicodec-core.c:1269 v4l2_open+0x1af/0x350 drivers/media/v4l2-core/v4l2-dev.c:427 chrdev_open+0x219/0x5c0 fs/char_dev.c:423 do_dentry_open+0x4a8/0x1160 fs/open.c:796 do_last fs/namei.c:3421 [inline] path_openat+0x1031/0x4200 fs/namei.c:3537 do_filp_open+0x1a1/0x280 fs/namei.c:3567 do_sys_open+0x3c0/0x500 fs/open.c:1088 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c4a9 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 RSP: 002b:00007f4d535afc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f4d535b06d4 RCX: 000000000045c4a9 RDX: 0000000000000002 RSI: 00000000200001c0 RDI: ffffffffffffff9c RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005 R13: 0000000000000805 R14: 00000000004ca849 R15: 000000000000000a audit: type=1800 audit(1583624179.362:99): pid=14188 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=16545 res=0 init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared audit: type=1800 audit(1583624179.632:100): pid=14322 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=16884 res=0 init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared audit: type=1800 audit(1583624179.942:101): pid=14354 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=16875 res=0 init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared audit: type=1800 audit(1583624180.352:102): pid=14495 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=16875 res=0 init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared audit: type=1800 audit(1583624180.712:103): pid=14641 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=16872 res=0 init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared audit: type=1800 audit(1583624182.352:104): pid=15429 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.4" name="file0" dev="sda1" ino=16890 res=0 init_special_inode: bogus i_mode (0) for inode loop4:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared init_special_inode: bogus i_mode (0) for inode loop5:1 audit: type=1800 audit(1583624182.692:105): pid=15467 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.4" name="file0" dev="sda1" ino=16905 res=0 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared init_special_inode: bogus i_mode (0) for inode loop4:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared audit: type=1800 audit(1583624183.212:106): pid=15711 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.4" name="file0" dev="sda1" ino=16899 res=0 init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended init_special_inode: bogus i_mode (0) for inode loop4:1 minix_free_inode: bit 1 already cleared MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared audit: type=1800 audit(1583624183.642:107): pid=15954 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.4" name="file0" dev="sda1" ino=16899 res=0 init_special_inode: bogus i_mode (0) for inode loop4:1 MINIX-fs: mounting unchecked file system, running fsck is recommended audit: type=1800 audit(1583624183.792:108): pid=15968 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=16903 res=0 init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared minix_free_inode: bit 1 already cleared init_special_inode: bogus i_mode (0) for inode loop5:1 init_special_inode: bogus i_mode (0) for inode loop4:1 MINIX-fs: mounting unchecked file system, running fsck is recommended MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared minix_free_inode: bit 1 already cleared init_special_inode: bogus i_mode (0) for inode loop4:1 MINIX-fs: mounting unchecked file system, running fsck is recommended kauditd_printk_skb: 3 callbacks suppressed audit: type=1800 audit(1583624184.462:112): pid=16036 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=16915 res=0 init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared minix_free_inode: bit 1 already cleared audit: type=1800 audit(1583624184.672:113): pid=16053 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.4" name="file0" dev="sda1" ino=16916 res=0 init_special_inode: bogus i_mode (0) for inode loop4:1 MINIX-fs: mounting unchecked file system, running fsck is recommended audit: type=1800 audit(1583624184.812:114): pid=16070 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op=collect_data cause=failed(directio) comm="syz-executor.5" name="file0" dev="sda1" ino=16913 res=0 init_special_inode: bogus i_mode (0) for inode loop5:1 MINIX-fs: mounting unchecked file system, running fsck is recommended minix_free_inode: bit 1 already cleared