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

[-- Attachment #1 --]
Hi,

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

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

Backtrace (here I also renamed the interface before attaching it to  
the jail, as I detected the issue with interfaces which are renamed):
Fatal trap 9: general protection fault while in kernel mode
cpuid = 13; apic id = 33
instruction pointer     = 0x20:0xffffffff805f2045
stack pointer           = 0x28:0xfffffe0159822880
frame pointer           = 0x28:0xfffffe0159822880
code segment            = base 0x0, limit 0xfffff, type 0x1b
                         = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 43334 (ifconfig)
trap number             = 9
panic: general protection fault
cpuid = 13
time = 1562695289
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0159822590
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 = 0xffffffff805f2045, rsp = 0xfffffe0159822880, rbp  
= 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 = 0x8004690da, rsp =  
0x7fffffffe448, rbp = 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" : "=r" (td) : "n"  
(OFFSETOF_CURTHREAD));
(kgdb) #0  __curthread () at  
/space/system/usr_src/sys/amd64/include/pcpu.h:246
#1  doadump (textdump=1) at /space/system/usr_src/sys/kern/kern_shutdown.c:392
#2  0xffffffff8050cf70 in kern_reboot (howto=260)
     at /space/system/usr_src/sys/kern/kern_shutdown.c:479
#3  0xffffffff8050d3e9 in vpanic (fmt=<optimized out>, ap=<optimized out>)
     at /space/system/usr_src/sys/kern/kern_shutdown.c:905
#4  0xffffffff8050d123 in panic (fmt=<unavailable>)
     at /space/system/usr_src/sys/kern/kern_shutdown.c:832
#5  0xffffffff807e758c in trap_fatal (frame=0xfffffe01598227c0, eva=0)
     at /space/system/usr_src/sys/amd64/amd64/trap.c:943
#6  0xffffffff807e698c in trap (frame=0xfffffe01598227c0)
     at /space/system/usr_src/sys/amd64/amd64/trap.c:221
#7  <signal handler called>
#8  0xffffffff805f2045 in strncmp (s1=<optimized out>, s2=<optimized out>,
     n=<optimized out>) at /space/system/usr_src/sys/libkern/strncmp.c:44
#9  0xffffffff80605d31 in ifunit_ref (name=0xfffffe0159822a20 "panic_test1b")
     at /space/system/usr_src/sys/net/if.c:2434
#10 0xffffffff80607ef8 in ifioctl (so=0xfffff809a1afd368, cmd=3223349536,
     data=0xfffffe0159822a20 "panic_test1b", td=0xfffff8014c83e5a0)
     at /space/system/usr_src/sys/net/if.c:3093
#11 0xffffffff8057658d in fo_ioctl (fp=<optimized out>, com=3223349536,
     data=0xfffff800020e2180, active_cred=0x0, td=0xfffff8014c83e5a0)
     at /space/system/usr_src/sys/sys/file.h:333
#12 kern_ioctl (td=0xfffff8014c83e5a0, fd=3, com=3223349536,
     data=0xfffff800020e2180 "")
     at /space/system/usr_src/sys/kern/sys_generic.c:800
#13 0xffffffff805762ad in sys_ioctl (td=0xfffff8014c83e5a0,
     uap=0xfffff8014c83e968) at  
/space/system/usr_src/sys/kern/sys_generic.c:712
#14 0xffffffff807e801a in syscallenter (td=0xfffff8014c83e5a0)
     at /space/system/usr_src/sys/amd64/amd64/../../kern/subr_syscall.c:135
#15 amd64_syscall (td=0xfffff8014c83e5a0, traced=0)
     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.

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

[-- Attachment #2 --]
-----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-----

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