From owner-freebsd-current@freebsd.org Mon Mar 2 04:07:25 2020 Return-Path: Delivered-To: freebsd-current@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 1B049258570 for ; Mon, 2 Mar 2020 04:07:25 +0000 (UTC) (envelope-from dmarquess@gmail.com) Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48W66h1QJWz4Q27 for ; Mon, 2 Mar 2020 04:07:24 +0000 (UTC) (envelope-from dmarquess@gmail.com) Received: by mail-lj1-x242.google.com with SMTP id x7so10160176ljc.1 for ; Sun, 01 Mar 2020 20:07:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=OmdCD0q+xfOUMAMQZVBxck1u+OvjFBXHNLluNedOboA=; b=tc4CFhRh2Rfx8kS88F9eV4+tBlYNkiKWEynyQlYlRY8MMqto0w3iAhGyq3WZIUuJj3 ioByOGD7LBrdZSERRiBXhOFIP0vZyyD+9oOAtoNAhjDWYbd84hGBB02Qor38LSGxGHka AJMh4Y4aj/+p+hNs32ZIYsgciEgx/GVLdCJaTvfLqEnE4e+6loCctyhCTP4vt+sHeK0/ 9uqCDBe1Cvz+pA43Ff87pVYPk3COiUFevWr8a5P3i62wImn+qGvFAbJ45jXZYtYU0hTJ tp/Tb1Pdq6ZUgt9mwZN7BR/FLRQqs16fw2uJMVxwpj9Ir9NxPzJnhbB4MeBneFAsugZ7 /fOg== 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=OmdCD0q+xfOUMAMQZVBxck1u+OvjFBXHNLluNedOboA=; b=niqehhopjCs42kAJCaUEM1xRPxO2iFQbpaJ2rqTvvZrm78VMGW8YQQ0PV1Mcbrw6d7 O+8UNQRhUWsBsFq05Ub5sGgyBlGS9deL81Zf/ldwgp5dc+ZCNzeMXlXIDr9tt3m0e3KS QxUVg7ElEnVE+1GK9GzNcmqzA9e8z/vlB0c68LQ0KIHE9le9sHzYAf6rI3mNN9+K4B// rWdWT/WsYbP+h7J+nAKdWwwpXQUlUCQUR96VwJp0gv7m0r973bXTkJdl12xhmZmD0WDq 1oNh+QWmYxpMOqQnJzpgdnHLQ5uuAl8ANkNi48M657LEHnO/luprHaHiIKKAL3R+4/wa JYGg== X-Gm-Message-State: ANhLgQ3IoAwni/Bd3/U21YUoDYK9YQ7iVpvN1AKEXcuTtvT1Jp+fihgz ge/WbqwzoixkanSPC02j23qP427eqQ7ALVbj1kVpH8QU7mA= X-Google-Smtp-Source: ADFU+vtef7y77jH2JMUUp84OQUu+MUuY6kS8ZXV+dldqHqlgtboZvZsMGuOAc4uJQlyhgIw7vHL/LboTmOZy+3jOhF8= X-Received: by 2002:a05:651c:545:: with SMTP id q5mr10178829ljp.139.1583122041568; Sun, 01 Mar 2020 20:07:21 -0800 (PST) MIME-Version: 1.0 From: Dustin Marquess Date: Sun, 1 Mar 2020 22:07:09 -0600 Message-ID: Subject: -CURRENT fatal trap cause by cxgbe module To: freebsd-current@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 48W66h1QJWz4Q27 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=tc4CFhRh; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of dmarquess@gmail.com designates 2a00:1450:4864:20::242 as permitted sender) smtp.mailfrom=dmarquess@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_DN_NONE(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(0.00)[ip: (2.87), ipnet: 2a00:1450::/32(-2.41), asn: 15169(-1.66), country: US(-0.05)]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2.4.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2020 04:07:25 -0000 So I've been fighting with any current from the last month or so instantly crashing when I boot it. I did notice that kernels in the various snapshot images were working, however, so I was trying to figure out why. At first I thought it was because I had INVARIANTS and such disabled, but no, I finally figured it out. I've had in my /boot/loader.conf for a while now: if_cxgbe_load="YES" I guess since the stock installer kernels don't have cxgbe enabled by default. I added "device cxgbe" to my kernels a while ago. Normally the kernel would give some error about the module already being loaded or something and just continue. As of last month or so, however, instead it just crashes: FreeBSD clang version 9.0.1 (git@github.com:llvm/llvm-project.git c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1) WARNING: WITNESS option enabled, expect reduced performance. kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x8 fault code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff80622931 stack pointer = 0x28:0xffffffff8241c9a0 frame pointer = 0x28:0xffffffff8241c9e0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = resume, IOPL = 0 current process = 0 () trap number = 12 panic: page fault cpuid = 0 time = 1 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xffffffff8241c600 vpanic() at vpanic+0x18a/frame 0xffffffff8241c660 panic() at panic+0x43/frame 0xffffffff8241c6c0 trap_fatal() at trap_fatal+0x386/frame 0xffffffff8241c720 trap_pfault() at trap_pfault+0x99/frame 0xffffffff8241c7a0 trap() at trap+0x4e9/frame 0xffffffff8241c8d0 calltrap() at calltrap+0x8/frame 0xffffffff8241c8d0 --- trap 0xc, rip = 0xffffffff80622931, rsp = 0xffffffff8241c9a0, rbp = 0xffffffff8241c9e0 --- malloc() at malloc+0x51/frame 0xffffffff8241c9e0 sysctl_handle_string() at sysctl_handle_string+0x12d/frame 0xffffffff8241ca20 sysctl_root_handler_locked() at sysctl_root_handler_locked+0xa2/frame 0xffffffff8241ca70 sysctl_register_oid() at sysctl_register_oid+0x54c/frame 0xffffffff8241cd80 sysctl_register_all() at sysctl_register_all+0x88/frame 0xffffffff8241cda0 mi_startup() at mi_startup+0xf2/frame 0xffffffff8241cdf0 btext() at btext+0x2c KDB: enter: panic [ thread pid 0 tid 0 ] Stopped at kdb_enter+0x37: movq $0,0xa5f4a6(%rip) db> If I take the if_cxgbe_load out, however, it boots fine. Thanks! -Dustin