./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor128461464 <...> Warning: Permanently added '10.128.0.119' (ED25519) to the list of known hosts. execve("./syz-executor128461464", ["./syz-executor128461464"], 0x7ffd0e9b1190 /* 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-executor128461464", 4096) = 27 getrandom("\x54\xcb\x3f\xf4\x21\x42\x8f\xfa", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555556383d40 brk(0x5555563a4d40) = 0x5555563a4d40 brk(0x5555563a5000) = 0x5555563a5000 mprotect(0x7fc9c5213000, 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=0x555556383690) = 5073 ./strace-static-x86_64: Process 5073 attached [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=0x7fc9c51b5440, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fc9c51a6ac0}, 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) = 0x7fc9c4950000 [pid 5073] mprotect(0x7fc9c4951000, 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=0x7fc9c5150990, parent_tid=0x7fc9c5150990, exit_signal=0, stack=0x7fc9c4950000, stack_size=0x800300, tls=0x7fc9c51506c0}./strace-static-x86_64: Process 5077 attached [pid 5077] rseq(0x7fc9c5150fe0, 0x20, 0, 0x53053053 [pid 5073] <... clone3 resumed> => {parent_tid=[2]}, 88) = 2 [pid 5073] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5073] ioctl(3, HCIDEVUP [pid 5077] <... rseq resumed>) = 0 [pid 5077] set_robust_list(0x7fc9c51509a0, 24) = 0 [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 [ 95.781903][ T5075] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 95.792939][ T5075] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 95.814137][ T5075] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [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 [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 [ 95.878688][ T5075] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 95.908412][ T5075] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [ 95.919928][ T5075] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 [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 [pid 5077] rt_sigprocmask(SIG_BLOCK, ~[RT_1], NULL, 8) = 0 [pid 5073] <... ioctl resumed>, 0x7fff30379714) = 0 [pid 5077] madvise(0x7fc9c4950000, 8372224, MADV_DONTNEED [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 resumed>) = 0 [pid 5077] exit(0 [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 [pid 5077] <... exit resumed>) = ? [pid 5077] +++ exited with 0 +++ [pid 5073] <... writev resumed>) = 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] 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 [ 96.526987][ T5073] [ 96.526987][ T5073] but task is already holding lock: [ 96.534358][ T5073] ffff88806d35d108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 96.543535][ T5073] [ 96.543535][ T5073] which lock already depends on the new lock. [ 96.543535][ T5073] [ 96.553941][ T5073] [ 96.553941][ T5073] the existing dependency chain (in reverse order) is: [ 96.562975][ T5073] [ 96.562975][ T5073] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 96.570731][ T5073] __mutex_lock+0x181/0x1340 [ 96.575859][ T5073] hci_dev_do_close+0x26/0x90 [ 96.581098][ T5073] hci_rfkill_set_block+0x1b9/0x200 [ 96.586846][ T5073] rfkill_set_block+0x200/0x550 [ 96.592249][ T5073] rfkill_fop_write+0x2d4/0x570 [ 96.597653][ T5073] vfs_write+0x2a4/0xdf0 [ 96.602459][ T5073] ksys_write+0x1f0/0x250 [ 96.607339][ T5073] do_syscall_64+0x3f/0x110 [ 96.612408][ T5073] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 96.618844][ T5073] [ 96.618844][ T5073] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 96.626876][ T5073] __mutex_lock+0x181/0x1340 [ 96.632005][ T5073] rfkill_register+0x3a/0xb30 [ 96.637239][ T5073] hci_register_dev+0x43a/0xd40 [ 96.642649][ T5073] __vhci_create_device+0x393/0x800 [ 96.648477][ T5073] vhci_write+0x2c7/0x470 [ 96.653341][ T5073] vfs_write+0x64f/0xdf0 [ 96.658128][ T5073] ksys_write+0x12f/0x250 [ 96.663025][ T5073] do_syscall_64+0x3f/0x110 [ 96.668074][ T5073] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 96.674509][ T5073] [ 96.674509][ T5073] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 96.682363][ T5073] __mutex_lock+0x181/0x1340 [ 96.687491][ T5073] vhci_send_frame+0x67/0xa0 [ 96.692647][ T5073] hci_send_frame+0x220/0x470 [ 96.697864][ T5073] hci_tx_work+0x1456/0x1e40 [ 96.702999][ T5073] process_one_work+0x884/0x15c0 [ 96.708497][ T5073] worker_thread+0x8b9/0x1290 [ 96.713714][ T5073] kthread+0x33c/0x440 [ 96.718314][ T5073] ret_from_fork+0x45/0x80 [ 96.723274][ T5073] ret_from_fork_asm+0x11/0x20 [ 96.728604][ T5073] [ 96.728604][ T5073] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 96.737828][ T5073] __lock_acquire+0x2e3d/0x5de0 [ 96.743238][ T5073] lock_acquire+0x1ae/0x510 [ 96.748309][ T5073] __flush_work+0x103/0xa10 [ 96.753350][ T5073] hci_dev_close_sync+0x22d/0x1160 [ 96.759001][ T5073] hci_dev_do_close+0x2e/0x90 [ 96.764222][ T5073] hci_rfkill_set_block+0x1b9/0x200 [ 96.769957][ T5073] rfkill_set_block+0x200/0x550 [ 96.775358][ T5073] rfkill_fop_write+0x2d4/0x570 [ 96.780754][ T5073] vfs_write+0x2a4/0xdf0 [ 96.785540][ T5073] ksys_write+0x1f0/0x250 [ 96.790414][ T5073] do_syscall_64+0x3f/0x110 [ 96.795466][ T5073] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 96.801898][ T5073] [ 96.801898][ T5073] other info that might help us debug this: [ 96.801898][ T5073] [ 96.812131][ T5073] Chain exists of: [ 96.812131][ T5073] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 96.812131][ T5073] [ 96.827119][ T5073] Possible unsafe locking scenario: [ 96.827119][ T5073] [ 96.834591][ T5073] CPU0 CPU1 [ 96.839967][ T5073] ---- ---- [ 96.845334][ T5073] lock(&hdev->req_lock); [ 96.849799][ T5073] lock(rfkill_global_mutex); [ 96.857103][ T5073] lock(&hdev->req_lock); [ 96.864047][ T5073] lock((work_completion)(&hdev->tx_work)); [ 96.870040][ T5073] [ 96.870040][ T5073] *** DEADLOCK *** [ 96.870040][ T5073] [ 96.878217][ T5073] 2 locks held by syz-executor128/5073: [ 96.883767][ T5073] #0: ffffffff8ef377c8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x16e/0x570 [ 96.893912][ T5073] #1: ffff88806d35d108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 96.903527][ T5073] [ 96.903527][ T5073] stack backtrace: [ 96.909434][ T5073] CPU: 1 PID: 5073 Comm: syz-executor128 Not tainted 6.7.0-rc1-syzkaller #0 [ 96.919079][ T5073] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 96.929148][ T5073] Call Trace: [ 96.932442][ T5073] [ 96.935395][ T5073] dump_stack_lvl+0xd9/0x1b0 [ 96.940019][ T5073] check_noncircular+0x311/0x3f0 [ 96.945007][ T5073] ? print_circular_bug+0x750/0x750 [ 96.950239][ T5073] ? is_bpf_text_address+0x94/0x1a0 [ 96.955459][ T5073] ? unwind_get_return_address+0x45/0xe0 [ 96.961120][ T5073] ? arch_stack_walk+0x112/0x170 [ 96.966071][ T5073] __lock_acquire+0x2e3d/0x5de0 [ 96.970966][ T5073] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 96.976982][ T5073] ? save_trace+0x4e/0xb30 [ 96.981414][ T5073] ? _find_first_zero_bit+0x94/0xb0 [ 96.987985][ T5073] lock_acquire+0x1ae/0x510 [ 96.992518][ T5073] ? __flush_work+0xfa/0xa10 [ 96.997145][ T5073] ? lock_sync+0x190/0x190 [ 97.001593][ T5073] ? __flush_work+0xfa/0xa10 [ 97.006208][ T5073] __flush_work+0x103/0xa10 [ 97.010734][ T5073] ? __flush_work+0xfa/0xa10 [ 97.015346][ T5073] ? cancel_delayed_work+0x20/0x20 [ 97.020543][ T5073] hci_dev_close_sync+0x22d/0x1160 [ 97.025684][ T5073] ? find_held_lock+0x2d/0x110 [ 97.030485][ T5073] ? hci_reset_sync+0x50/0x50 [ 97.035190][ T5073] ? reacquire_held_locks+0x4b0/0x4b0 [ 97.040607][ T5073] hci_dev_do_close+0x2e/0x90 [ 97.045331][ T5073] hci_rfkill_set_block+0x1b9/0x200 [ 97.050566][ T5073] ? lockdep_hardirqs_on+0x7d/0x100 [ 97.055800][ T5073] ? hci_power_on+0x670/0x670 [ 97.060511][ T5073] rfkill_set_block+0x200/0x550 [ 97.065388][ T5073] rfkill_fop_write+0x2d4/0x570 [ 97.070267][ T5073] ? rfkill_register+0xb30/0xb30 [ 97.075233][ T5073] ? bpf_lsm_inode_copy_up+0x10/0x10 [ 97.080554][ T5073] ? security_file_permission+0x94/0x100 [ 97.086213][ T5073] vfs_write+0x2a4/0xdf0 [ 97.090484][ T5073] ? rfkill_register+0xb30/0xb30 [ 97.095451][ T5073] ? kernel_write+0x6c0/0x6c0 [ 97.100152][ T5073] ? ptrace_stop.part.0+0x61a/0x900 [ 97.105365][ T5073] ? find_held_lock+0x2d/0x110 [ 97.110153][ T5073] ? ptrace_notify+0xf4/0x130 [ 97.114866][ T5073] ? reacquire_held_locks+0x4b0/0x4b0 [ 97.120279][ T5073] ? __fget_light+0x1fc/0x260 [ 97.125000][ T5073] ksys_write+0x1f0/0x250 [ 97.129374][ T5073] ? __ia32_sys_read+0xb0/0xb0 [ 97.134180][ T5073] ? lockdep_hardirqs_on+0x7d/0x100 [ 97.139417][ T5073] ? _raw_spin_unlock_irq+0x2e/0x50 [ 97.144645][ T5073] ? ptrace_notify+0xf4/0x130 [ 97.149350][ T5073] do_syscall_64+0x3f/0x110 [ 97.153884][ T5073] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 97.159801][ T5073] RIP: 0033:0x7fc9c518f479 [ 97.164224][ 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 [ 97.183930][ T5073] RSP: 002b:00007fff303796f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 97.192353][ T5073] RAX: ffffffffffffffda RBX: 00007fc9c51e6043 RCX: 00007fc9c518f479 [ 97.200336][ T5073] RDX: 0000000000000008 RSI: 0000000020000080 RDI: 0000000000000003 [ 97.208313][ T5073] RBP: 00007fff30379740 R08: 000000ff00ff4650 R09: 000000ff00ff4650 [ 97.216290][ T5073] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff30379728 [ 97.224268][ T5073] R13: 00007fc9c52135b0 R14: 0000000000000000 R15: 0000000000000001 [pid 5073] write(3, "\x00\x00\x00\x00\x00\x03\x01\x00", 8) = 8 [pid 5073] exit_group(1) = ? [ 97.232439][ T5073] [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=17 /* 0.17 s */} --- exit_group(0) = ? +++ exited with 0 +++