./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor4248241268 <...> Warning: Permanently added '10.128.1.123' (ED25519) to the list of known hosts. execve("./syz-executor4248241268", ["./syz-executor4248241268"], 0x7ffe73a2f850 /* 10 vars */) = 0 brk(NULL) = 0x555555c75000 brk(0x555555c75d40) = 0x555555c75d40 arch_prctl(ARCH_SET_FS, 0x555555c753c0) = 0 set_tid_address(0x555555c75690) = 5073 set_robust_list(0x555555c756a0, 24) = 0 rseq(0x555555c75ce0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor4248241268", 4096) = 28 getrandom("\x89\xd7\x16\xf3\xe1\x71\xed\x0d", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555555c75d40 brk(0x555555c96d40) = 0x555555c96d40 brk(0x555555c97000) = 0x555555c97000 mprotect(0x7f85b8d13000, 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 5074 attached , child_tidptr=0x555555c75690) = 5074 [pid 5074] set_robust_list(0x555555c756a0, 24) = 0 [pid 5074] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5074] socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI) = 3 [pid 5074] openat(AT_FDCWD, "/dev/vhci", O_RDWR) = 4 [pid 5074] dup2(4, 202) = 202 [pid 5074] close(4) = 0 [pid 5074] write(202, "\xff\x00", 2) = 2 [pid 5074] read(202, "\xff\x00\x00\x00", 4) = 4 [pid 5074] rt_sigaction(SIGRT_1, {sa_handler=0x7f85b8cb5440, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f85b8ca6ac0}, NULL, 8) = 0 [pid 5074] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5074] mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f85b8450000 [pid 5074] mprotect(0x7f85b8451000, 8388608, PROT_READ|PROT_WRITE) = 0 [pid 5074] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5074] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f85b8c50990, parent_tid=0x7f85b8c50990, exit_signal=0, stack=0x7f85b8450000, stack_size=0x800300, tls=0x7f85b8c506c0}./strace-static-x86_64: Process 5077 attached => {parent_tid=[2]}, 88) = 2 [pid 5077] rseq(0x7f85b8c50fe0, 0x20, 0, 0x53053053 [pid 5074] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5074] ioctl(3, HCIDEVUP [pid 5077] <... rseq resumed>) = 0 [pid 5077] set_robust_list(0x7f85b8c509a0, 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 [ 91.219658][ T5075] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 91.239081][ T5075] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 91.260356][ T5078] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [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 [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 5074] <... ioctl resumed>, 0) = -1 EALREADY (Operation already in progress) [pid 5074] 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 5077] madvise(0x7f85b8450000, 8372224, MADV_DONTNEED [pid 5074] <... ioctl resumed>, 0x7fff87cb9034) = 0 [pid 5077] <... madvise resumed>) = 0 [pid 5074] 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] exit(0 [pid 5074] <... writev resumed>) = 13 [pid 5077] <... exit resumed>) = ? [pid 5074] 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 [ 91.314637][ T5078] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 91.334185][ T5078] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [ 91.352890][ T5078] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 [pid 5074] 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 5077] +++ exited with 0 +++ [pid 5074] <... writev resumed>) = 14 [pid 5074] 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 5074] close(3) = 0 [pid 5074] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5074] setsid() = 1 [pid 5074] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5074] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5074] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5074] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5074] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5074] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5074] unshare(CLONE_NEWNS) = 0 [pid 5074] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5074] unshare(CLONE_NEWIPC) = 0 [pid 5074] unshare(CLONE_NEWCGROUP) = 0 [pid 5074] unshare(CLONE_NEWUTS) = 0 [pid 5074] unshare(CLONE_SYSVSEM) = 0 [pid 5074] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5074] write(3, "16777216", 8) = 8 [pid 5074] close(3) = 0 [pid 5074] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5074] write(3, "536870912", 9) = 9 [pid 5074] close(3) = 0 [pid 5074] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5074] write(3, "1024", 4) = 4 [pid 5074] close(3) = 0 [pid 5074] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5074] write(3, "8192", 4) = 4 [pid 5074] close(3) = 0 [pid 5074] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5074] write(3, "1024", 4) = 4 [pid 5074] close(3) = 0 [pid 5074] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5074] write(3, "1024", 4) = 4 [pid 5074] close(3) = 0 [pid 5074] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5074] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5074] close(3) = 0 [pid 5074] getpid() = 1 [pid 5074] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1<tx_work)){+.+.}-{0:0}, at: __flush_work+0xfa/0xa10 [ 91.825509][ T5074] [ 91.825509][ T5074] but task is already holding lock: [ 91.832893][ T5074] ffff88807d7d5108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 91.842094][ T5074] [ 91.842094][ T5074] which lock already depends on the new lock. [ 91.842094][ T5074] [ 91.852514][ T5074] [ 91.852514][ T5074] the existing dependency chain (in reverse order) is: [ 91.861526][ T5074] [ 91.861526][ T5074] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 91.869180][ T5074] __mutex_lock+0x175/0x9d0 [ 91.874228][ T5074] hci_dev_do_close+0x26/0x90 [ 91.879438][ T5074] hci_rfkill_set_block+0x1b9/0x200 [ 91.885167][ T5074] rfkill_set_block+0x200/0x550 [ 91.890551][ T5074] rfkill_fop_write+0x2d4/0x570 [ 91.895947][ T5074] vfs_write+0x2a4/0xdf0 [ 91.900720][ T5074] ksys_write+0x1f0/0x250 [ 91.905580][ T5074] do_syscall_64+0x40/0x110 [ 91.910619][ T5074] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 91.917069][ T5074] [ 91.917069][ T5074] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 91.925089][ T5074] __mutex_lock+0x175/0x9d0 [ 91.930133][ T5074] rfkill_register+0x3a/0xb30 [ 91.935343][ T5074] hci_register_dev+0x43a/0xd40 [ 91.940725][ T5074] __vhci_create_device+0x393/0x800 [ 91.946484][ T5074] vhci_write+0x2c7/0x470 [ 91.951380][ T5074] vfs_write+0x64f/0xdf0 [ 91.956157][ T5074] ksys_write+0x12f/0x250 [ 91.961017][ T5074] do_syscall_64+0x40/0x110 [ 91.966052][ T5074] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 91.972503][ T5074] [ 91.972503][ T5074] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 91.980328][ T5074] __mutex_lock+0x175/0x9d0 [ 91.985372][ T5074] vhci_send_frame+0x67/0xa0 [ 91.990500][ T5074] hci_send_frame+0x220/0x470 [ 91.995718][ T5074] hci_tx_work+0x1456/0x1e40 [ 92.000830][ T5074] process_one_work+0x886/0x15d0 [ 92.006304][ T5074] worker_thread+0x8b9/0x1290 [ 92.011519][ T5074] kthread+0x2c6/0x3a0 [ 92.016141][ T5074] ret_from_fork+0x45/0x80 [ 92.021102][ T5074] ret_from_fork_asm+0x11/0x20 [ 92.026402][ T5074] [ 92.026402][ T5074] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 92.035619][ T5074] __lock_acquire+0x2433/0x3b20 [ 92.041019][ T5074] lock_acquire+0x1ae/0x520 [ 92.046066][ T5074] __flush_work+0x103/0xa10 [ 92.051114][ T5074] hci_dev_close_sync+0x22d/0x1160 [ 92.056761][ T5074] hci_dev_do_close+0x2e/0x90 [ 92.061966][ T5074] hci_rfkill_set_block+0x1b9/0x200 [ 92.067695][ T5074] rfkill_set_block+0x200/0x550 [ 92.073099][ T5074] rfkill_fop_write+0x2d4/0x570 [ 92.078510][ T5074] vfs_write+0x2a4/0xdf0 [ 92.083277][ T5074] ksys_write+0x1f0/0x250 [ 92.088135][ T5074] do_syscall_64+0x40/0x110 [ 92.093260][ T5074] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 92.099704][ T5074] [ 92.099704][ T5074] other info that might help us debug this: [ 92.099704][ T5074] [ 92.109943][ T5074] Chain exists of: [ 92.109943][ T5074] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 92.109943][ T5074] [ 92.124912][ T5074] Possible unsafe locking scenario: [ 92.124912][ T5074] [ 92.132356][ T5074] CPU0 CPU1 [ 92.137731][ T5074] ---- ---- [ 92.143094][ T5074] lock(&hdev->req_lock); [ 92.147518][ T5074] lock(rfkill_global_mutex); [ 92.154824][ T5074] lock(&hdev->req_lock); [ 92.161787][ T5074] lock((work_completion)(&hdev->tx_work)); [ 92.167770][ T5074] [ 92.167770][ T5074] *** DEADLOCK *** [ 92.167770][ T5074] [ 92.175906][ T5074] 2 locks held by syz-executor424/5074: [ 92.181449][ T5074] #0: ffffffff8ef2d1e8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x16e/0x570 [ 92.191586][ T5074] #1: ffff88807d7d5108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 92.201187][ T5074] [ 92.201187][ T5074] stack backtrace: [ 92.207074][ T5074] CPU: 0 PID: 5074 Comm: syz-executor424 Not tainted 6.7.0-rc4-syzkaller-00009-gbee0e7762ad2 #0 [ 92.217491][ T5074] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 [ 92.227547][ T5074] Call Trace: [ 92.230825][ T5074] [ 92.233763][ T5074] dump_stack_lvl+0xd9/0x1b0 [ 92.238367][ T5074] check_noncircular+0x317/0x400 [ 92.243336][ T5074] ? print_circular_bug+0x5c0/0x5c0 [ 92.248553][ T5074] ? is_bpf_text_address+0x94/0x1a0 [ 92.253779][ T5074] ? lockdep_lock+0xc6/0x200 [ 92.258385][ T5074] ? hlock_class+0x130/0x130 [ 92.263087][ T5074] __lock_acquire+0x2433/0x3b20 [ 92.267971][ T5074] ? lockdep_hardirqs_on_prepare+0x420/0x420 [ 92.273982][ T5074] ? save_trace+0x4e/0xb30 [ 92.278421][ T5074] ? _find_first_zero_bit+0x94/0xb0 [ 92.283646][ T5074] lock_acquire+0x1ae/0x520 [ 92.288168][ T5074] ? __flush_work+0xfa/0xa10 [ 92.292774][ T5074] ? lock_sync+0x190/0x190 [ 92.297228][ T5074] ? __flush_work+0xfa/0xa10 [ 92.301835][ T5074] __flush_work+0x103/0xa10 [ 92.306351][ T5074] ? __flush_work+0xfa/0xa10 [ 92.310956][ T5074] ? cancel_delayed_work+0x20/0x20 [ 92.316121][ T5074] hci_dev_close_sync+0x22d/0x1160 [ 92.321255][ T5074] ? find_held_lock+0x2d/0x110 [ 92.326037][ T5074] ? hci_reset_sync+0x50/0x50 [ 92.330726][ T5074] ? reacquire_held_locks+0x4c0/0x4c0 [ 92.336138][ T5074] hci_dev_do_close+0x2e/0x90 [ 92.340832][ T5074] hci_rfkill_set_block+0x1b9/0x200 [ 92.346043][ T5074] ? lockdep_hardirqs_on+0x7d/0x110 [ 92.351264][ T5074] ? hci_power_on+0x670/0x670 [ 92.355943][ T5074] rfkill_set_block+0x200/0x550 [ 92.360812][ T5074] rfkill_fop_write+0x2d4/0x570 [ 92.365680][ T5074] ? rfkill_register+0xb30/0xb30 [ 92.370632][ T5074] ? bpf_lsm_inode_listsecurity+0x10/0x10 [ 92.376370][ T5074] ? security_file_permission+0x94/0x100 [ 92.382017][ T5074] vfs_write+0x2a4/0xdf0 [ 92.386286][ T5074] ? rfkill_register+0xb30/0xb30 [ 92.391238][ T5074] ? recalc_sigpending_tsk+0x187/0x1d0 [ 92.396702][ T5074] ? kernel_write+0x6c0/0x6c0 [ 92.401380][ T5074] ? find_held_lock+0x2d/0x110 [ 92.406156][ T5074] ? ptrace_notify+0xf4/0x130 [ 92.410853][ T5074] ? reacquire_held_locks+0x4c0/0x4c0 [ 92.416250][ T5074] ? __fget_light+0x1fc/0x260 [ 92.420931][ T5074] ksys_write+0x1f0/0x250 [ 92.425267][ T5074] ? __ia32_sys_read+0xb0/0xb0 [ 92.430041][ T5074] ? syscall_trace_enter.constprop.0+0xaf/0x1e0 [ 92.436299][ T5074] do_syscall_64+0x40/0x110 [ 92.440821][ T5074] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 92.446742][ T5074] RIP: 0033:0x7f85b8c8f479 [ 92.451167][ T5074] 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 [ 92.470799][ T5074] RSP: 002b:00007fff87cb9018 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 92.479224][ T5074] RAX: ffffffffffffffda RBX: 00007f85b8ce6043 RCX: 00007f85b8c8f479 [ 92.487206][ T5074] RDX: 0000000000000008 RSI: 0000000020000040 RDI: 0000000000000003 [ 92.495193][ T5074] RBP: 00007fff87cb9060 R08: 000000ff00ff6650 R09: 000000ff00ff6650 [ 92.503174][ T5074] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff87cb9048 [ 92.511149][ T5074] R13: 00007f85b8d135b0 R14: 0000000000000000 R15: 0000000000000001 [ 92.519134][ T5074] [pid 5074] write(3, "\x00\x00\x00\x00\x00\x03\x01\x00", 8) = 8 [pid 5074] exit_group(1) = ? [pid 5074] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5074, si_uid=0, si_status=1, si_utime=0, si_stime=11 /* 0.11 s */} --- exit_group(0) = ? +++ exited with 0 +++