panic: in_pcblookup_hash_locked: invalid local address cpuid = 1 time = 1676544570 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0xc7/frame 0xfffffe0007cee310 kdb_backtrace() at kdb_backtrace+0xd1/frame 0xfffffe0007cee470 vpanic() at vpanic+0x254/frame 0xfffffe0007cee550 panic() at panic+0xb5/frame 0xfffffe0007cee610 in_pcblookup_hash_locked() at in_pcblookup_hash_locked+0xf32/frame 0xfffffe0007cee750 in_pcb_lport_dest() at in_pcb_lport_dest+0x476/frame 0xfffffe0007cee810 in_pcbconnect_setup() at in_pcbconnect_setup+0x7e5/frame 0xfffffe0007cee970 in_pcbconnect() at in_pcbconnect+0x174/frame 0xfffffe0007ceea80 tcp_connect() at tcp_connect+0xf0/frame 0xfffffe0007ceead0 tcp_usr_connect() at tcp_usr_connect+0x244/frame 0xfffffe0007ceebb0 soconnectat() at soconnectat+0x1b9/frame 0xfffffe0007ceec10 kern_connectat() at kern_connectat+0x2cc/frame 0xfffffe0007ceecf0 sys_connect() at sys_connect+0xfb/frame 0xfffffe0007ceed30 amd64_syscall() at amd64_syscall+0x410/frame 0xfffffe0007ceef30 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0007ceef30 --- syscall (198, FreeBSD ELF64, __syscall), rip = 0x28e66a, rsp = 0x8205677c8, rbp = 0x820567830 --- KDB: enter: panic [ thread pid 898 tid 100110 ] Stopped at kdb_enter+0x6b: movq $0,0x25823fa(%rip) db> db> set $lines = 0 db> set $maxwidth = 0 db> show registers cs 0x20 ds 0x3b es 0x3b fs 0x13 gs 0x1b ss 0x28 rax 0x12 rcx 0xfffffe00033eee30 rdx 0xdffff7c000000000 rbx 0 rsp 0xfffffe0007cee450 rbp 0xfffffe0007cee470 rsi 0x1 rdi 0 r8 0x3 r9 0xffffffff r10 0 r11 0xcca3bf02 r12 0 r13 0xfffffe005786d560 r14 0xffffffff82ae6760 .str.26 r15 0xffffffff82ae6760 .str.26 rip 0xffffffff8170f89b kdb_enter+0x6b rflags 0x46 kdb_enter+0x6b: movq $0,0x25823fa(%rip) db> show proc Process 898 (syz-executor.0) at 0xfffffe0092ae8ab0: state: NORMAL uid: 0 gids: 0, 0, 5 parent: pid 781 at 0xfffffe0092ae8000 ABI: FreeBSD ELF64 flag: 0x10000000 flag2: 0 arguments: /root/syz-executor.0 exec reaper: 0xfffffe00541d4010 reapsubtree: 1 sigparent: 20 vmspace: 0xfffffe0092b10000 (map 0xfffffe0092b10000) (map.pmap 0xfffffe0092b100c0) (pmap 0xfffffe0092b10130) threads: 1 100110 Run CPU 1 syz-executor.0 db> ps pid ppid pgrp uid state wmesg wchan cmd 898 781 781 0 R CPU 1 syz-executor.0 897 891 897 0 Ss select 0xfffffe0007983dc0 dhclient 894 1 894 0 Ss select 0xfffffe0007983f40 dhclient 891 884 430 65 S select 0xfffffe00079843c0 dhclient 884 430 430 0 S wait 0xfffffe0058c42570 sh 781 779 781 0 Ss nanslp 0xffffffff83c5f400 syz-executor.0 779 777 777 0 S (threaded) syz-execprog 100093 S kqread 0xfffffe0058add200 syz-execprog 100112 S uwait 0xfffffe0058c4d780 syz-execprog 100113 S uwait 0xfffffe0058c4d880 syz-execprog 100114 S uwait 0xfffffe0058c4d980 syz-execprog 100115 S uwait 0xfffffe00541df280 syz-execprog 100116 S uwait 0xfffffe0058c4da80 syz-execprog 100118 S uwait 0xfffffe0058c4dc80 syz-execprog 100119 S wait 0xfffffe005799c008 syz-execprog 777 775 777 0 Ss pause 0xfffffe0092ae8608 csh 775 688 775 0 Ss select 0xfffffe0007984240 sshd 756 1 756 0 Ss+ ttyin 0xfffffe00540620b0 getty 755 1 755 0 Ss+ ttyin 0xfffffe00079ff0b0 getty 754 1 754 0 Ss+ ttyin 0xfffffe00579b94b0 getty 753 1 753 0 Ss+ ttyin 0xfffffe00579b98b0 getty 752 1 752 0 Ss+ ttyin 0xfffffe00579b9cb0 getty 751 1 751 0 Ss+ ttyin 0xfffffe00079ff4b0 getty 750 1 750 0 Ss+ ttyin 0xfffffe00079ff8b0 getty 749 1 749 0 Ss+ ttyin 0xfffffe00579ba0b0 getty 748 1 748 0 Ss+ ttyin 0xfffffe00579ba4b0 getty 746 1 18 0 S+ piperd 0xfffffe0058b5e998 logger 745 744 18 0 S+ nanslp 0xffffffff83c5f401 sleep 744 1 18 0 S+ wait 0xfffffe0058c41010 sh 692 1 692 0 Ss nanslp 0xffffffff83c5f401 cron 688 1 688 0 Ss select 0xfffffe0007984140 sshd 501 1 501 0 Ss select 0xfffffe0007984540 syslogd 430 1 430 0 Ss wait 0xfffffe005799e018 devd 429 1 429 65 Ss select 0xfffffe00079842c0 dhclient 344 1 344 0 Ss select 0xfffffe0007984440 dhclient 341 1 341 0 Ss select 0xfffffe00079847c0 dhclient 17 0 0 0 DL syncer 0xffffffff83d848a0 [syncer] 16 0 0 0 DL vlruwt 0xfffffe0056fa1000 [vnlru] 15 0 0 0 DL (threaded) [bufdaemon] 100079 D psleep 0xffffffff83d82ec0 [bufdaemon] 100082 D - 0xffffffff83012180 [bufspacedaemon-0] 100096 D sdflush 0xfffffe00586658e8 [/ worker] 9 0 0 0 DL psleep 0xffffffff83dba740 [vmdaemon] 8 0 0 0 DL (threaded) [pagedaemon] 100077 D psleep 0xffffffff83dae5f8 [dom0] 100080 D launds 0xffffffff83dae604 [laundry: dom0] 100081 D umarcl 0xffffffff81e70740 [uma] 7 0 0 0 DL - 0xffffffff83a28e48 [rand_harvestq] 6 0 0 0 DL pftm 0xffffffff8437b270 [pf purge] 5 0 0 0 DL waiting 0xffffffff8494cf80 [sctp_iterator] 4 0 0 0 DL (threaded) [cam] 100044 D - 0xffffffff838cb340 [doneq0] 100045 D - 0xffffffff838cb2c0 [async] 100076 D - 0xffffffff838cb140 [scanner] 14 0 0 0 DL seqstat 0xfffffe0056ef6c88 [sequencer 00] 3 0 0 0 DL (threaded) [crypto] 100040 D crypto_ 0xffffffff83da9d60 [crypto] 100041 D crypto_ 0xfffffe0007a89030 [crypto returns 0] 100042 D crypto_ 0xfffffe0007a89080 [crypto returns 1] 13 0 0 0 DL (threaded) [geom] 100035 D - 0xffffffff83c34860 [g_event] 100036 D - 0xffffffff83c34880 [g_up] 100037 D - 0xffffffff83c348a0 [g_down] 2 0 0 0 WL (threaded) [clock] 100030 I [clock (0)] 100031 I [clock (1)] 12 0 0 0 WL (threaded) [intr] 100010 I [swi5: fast taskq] 100013 I [swi6: task queue] 100018 I [swi6: Giant taskq] 100029 I [swi1: netisr 0] 100032 I [swi1: hpts] 100033 I [swi1: hpts] 100046 I [irq24: virtio_pci0] 100047 I [irq25: virtio_pci0] 100048 I [irq26: virtio_pci0] 100049 I [irq27: virtio_pci0] 100050 I [irq28: virtio_pci1] 100051 I [irq29: virtio_pci1] 100052 I [irq30: virtio_pci1] 100053 I [irq31: virtio_pci1] 100054 I [irq32: virtio_pci1] 100059 I [irq33: virtio_pci2] 100060 I [irq34: virtio_pci2] 100061 I [irq35: virtio_pci2] 100063 I [irq1: atkbd0] 100064 I [irq12: psm0] 100065 I [swi0: uart uart++] 100069 I [swi1: pf send] 11 0 0 0 RL (threaded) [idle] 100003 Run CPU 0 [idle: cpu0] 100004 CanRun [idle: cpu1] 1 0 1 0 SLs wait 0xfffffe00541d4010 [init] 10 0 0 0 DL audit_w 0xffffffff83daa8e0 [audit] 0 0 0 0 DLs (threaded) [kernel] 100000 D swapin 0xffffffff83c35280 [swapper] 100005 D - 0xfffffe0054085000 [if_config_tqg_0] 100006 D - 0xfffffe0054084e00 [softirq_0] 100007 D - 0xfffffe0054084d00 [softirq_1] 100008 D - 0xfffffe0054084c00 [if_io_tqg_0] 100009 D - 0xfffffe0054084b00 [if_io_tqg_1] 100011 D - 0xfffffe000795f400 [kqueue_ctx taskq] 100012 D - 0xfffffe000795f300 [pci_hp taskq] 100014 D - 0xfffffe000795f100 [inm_free taskq] 100015 D - 0xfffffe000795f000 [aiod_kick taskq] 100016 D - 0xfffffe000795ee00 [in6m_free taskq] 100017 D - 0xfffffe000795ed00 [deferred_unmount ta] 100019 D - 0xfffffe000795eb00 [thread taskq] 100020 D - 0xfffffe000795ea00 [linuxkpi_irq_wq] 100021 D - 0xfffffe000795e900 [linuxkpi_short_wq_0] 100022 D - 0xfffffe000795e900 [linuxkpi_short_wq_1] 100023 D - 0xfffffe000795e900 [linuxkpi_short_wq_2] 100024 D - 0xfffffe000795e900 [linuxkpi_short_wq_3] 100025 D - 0xfffffe000795e800 [linuxkpi_long_wq_0] 100026 D - 0xfffffe000795e800 [linuxkpi_long_wq_1] 100027 D - 0xfffffe000795e800 [linuxkpi_long_wq_2] 100028 D - 0xfffffe000795e800 [linuxkpi_long_wq_3] 100034 D - 0xfffffe000795e500 [firmware taskq] 100038 D - 0xfffffe000795e400 [crypto_0] 100039 D - 0xfffffe000795e400 [crypto_1] 100055 D - 0xfffffe000795e200 [vtnet0 rxq 0] 100056 D - 0xfffffe000795e100 [vtnet0 txq 0] 100057 D - 0xfffffe000795e000 [vtnet0 rxq 1] 100058 D - 0xfffffe000795de00 [vtnet0 txq 1] 100062 D vtbslp 0xfffffe0007985800 [virtio_balloon] 100066 D - 0xffffffff82aeb6a1 [deadlkres] 100070 D - 0xfffffe000795fd00 [mca taskq] 100071 D - 0xfffffe0057917200 [acpi_task_0] 100072 D - 0xfffffe0057917200 [acpi_task_1] 100073 D - 0xfffffe0057917200 [acpi_task_2] 100075 D - 0xfffffe000795e300 [CAM taskq] db> show all locks Process 898 (syz-executor.0) thread 0xfffffe005786d560 (100110) exclusive sleep mutex tcphash (tcphash) r = 0 (0xfffffe00079db7e0) locked @ /syzkaller/managers/main/kernel/sys/netinet/tcp_usrreq.c:1404 exclusive rw tcpinp (tcpinp) r = 0 (0xfffffe00926b3a90) locked @ /syzkaller/managers/main/kernel/sys/netinet/tcp_usrreq.c:474 db>