./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1050381546 <...> Warning: Permanently added '10.128.1.28' (ECDSA) to the list of known hosts. execve("./syz-executor1050381546", ["./syz-executor1050381546"], 0x7fff6183fea0 /* 10 vars */) = 0 brk(NULL) = 0x55555676b000 brk(0x55555676bd00) = 0x55555676bd00 arch_prctl(ARCH_SET_FS, 0x55555676b3c0) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor1050381546", 4096) = 28 brk(0x55555678cd00) = 0x55555678cd00 brk(0x55555678d000) = 0x55555678d000 mprotect(0x7f76f340d000, 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 getpid() = 3606 openat(AT_FDCWD, "/sys/kernel/debug/x86/nmi_longest_ns", O_WRONLY|O_CLOEXEC) = 3 write(3, "10000000000", 11) = 11 close(3) = 0 openat(AT_FDCWD, "/proc/sys/kernel/hung_task_check_interval_secs", O_WRONLY|O_CLOEXEC) = 3 write(3, "20", 2) = 2 close(3) = 0 openat(AT_FDCWD, "/proc/sys/net/core/bpf_jit_kallsyms", O_WRONLY|O_CLOEXEC) = 3 write(3, "1", 1) = 1 close(3) = 0 openat(AT_FDCWD, "/proc/sys/net/core/bpf_jit_harden", O_WRONLY|O_CLOEXEC) = 3 write(3, "0", 1) = 1 close(3) = 0 openat(AT_FDCWD, "/proc/sys/kernel/kptr_restrict", O_WRONLY|O_CLOEXEC) = 3 write(3, "0", 1) = 1 close(3) = 0 openat(AT_FDCWD, "/proc/sys/kernel/softlockup_all_cpu_backtrace", O_WRONLY|O_CLOEXEC) = 3 write(3, "1", 1) = 1 close(3) = 0 openat(AT_FDCWD, "/proc/sys/fs/mount-max", O_WRONLY|O_CLOEXEC) = 3 write(3, "100", 3) = 3 close(3) = 0 openat(AT_FDCWD, "/proc/sys/vm/oom_dump_tasks", O_WRONLY|O_CLOEXEC) = 3 write(3, "0", 1) = 1 close(3) = 0 openat(AT_FDCWD, "/proc/sys/debug/exception-trace", O_WRONLY|O_CLOEXEC) = 3 write(3, "0", 1) = 1 close(3) = 0 openat(AT_FDCWD, "/proc/sys/kernel/printk", O_WRONLY|O_CLOEXEC) = 3 write(3, "7 4 1 3", 7) = 7 close(3) = 0 openat(AT_FDCWD, "/proc/sys/net/ipv4/ping_group_range", O_WRONLY|O_CLOEXEC) = 3 write(3, "0 65535", 7) = 7 close(3) = 0 openat(AT_FDCWD, "/proc/sys/kernel/keys/gc_delay", O_WRONLY|O_CLOEXEC) = 3 write(3, "1", 1) = 1 close(3) = 0 openat(AT_FDCWD, "/proc/sys/vm/oom_kill_allocating_task", O_WRONLY|O_CLOEXEC) = 3 write(3, "1", 1) = 1 close(3) = 0 openat(AT_FDCWD, "/proc/sys/kernel/ctrl-alt-del", O_WRONLY|O_CLOEXEC) = 3 write(3, "0", 1) = 1 close(3) = 0 openat(AT_FDCWD, "/proc/sys/kernel/cad_pid", O_WRONLY|O_CLOEXEC) = 3 write(3, "3606", 4) = 4 close(3) = 0 openat(AT_FDCWD, "/sys/kernel/debug/failslab/ignore-gfp-wait", O_WRONLY|O_CLOEXEC) = 3 write(3, "N", 1) = 1 close(3) = 0 openat(AT_FDCWD, "/sys/kernel/debug/fail_futex/ignore-private", O_WRONLY|O_CLOEXEC) = 3 write(3, "N", 1) = 1 close(3) = 0 openat(AT_FDCWD, "/sys/kernel/debug/fail_page_alloc/ignore-gfp-highmem", O_WRONLY|O_CLOEXEC) = 3 write(3, "N", 1) = 1 close(3) = 0 openat(AT_FDCWD, "/sys/kernel/debug/fail_page_alloc/ignore-gfp-wait", O_WRONLY|O_CLOEXEC) = 3 write(3, "N", 1) = 1 close(3) = 0 openat(AT_FDCWD, "/sys/kernel/debug/fail_page_alloc/min-order", O_WRONLY|O_CLOEXEC) = 3 write(3, "0", 1) = 1 close(3) = 0 socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE) = 3 socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC) = 4 sendto(4, [{nlmsg_len=36, nlmsg_type=0x10 /* NLMSG_??? */, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}, "\x03\x00\x00\x00\x0d\x00\x02\x00\x6e\x6c\x38\x30\x32\x31\x35\x34\x00\x00\x00\x00"], 36, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 36 recvfrom(4, [{nlmsg_len=680, nlmsg_type=nlctrl, nlmsg_flags=0, nlmsg_seq=0, nlmsg_pid=3606}, "\x01\x02\x00\x00\x0d\x00\x02\x00\x6e\x6c\x38\x30\x32\x31\x35\x34\x00\x00\x00\x00\x06\x00\x01\x00\x1c\x00\x00\x00\x08\x00\x03\x00\x01\x00\x00\x00\x08\x00\x04\x00\x00\x00\x00\x00\x08\x00\x05\x00\x25\x00\x00\x00\x48\x02\x06\x00\x14\x00\x01\x00\x08\x00\x01\x00\x01\x00\x00\x00\x08\x00\x02\x00\x0e\x00\x00\x00\x14\x00\x02\x00\x08\x00\x01\x00\x05\x00\x00\x00\x08\x00\x02\x00\x0e\x00\x00\x00\x14\x00\x03\x00"...], 4096, 0, NULL, NULL) = 680 recvfrom(4, [{nlmsg_len=36, nlmsg_type=NLMSG_ERROR, nlmsg_flags=NLM_F_CAPPED, nlmsg_seq=0, nlmsg_pid=3606}, {error=0, msg={nlmsg_len=36, nlmsg_type=nlctrl, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}}], 4096, 0, NULL, NULL) = 36 access("/proc/net", R_OK) = 0 access("/proc/net/unix", R_OK) = 0 socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 5 ioctl(5, SIOCGIFINDEX, {ifr_name="wpan0", ifr_ifindex=11}) = 0 close(5) = 0 sendto(4, [{nlmsg_len=36, nlmsg_type=nl802154, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}, "\x0b\x00\x00\x00\x08\x00\x03\x00\x0b\x00\x00\x00\x06\x00\x0a\x00\xa0\xaa\x00\x00"], 36, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 36 recvfrom(4, [{nlmsg_len=36, nlmsg_type=NLMSG_ERROR, nlmsg_flags=NLM_F_CAPPED, nlmsg_seq=0, nlmsg_pid=3606}, {error=0, msg={nlmsg_len=36, nlmsg_type=nl802154, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}}], 4096, 0, NULL, NULL) = 36 socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 5 ioctl(5, SIOCGIFINDEX, {ifr_name="wpan0", ifr_ifindex=11}) = 0 close(5) = 0 sendto(3, [{nlmsg_len=44, nlmsg_type=0x10 /* NLMSG_??? */, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}, "\x00\x00\x00\x00\x0b\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x0c\x00\x01\x00\x02\x00\xaa\xaa\xaa\xaa\xaa\xaa"], 44, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 44 recvfrom(3, [{nlmsg_len=36, nlmsg_type=NLMSG_ERROR, nlmsg_flags=NLM_F_CAPPED, nlmsg_seq=0, nlmsg_pid=3606}, {error=0, msg={nlmsg_len=44, nlmsg_type=RTM_NEWLINK, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}}], 4096, 0, NULL, NULL) = 36 sendto(3, [{nlmsg_len=68, nlmsg_type=RTM_NEWLINK, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK|NLM_F_EXCL|NLM_F_CREATE, nlmsg_seq=0, nlmsg_pid=0}, {ifi_family=AF_UNSPEC, ifi_type=ARPHRD_NETROM, ifi_index=0, ifi_flags=0, ifi_change=0}, [[{nla_len=11, nla_type=IFLA_IFNAME}, "lowpan0"...], [{nla_len=16, nla_type=IFLA_LINKINFO}, [{nla_len=10, nla_type=IFLA_INFO_KIND}, "lowpan"...]], [{nla_len=8, nla_type=IFLA_LINK}, 11]]], 68, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 68 recvfrom(3, [{nlmsg_len=36, nlmsg_type=NLMSG_ERROR, nlmsg_flags=NLM_F_CAPPED, nlmsg_seq=0, nlmsg_pid=3606}, {error=0, msg={nlmsg_len=68, nlmsg_type=RTM_NEWLINK, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK|NLM_F_EXCL|NLM_F_CREATE, nlmsg_seq=0, nlmsg_pid=0}}], 4096, 0, NULL, NULL) = 36 socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 5 ioctl(5, SIOCGIFINDEX, {ifr_name="wpan1", ifr_ifindex=12}) = 0 close(5) = 0 sendto(4, [{nlmsg_len=36, nlmsg_type=nl802154, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}, "\x0b\x00\x00\x00\x08\x00\x03\x00\x0c\x00\x00\x00\x06\x00\x0a\x00\xa1\xaa\x00\x00"], 36, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 36 recvfrom(4, [{nlmsg_len=36, nlmsg_type=NLMSG_ERROR, nlmsg_flags=NLM_F_CAPPED, nlmsg_seq=0, nlmsg_pid=3606}, {error=0, msg={nlmsg_len=36, nlmsg_type=nl802154, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}}], 4096, 0, NULL, NULL) = 36 socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 5 ioctl(5, SIOCGIFINDEX, {ifr_name="wpan1", ifr_ifindex=12}) = 0 close(5) = 0 sendto(3, [{nlmsg_len=44, nlmsg_type=RTM_NEWLINK, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}, {ifi_family=AF_UNSPEC, ifi_type=ARPHRD_NETROM, ifi_index=if_nametoindex("wpan1"), ifi_flags=IFF_UP, ifi_change=0x1}, [{nla_len=12, nla_type=IFLA_ADDRESS}, 02:01:aa:aa:aa:aa:aa]], 44, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 44 recvfrom(3, [{nlmsg_len=36, nlmsg_type=NLMSG_ERROR, nlmsg_flags=NLM_F_CAPPED, nlmsg_seq=0, nlmsg_pid=3606}, {error=0, msg={nlmsg_len=44, nlmsg_type=RTM_NEWLINK, nlmsg_flags=NLM_F_REQUEST|NLM_F_ACK, nlmsg_seq=0, nlmsg_pid=0}}], 4096, 0, NULL, NULL) = 36 close(3) = 0 close(4) = 0 rt_sigaction(SIGRTMIN, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=0}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=0}, NULL, 8) = 0 rt_sigaction(SIGSEGV, {sa_handler=0x7f76f3359ac0, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7f76f335a880}, NULL, 8) = 0 rt_sigaction(SIGBUS, {sa_handler=0x7f76f3359ac0, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7f76f335a880}, NULL, 8) = 0 getpid() = 3606 mkdir("./syzkaller.dgmaaU", 0700) = 0 chmod("./syzkaller.dgmaaU", 0777) = 0 chdir("./syzkaller.dgmaaU") = 0 unshare(CLONE_NEWPID) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555676b690) = 3608 ./strace-static-x86_64: Process 3608 attached [pid 3608] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 3608] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 3608] setsid() = 1 [pid 3608] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 3608] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 3608] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 3608] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 3608] prlimit64(0, RLIMIT_CORE, {rlim_cur=0, rlim_max=0}, NULL) = 0 [pid 3608] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 3608] unshare(CLONE_NEWNS) = 0 [pid 3608] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 3608] unshare(CLONE_NEWIPC) = 0 [pid 3608] unshare(CLONE_NEWCGROUP) = 0 [pid 3608] unshare(CLONE_NEWUTS) = 0 [pid 3608] unshare(CLONE_SYSVSEM) = 0 [pid 3608] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 3608] write(3, "16777216", 8) = 8 [pid 3608] close(3) = 0 [pid 3608] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 3608] write(3, "536870912", 9) = 9 [pid 3608] close(3) = 0 [pid 3608] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 3608] write(3, "1024", 4) = 4 [pid 3608] close(3) = 0 [pid 3608] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 3608] write(3, "8192", 4) = 4 [pid 3608] close(3) = 0 [pid 3608] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 3608] write(3, "1024", 4) = 4 [pid 3608] close(3) = 0 [pid 3608] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 3608] write(3, "1024", 4) = 4 [pid 3608] close(3) = 0 [pid 3608] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 3608] write(3, "1024 1048576 500 1024", 21) = 21 [pid 3608] close(3) = 0 [pid 3608] getpid() = 1 [pid 3608] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1<lock){-.-.}-{2:2}, at: pty_write+0xc5/0x170 [ 40.785123][ T3608] [ 40.785123][ T3608] which lock already depends on the new lock. [ 40.785123][ T3608] [ 40.785125][ T3608] [ 40.785125][ T3608] the existing dependency chain (in reverse order) is: [ 40.785128][ T3608] [ 40.785128][ T3608] -> #2 (&port->lock){-.-.}-{2:2}: [ 40.785139][ T3608] lock_acquire+0x1a7/0x400 [ 40.785148][ T3608] _raw_spin_lock_irqsave+0xd1/0x120 [ 40.785160][ T3608] tty_port_default_wakeup+0x21/0x100 [ 40.785170][ T3608] serial8250_tx_chars+0x60e/0x810 [ 40.785180][ T3608] serial8250_handle_irq+0x32f/0x410 [ 40.785189][ T3608] serial8250_default_handle_irq+0xaf/0x190 [ 40.785197][ T3608] serial8250_interrupt+0xa3/0x1e0 [ 40.785206][ T3608] __handle_irq_event_percpu+0x200/0x620 [ 40.785215][ T3608] handle_irq_event+0x83/0x1e0 [ 40.785223][ T3608] handle_edge_irq+0x245/0xbe0 [ 40.785230][ T3608] __common_interrupt+0xce/0x1e0 [ 40.785241][ T3608] common_interrupt+0x9f/0xc0 [ 40.785250][ T3608] asm_common_interrupt+0x1e/0x40 [ 40.785258][ T3608] acpi_idle_enter+0x42d/0x790 [ 40.785266][ T3608] cpuidle_enter_state+0x517/0xed0 [ 40.785275][ T3608] cpuidle_enter+0x59/0x90 [ 40.785283][ T3608] do_idle+0x3d2/0x640 [ 40.785291][ T3608] cpu_startup_entry+0x15/0x20 [ 40.785298][ T3608] rest_init+0x24f/0x270 [ 40.785306][ T3608] start_kernel+0x0/0x56e [ 40.785314][ T3608] start_kernel+0x4bf/0x56e [ 40.785321][ T3608] secondary_startup_64_no_verify+0xc4/0xcb [ 40.785331][ T3608] [ 40.785331][ T3608] -> #1 (&port_lock_key){-.-.}-{2:2}: [ 40.785342][ T3608] lock_acquire+0x1a7/0x400 [ 40.785349][ T3608] _raw_spin_lock_irqsave+0xd1/0x120 [ 40.785357][ T3608] serial8250_console_write+0x19c/0xf60 [ 40.785364][ T3608] console_unlock+0xa98/0x1150 [ 40.785372][ T3608] vprintk_emit+0xd1/0x1e0 [ 40.785379][ T3608] _printk+0xcf/0x10f [ 40.785386][ T3608] register_console+0x6e2/0x9c0 [ 40.785394][ T3608] univ8250_console_init+0x41/0x43 [ 40.785403][ T3608] console_init+0x5d/0xa8 [ 40.785412][ T3608] start_kernel+0x328/0x56e [ 40.785419][ T3608] secondary_startup_64_no_verify+0xc4/0xcb [ 40.785427][ T3608] [ 40.785427][ T3608] -> #0 (console_owner){....}-{0:0}: [ 40.785437][ T3608] validate_chain+0x185c/0x65c0 [ 40.785445][ T3608] __lock_acquire+0x129a/0x1f80 [ 40.785453][ T3608] lock_acquire+0x1a7/0x400 [ 40.785459][ T3608] console_lock_spinning_enable+0x52/0x60 [ 40.785468][ T3608] console_unlock+0x7f4/0x1150 [ 40.785475][ T3608] vprintk_emit+0xd1/0x1e0 [ 40.785482][ T3608] _printk+0xcf/0x10f [ 40.785489][ T3608] should_fail+0x366/0x4b0 [ 40.785498][ T3608] should_failslab+0x5/0x20 [ 40.785508][ T3608] __kmalloc+0x8b/0x370 [ 40.785517][ T3608] __tty_buffer_request_room+0x1f0/0x540 [ 40.785525][ T3608] tty_insert_flip_string_fixed_flag+0x91/0x2c0 [ 40.785534][ T3608] pty_write+0xe9/0x170 [ 40.785541][ T3608] tty_put_char+0x115/0x180 [ 40.785548][ T3608] do_output_char+0x575/0x930 [ 40.785556][ T3608] __process_echoes+0x2b6/0x940 [ 40.785563][ T3608] n_tty_receive_buf_common+0x7fde/0x8570 [ 40.785571][ T3608] tiocsti+0x237/0x2f0 [ 40.785578][ T3608] tty_ioctl+0x3a8/0xc60 [ 40.785585][ T3608] __se_sys_ioctl+0xfb/0x170 [ 40.785598][ T3608] do_syscall_64+0x2b/0x70 [ 40.785605][ T3608] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 40.785613][ T3608] [ 40.785613][ T3608] other info that might help us debug this: [ 40.785613][ T3608] [ 40.785615][ T3608] Chain exists of: [ 40.785615][ T3608] console_owner --> &port_lock_key --> &port->lock [ 40.785615][ T3608] [ 40.785627][ T3608] Possible unsafe locking scenario: [ 40.785627][ T3608] [ 40.785629][ T3608] CPU0 CPU1 [ 40.785631][ T3608] ---- ---- [ 40.785633][ T3608] lock(&port->lock); [ 40.785637][ T3608] lock(&port_lock_key); [ 40.785642][ T3608] lock(&port->lock); [ 40.785647][ T3608] lock(console_owner); [ 40.785652][ T3608] [ 40.785652][ T3608] *** DEADLOCK *** [ 40.785652][ T3608] [ 40.785654][ T3608] 6 locks held by syz-executor105/3608: [ 40.785659][ T3608] #0: ffff88807dad1098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 [ 40.785679][ T3608] #1: ffff88801fbe80b8 (&port->buf.lock/1){+.+.}-{3:3}, at: tiocsti+0x1d3/0x2f0 [ 40.785700][ T3608] #2: ffff88807dad12e8 (&o_tty->termios_rwsem/1){++++}-{3:3}, at: n_tty_receive_buf_common+0x88/0x8570 [ 40.785722][ T3608] #3: ffffc900013ec378 (&ldata->output_lock){+.+.}-{3:3}, at: n_tty_receive_buf_common+0x7fa0/0x8570 [ 40.785742][ T3608] #4: ffff88801fbe8958 (&port->lock){-.-.}-{2:2}, at: pty_write+0xc5/0x170 [ 40.785760][ T3608] #5: ffffffff8c9f71a0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0xb8/0x1e0 [ 40.785778][ T3608] [ 40.785778][ T3608] stack backtrace: [ 40.785781][ T3608] CPU: 1 PID: 3608 Comm: syz-executor105 Not tainted 5.18.0-rc6-syzkaller-00015-g0ac824f379fb #0 [ 40.785791][ T3608] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.785795][ T3608] Call Trace: [ 40.785798][ T3608] [ 40.785802][ T3608] dump_stack_lvl+0x1e3/0x2cb [ 40.785814][ T3608] ? bfq_pos_tree_add_move+0x436/0x436 [ 40.785825][ T3608] ? print_circular_bug+0x13e/0x1c0 [ 40.785834][ T3608] check_noncircular+0x2f7/0x3b0 [ 40.785844][ T3608] ? add_chain_block+0x850/0x850 [ 40.785852][ T3608] ? lockdep_lock+0x11d/0x2a0 [ 40.785862][ T3608] validate_chain+0x185c/0x65c0 [ 40.785875][ T3608] ? vsnprintf+0x1ce0/0x1ce0 [ 40.785886][ T3608] ? reacquire_held_locks+0x680/0x680 [ 40.785894][ T3608] ? memset+0x1f/0x40 [ 40.785902][ T3608] ? vsnprintf+0x1fa/0x1ce0 [ 40.785911][ T3608] ? memcpy+0x3c/0x60 [ 40.785919][ T3608] ? vsnprintf+0x1c02/0x1ce0 [ 40.785927][ T3608] ? reacquire_held_locks+0x680/0x680 [ 40.785940][ T3608] ? sprintf+0xd6/0x120 [ 40.785948][ T3608] ? _prb_read_valid+0xbb9/0xbd0 [ 40.785958][ T3608] ? mark_lock+0x98/0x350 [ 40.785966][ T3608] __lock_acquire+0x129a/0x1f80 [ 40.785977][ T3608] lock_acquire+0x1a7/0x400 [ 40.785985][ T3608] ? console_lock_spinning_enable+0x2d/0x60 [ 40.785995][ T3608] ? read_lock_is_recursive+0x10/0x10 [ 40.786003][ T3608] ? console_lock_spinning_enable+0x2d/0x60 [ 40.786013][ T3608] ? __lock_acquire+0x1f80/0x1f80 [ 40.786020][ T3608] ? do_raw_spin_lock+0x148/0x360 [ 40.786031][ T3608] ? _raw_spin_unlock+0x40/0x40 [ 40.786040][ T3608] console_lock_spinning_enable+0x52/0x60 [ 40.786048][ T3608] ? console_lock_spinning_enable+0x2d/0x60 [ 40.786057][ T3608] console_unlock+0x7f4/0x1150 [ 40.786066][ T3608] ? vprintk_emit+0xb8/0x1e0 [ 40.786074][ T3608] ? console_trylock_spinning+0x450/0x450 [ 40.786082][ T3608] ? vprintk_emit+0xb8/0x1e0 [ 40.786090][ T3608] ? console_trylock+0x70/0x70 [ 40.786102][ T3608] ? __queue_work+0x987/0xc20 [ 40.786111][ T3608] ? rcu_read_lock_sched_held+0x89/0x130 [ 40.786120][ T3608] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 40.786130][ T3608] vprintk_emit+0xd1/0x1e0 [ 40.786139][ T3608] _printk+0xcf/0x10f [ 40.786148][ T3608] ? panic+0x76e/0x76e [ 40.786158][ T3608] should_fail+0x366/0x4b0 [ 40.786167][ T3608] ? __tty_buffer_request_room+0x1f0/0x540 [ 40.786176][ T3608] should_failslab+0x5/0x20 [ 40.786185][ T3608] __kmalloc+0x8b/0x370 [ 40.786194][ T3608] __tty_buffer_request_room+0x1f0/0x540 [ 40.786206][ T3608] tty_insert_flip_string_fixed_flag+0x91/0x2c0 [ 40.786217][ T3608] pty_write+0xe9/0x170 [ 40.786225][ T3608] tty_put_char+0x115/0x180 [ 40.786233][ T3608] ? do_SAK_work+0x20/0x20 [ 40.786242][ T3608] ? __mutex_unlock_slowpath+0x241/0x7b0 [ 40.786252][ T3608] do_output_char+0x575/0x930 [ 40.786262][ T3608] __process_echoes+0x2b6/0x940 [ 40.786272][ T3608] n_tty_receive_buf_common+0x7fde/0x8570 [ 40.786289][ T3608] ? n_tty_poll+0x790/0x790 [ 40.786298][ T3608] tiocsti+0x237/0x2f0 [ 40.786306][ T3608] ? signal_pending+0xa0/0xa0 [ 40.786314][ T3608] ? print_irqtrace_events+0x220/0x220 [ 40.786323][ T3608] tty_ioctl+0x3a8/0xc60 [ 40.786331][ T3608] ? bpf_lsm_file_ioctl+0x5/0x10 [ 40.786340][ T3608] ? tty_get_icount+0xa0/0xa0 [ 40.786348][ T3608] __se_sys_ioctl+0xfb/0x170 [ 40.786356][ T3608] do_syscall_64+0x2b/0x70 [ 40.786364][ T3608] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 40.786372][ T3608] RIP: 0033:0x7f76f339ff39 [ 40.786380][ T3608] Code: 9a 01 00 85 c0 b8 00 00 00 00 48 0f 44 c3 5b c3 90 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 c0 ff ff ff f7 d8 64 89 01 48 [ 40.786387][ T3608] RSP: 002b:00007ffef96d1b08 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 40.786396][ T3608] RAX: ffffffffffffffda RBX: 00007ffef96d1c10 RCX: 00007f76f339ff39 [ 40.786403][ T3608] RDX: 0000000020000100 RSI: 0000000000005412 RDI: 0000000000000004 [ 40.786409][ T3608] RBP: 00007ffef96d1b30 R08: 0000000000000001 R09: 0000000000000000 [ 40.786414][ T3608] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 40.786420][ T3608] R13: 00007ffef96d1c08 R14: 00007ffef96d1c50 R15: 0000000000000003 [ 40.786428][ T3608] [ 41.734062][ T3608] CPU: 1 PID: 3608 Comm: syz-executor105 Not tainted 5.18.0-rc6-syzkaller-00015-g0ac824f379fb #0 [ 41.744529][ T3608] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.754558][ T3608] Call Trace: [ 41.757812][ T3608] [ 41.760717][ T3608] dump_stack_lvl+0x1e3/0x2cb [ 41.765374][ T3608] ? bfq_pos_tree_add_move+0x436/0x436 [ 41.770804][ T3608] ? panic+0x76e/0x76e [ 41.774850][ T3608] should_fail+0x384/0x4b0 [ 41.779243][ T3608] ? __tty_buffer_request_room+0x1f0/0x540 [ 41.785022][ T3608] should_failslab+0x5/0x20 [ 41.789499][ T3608] __kmalloc+0x8b/0x370 [ 41.793631][ T3608] __tty_buffer_request_room+0x1f0/0x540 [ 41.799236][ T3608] tty_insert_flip_string_fixed_flag+0x91/0x2c0 [ 41.805452][ T3608] pty_write+0xe9/0x170 [ 41.809583][ T3608] tty_put_char+0x115/0x180 [ 41.814058][ T3608] ? do_SAK_work+0x20/0x20 [ 41.818446][ T3608] ? __mutex_unlock_slowpath+0x241/0x7b0 [ 41.824053][ T3608] do_output_char+0x575/0x930 [ 41.828702][ T3608] __process_echoes+0x2b6/0x940 [ 41.833526][ T3608] n_tty_receive_buf_common+0x7fde/0x8570 [ 41.839225][ T3608] ? n_tty_poll+0x790/0x790 [ 41.843700][ T3608] tiocsti+0x237/0x2f0 [ 41.847740][ T3608] ? signal_pending+0xa0/0xa0 [ 41.852390][ T3608] ? print_irqtrace_events+0x220/0x220 [ 41.857822][ T3608] tty_ioctl+0x3a8/0xc60 [ 41.862035][ T3608] ? bpf_lsm_file_ioctl+0x5/0x10 [ 41.866947][ T3608] ? tty_get_icount+0xa0/0xa0 [ 41.871595][ T3608] __se_sys_ioctl+0xfb/0x170 [ 41.876161][ T3608] do_syscall_64+0x2b/0x70 [ 41.880551][ T3608] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 41.886415][ T3608] RIP: 0033:0x7f76f339ff39 [ 41.890803][ T3608] Code: 9a 01 00 85 c0 b8 00 00 00 00 48 0f 44 c3 5b c3 90 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 c0 ff ff ff f7 d8 64 89 01 48 [ 41.910381][ T3608] RSP: 002b:00007ffef96d1b08 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 41.918763][ T3608] RAX: ffffffffffffffda RBX: 00007ffef96d1c10 RCX: 00007f76f339ff39 [ 41.926708][ T3608] RDX: 0000000020000100 RSI: 0000000000005412 RDI: 0000000000000004 [pid 3608] ioctl(4, TIOCSTI, "\x17") = 0 [pid 3608] exit_group(1) = ? [ 41.934653][ T3608] RBP: 00007ffef96d1b30 R08: 0000000000000001 R09: 0000000000000000 [ 41.942594][ T3608] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 41.950538][ T3608] R13: 00007ffef96d1c08 R14: 00007ffef96d1c50 R15: 0000000000000003 [ 41.958484][ T3608] [pid 3608] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3608, si_uid=0, si_status=1, si_utime=0, si_stime=124} --- exit_group(0) = ? +++ exited with 0 +++