From owner-freebsd-stable@freebsd.org Wed Dec 9 00:09:22 2020 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 248814AFAD6 for ; Wed, 9 Dec 2020 00:09:22 +0000 (UTC) (envelope-from pmc@citylink.dinoex.sub.org) Received: from uucp.dinoex.sub.de (uucp.dinoex.sub.de [IPv6:2001:1440:5001:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "uucp.dinoex.sub.de", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CrHTs6BnQz3LSc; Wed, 9 Dec 2020 00:09:20 +0000 (UTC) (envelope-from pmc@citylink.dinoex.sub.org) Received: from uucp.dinoex.sub.de (uucp.dinoex.org [185.220.148.12]) by uucp.dinoex.org (8.16.0.50/8.16.0.50) with ESMTPS id 0B9094Kg067148 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 9 Dec 2020 01:09:05 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) X-Authentication-Warning: uucp.dinoex.sub.de: Host uucp.dinoex.org [185.220.148.12] claimed to be uucp.dinoex.sub.de Received: (from uucp@localhost) by uucp.dinoex.sub.de (8.16.0.50/8.16.0.50/Submit) with UUCP id 0B9094mf067147; Wed, 9 Dec 2020 01:09:04 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) Received: from gate.oper.dinoex.org (gate-e [192.168.98.2]) by citylink.dinoex.sub.de (8.16.1/8.16.1) with ESMTP id 0B8NwJo3013165; Wed, 9 Dec 2020 00:58:19 +0100 (CET) (envelope-from peter@gate.oper.dinoex.org) Received: from gate.oper.dinoex.org (gate-e [192.168.98.2]) by gate.oper.dinoex.org (8.16.1/8.16.1) with ESMTP id 0B8Nw7fP012819; Wed, 9 Dec 2020 00:58:07 +0100 (CET) (envelope-from peter@gate.oper.dinoex.org) Received: (from peter@localhost) by gate.oper.dinoex.org (8.16.1/8.16.1/Submit) id 0B8Nw7fE012818; Wed, 9 Dec 2020 00:58:07 +0100 (CET) (envelope-from peter) Date: Wed, 9 Dec 2020 00:58:07 +0100 From: Peter Sender: li-fbsd@citylink.dinoex.sub.org To: Kristof Provost Cc: freebsd-stable@freebsd.org Subject: Re: Panic: 12.2 fails to use VIMAGE jails Message-ID: References: <20201207125451.GA11406@gate.oper.dinoex.org> <39DBEA53-960F-4D70-86D7-847E6DFA437D@FreeBSD.org> <20201207233449.GA11025@gate.oper.dinoex.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Milter: Spamilter (Reciever: uucp.dinoex.sub.de; Sender-ip: 185.220.148.12; Sender-helo: uucp.dinoex.sub.de; ) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (uucp.dinoex.org [185.220.148.12]); Wed, 09 Dec 2020 01:09:07 +0100 (CET) X-Rspamd-Queue-Id: 4CrHTs6BnQz3LSc X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Dec 2020 00:09:22 -0000 Here is the next funny crashdump - I obtained this one twice and also the sysctl_rtsock() again. I can reproduce this by just starting and stopping a most simple jail that does only exec.start = "/bin/sleep 4 &"; (And as usual, when I let it time out, nothing bad happens.) Fatal trap 9: general protection fault while in kernel mode cpuid = 1; apic id = 02 instruction pointer = 0x20:0xffffffff80a2ac45 stack pointer = 0x28:0xfffffe0047cf2890 frame pointer = 0x28:0xfffffe0047cf2890 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 = 13557 (ifconfig) trap number = 9 panic: general protection fault cpuid = 1 time = 1607469295 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0047cf25a0 vpanic() at vpanic+0x17b/frame 0xfffffe0047cf25f0 panic() at panic+0x43/frame 0xfffffe0047cf2650 trap_fatal() at trap_fatal+0x391/frame 0xfffffe0047cf26b0 trap() at trap+0x67/frame 0xfffffe0047cf27c0 calltrap() at calltrap+0x8/frame 0xfffffe0047cf27c0 --- trap 0x9, rip = 0xffffffff80a2ac45, rsp = 0xfffffe0047cf2890, rbp = 0xfffffe0047cf2890 --- strncmp() at strncmp+0x15/frame 0xfffffe0047cf2890 ifunit_ref() at ifunit_ref+0x59/frame 0xfffffe0047cf28d0 ifioctl() at ifioctl+0x427/frame 0xfffffe0047cf2990 kern_ioctl() at kern_ioctl+0x275/frame 0xfffffe0047cf29f0 sys_ioctl() at sys_ioctl+0x101/frame 0xfffffe0047cf2ac0 amd64_syscall() at amd64_syscall+0x380/frame 0xfffffe0047cf2bf0 fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0047cf2bf0 --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x800475b2a, rsp = 0x7fffffffe3b8, rbp = 0x7fffffffe450 --- Uptime: 8m54s Dumping 880 out of 3959 MB: