./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3812921788 <...> Warning: Permanently added '10.128.0.79' (ED25519) to the list of known hosts. execve("./syz-executor3812921788", ["./syz-executor3812921788"], 0x7ffcc9cc2720 /* 10 vars */) = 0 brk(NULL) = 0x555556383000 brk(0x555556383d40) = 0x555556383d40 arch_prctl(ARCH_SET_FS, 0x5555563833c0) = 0 set_tid_address(0x555556383690) = 5072 set_robust_list(0x5555563836a0, 24) = 0 rseq(0x555556383ce0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3812921788", 4096) = 28 getrandom("\x63\x2e\x91\x49\x62\xd7\x24\x32", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555556383d40 brk(0x5555563a4d40) = 0x5555563a4d40 brk(0x5555563a5000) = 0x5555563a5000 mprotect(0x7f3d8376d000, 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./strace-static-x86_64: Process 5073 attached , child_tidptr=0x555556383690) = 5073 [pid 5073] set_robust_list(0x5555563836a0, 24) = 0 [pid 5073] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5073] socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI) = 3 [pid 5073] openat(AT_FDCWD, "/dev/vhci", O_RDWR) = 4 [pid 5073] dup2(4, 202) = 202 [pid 5073] close(4) = 0 [pid 5073] write(202, "\xff\x00", 2) = 2 [pid 5073] read(202, "\xff\x00\x00\x00", 4) = 4 [pid 5073] rt_sigaction(SIGRT_1, {sa_handler=0x7f3d8370f440, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f3d83700ac0}, NULL, 8) = 0 [pid 5073] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5073] mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f3d82eaa000 [pid 5073] mprotect(0x7f3d82eab000, 8388608, PROT_READ|PROT_WRITE) = 0 [pid 5073] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5073] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f3d836aa990, parent_tid=0x7f3d836aa990, exit_signal=0, stack=0x7f3d82eaa000, stack_size=0x800300, tls=0x7f3d836aa6c0}./strace-static-x86_64: Process 5077 attached [pid 5077] rseq(0x7f3d836aafe0, 0x20, 0, 0x53053053 [pid 5073] <... clone3 resumed> => {parent_tid=[2]}, 88) = 2 [pid 5077] <... rseq resumed>) = 0 [pid 5073] rt_sigprocmask(SIG_SETMASK, [], [pid 5077] set_robust_list(0x7f3d836aa9a0, 24 [pid 5073] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5077] <... set_robust_list resumed>) = 0 [pid 5073] ioctl(3, HCIDEVUP [pid 5077] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5077] read(202, "\x01\x03\x0c\x00", 1024) = 4 [pid 5077] 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 5077] read(202, "\x01\x03\x10\x00", 1024) = 4 [pid 5077] 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 5077] read(202, "\x01\x01\x10\x00", 1024) = 4 [pid 5077] 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 5077] read(202, "\x01\x09\x10\x00", 1024) = 4 [pid 5077] 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 5077] read(202, "\x01\x05\x10\x00", 1024) = 4 [pid 5077] 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 5077] read(202, "\x01\x23\x0c\x00", 1024) = 4 [pid 5077] 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 [ 92.693612][ T5075] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 92.702136][ T5075] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 92.713688][ T5075] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [pid 5077] read(202, "\x01\x14\x0c\x00", 1024) = 4 [pid 5077] 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 5077] read(202, "\x01\x25\x0c\x00", 1024) = 4 [pid 5077] 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 5077] read(202, "\x01\x38\x0c\x00", 1024) = 4 [pid 5077] 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 5077] read(202, "\x01\x39\x0c\x00", 1024) = 4 [pid 5077] 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 5077] read(202, "\x01\x16\x0c\x02\x00\x7d", 1024) = 6 [pid 5077] 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 5077] read(202, [pid 5073] <... ioctl resumed>, 0) = -1 EALREADY (Operation already in progress) [pid 5073] ioctl(3, HCISETSCAN [pid 5077] <... read resumed>"\x01\x1a\x0c\x01\x02", 1024) = 5 [pid 5077] 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 [ 92.758267][ T5075] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 92.778733][ T5075] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [ 92.786961][ T5075] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 [pid 5077] rt_sigprocmask(SIG_BLOCK, ~[RT_1], [pid 5073] <... ioctl resumed>, 0x7ffc1779c224) = 0 [pid 5077] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5073] 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 5077] madvise(0x7f3d82eaa000, 8372224, MADV_DONTNEED [pid 5073] <... writev resumed>) = 13 [pid 5077] <... madvise resumed>) = 0 [pid 5073] 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] 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) = 14 [pid 5073] 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 5073] futex(0x7f3d836aa990, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 2, NULL, FUTEX_BITSET_MATCH_ANY [pid 5077] exit(0) = ? [pid 5077] +++ exited with 0 +++ [pid 5073] <... futex resumed>) = 0 [pid 5073] close(3) = 0 [pid 5073] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5073] setsid() = 1 [pid 5073] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5073] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5073] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5073] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5073] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5073] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5073] unshare(CLONE_NEWNS) = 0 [pid 5073] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5073] unshare(CLONE_NEWIPC) = 0 [pid 5073] unshare(CLONE_NEWCGROUP) = 0 [pid 5073] unshare(CLONE_NEWUTS) = 0 [pid 5073] unshare(CLONE_SYSVSEM) = 0 [pid 5073] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5073] write(3, "16777216", 8) = 8 [pid 5073] close(3) = 0 [pid 5073] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5073] write(3, "536870912", 9) = 9 [pid 5073] close(3) = 0 [pid 5073] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5073] write(3, "1024", 4) = 4 [pid 5073] close(3) = 0 [pid 5073] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5073] write(3, "8192", 4) = 4 [pid 5073] close(3) = 0 [pid 5073] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5073] write(3, "1024", 4) = 4 [pid 5073] close(3) = 0 [pid 5073] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5073] write(3, "1024", 4) = 4 [pid 5073] close(3) = 0 [pid 5073] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5073] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5073] close(3) = 0 [pid 5073] getpid() = 1 [pid 5073] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1<tx_work)){+.+.}-{0:0}, at: __flush_work+0xfa/0xa10 [ 93.312358][ T5073] [ 93.312358][ T5073] but task is already holding lock: [ 93.319736][ T5073] ffff888074685108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 93.328947][ T5073] [ 93.328947][ T5073] which lock already depends on the new lock. [ 93.328947][ T5073] [ 93.339363][ T5073] [ 93.339363][ T5073] the existing dependency chain (in reverse order) is: [ 93.348393][ T5073] [ 93.348393][ T5073] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 93.356076][ T5073] __mutex_lock+0x175/0x9d0 [ 93.361136][ T5073] hci_dev_do_close+0x26/0x90 [ 93.366455][ T5073] hci_rfkill_set_block+0x1b9/0x200 [ 93.372216][ T5073] rfkill_set_block+0x200/0x550 [ 93.377744][ T5073] rfkill_fop_write+0x2d4/0x570 [ 93.383165][ T5073] vfs_write+0x2a4/0xdf0 [ 93.387962][ T5073] ksys_write+0x1f0/0x250 [ 93.392846][ T5073] do_syscall_64+0x40/0x110 [ 93.397915][ T5073] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 93.404373][ T5073] [ 93.404373][ T5073] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 93.412409][ T5073] __mutex_lock+0x175/0x9d0 [ 93.417465][ T5073] rfkill_register+0x3a/0xb30 [ 93.422718][ T5073] hci_register_dev+0x43a/0xd40 [ 93.428129][ T5073] __vhci_create_device+0x393/0x800 [ 93.433898][ T5073] vhci_write+0x2c7/0x470 [ 93.438795][ T5073] vfs_write+0x64f/0xdf0 [ 93.443589][ T5073] ksys_write+0x12f/0x250 [ 93.448478][ T5073] do_syscall_64+0x40/0x110 [ 93.453556][ T5073] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 93.460011][ T5073] [ 93.460011][ T5073] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 93.467883][ T5073] __mutex_lock+0x175/0x9d0 [ 93.472947][ T5073] vhci_send_frame+0x67/0xa0 [ 93.478127][ T5073] hci_send_frame+0x220/0x470 [ 93.483363][ T5073] hci_tx_work+0x1456/0x1e40 [ 93.488513][ T5073] process_one_work+0x886/0x15d0 [ 93.494021][ T5073] worker_thread+0x8b9/0x1290 [ 93.499269][ T5073] kthread+0x2c6/0x3a0 [ 93.503900][ T5073] ret_from_fork+0x45/0x80 [ 93.508899][ T5073] ret_from_fork_asm+0x11/0x20 [ 93.514235][ T5073] [ 93.514235][ T5073] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 93.523508][ T5073] __lock_acquire+0x2433/0x3b20 [ 93.528930][ T5073] lock_acquire+0x1ae/0x520 [ 93.534017][ T5073] __flush_work+0x103/0xa10 [ 93.539098][ T5073] hci_dev_close_sync+0x22d/0x1160 [ 93.544781][ T5073] hci_dev_do_close+0x2e/0x90 [ 93.550020][ T5073] hci_rfkill_set_block+0x1b9/0x200 [ 93.555788][ T5073] rfkill_set_block+0x200/0x550 [ 93.561208][ T5073] rfkill_fop_write+0x2d4/0x570 [ 93.566623][ T5073] vfs_write+0x2a4/0xdf0 [ 93.571421][ T5073] ksys_write+0x1f0/0x250 [ 93.576349][ T5073] do_syscall_64+0x40/0x110 [ 93.581424][ T5073] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 93.587880][ T5073] [ 93.587880][ T5073] other info that might help us debug this: [ 93.587880][ T5073] [ 93.598136][ T5073] Chain exists of: [ 93.598136][ T5073] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 93.598136][ T5073] [ 93.613145][ T5073] Possible unsafe locking scenario: [ 93.613145][ T5073] [ 93.620628][ T5073] CPU0 CPU1 [ 93.626065][ T5073] ---- ---- [ 93.631454][ T5073] lock(&hdev->req_lock); [ 93.635909][ T5073] lock(rfkill_global_mutex); [ 93.643229][ T5073] lock(&hdev->req_lock); [ 93.650202][ T5073] lock((work_completion)(&hdev->tx_work)); [ 93.656222][ T5073] [ 93.656222][ T5073] *** DEADLOCK *** [ 93.656222][ T5073] [ 93.664389][ T5073] 2 locks held by syz-executor381/5073: [ 93.669967][ T5073] #0: ffffffff8ef2ca28 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x16e/0x570 [ 93.680150][ T5073] #1: ffff888074685108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 93.689811][ T5073] [ 93.689811][ T5073] stack backtrace: [ 93.695724][ T5073] CPU: 1 PID: 5073 Comm: syz-executor381 Not tainted 6.7.0-rc6-syzkaller #0 [ 93.704436][ T5073] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 [ 93.714609][ T5073] Call Trace: [ 93.717914][ T5073] [ 93.720871][ T5073] dump_stack_lvl+0xd9/0x1b0 [ 93.725521][ T5073] check_noncircular+0x317/0x400 [ 93.730527][ T5073] ? print_circular_bug+0x5c0/0x5c0 [ 93.735801][ T5073] ? is_bpf_text_address+0x94/0x1a0 [ 93.741059][ T5073] ? lockdep_lock+0xc6/0x200 [ 93.745721][ T5073] ? hlock_class+0x130/0x130 [ 93.750374][ T5073] __lock_acquire+0x2433/0x3b20 [ 93.755383][ T5073] ? lockdep_hardirqs_on_prepare+0x420/0x420 [ 93.761427][ T5073] ? save_trace+0x4e/0xb30 [ 93.765898][ T5073] ? _find_first_zero_bit+0x94/0xb0 [ 93.771175][ T5073] lock_acquire+0x1ae/0x520 [ 93.775745][ T5073] ? __flush_work+0xfa/0xa10 [ 93.780398][ T5073] ? lock_sync+0x190/0x190 [ 93.784893][ T5073] ? __flush_work+0xfa/0xa10 [ 93.789564][ T5073] __flush_work+0x103/0xa10 [ 93.794120][ T5073] ? __flush_work+0xfa/0xa10 [ 93.798770][ T5073] ? cancel_delayed_work+0x20/0x20 [ 93.803969][ T5073] hci_dev_close_sync+0x22d/0x1160 [ 93.809129][ T5073] ? find_held_lock+0x2d/0x110 [ 93.813954][ T5073] ? hci_reset_sync+0x50/0x50 [ 93.818688][ T5073] ? reacquire_held_locks+0x4c0/0x4c0 [ 93.824141][ T5073] hci_dev_do_close+0x2e/0x90 [ 93.828863][ T5073] hci_rfkill_set_block+0x1b9/0x200 [ 93.834100][ T5073] ? lockdep_hardirqs_on+0x7d/0x110 [ 93.839350][ T5073] ? hci_power_on+0x670/0x670 [ 93.844060][ T5073] rfkill_set_block+0x200/0x550 [ 93.848965][ T5073] rfkill_fop_write+0x2d4/0x570 [ 93.853951][ T5073] ? rfkill_register+0xb30/0xb30 [ 93.858935][ T5073] ? bpf_lsm_inode_remove_acl+0x10/0x10 [ 93.864536][ T5073] ? security_file_permission+0x94/0x100 [ 93.870222][ T5073] vfs_write+0x2a4/0xdf0 [ 93.874517][ T5073] ? rfkill_register+0xb30/0xb30 [ 93.879503][ T5073] ? recalc_sigpending_tsk+0x187/0x1d0 [ 93.885007][ T5073] ? kernel_write+0x6c0/0x6c0 [ 93.889729][ T5073] ? find_held_lock+0x2d/0x110 [ 93.894547][ T5073] ? ptrace_notify+0xf4/0x130 [ 93.899261][ T5073] ? reacquire_held_locks+0x4c0/0x4c0 [ 93.904694][ T5073] ? __fget_light+0x1fc/0x260 [ 93.909430][ T5073] ksys_write+0x1f0/0x250 [ 93.913826][ T5073] ? __ia32_sys_read+0xb0/0xb0 [ 93.918685][ T5073] ? syscall_trace_enter.constprop.0+0xaf/0x1e0 [ 93.925156][ T5073] do_syscall_64+0x40/0x110 [ 93.929715][ T5073] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 93.935757][ T5073] RIP: 0033:0x7f3d836e9479 [ 93.940207][ T5073] 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 [ 93.959852][ T5073] RSP: 002b:00007ffc1779c208 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 93.968300][ T5073] RAX: ffffffffffffffda RBX: 00007f3d83740043 RCX: 00007f3d836e9479 [ 93.976308][ T5073] RDX: 0000000000000008 RSI: 0000000020000180 RDI: 0000000000000003 [ 93.984307][ T5073] RBP: 00007ffc1779c250 R08: 000000ff00ff4650 R09: 000000ff00ff4650 [ 93.992315][ T5073] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc1779c238 [ 94.000323][ T5073] R13: 00007f3d8376d5b0 R14: 0000000000000000 R15: 0000000000000001 [ 94.008337][ T5073] [pid 5073] write(3, "\x00\x00\x00\x00\x00\x03\x01\x00", 8) = 8 [pid 5073] exit_group(1) = ? [pid 5073] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5073, si_uid=0, si_status=1, si_utime=0, si_stime=18 /* 0.18 s */} --- exit_group(0) = ? +++ exited with 0 +++