Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Jul 2023 18:45:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 272319] FreeBSD kernel crash on MPD5 restart with PPP configuration.
Message-ID:  <bug-272319-7501-mq6ypvpbaF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-272319-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-272319-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272319

--- Comment #19 from ny <ny2007ltd@gmail.com> ---
I have tested patch under FreeBSD 13.2 / amd64.
Now mpd5 restart - no any crashes.

On telnet 127.0.0.1 57 - no connect, but new crash:

Unread portion of the kernel message buffer:
panic: _mtx_lock_sleep: recursed on non-recursive mutex socket @
/usr/src/sys/netgraph/ng_ksocket.c:1196

cpuid =3D 0
time =3D 1688330477
KDB: stack backtrace:
#0 0xffffffff80c423a5 at kdb_backtrace+0x65
#1 0xffffffff80bf5ff1 at vpanic+0x151
#2 0xffffffff80bf5df3 at panic+0x43
#3 0xffffffff80bd176c at __mtx_lock_sleep+0x43c
#4 0xffffffff80bd12b5 at __mtx_lock_flags+0xe5
#5 0xffffffff82d37d53 at ng_ksocket_accept+0x33
#6 0xffffffff80c99806 at solisten_wakeup+0x26
#7 0xffffffff80dc7037 at tcp_do_segment+0x15b7
#8 0xffffffff80dc4ddb at tcp_input_with_port+0xddb
#9 0xffffffff80dc59ab at tcp_input+0xb
#10 0xffffffff80db628b at ip_input+0x18b
#11 0xffffffff80d38cd1 at swi_net+0x1a1
#12 0xffffffff80bb2de9 at ithread_loop+0x279
#13 0xffffffff80bafcc0 at fork_exit+0x80
#14 0xffffffff8108df2e at fork_trampoline+0xe
Uptime: 1m46s
Dumping 175 out of 2004 MB:..10%..19%..28%..37%..46%..55%..64%..73%..82%..9=
1%

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
55              __asm("movq %%gs:%P1,%0" : "=3Dr" (td) : "n" (offsetof(stru=
ct
pcpu,
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
#1  doadump (textdump=3D<optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:396
#2  0xffffffff80bf5bff in kern_reboot (howto=3D260)
    at /usr/src/sys/kern/kern_shutdown.c:484
#3  0xffffffff80bf605e in vpanic (fmt=3D<optimized out>,=20
    ap=3Dap@entry=3D0xfffffe00037339c0) at /usr/src/sys/kern/kern_shutdown.=
c:923
#4  0xffffffff80bf5df3 in panic (fmt=3D<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:847
#5  0xffffffff80bd176c in __mtx_lock_sleep (c=3Dc@entry=3D0xfffff8000d95d01=
8,=20
    v=3D18446741874752305408, opts=3Dopts@entry=3D0,=20
    file=3Dfile@entry=3D0xffffffff82d39567 "/usr/src/sys/netgraph/ng_ksocke=
t.c",=20
    line=3Dline@entry=3D1196) at /usr/src/sys/kern/kern_mutex.c:546
#6  0xffffffff80bd12b5 in __mtx_lock_flags (c=3D0xfffff8000d95d018,=20
    opts=3D<unavailable>,=20
    file=3D0xffffffff82d39567 "/usr/src/sys/netgraph/ng_ksocket.c", line=3D=
1196)
    at /usr/src/sys/kern/kern_mutex.c:284
#7  0xffffffff82d37d53 in ng_ksocket_accept (priv=3D0xfffff80014246180,=20
    priv@entry=3D<error reading variable: value is not available>)
    at /usr/src/sys/netgraph/ng_ksocket.c:1196
#8  0xffffffff80c99806 in solisten_wakeup (sol=3D0xfffff8000d95d000,=20
    sol@entry=3D0xfffff8000deb257c) at /usr/src/sys/kern/uipc_socket.c:985
#9  0xffffffff80c9fee8 in soisconnected (so=3Dso@entry=3D0xfffff8000d961b10)
    at /usr/src/sys/kern/uipc_socket.c:4053
#10 0xffffffff80dc7037 in tcp_do_segment (m=3D0xfffff8000deb2500,=20
    m@entry=3D<error reading variable: value is not available>,=20
    th=3D0xfffff8000deb257c,=20
    th@entry=3D<error reading variable: value is not available>,=20
    so=3D<unavailable>,=20
    so@entry=3D<error reading variable: value is not available>,=20
    tp=3D0xfffffe0094589ca8,=20
    tp@entry=3D<error reading variable: value is not available>,=20
    drop_hdrlen=3D52,=20
    drop_hdrlen@entry=3D<error reading variable: value is not available>,=20
    tlen=3D<optimized out>,=20
    tlen@entry=3D<error reading variable: value is not available>,=20
    iptos=3D16 '\020',=20
    iptos@entry=3D<error reading variable: value is not available>)
    at /usr/src/sys/netinet/tcp_input.c:2469
#11 0xffffffff80dc4ddb in tcp_input_with_port (mp=3Dmp@entry=3D<unavailable=
>,=20
    offp=3Doffp@entry=3D<unavailable>, proto=3D<optimized out>, port=3Dport=
@entry=3D0)
    at /usr/src/sys/netinet/tcp_input.c:1180
#12 0xffffffff80dc59ab in tcp_input (mp=3D<unavailable>,=20
    mp@entry=3D<error reading variable: value is not available>,=20
    offp=3D<unavailable>,=20
    offp@entry=3D<error reading variable: value is not available>,=20
    proto=3D<unavailable>,=20
    proto@entry=3D<error reading variable: value is not available>)
    at /usr/src/sys/netinet/tcp_input.c:1509
#13 0xffffffff80db628b in ip_input (m=3D0x0,=20
    m@entry=3D<error reading variable: value is not available>)
    at /usr/src/sys/netinet/ip_input.c:840
#14 0xffffffff80d38cd1 in netisr_process_workstream_proto (
    nwsp=3D0xffffffff82b876c0, proto=3D1) at /usr/src/sys/net/netisr.c:919
#15 swi_net (arg=3D0xffffffff82b876c0) at /usr/src/sys/net/netisr.c:966
#16 0xffffffff80bb2de9 in intr_event_execute_handlers (ie=3D0xfffff800034cd=
500,=20
    p=3D<optimized out>) at /usr/src/sys/kern/kern_intr.c:1169
#17 ithread_execute_handlers (ie=3D0xfffff800034cd500, p=3D<optimized out>)
    at /usr/src/sys/kern/kern_intr.c:1182
#18 ithread_loop (arg=3Darg@entry=3D0xfffff800034704c0)
    at /usr/src/sys/kern/kern_intr.c:1270
#19 0xffffffff80bafcc0 in fork_exit (
    callout=3D0xffffffff80bb2b70 <ithread_loop>, arg=3D0xfffff800034704c0,=
=20
    frame=3D0xfffffe0003733f40) at /usr/src/sys/kern/kern_fork.c:1093
#20 <signal handler called>
(kgdb)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272319-7501-mq6ypvpbaF>