./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor32176982 <...> Warning: Permanently added '10.128.0.205' (ED25519) to the list of known hosts. execve("./syz-executor32176982", ["./syz-executor32176982"], 0x7ffc57e94fa0 /* 10 vars */) = 0 brk(NULL) = 0x55555725a000 brk(0x55555725ad40) = 0x55555725ad40 arch_prctl(ARCH_SET_FS, 0x55555725a3c0) = 0 set_tid_address(0x55555725a690) = 5078 set_robust_list(0x55555725a6a0, 24) = 0 rseq(0x55555725ace0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor32176982", 4096) = 26 getrandom("\x9e\xc3\x05\x06\x3e\x92\xc8\x7f", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555725ad40 brk(0x55555727bd40) = 0x55555727bd40 brk(0x55555727c000) = 0x55555727c000 mprotect(0x7f1abf56b000, 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=0x55555725a690) = 5079 ./strace-static-x86_64: Process 5079 attached [pid 5079] set_robust_list(0x55555725a6a0, 24) = 0 [pid 5079] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5079] socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI) = 3 [pid 5079] openat(AT_FDCWD, "/dev/vhci", O_RDWR) = 4 [pid 5079] dup2(4, 202) = 202 [pid 5079] close(4) = 0 [pid 5079] write(202, "\xff\x00", 2) = 2 [pid 5079] read(202, "\xff\x00\x00\x00", 4) = 4 [pid 5079] rt_sigaction(SIGRT_1, {sa_handler=0x7f1abf50d440, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f1abf4feac0}, NULL, 8) = 0 [pid 5079] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5079] mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f1abeca8000 [pid 5079] mprotect(0x7f1abeca9000, 8388608, PROT_READ|PROT_WRITE) = 0 [pid 5079] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5079] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f1abf4a8990, parent_tid=0x7f1abf4a8990, exit_signal=0, stack=0x7f1abeca8000, stack_size=0x800300, tls=0x7f1abf4a86c0}./strace-static-x86_64: Process 5082 attached [pid 5082] rseq(0x7f1abf4a8fe0, 0x20, 0, 0x53053053 [pid 5079] <... clone3 resumed> => {parent_tid=[2]}, 88) = 2 [pid 5082] <... rseq resumed>) = 0 [pid 5079] rt_sigprocmask(SIG_SETMASK, [], [pid 5082] set_robust_list(0x7f1abf4a89a0, 24 [pid 5079] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5082] <... set_robust_list resumed>) = 0 [pid 5079] ioctl(3, HCIDEVUP [pid 5082] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5082] read(202, "\x01\x03\x0c\x00", 1024) = 4 [pid 5082] 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 5082] read(202, "\x01\x03\x10\x00", 1024) = 4 [pid 5082] 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 5082] read(202, "\x01\x01\x10\x00", 1024) = 4 [pid 5082] 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 5082] read(202, "\x01\x09\x10\x00", 1024) = 4 [pid 5082] 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 [ 97.038456][ T5080] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 97.057724][ T5080] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 97.079250][ T5080] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [pid 5082] read(202, "\x01\x05\x10\x00", 1024) = 4 [pid 5082] 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 5082] read(202, "\x01\x23\x0c\x00", 1024) = 4 [pid 5082] 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 5082] read(202, "\x01\x14\x0c\x00", 1024) = 4 [pid 5082] 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 5082] read(202, "\x01\x25\x0c\x00", 1024) = 4 [pid 5082] 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 5082] read(202, "\x01\x38\x0c\x00", 1024) = 4 [pid 5082] 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 5082] read(202, "\x01\x39\x0c\x00", 1024) = 4 [pid 5082] 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 5082] read(202, "\x01\x16\x0c\x02\x00\x7d", 1024) = 6 [pid 5082] 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 5082] read(202, [pid 5079] <... ioctl resumed>, 0) = -1 EALREADY (Operation already in progress) [pid 5079] ioctl(3, HCISETSCAN [pid 5082] <... read resumed>"\x01\x1a\x0c\x01\x02", 1024) = 5 [ 97.133466][ T5080] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 97.152688][ T5080] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [ 97.173604][ T5080] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 [pid 5082] 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 5079] <... ioctl resumed>, 0x7ffdd85ab224) = 0 [pid 5082] rt_sigprocmask(SIG_BLOCK, ~[RT_1], [pid 5079] 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 5082] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5079] <... writev resumed>) = 13 [pid 5082] madvise(0x7f1abeca8000, 8372224, MADV_DONTNEED) = 0 [pid 5082] exit(0 [pid 5079] 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 5082] <... exit resumed>) = ? [pid 5079] <... writev resumed>) = 14 [pid 5082] +++ exited with 0 +++ [pid 5079] 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 5079] 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 5079] close(3) = 0 [pid 5079] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5079] setsid() = 1 [pid 5079] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5079] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5079] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5079] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5079] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5079] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5079] unshare(CLONE_NEWNS) = 0 [pid 5079] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5079] unshare(CLONE_NEWIPC) = 0 [pid 5079] unshare(CLONE_NEWCGROUP) = 0 [pid 5079] unshare(CLONE_NEWUTS) = 0 [pid 5079] unshare(CLONE_SYSVSEM) = 0 [ 97.274739][ T55] cfg80211: failed to load regulatory.db [pid 5079] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5079] write(3, "16777216", 8) = 8 [pid 5079] close(3) = 0 [pid 5079] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5079] write(3, "536870912", 9) = 9 [pid 5079] close(3) = 0 [pid 5079] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5079] write(3, "1024", 4) = 4 [pid 5079] close(3) = 0 [pid 5079] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5079] write(3, "8192", 4) = 4 [pid 5079] close(3) = 0 [pid 5079] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5079] write(3, "1024", 4) = 4 [pid 5079] close(3) = 0 [pid 5079] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5079] write(3, "1024", 4) = 4 [pid 5079] close(3) = 0 [pid 5079] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5079] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5079] close(3) = 0 [pid 5079] getpid() = 1 [pid 5079] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1<tx_work)){+.+.}-{0:0}, at: __flush_work+0xfa/0xa10 [ 97.740535][ T5079] [ 97.740535][ T5079] but task is already holding lock: [ 97.747926][ T5079] ffff88807b13d108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 97.757108][ T5079] [ 97.757108][ T5079] which lock already depends on the new lock. [ 97.757108][ T5079] [ 97.767513][ T5079] [ 97.767513][ T5079] the existing dependency chain (in reverse order) is: [ 97.776619][ T5079] [ 97.776619][ T5079] -> #3 (&hdev->req_lock){+.+.}-{3:3}: [ 97.784287][ T5079] __mutex_lock+0x175/0x9d0 [ 97.789327][ T5079] hci_dev_do_close+0x26/0x90 [ 97.794539][ T5079] hci_rfkill_set_block+0x1b9/0x200 [ 97.800267][ T5079] rfkill_set_block+0x200/0x550 [ 97.805660][ T5079] rfkill_fop_write+0x2d4/0x570 [ 97.811056][ T5079] vfs_write+0x2a4/0xdf0 [ 97.815831][ T5079] ksys_write+0x1f0/0x250 [ 97.820691][ T5079] do_syscall_64+0x40/0x110 [ 97.825736][ T5079] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 97.832160][ T5079] [ 97.832160][ T5079] -> #2 (rfkill_global_mutex){+.+.}-{3:3}: [ 97.840174][ T5079] __mutex_lock+0x175/0x9d0 [ 97.845227][ T5079] rfkill_register+0x3a/0xb30 [ 97.850454][ T5079] hci_register_dev+0x43a/0xd40 [ 97.855846][ T5079] __vhci_create_device+0x393/0x800 [ 97.861602][ T5079] vhci_write+0x2c7/0x470 [ 97.866531][ T5079] vfs_write+0x64f/0xdf0 [ 97.871323][ T5079] ksys_write+0x12f/0x250 [ 97.876198][ T5079] do_syscall_64+0x40/0x110 [ 97.881258][ T5079] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 97.887694][ T5079] [ 97.887694][ T5079] -> #1 (&data->open_mutex){+.+.}-{3:3}: [ 97.895534][ T5079] __mutex_lock+0x175/0x9d0 [ 97.900569][ T5079] vhci_send_frame+0x67/0xa0 [ 97.905753][ T5079] hci_send_frame+0x220/0x470 [ 97.910982][ T5079] hci_tx_work+0x1456/0x1e40 [ 97.916112][ T5079] process_one_work+0x886/0x15d0 [ 97.921601][ T5079] worker_thread+0x8b9/0x1290 [ 97.926845][ T5079] kthread+0x2c6/0x3a0 [ 97.931455][ T5079] ret_from_fork+0x45/0x80 [ 97.936423][ T5079] ret_from_fork_asm+0x11/0x20 [ 97.941758][ T5079] [ 97.941758][ T5079] -> #0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: [ 97.951001][ T5079] __lock_acquire+0x2433/0x3b20 [ 97.956410][ T5079] lock_acquire+0x1ae/0x520 [ 97.961466][ T5079] __flush_work+0x103/0xa10 [ 97.966508][ T5079] hci_dev_close_sync+0x22d/0x1160 [ 97.972153][ T5079] hci_dev_do_close+0x2e/0x90 [ 97.977369][ T5079] hci_rfkill_set_block+0x1b9/0x200 [ 97.983103][ T5079] rfkill_set_block+0x200/0x550 [ 97.988490][ T5079] rfkill_fop_write+0x2d4/0x570 [ 97.993881][ T5079] vfs_write+0x2a4/0xdf0 [ 97.998653][ T5079] ksys_write+0x1f0/0x250 [ 98.003516][ T5079] do_syscall_64+0x40/0x110 [ 98.008558][ T5079] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 98.014982][ T5079] [ 98.014982][ T5079] other info that might help us debug this: [ 98.014982][ T5079] [ 98.025221][ T5079] Chain exists of: [ 98.025221][ T5079] (work_completion)(&hdev->tx_work) --> rfkill_global_mutex --> &hdev->req_lock [ 98.025221][ T5079] [ 98.040191][ T5079] Possible unsafe locking scenario: [ 98.040191][ T5079] [ 98.047641][ T5079] CPU0 CPU1 [ 98.053107][ T5079] ---- ---- [ 98.058518][ T5079] lock(&hdev->req_lock); [ 98.062953][ T5079] lock(rfkill_global_mutex); [ 98.070247][ T5079] lock(&hdev->req_lock); [ 98.077202][ T5079] lock((work_completion)(&hdev->tx_work)); [ 98.083199][ T5079] [ 98.083199][ T5079] *** DEADLOCK *** [ 98.083199][ T5079] [ 98.091424][ T5079] 2 locks held by syz-executor321/5079: [ 98.096986][ T5079] #0: ffffffff8ef2ca28 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x16e/0x570 [ 98.107139][ T5079] #1: ffff88807b13d108 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x26/0x90 [ 98.116763][ T5079] [ 98.116763][ T5079] stack backtrace: [ 98.122653][ T5079] CPU: 1 PID: 5079 Comm: syz-executor321 Not tainted 6.7.0-rc6-syzkaller #0 [ 98.131341][ T5079] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 [ 98.141400][ T5079] Call Trace: [ 98.144688][ T5079] [ 98.147629][ T5079] dump_stack_lvl+0xd9/0x1b0 [ 98.152333][ T5079] check_noncircular+0x317/0x400 [ 98.157302][ T5079] ? print_circular_bug+0x5c0/0x5c0 [ 98.162620][ T5079] ? is_bpf_text_address+0x94/0x1a0 [ 98.167861][ T5079] ? lockdep_lock+0xc6/0x200 [ 98.172487][ T5079] ? hlock_class+0x130/0x130 [ 98.177105][ T5079] __lock_acquire+0x2433/0x3b20 [ 98.182010][ T5079] ? lockdep_hardirqs_on_prepare+0x420/0x420 [ 98.188024][ T5079] ? save_trace+0x4e/0xb30 [ 98.192467][ T5079] ? _find_first_zero_bit+0x94/0xb0 [ 98.197695][ T5079] lock_acquire+0x1ae/0x520 [ 98.202233][ T5079] ? __flush_work+0xfa/0xa10 [ 98.206855][ T5079] ? lock_sync+0x190/0x190 [ 98.211302][ T5079] ? __flush_work+0xfa/0xa10 [ 98.215913][ T5079] __flush_work+0x103/0xa10 [ 98.220435][ T5079] ? __flush_work+0xfa/0xa10 [ 98.225058][ T5079] ? cancel_delayed_work+0x20/0x20 [ 98.230219][ T5079] hci_dev_close_sync+0x22d/0x1160 [ 98.235350][ T5079] ? find_held_lock+0x2d/0x110 [ 98.240146][ T5079] ? hci_reset_sync+0x50/0x50 [ 98.244842][ T5079] ? reacquire_held_locks+0x4c0/0x4c0 [ 98.250246][ T5079] hci_dev_do_close+0x2e/0x90 [ 98.254950][ T5079] hci_rfkill_set_block+0x1b9/0x200 [ 98.260175][ T5079] ? lockdep_hardirqs_on+0x7d/0x110 [ 98.265407][ T5079] ? hci_power_on+0x670/0x670 [ 98.270102][ T5079] rfkill_set_block+0x200/0x550 [ 98.274986][ T5079] rfkill_fop_write+0x2d4/0x570 [ 98.279865][ T5079] ? rfkill_register+0xb30/0xb30 [ 98.284842][ T5079] ? bpf_lsm_inode_remove_acl+0x10/0x10 [ 98.290406][ T5079] ? security_file_permission+0x94/0x100 [ 98.296063][ T5079] vfs_write+0x2a4/0xdf0 [ 98.300323][ T5079] ? rfkill_register+0xb30/0xb30 [ 98.305301][ T5079] ? recalc_sigpending_tsk+0x187/0x1d0 [ 98.310779][ T5079] ? kernel_write+0x6c0/0x6c0 [ 98.315562][ T5079] ? find_held_lock+0x2d/0x110 [ 98.320354][ T5079] ? ptrace_notify+0xf4/0x130 [ 98.325227][ T5079] ? reacquire_held_locks+0x4c0/0x4c0 [ 98.330637][ T5079] ? __fget_light+0x1fc/0x260 [ 98.335337][ T5079] ksys_write+0x1f0/0x250 [ 98.339684][ T5079] ? __ia32_sys_read+0xb0/0xb0 [ 98.344467][ T5079] ? syscall_trace_enter.constprop.0+0xaf/0x1e0 [ 98.350738][ T5079] do_syscall_64+0x40/0x110 [ 98.355268][ T5079] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 98.361176][ T5079] RIP: 0033:0x7f1abf4e7479 [ 98.365597][ T5079] 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 [ 98.385390][ T5079] RSP: 002b:00007ffdd85ab208 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [pid 5079] write(3, "\x00\x00\x00\x00\x00\x03\x01\x00", 8) = 8 [pid 5079] exit_group(1) = ? [ 98.393834][ T5079] RAX: ffffffffffffffda RBX: 00007f1abf53e043 RCX: 00007f1abf4e7479 [ 98.401820][ T5079] RDX: 0000000000000008 RSI: 0000000020000080 RDI: 0000000000000003 [ 98.409799][ T5079] RBP: 00007ffdd85ab250 R08: 000000ff00ffb650 R09: 000000ff00ffb650 [ 98.417785][ T5079] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffdd85ab238 [ 98.425765][ T5079] R13: 00007f1abf56b5b0 R14: 0000000000000000 R15: 0000000000000001 [ 98.433754][ T5079] [pid 5079] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5079, si_uid=0, si_status=1, si_utime=0, si_stime=17 /* 0.17 s */} --- exit_group(0) = ? +++ exited with 0 +++