Project

General

Profile

Actions

Bug #3357

closed

tincd induced panic

Added by fgudin over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Networking
Target version:
Start date:
09/02/2023
Due date:
% Done:

0%

Estimated time:

Description

Hello,
trying to join a tinc VPN, the tincd triggers a panic when connecting:

(…)
Loaded symbols for /boot/kernel/led.ko
_get_mycpu () at ./machine/thread.h:69
69./machine/thread.h: No such file or directory.
(kgdb) bt
#0  _get_mycpu () at ./machine/thread.h:69
#1  md_dumpsys (di=0xffffffff81192ba0 <dumper>) at /usr/src/sys/platform/pc64/x86_64/dump_machdep.c:274
#2  0xffffffff802c9228 in db_fncall (dummy1=<optimized out>, dummy2=<optimized out>, dummy3=<optimized out>, 
    dummy4=<optimized out>) at /usr/src/sys/ddb/db_command.c:559
#3  0xffffffff802c96e6 in db_command (last_cmdp=0xffffffff81145350 <db_last_command>, cmd_table=<optimized out>, 
    aux_cmd_tablep=<optimized out>, aux_cmd_tablep_end=<optimized out>) at /usr/src/sys/ddb/db_command.c:401
#4  db_command_loop () at /usr/src/sys/ddb/db_command.c:468
#5  0xffffffff802ccd12 in db_trap (type=type@entry=12, code=code@entry=0) at /usr/src/sys/ddb/db_trap.c:71
#6  0xffffffff80bd2156 in kdb_trap (type=type@entry=12, code=code@entry=0, regs=regs@entry=0xfffff8008b0c1528)
    at /usr/src/sys/platform/pc64/x86_64/db_interface.c:176
#7  0xffffffff80bda6ed in trap_fatal (frame=frame@entry=0xfffff8008b0c1528, eva=<optimized out>)
    at /usr/src/sys/platform/pc64/x86_64/trap.c:1095
#8  0xffffffff80bdad45 in trap_pfault (usermode=0, frame=0xfffff8008b0c1528) at /usr/src/sys/platform/pc64/x86_64/trap.c:995
#9  trap_pfault (frame=0xfffff8008b0c1528, usermode=0) at /usr/src/sys/platform/pc64/x86_64/trap.c:854
#10 0xffffffff80bdb26c in trap (frame=0xfffff8008b0c1528) at /usr/src/sys/platform/pc64/x86_64/trap.c:629
#11 0xffffffff80b9e95a in calltrap () at /usr/src/sys/platform/pc64/x86_64/exception.S:319
#12 0xffffffff807c3d9b in tcp6_ctlinput (msg=0xfffff8008b0c16e8) at ./cpu/endian.h:168
#13 0xffffffff80748377 in netmsg_put_port (port=<optimized out>, lmsg=<optimized out>) at /usr/src/sys/net/netisr.c:171
#14 netmsg_put_port (port=<optimized out>, lmsg=<optimized out>) at /usr/src/sys/net/netisr.c:166
#15 0xffffffff8067b016 in lwkt_beginmsg (msg=0xfffff8008b0c16e8, port=<optimized out>) at /usr/src/sys/kern/lwkt_msgport.c:193
#16 lwkt_domsg (port=<optimized out>, msg=0xfffff8008b0c16e8, flags=0) at /usr/src/sys/kern/lwkt_msgport.c:193
#17 0xffffffff806c4bbc in so_pr_ctlinput (pr=pr@entry=0xffffffff810fe450 <inet6sw+208>, cmd=cmd@entry=5, 
    arg=arg@entry=0xfffff8004ef97698, extra=extra@entry=0xfffff8008b0c18b8) at /usr/src/sys/kern/uipc_msg.c:610
#18 0xffffffff806be2d3 in kpfctlinput2 (cmd=cmd@entry=5, sa=sa@entry=0xfffff8004ef97698, 
    ctlparam=ctlparam@entry=0xfffff8008b0c18b8) at /usr/src/sys/kern/uipc_domain.c:238
#19 0xffffffff807e38f4 in ip6_output () at /usr/src/sys/netinet6/ip6_output.c:710
#20 0xffffffff807f2894 in udp6_output (in6p=0xfffff8004ef97640, m=0xfffff80113f11e00, addr6=<optimized out>, control=0x0, 
    td=<optimized out>) at /usr/src/sys/netinet6/udp6_output.c:251
#21 0xffffffff807f2b38 in udp6_send (msg=0xfffff801150ef6c0) at /usr/src/sys/netinet6/udp6_usrreq.c:701
#22 0xffffffff80747ee9 in netmsg_service_loop (arg=<optimized out>) at /usr/src/sys/net/netisr.c:370
#23 0xffffffff80672900 in _lwkt_dequeue (td=<error reading variable: Cannot access memory at address 0x8>)
    at /usr/src/sys/kern/lwkt_thread.c:158
#24 lwkt_deschedule_self (td=<optimized out>) at /usr/src/sys/kern/lwkt_thread.c:326

(I did 'call dumpsys' to get the dump; at time of the crash, the top of stack is at tcp6_ctlinput())

Where should i upload my core ? I guess this would help a lot troubleshooting this.

Thanks in advance for your help!

Actions #1

Updated by fgudin over 1 year ago

  • Status changed from New to Resolved

Cherry-picked 0f9a55c487a8e66f57486a0e9e4ec8a856a347e7 and it's fixed.

Thanks so much Matt!

Actions

Also available in: Atom PDF