Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Jul 2019 20:26:40 +0200
From:      Alexander Leidinger <Alexander@leidinger.net>
To:        current@freebsd.org, net@freebsd.org, jail@freebsd.org
Subject:   panic on epair destroy in current as of r349853, jail related
Message-ID:  <20190709202640.Horde.NiJw42D0neU2FjppH2RxdYB@webmail.leidinger.net>

next in thread | raw e-mail | index | archive | help
This message is in MIME format and has been PGP signed.

--=_zTkON1xidMr3iv3yK_ktBod
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi,

I updated from r347365 to r349853. Now I get a panic on epair destroy=20=20
(one=20end needs to be in a jail, and inside the jail an IP address=20=20
needs=20to be assigned to the epair. If no ifconfig is used inside the=20=
=20
jail,=20there is no panic.

Another user reported something similar (but for him it was enough to=20=20
list=20the interfaces inside the jail with ifconfig) in PR 234985:
     https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234985

Backtrace (here I also renamed the interface before attaching it to=20=20
the=20jail, as I detected the issue with interfaces which are renamed):
Fatal trap 9: general protection fault while in kernel mode
cpuid =3D 13; apic id =3D 33
instruction pointer     =3D 0x20:0xffffffff805f2045
stack pointer           =3D 0x28:0xfffffe0159822880
frame pointer           =3D 0x28:0xfffffe0159822880
code segment            =3D base 0x0, limit 0xfffff, type 0x1b
                         =3D DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        =3D interrupt enabled, resume, IOPL =3D 0
current process         =3D 43334 (ifconfig)
trap number             =3D 9
panic: general protection fault
cpuid =3D 13
time =3D 1562695289
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0159822=
590
vpanic() at vpanic+0x19d/frame 0xfffffe01598225e0
panic() at panic+0x43/frame 0xfffffe0159822640
trap_fatal() at trap_fatal+0x39c/frame 0xfffffe01598226a0
trap() at trap+0x6c/frame 0xfffffe01598227b0
calltrap() at calltrap+0x8/frame 0xfffffe01598227b0
--- trap 0x9, rip =3D 0xffffffff805f2045, rsp =3D 0xfffffe0159822880, rbp=
=20=20
=3D 0xfffffe0159822880 ---
strncmp() at strncmp+0x15/frame 0xfffffe0159822880
ifunit_ref() at ifunit_ref+0x51/frame 0xfffffe01598228c0
ifioctl() at ifioctl+0x508/frame 0xfffffe0159822990
kern_ioctl() at kern_ioctl+0x26d/frame 0xfffffe0159822a00
sys_ioctl() at sys_ioctl+0x15d/frame 0xfffffe0159822ad0
amd64_syscall() at amd64_syscall+0x23a/frame 0xfffffe0159822bf0
fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe0159822bf0
--- syscall (54, FreeBSD ELF64, sys_ioctl), rip =3D 0x8004690da, rsp =3D=20=
=20
0x7fffffffe448,=20rbp =3D 0x7fffffffe4b0 ---
Uptime: 3h34m59s
Dumping 5294 out of 61352 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..=
91%

__curthread () at /space/system/usr_src/sys/amd64/include/pcpu.h:246
246             __asm("movq %%gs:%P1,%0" : "=3Dr" (td) : "n"=20=20
(OFFSETOF_CURTHREAD));
(kgdb)=20#0  __curthread () at=20=20
/space/system/usr_src/sys/amd64/include/pcpu.h:246
#1=20 doadump (textdump=3D1) at /space/system/usr_src/sys/kern/kern_shutdow=
n.c:392
#2  0xffffffff8050cf70 in kern_reboot (howto=3D260)
     at /space/system/usr_src/sys/kern/kern_shutdown.c:479
#3  0xffffffff8050d3e9 in vpanic (fmt=3D<optimized out>, ap=3D<optimized ou=
t>)
     at /space/system/usr_src/sys/kern/kern_shutdown.c:905
#4  0xffffffff8050d123 in panic (fmt=3D<unavailable>)
     at /space/system/usr_src/sys/kern/kern_shutdown.c:832
#5  0xffffffff807e758c in trap_fatal (frame=3D0xfffffe01598227c0, eva=3D0)
     at /space/system/usr_src/sys/amd64/amd64/trap.c:943
#6  0xffffffff807e698c in trap (frame=3D0xfffffe01598227c0)
     at /space/system/usr_src/sys/amd64/amd64/trap.c:221
#7  <signal handler called>
#8  0xffffffff805f2045 in strncmp (s1=3D<optimized out>, s2=3D<optimized ou=
t>,
     n=3D<optimized out>) at /space/system/usr_src/sys/libkern/strncmp.c:44
#9  0xffffffff80605d31 in ifunit_ref (name=3D0xfffffe0159822a20 "panic_test=
1b")
     at /space/system/usr_src/sys/net/if.c:2434
#10 0xffffffff80607ef8 in ifioctl (so=3D0xfffff809a1afd368, cmd=3D322334953=
6,
     data=3D0xfffffe0159822a20 "panic_test1b", td=3D0xfffff8014c83e5a0)
     at /space/system/usr_src/sys/net/if.c:3093
#11 0xffffffff8057658d in fo_ioctl (fp=3D<optimized out>, com=3D3223349536,
     data=3D0xfffff800020e2180, active_cred=3D0x0, td=3D0xfffff8014c83e5a0)
     at /space/system/usr_src/sys/sys/file.h:333
#12 kern_ioctl (td=3D0xfffff8014c83e5a0, fd=3D3, com=3D3223349536,
     data=3D0xfffff800020e2180 "")
     at /space/system/usr_src/sys/kern/sys_generic.c:800
#13 0xffffffff805762ad in sys_ioctl (td=3D0xfffff8014c83e5a0,
     uap=3D0xfffff8014c83e968) at=20=20
/space/system/usr_src/sys/kern/sys_generic.c:712
#14=200xffffffff807e801a in syscallenter (td=3D0xfffff8014c83e5a0)
     at /space/system/usr_src/sys/amd64/amd64/../../kern/subr_syscall.c:135
#15 amd64_syscall (td=3D0xfffff8014c83e5a0, traced=3D0)
     at /space/system/usr_src/sys/amd64/amd64/trap.c:1181
#16 <signal handler called>
#17 0x00000008004690da in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffffffe448

Bye,
Alexander.

--=20
http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF

--=_zTkON1xidMr3iv3yK_ktBod
Content-Type: application/pgp-signature
Content-Description: Digitale PGP-Signatur
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABAgAGBQJdJNxgAAoJEBINsJsD+NiGMS8P/2GFWrYagdCX594w6jgqVm6j
En+B0rT9UYT6c1sQqaA+QoDciGr0PdYEQEYuyNK51/zqfCA2ycT+9EZnIzXyRwtz
wr7wbFUpe8owBrX+oUKe2h4c3WkBDJje01GtsAU1ZjUF7+i3Bm37+2VEozzs99wd
JHR9rErFD5Jngki0pOrnMAnlXjMHkAp0d/Gtrh95ulfXzKSB+LSq0+wAJw0zGFrg
19thf+QiF9a2YEQiHJe2NlqTO/cXIwVyFKnivh14lCEtFAXpn8THl4ZGY/D4C0Fw
A1jc0Edyqp3E31YlWhOMorA4BacAxQCPdSRDQigniEDEdZK9UUWI6XrKZmp9aXcK
kiRseKpKVRey5XhUhABx7LiefkbEVTPNdgefq5EBSGEwHuT9mUzWTlIjm+RpPTsI
SA00GAL5joQjEjHybF3zb4wl61g9pbNp2D63i8Ed5zWLMR6bNYBHG3276bqrRXRV
591IxrdGlF2xciKIyJLRd27Sw308SNX3EWZSLs0GO7hX821mzkP/+93XOtjcAPkx
AU7E3TaaVSq6RvBRYayH7s57SOgH4/Xq5EjhRJQIhiSU6+gZ3xoZueRhMQ+6wV29
1IZf1RpvhwjkW8vsa3hNRfflwxwN7XZXiGqhM8ZB4pmdF/wGqbL5Jttuhc/R6KHQ
zq2Q1GQ6c8lW1+wVQEV8
=C1e5
-----END PGP SIGNATURE-----

--=_zTkON1xidMr3iv3yK_ktBod--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190709202640.Horde.NiJw42D0neU2FjppH2RxdYB>