./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3950787321 <...> [ 97.391097][ T27] cfg80211: failed to load regulatory.db Warning: Permanently added '10.128.1.94' (ED25519) to the list of known hosts. execve("./syz-executor3950787321", ["./syz-executor3950787321"], 0x7ffc108ff6c0 /* 10 vars */) = 0 brk(NULL) = 0x555555cf5000 brk(0x555555cf5d40) = 0x555555cf5d40 arch_prctl(ARCH_SET_FS, 0x555555cf53c0) = 0 set_tid_address(0x555555cf5690) = 5075 set_robust_list(0x555555cf56a0, 24) = 0 rseq(0x555555cf5ce0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3950787321", 4096) = 28 getrandom("\x1e\x3b\x75\x5f\x03\x21\xdb\xdb", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555555cf5d40 brk(0x555555d16d40) = 0x555555d16d40 brk(0x555555d17000) = 0x555555d17000 mprotect(0x7f2cbef30000, 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=0x555555cf5690) = 5076 ./strace-static-x86_64: Process 5076 attached [pid 5076] set_robust_list(0x555555cf56a0, 24) = 0 [pid 5076] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5076] socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI) = 3 [pid 5076] openat(AT_FDCWD, "/dev/vhci", O_RDWR) = 4 [pid 5076] dup2(4, 202) = 202 [pid 5076] close(4) = 0 [pid 5076] write(202, "\xff\x00", 2) = 2 [pid 5076] read(202, "\xff\x00\x00\x00", 4) = 4 [pid 5076] rt_sigaction(SIGRT_1, {sa_handler=0x7f2cbeed2440, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f2cbeec3ac0}, NULL, 8) = 0 [pid 5076] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5076] mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f2cbe66d000 [pid 5076] mprotect(0x7f2cbe66e000, 8388608, PROT_READ|PROT_WRITE) = 0 [pid 5076] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5076] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f2cbee6d990, parent_tid=0x7f2cbee6d990, exit_signal=0, stack=0x7f2cbe66d000, stack_size=0x800300, tls=0x7f2cbee6d6c0}./strace-static-x86_64: Process 5078 attached => {parent_tid=[2]}, 88) = 2 [pid 5078] rseq(0x7f2cbee6dfe0, 0x20, 0, 0x53053053) = 0 [pid 5078] set_robust_list(0x7f2cbee6d9a0, 24) = 0 [pid 5078] rt_sigprocmask(SIG_SETMASK, [], [pid 5076] rt_sigprocmask(SIG_SETMASK, [], [pid 5078] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5076] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5078] read(202, [pid 5076] ioctl(3, HCIDEVUP [pid 5078] <... read resumed>"\x01\x03\x0c\x00", 1024) = 4 [pid 5078] 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 5078] read(202, "\x01\x03\x10\x00", 1024) = 4 [pid 5078] 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 5078] read(202, "\x01\x01\x10\x00", 1024) = 4 [pid 5078] 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 5078] read(202, "\x01\x09\x10\x00", 1024) = 4 [pid 5078] 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 5078] read(202, "\x01\x05\x10\x00", 1024) = 4 [pid 5078] 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 5078] read(202, "\x01\x23\x0c\x00", 1024) = 4 [pid 5078] 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 [ 98.485429][ T50] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 98.504983][ T50] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 98.524409][ T50] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [pid 5078] read(202, "\x01\x14\x0c\x00", 1024) = 4 [pid 5078] 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 5078] read(202, "\x01\x25\x0c\x00", 1024) = 4 [pid 5078] 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 5078] read(202, "\x01\x38\x0c\x00", 1024) = 4 [ 98.534956][ T50] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 98.575133][ T50] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [pid 5078] 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 5078] read(202, "\x01\x39\x0c\x00", 1024) = 4 [pid 5078] 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 5078] read(202, "\x01\x16\x0c\x02\x00\x7d", 1024) = 6 [pid 5078] 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 5078] read(202, [pid 5076] <... ioctl resumed>, 0) = -1 EALREADY (Operation already in progress) [ 98.586776][ T50] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 [pid 5076] ioctl(3, HCISETSCAN [pid 5078] <... read resumed>"\x01\x1a\x0c\x01\x02", 1024) = 5 [pid 5078] 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 5078] rt_sigprocmask(SIG_BLOCK, ~[RT_1], NULL, 8) = 0 [pid 5078] madvise(0x7f2cbe66d000, 8372224, MADV_DONTNEED [pid 5076] <... ioctl resumed>, 0x7ffcb45d7a44) = 0 [pid 5078] <... madvise resumed>) = 0 [pid 5078] exit(0) = ? [pid 5078] +++ exited with 0 +++ [pid 5076] 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) = 13 [pid 5076] 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 5076] 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 5076] 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 5076] close(3) = 0 [pid 5076] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5076] setsid() = 1 [pid 5076] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5076] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5076] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5076] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5076] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5076] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5076] unshare(CLONE_NEWNS) = 0 [pid 5076] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5076] unshare(CLONE_NEWIPC) = 0 [pid 5076] unshare(CLONE_NEWCGROUP) = 0 [pid 5076] unshare(CLONE_NEWUTS) = 0 [pid 5076] unshare(CLONE_SYSVSEM) = 0 [pid 5076] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5076] write(3, "16777216", 8) = 8 [pid 5076] close(3) = 0 [pid 5076] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5076] write(3, "536870912", 9) = 9 [pid 5076] close(3) = 0 [pid 5076] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5076] write(3, "1024", 4) = 4 [pid 5076] close(3) = 0 [pid 5076] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5076] write(3, "8192", 4) = 4 [pid 5076] close(3) = 0 [pid 5076] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5076] write(3, "1024", 4) = 4 [pid 5076] close(3) = 0 [pid 5076] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5076] write(3, "1024", 4) = 4 [pid 5076] close(3) = 0 [pid 5076] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5076] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5076] close(3) = 0 [pid 5076] getpid() = 1 [pid 5076] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1<tx_work)){+.+.}-{0:0}, at: __flush_work+0xfa/0xa10 [ 99.166951][ T5076] [ 99.166951][ T5076] but task is already holding lock: [ 99.174347][ T5076] ffff8880749b9108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 99.183566][ T5076] [ 99.183566][ T5076] which lock already depends on the new lock. [ 99.183566][ T5076] [ 99.193978][ T5076] [ 99.193978][ T5076] the existing dependency chain (in reverse order) is: [ 99.202999][ T5076] [ 99.202999][ T5076] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 99.210669][ T5076] __mutex_lock+0x175/0x9d0 [ 99.215712][ T5076] hci_dev_do_close+0x26/0x90 [ 99.220932][ T5076] hci_rfkill_set_block+0x1b9/0x200 [ 99.226692][ T5076] rfkill_set_block+0x200/0x550 [ 99.232092][ T5076] rfkill_fop_write+0x2d4/0x570 [ 99.237491][ T5076] vfs_write+0x2a4/0xdf0 [ 99.242361][ T5076] ksys_write+0x1f0/0x250 [ 99.247226][ T5076] do_syscall_64+0x40/0x110 [ 99.252280][ T5076] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 99.258721][ T5076] [ 99.258721][ T5076] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 99.266737][ T5076] __mutex_lock+0x175/0x9d0 [ 99.271782][ T5076] rfkill_register+0x3a/0xb30 [ 99.277022][ T5076] hci_register_dev+0x43a/0xd40 [ 99.282422][ T5076] __vhci_create_device+0x393/0x800 [ 99.288181][ T5076] vhci_write+0x2c7/0x470 [ 99.293066][ T5076] vfs_write+0x64f/0xdf0 [ 99.297880][ T5076] ksys_write+0x12f/0x250 [ 99.302750][ T5076] do_syscall_64+0x40/0x110 [ 99.307807][ T5076] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 99.314244][ T5076] [ 99.314244][ T5076] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 99.322092][ T5076] __mutex_lock+0x175/0x9d0 [ 99.327135][ T5076] vhci_send_frame+0x67/0xa0 [ 99.332279][ T5076] hci_send_frame+0x220/0x470 [ 99.337495][ T5076] hci_tx_work+0x1456/0x1e40 [ 99.342629][ T5076] process_one_work+0x886/0x15d0 [ 99.348123][ T5076] worker_thread+0x8b9/0x1290 [ 99.353443][ T5076] kthread+0x2c6/0x3a0 [ 99.358067][ T5076] ret_from_fork+0x45/0x80 [ 99.363036][ T5076] ret_from_fork_asm+0x11/0x20 [ 99.368351][ T5076] [ 99.368351][ T5076] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 99.377589][ T5076] __lock_acquire+0x2433/0x3b20 [ 99.383006][ T5076] lock_acquire+0x1ae/0x520 [ 99.388150][ T5076] __flush_work+0x103/0xa10 [ 99.393201][ T5076] hci_dev_close_sync+0x22d/0x1160 [ 99.398863][ T5076] hci_dev_do_close+0x2e/0x90 [ 99.404087][ T5076] hci_rfkill_set_block+0x1b9/0x200 [ 99.409848][ T5076] rfkill_set_block+0x200/0x550 [ 99.415272][ T5076] rfkill_fop_write+0x2d4/0x570 [ 99.420685][ T5076] vfs_write+0x2a4/0xdf0 [ 99.425469][ T5076] ksys_write+0x1f0/0x250 [ 99.430338][ T5076] do_syscall_64+0x40/0x110 [ 99.435390][ T5076] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 99.441829][ T5076] [ 99.441829][ T5076] other info that might help us debug this: [ 99.441829][ T5076] [ 99.452064][ T5076] Chain exists of: [ 99.452064][ T5076] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 99.452064][ T5076] [ 99.467039][ T5076] Possible unsafe locking scenario: [ 99.467039][ T5076] [ 99.474599][ T5076] CPU0 CPU1 [ 99.479986][ T5076] ---- ---- [ 99.485358][ T5076] lock(&hdev->req_lock); [ 99.489794][ T5076] lock(rfkill_global_mutex); [ 99.497091][ T5076] lock(&hdev->req_lock); [ 99.504040][ T5076] lock((work_completion)(&hdev->tx_work)); [ 99.510036][ T5076] [ 99.510036][ T5076] *** DEADLOCK *** [ 99.510036][ T5076] [ 99.518203][ T5076] 2 locks held by syz-executor395/5076: [ 99.523757][ T5076] #0: ffffffff8ef2caa8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x16e/0x570 [ 99.533904][ T5076] #1: ffff8880749b9108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 99.543518][ T5076] [ 99.543518][ T5076] stack backtrace: [ 99.549412][ T5076] CPU: 0 PID: 5076 Comm: syz-executor395 Not tainted 6.7.0-rc6-syzkaller-00010-g2cf4f94d8e86 #0 [ 99.559860][ T5076] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 [ 99.569932][ T5076] Call Trace: [ 99.573230][ T5076] [ 99.576176][ T5076] dump_stack_lvl+0xd9/0x1b0 [ 99.580800][ T5076] check_noncircular+0x317/0x400 [ 99.585774][ T5076] ? print_circular_bug+0x5c0/0x5c0 [ 99.591010][ T5076] ? is_bpf_text_address+0x94/0x1a0 [ 99.596243][ T5076] ? lockdep_lock+0xc6/0x200 [ 99.600865][ T5076] ? hlock_class+0x130/0x130 [ 99.605496][ T5076] __lock_acquire+0x2433/0x3b20 [ 99.610397][ T5076] ? lockdep_hardirqs_on_prepare+0x420/0x420 [ 99.616413][ T5076] ? save_trace+0x4e/0xb30 [ 99.620860][ T5076] ? _find_first_zero_bit+0x94/0xb0 [ 99.626131][ T5076] lock_acquire+0x1ae/0x520 [ 99.630687][ T5076] ? __flush_work+0xfa/0xa10 [ 99.635321][ T5076] ? lock_sync+0x190/0x190 [ 99.639784][ T5076] ? __flush_work+0xfa/0xa10 [ 99.644407][ T5076] __flush_work+0x103/0xa10 [ 99.648941][ T5076] ? __flush_work+0xfa/0xa10 [ 99.653565][ T5076] ? cancel_delayed_work+0x20/0x20 [ 99.658752][ T5076] hci_dev_close_sync+0x22d/0x1160 [ 99.663914][ T5076] ? find_held_lock+0x2d/0x110 [ 99.668730][ T5076] ? hci_reset_sync+0x50/0x50 [ 99.673447][ T5076] ? reacquire_held_locks+0x4c0/0x4c0 [ 99.678865][ T5076] hci_dev_do_close+0x2e/0x90 [ 99.683567][ T5076] hci_rfkill_set_block+0x1b9/0x200 [ 99.688790][ T5076] ? lockdep_hardirqs_on+0x7d/0x110 [ 99.694026][ T5076] ? hci_power_on+0x670/0x670 [ 99.698726][ T5076] rfkill_set_block+0x200/0x550 [ 99.703616][ T5076] rfkill_fop_write+0x2d4/0x570 [ 99.708603][ T5076] ? rfkill_register+0xb30/0xb30 [ 99.713573][ T5076] ? bpf_lsm_inode_remove_acl+0x10/0x10 [ 99.719141][ T5076] ? security_file_permission+0x94/0x100 [ 99.724806][ T5076] vfs_write+0x2a4/0xdf0 [ 99.729071][ T5076] ? rfkill_register+0xb30/0xb30 [ 99.734039][ T5076] ? recalc_sigpending_tsk+0x187/0x1d0 [ 99.739523][ T5076] ? kernel_write+0x6c0/0x6c0 [ 99.744221][ T5076] ? find_held_lock+0x2d/0x110 [ 99.749020][ T5076] ? ptrace_notify+0xf4/0x130 [ 99.753723][ T5076] ? reacquire_held_locks+0x4c0/0x4c0 [ 99.759223][ T5076] ? __fget_light+0x1fc/0x260 [ 99.763922][ T5076] ksys_write+0x1f0/0x250 [ 99.768273][ T5076] ? __ia32_sys_read+0xb0/0xb0 [ 99.773058][ T5076] ? syscall_trace_enter.constprop.0+0xaf/0x1e0 [ 99.779332][ T5076] do_syscall_64+0x40/0x110 [ 99.783869][ T5076] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 99.789786][ T5076] RIP: 0033:0x7f2cbeeac479 [ 99.794225][ T5076] 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 [ 99.813867][ T5076] RSP: 002b:00007ffcb45d7a28 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [pid 5076] write(3, "\x00\x00\x00\x00\x00\x03\x02\x00", 8) = 8 [pid 5076] exit_group(1) = ? [pid 5076] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5076, si_uid=0, si_status=1, si_utime=0, si_stime=17 /* 0.17 s */} --- exit_group(0) = ? [ 99.822302][ T5076] RAX: ffffffffffffffda RBX: 00007f2cbef03043 RCX: 00007f2cbeeac479 [ 99.830295][ T5076] RDX: 0000000000000008 RSI: 0000000020000040 RDI: 0000000000000003 [ 99.838281][ T5076] RBP: 00007ffcb45d7a70 R08: 000000ff00ff6650 R09: 000000ff00ff6650 [ 99.846270][ T5076] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffcb45d7a58 [ 99.854284][ T5076] R13: 00007f2cbef305b0 R14: 0000000000000000 R15: 0000000000000001 [ 99.862295][ T5076] +++ exited with 0 +++