./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1260017551 <...> Warning: Permanently added '10.128.0.209' (ED25519) to the list of known hosts. execve("./syz-executor1260017551", ["./syz-executor1260017551"], 0x7ffd97546f70 /* 10 vars */) = 0 brk(NULL) = 0x555556559000 brk(0x555556559d40) = 0x555556559d40 arch_prctl(ARCH_SET_FS, 0x5555565593c0) = 0 set_tid_address(0x555556559690) = 5052 set_robust_list(0x5555565596a0, 24) = 0 rseq(0x555556559ce0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1260017551", 4096) = 28 getrandom("\x25\x64\x44\xce\x97\x12\xb2\x30", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555556559d40 brk(0x55555657ad40) = 0x55555657ad40 brk(0x55555657b000) = 0x55555657b000 mprotect(0x7f829740c000, 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 5053 attached , child_tidptr=0x555556559690) = 5053 [pid 5053] set_robust_list(0x5555565596a0, 24) = 0 [pid 5053] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5053] socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI) = 3 [pid 5053] openat(AT_FDCWD, "/dev/vhci", O_RDWR) = 4 [pid 5053] dup2(4, 202) = 202 [pid 5053] close(4) = 0 [pid 5053] write(202, "\xff\x00", 2) = 2 [pid 5053] read(202, "\xff\x00\x00\x00", 4) = 4 [pid 5053] rt_sigaction(SIGRT_1, {sa_handler=0x7f82973ae440, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f829739fac0}, NULL, 8) = 0 [pid 5053] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5053] mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f8296b49000 [pid 5053] mprotect(0x7f8296b4a000, 8388608, PROT_READ|PROT_WRITE) = 0 [pid 5053] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5053] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f8297349990, parent_tid=0x7f8297349990, exit_signal=0, stack=0x7f8296b49000, stack_size=0x800300, tls=0x7f82973496c0}./strace-static-x86_64: Process 5056 attached [pid 5056] rseq(0x7f8297349fe0, 0x20, 0, 0x53053053 [pid 5053] <... clone3 resumed> => {parent_tid=[2]}, 88) = 2 [pid 5056] <... rseq resumed>) = 0 [pid 5053] rt_sigprocmask(SIG_SETMASK, [], [pid 5056] set_robust_list(0x7f82973499a0, 24 [pid 5053] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5056] <... set_robust_list resumed>) = 0 [pid 5053] ioctl(3, HCIDEVUP [pid 5056] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5056] read(202, "\x01\x03\x0c\x00", 1024) = 4 [pid 5056] 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 5056] read(202, "\x01\x03\x10\x00", 1024) = 4 [pid 5056] 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 5056] read(202, "\x01\x01\x10\x00", 1024) = 4 [pid 5056] 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 5056] read(202, "\x01\x09\x10\x00", 1024) = 4 [pid 5056] 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 5056] read(202, "\x01\x05\x10\x00", 1024) = 4 [pid 5056] 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 5056] read(202, "\x01\x23\x0c\x00", 1024) = 4 [ 87.383488][ T5054] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 87.393457][ T5054] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 87.402433][ T5054] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [pid 5056] 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 [pid 5056] read(202, "\x01\x14\x0c\x00", 1024) = 4 [pid 5056] 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 5056] read(202, "\x01\x25\x0c\x00", 1024) = 4 [ 87.433232][ T5054] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [pid 5056] 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 5056] read(202, "\x01\x38\x0c\x00", 1024) = 4 [pid 5056] 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 5056] read(202, "\x01\x39\x0c\x00", 1024) = 4 [pid 5056] 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 5056] read(202, "\x01\x16\x0c\x02\x00\x7d", 1024) = 6 [pid 5056] 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 5053] <... ioctl resumed>, 0) = -1 EALREADY (Operation already in progress) [pid 5053] ioctl(3, HCISETSCAN [pid 5056] read(202, "\x01\x1a\x0c\x01\x02", 1024) = 5 [pid 5056] 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 5056] rt_sigprocmask(SIG_BLOCK, ~[RT_1], [pid 5053] <... ioctl resumed>, 0x7ffc9ef0d084) = 0 [pid 5056] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5053] 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 5056] madvise(0x7f8296b49000, 8372224, MADV_DONTNEED) = 0 [pid 5056] exit(0) = ? [pid 5053] <... writev resumed>) = 13 [pid 5056] +++ exited with 0 +++ [pid 5053] 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 5053] 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 [ 87.474866][ T5054] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [ 87.483402][ T5054] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 [pid 5053] 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 5053] close(3) = 0 [pid 5053] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5053] setsid() = 1 [pid 5053] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5053] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5053] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5053] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5053] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5053] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5053] unshare(CLONE_NEWNS) = 0 [pid 5053] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5053] unshare(CLONE_NEWIPC) = 0 [pid 5053] unshare(CLONE_NEWCGROUP) = 0 [pid 5053] unshare(CLONE_NEWUTS) = 0 [pid 5053] unshare(CLONE_SYSVSEM) = 0 [pid 5053] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5053] write(3, "16777216", 8) = 8 [pid 5053] close(3) = 0 [pid 5053] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5053] write(3, "536870912", 9) = 9 [pid 5053] close(3) = 0 [pid 5053] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5053] write(3, "1024", 4) = 4 [pid 5053] close(3) = 0 [pid 5053] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5053] write(3, "8192", 4) = 4 [pid 5053] close(3) = 0 [pid 5053] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5053] write(3, "1024", 4) = 4 [pid 5053] close(3) = 0 [pid 5053] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5053] write(3, "1024", 4) = 4 [pid 5053] close(3) = 0 [pid 5053] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5053] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5053] close(3) = 0 [pid 5053] getpid() = 1 [pid 5053] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1<tx_work)){+.+.}-{0:0}, at: __flush_work+0xfa/0xa10 [ 87.924329][ T5053] [ 87.924329][ T5053] but task is already holding lock: [ 87.931889][ T5053] ffff88807df1d0b8 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 87.941195][ T5053] [ 87.941195][ T5053] which lock already depends on the new lock. [ 87.941195][ T5053] [ 87.951625][ T5053] [ 87.951625][ T5053] the existing dependency chain (in reverse order) is: [ 87.960744][ T5053] [ 87.960744][ T5053] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 87.968425][ T5053] __mutex_lock+0x181/0x1340 [ 87.973672][ T5053] hci_dev_do_close+0x26/0x90 [ 87.978900][ T5053] hci_rfkill_set_block+0x1b9/0x200 [ 87.984631][ T5053] rfkill_set_block+0x200/0x550 [ 87.990011][ T5053] rfkill_fop_write+0x2d4/0x570 [ 87.995420][ T5053] vfs_write+0x2a4/0xe40 [ 88.000205][ T5053] ksys_write+0x1f0/0x250 [ 88.005093][ T5053] do_syscall_64+0x38/0xb0 [ 88.010049][ T5053] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 88.016491][ T5053] [ 88.016491][ T5053] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 88.024506][ T5053] __mutex_lock+0x181/0x1340 [ 88.029639][ T5053] rfkill_register+0x3a/0xb30 [ 88.034902][ T5053] hci_register_dev+0x43a/0xd40 [ 88.040309][ T5053] __vhci_create_device+0x393/0x800 [ 88.046217][ T5053] vhci_write+0x2c7/0x470 [ 88.051083][ T5053] vfs_write+0x650/0xe40 [ 88.055902][ T5053] ksys_write+0x12f/0x250 [ 88.060899][ T5053] do_syscall_64+0x38/0xb0 [ 88.065869][ T5053] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 88.072315][ T5053] [ 88.072315][ T5053] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 88.080231][ T5053] __mutex_lock+0x181/0x1340 [ 88.085389][ T5053] vhci_send_frame+0x67/0xa0 [ 88.090541][ T5053] hci_send_frame+0x220/0x470 [ 88.095842][ T5053] hci_tx_work+0x1456/0x1e40 [ 88.100977][ T5053] process_one_work+0x884/0x15c0 [ 88.106465][ T5053] worker_thread+0x8b9/0x1290 [ 88.111684][ T5053] kthread+0x33c/0x440 [ 88.116308][ T5053] ret_from_fork+0x45/0x80 [ 88.121284][ T5053] ret_from_fork_asm+0x11/0x20 [ 88.126590][ T5053] [ 88.126590][ T5053] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 88.135811][ T5053] __lock_acquire+0x2e3d/0x5de0 [ 88.141214][ T5053] lock_acquire+0x1ae/0x510 [ 88.146263][ T5053] __flush_work+0x103/0xa10 [ 88.151298][ T5053] hci_dev_close_sync+0x22d/0x1160 [ 88.156938][ T5053] hci_dev_do_close+0x2e/0x90 [ 88.162140][ T5053] hci_rfkill_set_block+0x1b9/0x200 [ 88.167881][ T5053] rfkill_set_block+0x200/0x550 [ 88.173286][ T5053] rfkill_fop_write+0x2d4/0x570 [ 88.178698][ T5053] vfs_write+0x2a4/0xe40 [ 88.183585][ T5053] ksys_write+0x1f0/0x250 [ 88.188456][ T5053] do_syscall_64+0x38/0xb0 [ 88.193414][ T5053] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 88.199852][ T5053] [ 88.199852][ T5053] other info that might help us debug this: [ 88.199852][ T5053] [ 88.210082][ T5053] Chain exists of: [ 88.210082][ T5053] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 88.210082][ T5053] [ 88.225049][ T5053] Possible unsafe locking scenario: [ 88.225049][ T5053] [ 88.232663][ T5053] CPU0 CPU1 [ 88.238025][ T5053] ---- ---- [ 88.243394][ T5053] lock(&hdev->req_lock); [ 88.247818][ T5053] lock(rfkill_global_mutex); [ 88.255113][ T5053] lock(&hdev->req_lock); [ 88.262321][ T5053] lock((work_completion)(&hdev->tx_work)); [ 88.268326][ T5053] [ 88.268326][ T5053] *** DEADLOCK *** [ 88.268326][ T5053] [ 88.276467][ T5053] 2 locks held by syz-executor126/5053: [ 88.282009][ T5053] #0: ffffffff8ea842a8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x16e/0x570 [ 88.292138][ T5053] #1: ffff88807df1d0b8 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 88.301745][ T5053] [ 88.301745][ T5053] stack backtrace: [ 88.307621][ T5053] CPU: 1 PID: 5053 Comm: syz-executor126 Not tainted 6.6.0-rc2-next-20230921-syzkaller #0 [ 88.317689][ T5053] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 [ 88.328002][ T5053] Call Trace: [ 88.331297][ T5053] [ 88.334416][ T5053] dump_stack_lvl+0xd9/0x1b0 [ 88.339187][ T5053] check_noncircular+0x311/0x3f0 [ 88.344336][ T5053] ? print_circular_bug+0x750/0x750 [ 88.349560][ T5053] ? is_bpf_text_address+0x94/0x1a0 [ 88.354786][ T5053] ? unwind_get_return_address+0x45/0xe0 [ 88.360452][ T5053] ? arch_stack_walk+0x112/0x170 [ 88.365404][ T5053] __lock_acquire+0x2e3d/0x5de0 [ 88.370318][ T5053] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 88.376492][ T5053] ? save_trace+0x4e/0xb30 [ 88.380919][ T5053] ? _find_first_zero_bit+0x94/0xb0 [ 88.386140][ T5053] lock_acquire+0x1ae/0x510 [ 88.390661][ T5053] ? __flush_work+0xfa/0xa10 [ 88.395266][ T5053] ? lock_sync+0x190/0x190 [ 88.399712][ T5053] ? __flush_work+0xfa/0xa10 [ 88.404319][ T5053] __flush_work+0x103/0xa10 [ 88.408835][ T5053] ? __flush_work+0xfa/0xa10 [ 88.413443][ T5053] ? cancel_delayed_work+0x20/0x20 [ 88.418589][ T5053] hci_dev_close_sync+0x22d/0x1160 [ 88.423803][ T5053] ? find_held_lock+0x2d/0x110 [ 88.428588][ T5053] ? hci_reset_sync+0x50/0x50 [ 88.433285][ T5053] ? reacquire_held_locks+0x4b0/0x4b0 [ 88.438682][ T5053] hci_dev_do_close+0x2e/0x90 [ 88.443398][ T5053] hci_rfkill_set_block+0x1b9/0x200 [ 88.448627][ T5053] ? lockdep_hardirqs_on+0x7d/0x100 [ 88.453872][ T5053] ? hci_power_on+0x670/0x670 [ 88.458573][ T5053] rfkill_set_block+0x200/0x550 [ 88.463454][ T5053] rfkill_fop_write+0x2d4/0x570 [ 88.468424][ T5053] ? rfkill_register+0xb30/0xb30 [ 88.473411][ T5053] ? bpf_lsm_inode_removexattr+0x10/0x10 [ 88.479081][ T5053] ? security_file_permission+0x94/0x100 [ 88.484841][ T5053] vfs_write+0x2a4/0xe40 [ 88.489209][ T5053] ? rfkill_register+0xb30/0xb30 [ 88.494264][ T5053] ? kernel_write+0x6c0/0x6c0 [ 88.499004][ T5053] ? ptrace_stop.part.0+0x61a/0x900 [ 88.504315][ T5053] ? find_held_lock+0x2d/0x110 [ 88.509189][ T5053] ? ptrace_notify+0xf4/0x130 [ 88.513966][ T5053] ? reacquire_held_locks+0x4b0/0x4b0 [ 88.519372][ T5053] ? __fget_light+0x1fc/0x260 [ 88.524262][ T5053] ksys_write+0x1f0/0x250 [ 88.528605][ T5053] ? __ia32_sys_read+0xb0/0xb0 [ 88.533388][ T5053] ? lockdep_hardirqs_on+0x7d/0x100 [ 88.539322][ T5053] ? _raw_spin_unlock_irq+0x2e/0x50 [ 88.544752][ T5053] ? ptrace_notify+0xf4/0x130 [ 88.549789][ T5053] do_syscall_64+0x38/0xb0 [ 88.554303][ T5053] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 88.560213][ T5053] RIP: 0033:0x7f8297388479 [ 88.564803][ T5053] 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 [ 88.584676][ T5053] RSP: 002b:00007ffc9ef0d068 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 88.593105][ T5053] RAX: ffffffffffffffda RBX: 00007f82973df043 RCX: 00007f8297388479 [ 88.601077][ T5053] RDX: 0000000000000008 RSI: 0000000020000080 RDI: 0000000000000003 [ 88.609048][ T5053] RBP: 00007ffc9ef0d0b0 R08: 000000ff00ffa650 R09: 000000ff00ffa650 [ 88.617217][ T5053] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc9ef0d098 [pid 5053] write(3, "\x00\x00\x00\x00\x00\x03\x01\x00", 8) = 8 [pid 5053] exit_group(1) = ? [pid 5053] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5053, si_uid=0, si_status=1, si_utime=0, si_stime=13 /* 0.13 s */} --- exit_group(0) = ? +++ exited with 0 +++ [ 88.625190][ T5053] R13: 00007f829740c5b0 R14: 0000000000000000 R15: 0000000000000001 [ 88.633466][ T5053]