./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor124161460 <...> Warning: Permanently added '10.128.1.35' (ED25519) to the list of known hosts. execve("./syz-executor124161460", ["./syz-executor124161460"], 0x7ffcbde76990 /* 10 vars */) = 0 brk(NULL) = 0x55556cbf4000 brk(0x55556cbf4d00) = 0x55556cbf4d00 arch_prctl(ARCH_SET_FS, 0x55556cbf4380) = 0 set_tid_address(0x55556cbf4650) = 5078 set_robust_list(0x55556cbf4660, 24) = 0 rseq(0x55556cbf4ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor124161460", 4096) = 27 getrandom("\xa7\x66\x4c\x41\xa7\x35\x9d\xf2", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55556cbf4d00 brk(0x55556cc15d00) = 0x55556cc15d00 brk(0x55556cc16000) = 0x55556cc16000 mprotect(0x7f0fb3416000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 openat(AT_FDCWD, "/dev/video37", O_RDWR) = 3 [ 80.108980][ T29] audit: type=1400 audit(1713869752.396:87): avc: denied { execmem } for pid=5078 comm="syz-executor124" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 80.131015][ T29] audit: type=1400 audit(1713869752.416:88): avc: denied { read write } for pid=5078 comm="syz-executor124" name="video37" dev="devtmpfs" ino=966 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:v4l_device_t tclass=chr_file permissive=1 [ 80.144727][ T5078] vivid-007: ================= START STATUS ================= [ 80.159007][ T29] audit: type=1400 audit(1713869752.416:89): avc: denied { open } for pid=5078 comm="syz-executor124" path="/dev/video37" dev="devtmpfs" ino=966 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:v4l_device_t tclass=chr_file permissive=1 [ 80.167426][ T5078] vivid-007: Boolean: [ 80.190995][ T5078] [ 80.198676][ T5078] ====================================================== [ 80.206239][ T5078] WARNING: possible circular locking dependency detected [ 80.214689][ T5078] 6.9.0-rc5-syzkaller-00007-g4d2008430ce8 #0 Not tainted [ 80.222421][ T5078] ------------------------------------------------------ [ 80.231660][ T5078] syz-executor124/5078 is trying to acquire lock: [ 80.238809][ T5078] ffff8880271406e0 (vivid_ctrls:1606:(hdl_user_gen)->_lock){+.+.}-{3:3}, at: v4l2_ctrl_handler_log_status+0x274/0x600 [ 80.252794][ T5078] [ 80.252794][ T5078] but task is already holding lock: [ 80.262010][ T5078] ffff888027144a30 (vivid_ctrls:1636:(hdl_meta_cap)->_lock){+.+.}-{3:3}, at: v4l2_ctrl_handler_log_status+0xb7/0x600 [ 80.276432][ T5078] [ 80.276432][ T5078] which lock already depends on the new lock. [ 80.276432][ T5078] [ 80.287360][ T5078] [ 80.287360][ T5078] the existing dependency chain (in reverse order) is: [ 80.297088][ T5078] [ 80.297088][ T5078] -> #1 (vivid_ctrls:1636:(hdl_meta_cap)->_lock){+.+.}-{3:3}: [ 80.307985][ T5078] __mutex_lock+0x175/0x9c0 [ 80.313068][ T5078] handler_new_ref+0x7c4/0xc60 [ 80.319155][ T5078] v4l2_ctrl_add_handler+0x22a/0x310 [ 80.325086][ T5078] vivid_create_controls+0x2f6a/0x3910 [ 80.331695][ T5078] vivid_probe+0x3c9a/0x9fe0 [ 80.337108][ T5078] platform_probe+0xff/0x1f0 [ 80.342674][ T5078] really_probe+0x23e/0xa90 [ 80.348205][ T5078] __driver_probe_device+0x1de/0x440 [ 80.354397][ T5078] driver_probe_device+0x4c/0x1b0 [ 80.360060][ T5078] __driver_attach+0x283/0x580 [ 80.365644][ T5078] bus_for_each_dev+0x13c/0x1d0 [ 80.371986][ T5078] bus_add_driver+0x2ed/0x640 [ 80.379143][ T5078] driver_register+0x15c/0x4b0 [ 80.384540][ T5078] vivid_init+0x45/0x80 [ 80.389260][ T5078] do_one_initcall+0x128/0x700 [ 80.395060][ T5078] kernel_init_freeable+0x69d/0xca0 [ 80.401848][ T5078] kernel_init+0x1c/0x2b0 [ 80.407341][ T5078] ret_from_fork+0x45/0x80 [ 80.412395][ T5078] ret_from_fork_asm+0x1a/0x30 [ 80.417702][ T5078] [ 80.417702][ T5078] -> #0 (vivid_ctrls:1606:(hdl_user_gen)->_lock){+.+.}-{3:3}: [ 80.427524][ T5078] __lock_acquire+0x2478/0x3b30 [ 80.433209][ T5078] lock_acquire+0x1b1/0x560 [ 80.438663][ T5078] __mutex_lock+0x175/0x9c0 [ 80.443725][ T5078] v4l2_ctrl_handler_log_status+0x274/0x600 [ 80.450164][ T5078] v4l2_ctrl_log_status+0xef/0x130 [ 80.455815][ T5078] vidioc_log_status+0x60/0xe0 [ 80.461131][ T5078] v4l_log_status+0x9e/0x120 [ 80.466290][ T5078] __video_do_ioctl+0xaf9/0xf00 [ 80.471665][ T5078] video_usercopy+0x4c2/0x1660 [ 80.476986][ T5078] v4l2_ioctl+0x1c0/0x260 [ 80.481840][ T5078] __x64_sys_ioctl+0x193/0x220 [ 80.487127][ T5078] do_syscall_64+0xcf/0x260 [ 80.492152][ T5078] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 80.498607][ T5078] [ 80.498607][ T5078] other info that might help us debug this: [ 80.498607][ T5078] [ 80.508842][ T5078] Possible unsafe locking scenario: [ 80.508842][ T5078] [ 80.516287][ T5078] CPU0 CPU1 [ 80.521673][ T5078] ---- ---- [ 80.527031][ T5078] lock(vivid_ctrls:1636:(hdl_meta_cap)->_lock); [ 80.533469][ T5078] lock(vivid_ctrls:1606:(hdl_user_gen)->_lock); [ 80.542404][ T5078] lock(vivid_ctrls:1636:(hdl_meta_cap)->_lock); [ 80.551467][ T5078] lock(vivid_ctrls:1606:(hdl_user_gen)->_lock); [ 80.558080][ T5078] [ 80.558080][ T5078] *** DEADLOCK *** [ 80.558080][ T5078] [ 80.566316][ T5078] 2 locks held by syz-executor124/5078: [ 80.571858][ T5078] #0: ffff888027145aa8 (&dev->mutex#3){+.+.}-{3:3}, at: __video_do_ioctl+0x4a8/0xf00 [ 80.581472][ T5078] #1: ffff888027144a30 (vivid_ctrls:1636:(hdl_meta_cap)->_lock){+.+.}-{3:3}, at: v4l2_ctrl_handler_log_status+0xb7/0x600 [ 80.594592][ T5078] [ 80.594592][ T5078] stack backtrace: [ 80.600482][ T5078] CPU: 1 PID: 5078 Comm: syz-executor124 Not tainted 6.9.0-rc5-syzkaller-00007-g4d2008430ce8 #0 [ 80.611350][ T5078] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 80.621707][ T5078] Call Trace: [ 80.625710][ T5078] [ 80.629366][ T5078] dump_stack_lvl+0x116/0x1f0 [ 80.634082][ T5078] check_noncircular+0x31a/0x400 [ 80.639134][ T5078] ? __pfx_check_noncircular+0x10/0x10 [ 80.645252][ T5078] ? find_held_lock+0x2d/0x110 [ 80.650050][ T5078] ? lockdep_lock+0xc6/0x200 [ 80.655867][ T5078] ? __pfx_lockdep_lock+0x10/0x10 [ 80.662070][ T5078] ? finish_task_switch.isra.0+0x217/0xcc0 [ 80.668673][ T5078] __lock_acquire+0x2478/0x3b30 [ 80.677802][ T5078] ? __pfx___lock_acquire+0x10/0x10 [ 80.683115][ T5078] lock_acquire+0x1b1/0x560 [ 80.687631][ T5078] ? v4l2_ctrl_handler_log_status+0x274/0x600 [ 80.694836][ T5078] ? __pfx_lock_acquire+0x10/0x10 [ 80.700164][ T5078] ? __pfx___might_resched+0x10/0x10 [ 80.705502][ T5078] ? preempt_schedule_thunk+0x1a/0x30 [ 80.710980][ T5078] __mutex_lock+0x175/0x9c0 [ 80.715595][ T5078] ? v4l2_ctrl_handler_log_status+0x274/0x600 [ 80.721706][ T5078] ? vprintk_emit+0x1ca/0x5a0 [ 80.726390][ T5078] ? v4l2_ctrl_handler_log_status+0x274/0x600 [ 80.732821][ T5078] ? __pfx___mutex_lock+0x10/0x10 [ 80.737989][ T5078] ? _printk+0xc8/0x100 [ 80.742169][ T5078] ? __wake_up_klogd.part.0+0x99/0xf0 [ 80.747568][ T5078] ? vprintk_emit+0x1ca/0x5a0 [ 80.753063][ T5078] ? v4l2_ctrl_handler_log_status+0x274/0x600 [ 80.759420][ T5078] v4l2_ctrl_handler_log_status+0x274/0x600 [ 80.765791][ T5078] v4l2_ctrl_log_status+0xef/0x130 [ 80.771296][ T5078] vidioc_log_status+0x60/0xe0 [ 80.777223][ T5078] v4l_log_status+0x9e/0x120 [ 80.781844][ T5078] __video_do_ioctl+0xaf9/0xf00 [ 80.786724][ T5078] ? __pfx___video_do_ioctl+0x10/0x10 [ 80.792127][ T5078] ? __pfx_do_vfs_ioctl+0x10/0x10 [ 80.797176][ T5078] video_usercopy+0x4c2/0x1660 [ 80.802478][ T5078] ? __pfx___video_do_ioctl+0x10/0x10 [ 80.807862][ T5078] ? __pfx_video_usercopy+0x10/0x10 [ 80.813073][ T5078] ? selinux_file_ioctl+0x180/0x270 [ 80.818329][ T5078] v4l2_ioctl+0x1c0/0x260 [ 80.822679][ T5078] ? __pfx_v4l2_ioctl+0x10/0x10 [ 80.827538][ T5078] __x64_sys_ioctl+0x193/0x220 [ 80.832312][ T5078] do_syscall_64+0xcf/0x260 [ 80.836850][ T5078] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 80.843296][ T5078] RIP: 0033:0x7f0fb33a32a9 [ 80.847709][ T5078] Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 80.868201][ T5078] RSP: 002b:00007fff702f2328 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 80.876795][ T5078] RAX: ffffffffffffffda RBX: 00007fff702f24f8 RCX: 00007f0fb33a32a9 [ 80.885036][ T5078] RDX: 0000000000000000 RSI: 0000000000005646 RDI: 0000000000000003 [ 80.893008][ T5078] RBP: 00007f0fb3416610 R08: 0000000000000000 R09: 00007fff702f24f8 [ 80.900985][ T5078] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 80.908973][ T5078] R13: 00007fff702f24e8 R14: 0000000000000001 R15: 0000000000000001 [ 80.916963][ T5078] [ 80.920240][ T29] audit: type=1400 audit(1713869752.426:90): avc: denied { ioctl } for pid=5078 comm="syz-executor124" path="/dev/video37" dev="devtmpfs" ino=966 ioctlcmd=0x5646 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:v4l_device_t tclass=chr_file permissive=1 [ 80.935439][ T5078] true [ 80.948633][ T5078] vivid-007: Integer 32 Bits: 0 [ 80.953642][ T5078] vivid-007: Integer 64 Bits: 0 [ 80.958992][ T5078] vivid-007: Menu: Menu Item 3 [ 80.963891][ T5078] vivid-007: String: [ 80.968225][ T5078] vivid-007: Bitmask: 0x80002000 [ 80.973216][ T5078] vivid-007: Integer Menu: 5 [ 80.977988][ T5078] vivid-007: U32 1 Element Array: [1] 24 [ 80.984000][ T5078] vivid-007: U16 8x16 Matrix: [8][16] 24 [ 80.989709][ T5078] vivid-007: U8 2x3x4x5 Array: [2][3][4][5] 24 [ 80.995917][ T5078] vivid-007: Area: unknown type 262 [ 81.001768][ T5078] vivid-007: Read-Only Integer 32 Bits: 0 [ 81.009150][ T5078] vivid-007: U32 Dynamic Array: [100] 50 [ 81.014816][ T5078] vivid-007: U8 Pixel Array: [640][368] 128 [ 81.020765][ T5078] vivid-007: S32 2 Element Array: [2] 2 [ 81.026357][ T5078] vivid-007: S64 5 Element Array: [5] 4 [ 81.032061][ T5078] vivid-007: Wrap Sequence Number: false [ 81.037875][ T5078] vivid-007: Wrap Timestamp: None [ 81.042902][ T5078] vivid-007: Percentage of Dropped Buffers: 0 [ 81.049042][ T5078] vivid-007: Generate PTS: true [ 81.054027][ T5078] vivid-007: Generate SCR: true ioctl(3, VIDIOC_LOG_STATUS, 0) = 0 exit_group(0) = ? +++ exited with 0 +++ [ 81.059290][ T5078] tpg source WxH: 640x3