./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2207851261 <...> Warning: Permanently added '10.128.0.224' (ED25519) to the list of known hosts. execve("./syz-executor2207851261", ["./syz-executor2207851261"], 0x7ffc66ac4ce0 /* 10 vars */) = 0 brk(NULL) = 0x5555564a8000 brk(0x5555564a8d40) = 0x5555564a8d40 arch_prctl(ARCH_SET_FS, 0x5555564a83c0) = 0 set_tid_address(0x5555564a8690) = 5069 set_robust_list(0x5555564a86a0, 24) = 0 rseq(0x5555564a8ce0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2207851261", 4096) = 28 getrandom("\xb7\x1f\x57\xb7\x34\x8d\x24\x2b", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555564a8d40 brk(0x5555564c9d40) = 0x5555564c9d40 brk(0x5555564ca000) = 0x5555564ca000 mprotect(0x7f1649880000, 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 unshare(CLONE_NEWPID) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555564a8690) = 5070 ./strace-static-x86_64: Process 5070 attached [pid 5070] set_robust_list(0x5555564a86a0, 24) = 0 [pid 5070] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5070] socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI) = 3 [pid 5070] openat(AT_FDCWD, "/dev/vhci", O_RDWR) = 4 [pid 5070] dup2(4, 202) = 202 [pid 5070] close(4) = 0 [pid 5070] write(202, "\xff\x00", 2) = 2 [pid 5070] read(202, "\xff\x00\x00\x00", 4) = 4 [pid 5070] rt_sigaction(SIGRT_1, {sa_handler=0x7f1649822440, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f1649813ac0}, NULL, 8) = 0 [pid 5070] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5070] mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f1648fbd000 [pid 5070] mprotect(0x7f1648fbe000, 8388608, PROT_READ|PROT_WRITE) = 0 [pid 5070] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5070] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f16497bd990, parent_tid=0x7f16497bd990, exit_signal=0, stack=0x7f1648fbd000, stack_size=0x800300, tls=0x7f16497bd6c0}./strace-static-x86_64: Process 5073 attached => {parent_tid=[2]}, 88) = 2 [pid 5073] rseq(0x7f16497bdfe0, 0x20, 0, 0x53053053 [pid 5070] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5073] <... rseq resumed>) = 0 [pid 5073] set_robust_list(0x7f16497bd9a0, 24 [pid 5070] ioctl(3, HCIDEVUP [pid 5073] <... set_robust_list resumed>) = 0 [pid 5073] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5073] read(202, "\x01\x03\x0c\x00", 1024) = 4 [pid 5073] writev(202, [{iov_base="\x04", iov_len=1}, {iov_base="\x0e\xfc", iov_len=2}, {iov_base="\x01\x03\x0c", iov_len=3}, {iov_base="\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., iov_len=249}], 4) = 255 [pid 5073] read(202, "\x01\x03\x10\x00", 1024) = 4 [pid 5073] writev(202, [{iov_base="\x04", iov_len=1}, {iov_base="\x0e\xfc", iov_len=2}, {iov_base="\x01\x03\x10", iov_len=3}, {iov_base="\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., iov_len=249}], 4) = 255 [pid 5073] read(202, "\x01\x01\x10\x00", 1024) = 4 [pid 5073] writev(202, [{iov_base="\x04", iov_len=1}, {iov_base="\x0e\xfc", iov_len=2}, {iov_base="\x01\x01\x10", iov_len=3}, {iov_base="\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., iov_len=249}], 4) = 255 [pid 5073] read(202, "\x01\x09\x10\x00", 1024) = 4 [pid 5073] writev(202, [{iov_base="\x04", iov_len=1}, {iov_base="\x0e\x0a", iov_len=2}, {iov_base="\x01\x09\x10", iov_len=3}, {iov_base="\x00\xaa\xaa\xaa\xaa\xaa\xaa", iov_len=7}], 4) = 13 [pid 5073] read(202, "\x01\x05\x10\x00", 1024) = 4 [pid 5073] writev(202, [{iov_base="\x04", iov_len=1}, {iov_base="\x0e\x0b", iov_len=2}, {iov_base="\x01\x05\x10", iov_len=3}, {iov_base="\x00\xfd\x03\x60\x04\x00\x06\x00", iov_len=8}], 4) = 14 [pid 5073] read(202, "\x01\x23\x0c\x00", 1024) = 4 [pid 5073] writev(202, [{iov_base="\x04", iov_len=1}, {iov_base="\x0e\xfc", iov_len=2}, {iov_base="\x01\x23\x0c", iov_len=3}, {iov_base="\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., iov_len=249}], 4) = 255 [ 70.837980][ T5072] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 70.848972][ T5072] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 70.867541][ T5072] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [pid 5073] read(202, "\x01\x14\x0c\x00", 1024) = 4 [pid 5073] writev(202, [{iov_base="\x04", iov_len=1}, {iov_base="\x0e\xfc", iov_len=2}, {iov_base="\x01\x14\x0c", iov_len=3}, {iov_base="\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., iov_len=249}], 4) = 255 [pid 5073] read(202, "\x01\x25\x0c\x00", 1024) = 4 [pid 5073] writev(202, [{iov_base="\x04", iov_len=1}, {iov_base="\x0e\xfc", iov_len=2}, {iov_base="\x01\x25\x0c", iov_len=3}, {iov_base="\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., iov_len=249}], 4) = 255 [pid 5073] read(202, "\x01\x38\x0c\x00", 1024) = 4 [ 70.889983][ T5072] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 70.928968][ T5072] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [pid 5073] writev(202, [{iov_base="\x04", iov_len=1}, {iov_base="\x0e\xfc", iov_len=2}, {iov_base="\x01\x38\x0c", iov_len=3}, {iov_base="\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., iov_len=249}], 4) = 255 [pid 5073] read(202, "\x01\x39\x0c\x00", 1024) = 4 [pid 5073] writev(202, [{iov_base="\x04", iov_len=1}, {iov_base="\x0e\xfc", iov_len=2}, {iov_base="\x01\x39\x0c", iov_len=3}, {iov_base="\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., iov_len=249}], 4) = 255 [pid 5073] read(202, "\x01\x16\x0c\x02\x00\x7d", 1024) = 6 [pid 5073] writev(202, [{iov_base="\x04", iov_len=1}, {iov_base="\x0e\xfc", iov_len=2}, {iov_base="\x01\x16\x0c", iov_len=3}, {iov_base="\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., iov_len=249}], 4) = 255 [pid 5073] read(202, [pid 5070] <... ioctl resumed>, 0) = -1 EALREADY (Operation already in progress) [pid 5070] ioctl(3, HCISETSCAN [pid 5073] <... read resumed>"\x01\x1a\x0c\x01\x02", 1024) = 5 [pid 5073] writev(202, [{iov_base="\x04", iov_len=1}, {iov_base="\x0e\x04", iov_len=2}, {iov_base="\x01\x1a\x0c", iov_len=3}, {iov_base="\x00", iov_len=1}], 4) = 7 [pid 5073] rt_sigprocmask(SIG_BLOCK, ~[RT_1], NULL, 8) = 0 [pid 5070] <... ioctl resumed>, 0x7fff793023a4) = 0 [pid 5073] madvise(0x7f1648fbd000, 8372224, MADV_DONTNEED) = 0 [pid 5070] writev(202, [{iov_base="\x04", iov_len=1}, {iov_base="\x04\x0a", iov_len=2}, {iov_base="\xaa\xaa\xaa\xaa\xaa\x10\x00\x00\x00\x01", iov_len=10}], 3 [pid 5073] exit(0 [pid 5070] <... writev resumed>) = 13 [ 70.946746][ T5072] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 [pid 5070] writev(202, [{iov_base="\x04", iov_len=1}, {iov_base="\x03\x0b", iov_len=2}, {iov_base="\x00\xc8\x00\xaa\xaa\xaa\xaa\xaa\x10\x01\x00", iov_len=11}], 3) = 14 [pid 5073] <... exit resumed>) = ? [pid 5070] writev(202, [{iov_base="\x04", iov_len=1}, {iov_base="\v\v", iov_len=2}, {iov_base="\x00\xc8\x00\x00\x00\x00\x00\x00\x00\x00\x00", iov_len=11}], 3 [pid 5073] +++ exited with 0 +++ [pid 5070] <... writev resumed>) = 14 [pid 5070] writev(202, [{iov_base="\x04", iov_len=1}, {iov_base="\x3e\x13", iov_len=2}, {iov_base="\x01\x00\xc9\x00\x01\x00\xaa\xaa\xaa\xaa\xaa\x11\x00\x00\x00\x00\x00\x00\x00", iov_len=19}], 3) = 22 [pid 5070] close(3) = 0 [pid 5070] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5070] setsid() = 1 [pid 5070] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5070] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5070] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5070] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5070] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5070] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5070] unshare(CLONE_NEWNS) = 0 [pid 5070] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5070] unshare(CLONE_NEWIPC) = 0 [pid 5070] unshare(CLONE_NEWCGROUP) = 0 [pid 5070] unshare(CLONE_NEWUTS) = 0 [pid 5070] unshare(CLONE_SYSVSEM) = 0 [pid 5070] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5070] write(3, "16777216", 8) = 8 [pid 5070] close(3) = 0 [pid 5070] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5070] write(3, "536870912", 9) = 9 [pid 5070] close(3) = 0 [pid 5070] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5070] write(3, "1024", 4) = 4 [pid 5070] close(3) = 0 [pid 5070] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5070] write(3, "8192", 4) = 4 [pid 5070] close(3) = 0 [pid 5070] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5070] write(3, "1024", 4) = 4 [pid 5070] close(3) = 0 [pid 5070] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5070] write(3, "1024", 4) = 4 [pid 5070] close(3) = 0 [pid 5070] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5070] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5070] close(3) = 0 [pid 5070] getpid() = 1 [pid 5070] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1<tx_work)){+.+.}-{0:0}, at: __flush_work+0xfa/0xa10 [ 71.434738][ T5070] [ 71.434738][ T5070] but task is already holding lock: [ 71.442080][ T5070] ffff888070e59108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 71.451194][ T5070] [ 71.451194][ T5070] which lock already depends on the new lock. [ 71.451194][ T5070] [ 71.462008][ T5070] [ 71.462008][ T5070] the existing dependency chain (in reverse order) is: [ 71.470998][ T5070] [ 71.470998][ T5070] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 71.478643][ T5070] __mutex_lock+0x175/0x9d0 [ 71.483657][ T5070] hci_dev_do_close+0x26/0x90 [ 71.488834][ T5070] hci_rfkill_set_block+0x1b9/0x200 [ 71.494529][ T5070] rfkill_set_block+0x200/0x550 [ 71.499881][ T5070] rfkill_fop_write+0x2d4/0x570 [ 71.505233][ T5070] vfs_write+0x2a4/0xdf0 [ 71.509975][ T5070] ksys_write+0x1f0/0x250 [ 71.514803][ T5070] do_syscall_64+0x40/0x110 [ 71.519807][ T5070] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 71.526208][ T5070] [ 71.526208][ T5070] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 71.534177][ T5070] __mutex_lock+0x175/0x9d0 [ 71.539198][ T5070] rfkill_register+0x3a/0xb30 [ 71.544380][ T5070] hci_register_dev+0x43a/0xd40 [ 71.549744][ T5070] __vhci_create_device+0x393/0x800 [ 71.555450][ T5070] vhci_write+0x2c7/0x470 [ 71.560286][ T5070] vfs_write+0x64f/0xdf0 [ 71.565026][ T5070] ksys_write+0x12f/0x250 [ 71.569867][ T5070] do_syscall_64+0x40/0x110 [ 71.574871][ T5070] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 71.581270][ T5070] [ 71.581270][ T5070] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 71.589061][ T5070] __mutex_lock+0x175/0x9d0 [ 71.594085][ T5070] vhci_send_frame+0x67/0xa0 [ 71.599180][ T5070] hci_send_frame+0x220/0x470 [ 71.604361][ T5070] hci_tx_work+0x1456/0x1e40 [ 71.609450][ T5070] process_one_work+0x886/0x15d0 [ 71.614891][ T5070] worker_thread+0x8b9/0x1290 [ 71.620075][ T5070] kthread+0x2c6/0x3a0 [ 71.624647][ T5070] ret_from_fork+0x45/0x80 [ 71.629569][ T5070] ret_from_fork_asm+0x11/0x20 [ 71.634839][ T5070] [ 71.634839][ T5070] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 71.644021][ T5070] __lock_acquire+0x2433/0x3b20 [ 71.649379][ T5070] lock_acquire+0x1ae/0x520 [ 71.654388][ T5070] __flush_work+0x103/0xa10 [ 71.659397][ T5070] hci_dev_close_sync+0x22d/0x1160 [ 71.665007][ T5070] hci_dev_do_close+0x2e/0x90 [ 71.670182][ T5070] hci_rfkill_set_block+0x1b9/0x200 [ 71.675892][ T5070] rfkill_set_block+0x200/0x550 [ 71.681246][ T5070] rfkill_fop_write+0x2d4/0x570 [ 71.686603][ T5070] vfs_write+0x2a4/0xdf0 [ 71.691343][ T5070] ksys_write+0x1f0/0x250 [ 71.696168][ T5070] do_syscall_64+0x40/0x110 [ 71.701174][ T5070] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 71.707575][ T5070] [ 71.707575][ T5070] other info that might help us debug this: [ 71.707575][ T5070] [ 71.717781][ T5070] Chain exists of: [ 71.717781][ T5070] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 71.717781][ T5070] [ 71.732718][ T5070] Possible unsafe locking scenario: [ 71.732718][ T5070] [ 71.740142][ T5070] CPU0 CPU1 [ 71.745494][ T5070] ---- ---- [ 71.750836][ T5070] lock(&hdev->req_lock); [ 71.755494][ T5070] lock(rfkill_global_mutex); [ 71.762751][ T5070] lock(&hdev->req_lock); [ 71.769662][ T5070] lock((work_completion)(&hdev->tx_work)); [ 71.775624][ T5070] [ 71.775624][ T5070] *** DEADLOCK *** [ 71.775624][ T5070] [ 71.783741][ T5070] 2 locks held by syz-executor220/5070: [ 71.789260][ T5070] #0: ffffffff8ef2d9e8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x16e/0x570 [ 71.799331][ T5070] #1: ffff888070e59108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 71.808891][ T5070] [ 71.808891][ T5070] stack backtrace: [ 71.814752][ T5070] CPU: 0 PID: 5070 Comm: syz-executor220 Not tainted 6.7.0-rc5-syzkaller #0 [ 71.823399][ T5070] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 [ 71.833453][ T5070] Call Trace: [ 71.836735][ T5070] [ 71.839648][ T5070] dump_stack_lvl+0xd9/0x1b0 [ 71.844229][ T5070] check_noncircular+0x317/0x400 [ 71.849157][ T5070] ? print_circular_bug+0x5c0/0x5c0 [ 71.854358][ T5070] ? is_bpf_text_address+0x94/0x1a0 [ 71.859542][ T5070] ? lockdep_lock+0xc6/0x200 [ 71.864115][ T5070] ? hlock_class+0x130/0x130 [ 71.868689][ T5070] __lock_acquire+0x2433/0x3b20 [ 71.873531][ T5070] ? lockdep_hardirqs_on_prepare+0x420/0x420 [ 71.879509][ T5070] ? save_trace+0x4e/0xb30 [ 71.883910][ T5070] ? _find_first_zero_bit+0x94/0xb0 [ 71.889093][ T5070] lock_acquire+0x1ae/0x520 [ 71.893582][ T5070] ? __flush_work+0xfa/0xa10 [ 71.898155][ T5070] ? lock_sync+0x190/0x190 [ 71.902557][ T5070] ? __flush_work+0xfa/0xa10 [ 71.907130][ T5070] __flush_work+0x103/0xa10 [ 71.911623][ T5070] ? __flush_work+0xfa/0xa10 [ 71.916199][ T5070] ? cancel_delayed_work+0x20/0x20 [ 71.921388][ T5070] hci_dev_close_sync+0x22d/0x1160 [ 71.926482][ T5070] ? find_held_lock+0x2d/0x110 [ 71.931239][ T5070] ? hci_reset_sync+0x50/0x50 [ 71.935896][ T5070] ? reacquire_held_locks+0x4c0/0x4c0 [ 71.941255][ T5070] hci_dev_do_close+0x2e/0x90 [ 71.945914][ T5070] hci_rfkill_set_block+0x1b9/0x200 [ 71.951099][ T5070] ? lockdep_hardirqs_on+0x7d/0x110 [ 71.956286][ T5070] ? hci_power_on+0x670/0x670 [ 71.960945][ T5070] rfkill_set_block+0x200/0x550 [ 71.965779][ T5070] rfkill_fop_write+0x2d4/0x570 [ 71.970613][ T5070] ? rfkill_register+0xb30/0xb30 [ 71.975534][ T5070] ? bpf_lsm_inode_killpriv+0x10/0x10 [ 71.980883][ T5070] ? security_file_permission+0x94/0x100 [ 71.986498][ T5070] vfs_write+0x2a4/0xdf0 [ 71.990748][ T5070] ? rfkill_register+0xb30/0xb30 [ 71.995668][ T5070] ? recalc_sigpending_tsk+0x187/0x1d0 [ 72.001108][ T5070] ? kernel_write+0x6c0/0x6c0 [ 72.005766][ T5070] ? find_held_lock+0x2d/0x110 [ 72.010518][ T5070] ? ptrace_notify+0xf4/0x130 [ 72.015191][ T5070] ? reacquire_held_locks+0x4c0/0x4c0 [ 72.020549][ T5070] ? __fget_light+0x1fc/0x260 [ 72.025207][ T5070] ksys_write+0x1f0/0x250 [ 72.029515][ T5070] ? __ia32_sys_read+0xb0/0xb0 [ 72.034260][ T5070] ? syscall_trace_enter.constprop.0+0xaf/0x1e0 [ 72.040488][ T5070] do_syscall_64+0x40/0x110 [ 72.044976][ T5070] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 72.050855][ T5070] RIP: 0033:0x7f16497fc479 [ 72.055246][ T5070] Code: 48 83 c4 28 c3 e8 e7 18 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 b0 ff ff ff f7 d8 64 89 01 48 [ 72.074830][ T5070] RSP: 002b:00007fff79302388 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 72.083229][ T5070] RAX: ffffffffffffffda RBX: 00007f1649853043 RCX: 00007f16497fc479 [pid 5070] openat(AT_FDCWD, "/dev/rfkill", O_RDWR|O_EXCL|O_NOCTTY|O_TRUNC|O_APPEND|O_SYNC|O_NOFOLLOW|O_CLOEXEC) = 3 [pid 5070] write(3, "\x00\x00\x00\x00\x02\x03\x01\x00", 8) = 8 [pid 5070] exit_group(1) = ? [pid 5070] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5070, si_uid=0, si_status=1, si_utime=0, si_stime=13 /* 0.13 s */} --- exit_group(0) = ? [ 72.091181][ T5070] RDX: 0000000000000008 RSI: 0000000020000180 RDI: 0000000000000003 [ 72.099130][ T5070] RBP: 00007fff793023d0 R08: 000000ff00ff9650 R09: 000000ff00ff9650 [ 72.107080][ T5070] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff793023b8 [ 72.115029][ T5070] R13: 00007f16498805b0 R14: 0000000000000000 R15: 0000000000000001 [ 72.122980][ T5070] +++ exited with 0 +++