From owner-freebsd-hackers@freebsd.org Thu Apr 12 04:23:06 2018 Return-Path: Delivered-To: freebsd-hackers@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 9ABCAF8D218 for ; Thu, 12 Apr 2018 04:23:06 +0000 (UTC) (envelope-from lists@eitanadler.com) 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 3450381848 for ; Thu, 12 Apr 2018 04:23:06 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: by mailman.ysv.freebsd.org (Postfix) id E2413F8D216; Thu, 12 Apr 2018 04:23:05 +0000 (UTC) Delivered-To: hackers@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 CF747F8D215 for ; Thu, 12 Apr 2018 04:23:05 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-yb0-x22c.google.com (mail-yb0-x22c.google.com [IPv6:2607:f8b0:4002:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A4A081847 for ; Thu, 12 Apr 2018 04:23:05 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: by mail-yb0-x22c.google.com with SMTP id p126-v6so1377291ybg.8 for ; Wed, 11 Apr 2018 21:23:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:from:date:message-id:subject:to; bh=eFs8Su+VH+yqdKm5A+8vlBfjS3qEIP6W6lb7dcNuPhM=; b=VCwMhQnUGa0IP4G7sgjkpVZ+WjNMQ3K/NV83OYA0UCIwOy4z1G+aVK0xkodrbDPXdP CQkt7fS0TdojA8iHhibejb8+u6ru0NJSUUI3mxYJv7vQkPJo2Q97e8Vlcmckya7iXXay h+tL66WY7W+PI6Y2+jneDGlrt9glBf7JvP2X4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=eFs8Su+VH+yqdKm5A+8vlBfjS3qEIP6W6lb7dcNuPhM=; b=DmBy2EUbqALmBmONmsOT0XbJCy3eDeME4HfiZ7m8Dtl4av4oN1R7lsaox3Rv9A6L4t 8kZ7X04JiUGAmf66JdrqWMFQ9jJsqILEp+486Uby+ad7ZfHkMZ1VLyaLpMgl0jdb9+B8 GawjclwWjHBNZfydFZxU434iYM5hmVhjcpRD3CgMxXW87Fu8iFOwl/6w7mVuU5QQYFam cZ0h5WxwMNy8CbOIT9fGTXJAhca3cFGH2KenYK5VQn0hCfbLUzheEZTgSzL567Ype0dn b9Sgq8aFAvW8qi2ggsmGxX+mW0WL4h/T5HB2wabcuxv1qiEPHUE7oteWooaEhAwzqjCh XshA== X-Gm-Message-State: ALQs6tDt5pizyMBmIDdkYR7OslHFxQHaYwrH+0IdHbinMuVsMJPm+Jm/ F/vJqInLcbmT1jvKRiUkNnejxarbFvXRbJ44+4aDoTxi X-Google-Smtp-Source: AIpwx48tlOjcGaN56nC5ZGt1re6vBiq8CjlmTZoEYgWIavZpzDMuJiT2GqBQgQ6s32I96yc/n+5oCllkF0rh9Z0xqUU= X-Received: by 2002:a25:cf8c:: with SMTP id f134-v6mr3292530ybg.69.1523506984479; Wed, 11 Apr 2018 21:23:04 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:98c3:0:0:0:0:0 with HTTP; Wed, 11 Apr 2018 21:22:33 -0700 (PDT) From: Eitan Adler Date: Wed, 11 Apr 2018 21:22:33 -0700 Message-ID: Subject: dcons unload panic (including debug info): Fatal trap 12: page fault while in kernel mode To: "hackers@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2018 04:23:06 -0000 How to reproduce: kldload dcons; kldunload dcons Unread portion of the kernel message buffer: [124] [124] [124] Fatal trap 12: page fault while in kernel mode [124] cpuid = 10; apic id = 0a [124] fault virtual address = 0xffffffff8423ef48 [124] fault code = supervisor read data, page not present [124] instruction pointer = 0x20:0xffffffff80be84d0 [124] stack pointer = 0x28:0xfffffe0077bff920 [124] frame pointer = 0x28:0xfffffe0077bff930 [124] code segment = base 0x0, limit 0xfffff, type 0x1b [124] = DPL 0, pres 1, long 1, def32 0, gran 1 [124] processor eflags = interrupt enabled, resume, IOPL = 0 [124] current process = 12 (swi6: Giant taskq) __curthread () at ./machine/pcpu.h:230 230 __asm("movq %%gs:%1,%0" : "=r" (td) more here: https://reviews.freebsd.org/P170 -- Eitan Adler