From owner-freebsd-jail@freebsd.org Tue Jul 9 18:27:37 2019 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1F93F15E1501 for ; Tue, 9 Jul 2019 18:27:37 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 74DE676B73 for ; Tue, 9 Jul 2019 18:27:36 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: by mailman.ysv.freebsd.org (Postfix) id 2D66215E14F8; Tue, 9 Jul 2019 18:27:36 +0000 (UTC) Delivered-To: jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0A68B15E14F6; Tue, 9 Jul 2019 18:27:36 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:313::1:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D98B776B68; Tue, 9 Jul 2019 18:27:29 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from outgoing.leidinger.net (p5B1651BC.dip0.t-ipconnect.de [91.22.81.188]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by mailgate.Leidinger.net (Postfix) with ESMTPSA id 8F05828B55; Tue, 9 Jul 2019 20:27:17 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [IPv6:fd73:10c7:2053:1::3:102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by outgoing.leidinger.net (Postfix) with ESMTPS id 8659A306D; Tue, 9 Jul 2019 20:26:42 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.15.2/8.14.4/Submit) id x69IQeoh017613; Tue, 9 Jul 2019 20:26:40 +0200 (CEST) (envelope-from Alexander@leidinger.net) X-Authentication-Warning: webmail.leidinger.net: www set sender to Alexander@leidinger.net using -f Received: from IO.Leidinger.net (IO.Leidinger.net [192.168.1.11]) by webmail.leidinger.net (Horde Framework) with HTTPS; Tue, 09 Jul 2019 20:26:40 +0200 Date: Tue, 09 Jul 2019 20:26:40 +0200 Message-ID: <20190709202640.Horde.NiJw42D0neU2FjppH2RxdYB@webmail.leidinger.net> From: Alexander Leidinger To: current@freebsd.org, net@freebsd.org, jail@freebsd.org Subject: panic on epair destroy in current as of r349853, jail related User-Agent: Horde Application Framework 5 Accept-Language: de,en Content-Type: multipart/signed; boundary="=_zTkON1xidMr3iv3yK_ktBod"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1562696838; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=nqpdNGUD5IByBOwj92gzZa16x66pflXuqzAsDGVOyqE=; b=cTImwBl0HAr+HqrDVsXl+gmVpY5lZZ9GtesHP2uNG7WSjQNwQqaGn9RmqSLwXas37f/J6D 8+ixOGI2nOcCNJl3OWSCqFU7i7LTlaGU/i9kdiMK5go1SUGLZU0ZV70PInz81jFnkCx9aX feBkKCu9KiHHwSQUNBX4TPJnNKohpID9svVUlsBBsWp5oermV9oE0ccl6G7Gv5t5eISzzo vcjCUTIYYSzffSIZ2JopzCnQcWSsATHcCN4eAKOvy+sHNqDb5haAG4sgIaDZFvf/UVPd0I t4COdLNDk+b9l9ORAmXtqJ+cMP1y/d1YZehANnM0Gmd8g0IrX4mJMF+0jJ7Wtg== ARC-Seal: i=1; s=outgoing-alex; d=leidinger.net; t=1562696838; a=rsa-sha256; cv=none; b=eFf/DjyQsovLLtmpkejNk3ohqgqrk6bhMAJq5CPbxE4uWBMFy7CvIEFnenng3vAjQLE/1x CsK5j3Cr53woOw5shymjagjOlWCUBNPuFRXFk1LtfDVdUVO6WtjOFG3GLxXuk58pQia9IU cIDm5rLM/x7ROWJ0Pk5kqVyGne4sZM5v2spRqOV1EiCCt4u2OX2bUe2Ao/KEk6xapVzDqs Sl6oqYVsfrAtVwRVYb9/EyOIqUy1D5Rlboy70g4JDXr3/rDuFwxbBl+Fn0ct248yFkZnRt b32MtxJqhoWJuB+hPGxEiztGnFBVMGTxpexqlfej2huoFrP19M2/dGbHxFLBhw== ARC-Authentication-Results: i=1; mailgate.Leidinger.net; auth=pass smtp.auth=netchild@leidinger.net smtp.mailfrom=Alexander@leidinger.net X-Rspamd-Queue-Id: D98B776B68 X-Spamd-Bar: --------- X-Spamd-Result: default: False [-9.77 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; HAS_XAW(0.00)[]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; XAW_SERVICE_ACCT(1.00)[]; IP_SCORE(-3.71)[ip: (-9.79), ipnet: 2a00:1828::/32(-4.88), asn: 34240(-3.87), country: DE(-0.01)]; DKIM_TRACE(0.00)[leidinger.net:+]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; MX_GOOD(-0.01)[mailgate.leidinger.net]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_SHORT(-0.95)[-0.949,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:34240, ipnet:2a00:1828::/32, country:DE]; ARC_ALLOW(-1.00)[i=1]; RECEIVED_SPAMHAUS_PBL(0.00)[188.81.22.91.zen.spamhaus.org : 127.0.0.10] X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jul 2019 18:27:37 -0000 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, ap=3D) at /space/system/usr_src/sys/kern/kern_shutdown.c:905 #4 0xffffffff8050d123 in panic (fmt=3D) 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 #8 0xffffffff805f2045 in strncmp (s1=3D, s2=3D, n=3D) 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, 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 #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--