./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2883665493 <...> Warning: Permanently added '10.128.0.217' (ED25519) to the list of known hosts. execve("./syz-executor2883665493", ["./syz-executor2883665493"], 0x7ffdbd5078b0 /* 10 vars */) = 0 brk(NULL) = 0x555555a6e000 brk(0x555555a6ed40) = 0x555555a6ed40 arch_prctl(ARCH_SET_FS, 0x555555a6e3c0) = 0 set_tid_address(0x555555a6e690) = 5072 set_robust_list(0x555555a6e6a0, 24) = 0 rseq(0x555555a6ece0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2883665493", 4096) = 28 getrandom("\xf8\xfc\xaa\x89\xeb\x0e\x24\x24", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555555a6ed40 brk(0x555555a8fd40) = 0x555555a8fd40 brk(0x555555a90000) = 0x555555a90000 mprotect(0x7f1eacb39000, 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=0x555555a6e690) = 5073 ./strace-static-x86_64: Process 5073 attached [pid 5073] set_robust_list(0x555555a6e6a0, 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=0x7f1eacadb440, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f1eacaccac0}, 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) = 0x7f1eac276000 [pid 5073] mprotect(0x7f1eac277000, 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=0x7f1eaca76990, parent_tid=0x7f1eaca76990, exit_signal=0, stack=0x7f1eac276000, stack_size=0x800300, tls=0x7f1eaca766c0}./strace-static-x86_64: Process 5076 attached [pid 5076] rseq(0x7f1eaca76fe0, 0x20, 0, 0x53053053 [pid 5073] <... clone3 resumed> => {parent_tid=[2]}, 88) = 2 [pid 5076] <... rseq resumed>) = 0 [pid 5073] rt_sigprocmask(SIG_SETMASK, [], [pid 5076] set_robust_list(0x7f1eaca769a0, 24 [pid 5073] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5076] <... set_robust_list resumed>) = 0 [pid 5073] ioctl(3, HCIDEVUP [pid 5076] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5076] read(202, "\x01\x03\x0c\x00", 1024) = 4 [pid 5076] 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 5076] read(202, "\x01\x03\x10\x00", 1024) = 4 [pid 5076] 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 5076] read(202, "\x01\x01\x10\x00", 1024) = 4 [pid 5076] 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 5076] read(202, "\x01\x09\x10\x00", 1024) = 4 [pid 5076] 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 5076] read(202, "\x01\x05\x10\x00", 1024) = 4 [pid 5076] 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 5076] read(202, "\x01\x23\x0c\x00", 1024) = 4 [ 73.878634][ T5075] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 73.899109][ T5075] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 73.920746][ T5075] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [pid 5076] 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 5076] read(202, "\x01\x14\x0c\x00", 1024) = 4 [pid 5076] 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 5076] read(202, "\x01\x25\x0c\x00", 1024) = 4 [pid 5076] 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 5076] read(202, "\x01\x38\x0c\x00", 1024) = 4 [ 73.954448][ T5075] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 73.994256][ T5075] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [pid 5076] 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 5076] read(202, "\x01\x39\x0c\x00", 1024) = 4 [pid 5076] 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 5076] read(202, "\x01\x16\x0c\x02\x00\x7d", 1024) = 6 [pid 5076] 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 5076] read(202, [pid 5073] <... ioctl resumed>, 0) = -1 EALREADY (Operation already in progress) [pid 5073] ioctl(3, HCISETSCAN [pid 5076] <... read resumed>"\x01\x1a\x0c\x01\x02", 1024) = 5 [pid 5076] 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] <... ioctl resumed>, 0x7fffd85b2804) = 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 5076] rt_sigprocmask(SIG_BLOCK, ~[RT_1], [pid 5073] <... writev resumed>) = 13 [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 [pid 5076] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5073] <... writev resumed>) = 14 [pid 5076] madvise(0x7f1eac276000, 8372224, MADV_DONTNEED [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 [pid 5076] <... madvise resumed>) = 0 [pid 5073] <... writev resumed>) = 22 [pid 5076] exit(0 [pid 5073] futex(0x7f1eaca76990, FUTEX_WAIT_BITSET|FUTEX_CLOCK_REALTIME, 2, NULL, FUTEX_BITSET_MATCH_ANY [pid 5076] <... exit resumed>) = ? [pid 5073] <... futex resumed>) = 0 [pid 5076] +++ exited with 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 [ 74.005554][ T5075] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 [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 [ 74.387936][ T5073] [ 74.387936][ T5073] but task is already holding lock: [ 74.395283][ T5073] ffff8880792b5108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 74.404422][ T5073] [ 74.404422][ T5073] which lock already depends on the new lock. [ 74.404422][ T5073] [ 74.414818][ T5073] [ 74.414818][ T5073] the existing dependency chain (in reverse order) is: [ 74.424092][ T5073] [ 74.424092][ T5073] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 74.431735][ T5073] __mutex_lock+0x175/0x9d0 [ 74.436769][ T5073] hci_dev_do_close+0x26/0x90 [ 74.441965][ T5073] hci_rfkill_set_block+0x1b9/0x200 [ 74.447677][ T5073] rfkill_set_block+0x200/0x550 [ 74.453143][ T5073] rfkill_fop_write+0x2d4/0x570 [ 74.458512][ T5073] vfs_write+0x2a4/0xdf0 [ 74.463269][ T5073] ksys_write+0x1f0/0x250 [ 74.468112][ T5073] do_syscall_64+0x40/0x110 [ 74.473169][ T5073] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 74.479589][ T5073] [ 74.479589][ T5073] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 74.487588][ T5073] __mutex_lock+0x175/0x9d0 [ 74.492623][ T5073] rfkill_register+0x3a/0xb30 [ 74.497818][ T5073] hci_register_dev+0x43a/0xd40 [ 74.503187][ T5073] __vhci_create_device+0x393/0x800 [ 74.508913][ T5073] vhci_write+0x2c7/0x470 [ 74.513762][ T5073] vfs_write+0x64f/0xdf0 [ 74.518516][ T5073] ksys_write+0x12f/0x250 [ 74.523360][ T5073] do_syscall_64+0x40/0x110 [ 74.528380][ T5073] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 74.534816][ T5073] [ 74.534816][ T5073] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 74.542640][ T5073] __mutex_lock+0x175/0x9d0 [ 74.547677][ T5073] vhci_send_frame+0x67/0xa0 [ 74.552797][ T5073] hci_send_frame+0x220/0x470 [ 74.557993][ T5073] hci_tx_work+0x1456/0x1e40 [ 74.563096][ T5073] process_one_work+0x886/0x15d0 [ 74.568553][ T5073] worker_thread+0x8b9/0x1290 [ 74.573748][ T5073] kthread+0x2c6/0x3a0 [ 74.578332][ T5073] ret_from_fork+0x45/0x80 [ 74.583269][ T5073] ret_from_fork_asm+0x11/0x20 [ 74.588565][ T5073] [ 74.588565][ T5073] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 74.597777][ T5073] __lock_acquire+0x2433/0x3b20 [ 74.603162][ T5073] lock_acquire+0x1ae/0x520 [ 74.608191][ T5073] __flush_work+0x103/0xa10 [ 74.613246][ T5073] hci_dev_close_sync+0x22d/0x1160 [ 74.618876][ T5073] hci_dev_do_close+0x2e/0x90 [ 74.624067][ T5073] hci_rfkill_set_block+0x1b9/0x200 [ 74.629778][ T5073] rfkill_set_block+0x200/0x550 [ 74.635150][ T5073] rfkill_fop_write+0x2d4/0x570 [ 74.640521][ T5073] vfs_write+0x2a4/0xdf0 [ 74.645278][ T5073] ksys_write+0x1f0/0x250 [ 74.650119][ T5073] do_syscall_64+0x40/0x110 [ 74.655137][ T5073] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 74.661553][ T5073] [ 74.661553][ T5073] other info that might help us debug this: [ 74.661553][ T5073] [ 74.671764][ T5073] Chain exists of: [ 74.671764][ T5073] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 74.671764][ T5073] [ 74.686701][ T5073] Possible unsafe locking scenario: [ 74.686701][ T5073] [ 74.694138][ T5073] CPU0 CPU1 [ 74.699488][ T5073] ---- ---- [ 74.704839][ T5073] lock(&hdev->req_lock); [ 74.709249][ T5073] lock(rfkill_global_mutex); [ 74.716520][ T5073] lock(&hdev->req_lock); [ 74.723443][ T5073] lock((work_completion)(&hdev->tx_work)); [ 74.729411][ T5073] [ 74.729411][ T5073] *** DEADLOCK *** [ 74.729411][ T5073] [ 74.737536][ T5073] 2 locks held by syz-executor288/5073: [ 74.743065][ T5073] #0: ffffffff8ef2d9e8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x16e/0x570 [ 74.753161][ T5073] #1: ffff8880792b5108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 74.762732][ T5073] [ 74.762732][ T5073] stack backtrace: [ 74.768702][ T5073] CPU: 0 PID: 5073 Comm: syz-executor288 Not tainted 6.7.0-rc5-syzkaller #0 [ 74.777366][ T5073] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 [ 74.787412][ T5073] Call Trace: [ 74.790687][ T5073] [ 74.793610][ T5073] dump_stack_lvl+0xd9/0x1b0 [ 74.798204][ T5073] check_noncircular+0x317/0x400 [ 74.803149][ T5073] ? print_circular_bug+0x5c0/0x5c0 [ 74.808353][ T5073] ? is_bpf_text_address+0x94/0x1a0 [ 74.813551][ T5073] ? lockdep_lock+0xc6/0x200 [ 74.818144][ T5073] ? hlock_class+0x130/0x130 [ 74.822738][ T5073] __lock_acquire+0x2433/0x3b20 [ 74.827601][ T5073] ? lockdep_hardirqs_on_prepare+0x420/0x420 [ 74.833586][ T5073] ? save_trace+0x4e/0xb30 [ 74.838003][ T5073] ? _find_first_zero_bit+0x94/0xb0 [ 74.843208][ T5073] lock_acquire+0x1ae/0x520 [ 74.847714][ T5073] ? __flush_work+0xfa/0xa10 [ 74.852309][ T5073] ? lock_sync+0x190/0x190 [ 74.856730][ T5073] ? __flush_work+0xfa/0xa10 [ 74.861324][ T5073] __flush_work+0x103/0xa10 [ 74.865828][ T5073] ? __flush_work+0xfa/0xa10 [ 74.870419][ T5073] ? cancel_delayed_work+0x20/0x20 [ 74.875556][ T5073] hci_dev_close_sync+0x22d/0x1160 [ 74.880669][ T5073] ? find_held_lock+0x2d/0x110 [ 74.885436][ T5073] ? hci_reset_sync+0x50/0x50 [ 74.890110][ T5073] ? reacquire_held_locks+0x4c0/0x4c0 [ 74.895491][ T5073] hci_dev_do_close+0x2e/0x90 [ 74.900166][ T5073] hci_rfkill_set_block+0x1b9/0x200 [ 74.905362][ T5073] ? lockdep_hardirqs_on+0x7d/0x110 [ 74.910581][ T5073] ? hci_power_on+0x670/0x670 [ 74.915255][ T5073] rfkill_set_block+0x200/0x550 [ 74.920139][ T5073] rfkill_fop_write+0x2d4/0x570 [ 74.925078][ T5073] ? rfkill_register+0xb30/0xb30 [ 74.930014][ T5073] ? bpf_lsm_inode_killpriv+0x10/0x10 [ 74.935397][ T5073] ? security_file_permission+0x94/0x100 [ 74.941032][ T5073] vfs_write+0x2a4/0xdf0 [ 74.945290][ T5073] ? rfkill_register+0xb30/0xb30 [ 74.950225][ T5073] ? recalc_sigpending_tsk+0x187/0x1d0 [ 74.955676][ T5073] ? kernel_write+0x6c0/0x6c0 [ 74.960359][ T5073] ? find_held_lock+0x2d/0x110 [ 74.965132][ T5073] ? ptrace_notify+0xf4/0x130 [ 74.969806][ T5073] ? reacquire_held_locks+0x4c0/0x4c0 [ 74.975184][ T5073] ? __fget_light+0x1fc/0x260 [ 74.979856][ T5073] ksys_write+0x1f0/0x250 [ 74.984178][ T5073] ? __ia32_sys_read+0xb0/0xb0 [ 74.988975][ T5073] ? syscall_trace_enter.constprop.0+0xaf/0x1e0 [ 74.995231][ T5073] do_syscall_64+0x40/0x110 [ 74.999752][ T5073] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 75.005658][ T5073] RIP: 0033:0x7f1eacab5479 [ 75.010068][ 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 [ 75.029667][ T5073] RSP: 002b:00007fffd85b27e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [pid 5073] write(3, "\xfa\xcf\x00\x00\x02\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=7 /* 0.07 s */} --- exit_group(0) = ? +++ exited with 0 +++ [ 75.038072][ T5073] RAX: ffffffffffffffda RBX: 00007f1eacb0c043 RCX: 00007f1eacab5479