From owner-freebsd-stable@freebsd.org Thu Dec 6 17:38:11 2018 Return-Path: Delivered-To: freebsd-stable@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 8E163130CB6D for ; Thu, 6 Dec 2018 17:38:11 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 98521770C0 for ; Thu, 6 Dec 2018 17:38:10 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: by mail-pg1-x52d.google.com with SMTP id w7so436763pgp.13 for ; Thu, 06 Dec 2018 09:38:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=SZKyMR2PercVOw5A0JnuqbZAup2J6cfzflVOOzYh5CU=; b=FeYk2b4iPCGjEwMKLjWGi00/hol6hQrhNfwci1GCh2mFZLp65oAzkcE5tOfV1cHM9T B0dvUl2hnW+vJ8cBZcStrOtVed5tIMJrhvpkh4DtGc6qTBmdC+QJDabM/NUrbeICeYKy ybfJ8ve9HY3FbThECiu+ZUYdpfESK+GikGqN8DSnWCxGLQrKJMlmgnzUUrEKD5hyVb61 QXTJF2xXtJvEwoPcAp6Gm9OOFxBLXFphQY8PHDTPZfNXKYsa17ZJZXwFDkgw9eU8hNlM HNjEfSsQnwTcB8DvyoF6FWDMFEEH/vgTCVHNC+2AuYXTRlWX2nghGJ3XhLsfc1JWPgwb b9Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=SZKyMR2PercVOw5A0JnuqbZAup2J6cfzflVOOzYh5CU=; b=fDkuk/0XcqIj9TlMMfSMTYa4f7m0mKUelO1UvIRtxBqKvb9svdLjdwHeTuHFOeZTty bxTLdho/tK2/naeiGgGc6jx5042wluU4mSoyLVhbEThhevUOH8n9Ev3GayINxgKFIgfu sCrbwNkFs3Ez/hHnLo5wJ0Fj94d/9YSlO0UC4bAGbzyEcmRXT3YwTAagqxrKz7J0MYQP QP63pry2rpUFxf4pRNIicHicpvA/sOx1cGfSn+Ys9HF8PlS2llCNLm5pu1U67wtMM2VD +SEOlIpNdNwOMZQn0+P3bfIRD5fDZpnhjb78WjpQ7k5S17R74YsHwfAtbudo+LzeqAqU 1gtQ== X-Gm-Message-State: AA+aEWZwNsQykWcNZkjWkrEOqP1p2Zf7JrbENSH4/IbNORHmVfzbL9n6 xnYNE1Gh16XIEQeq6j+/2fIGHW/h X-Google-Smtp-Source: AFSGD/W4ub3sHuzntvvhuD4H2Pdc4lwBcfApYyomBPKoWDxEMJaeoOXwd3hW5/4gfQg9IhHo6BuowQ== X-Received: by 2002:a62:3c1:: with SMTP id 184mr17462485pfd.56.1544117888860; Thu, 06 Dec 2018 09:38:08 -0800 (PST) Received: from [10.192.166.0] (stargate.chelsio.com. [12.32.117.8]) by smtp.googlemail.com with ESMTPSA id r83sm2177382pfc.115.2018.12.06.09.38.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Dec 2018 09:38:07 -0800 (PST) Subject: Re: Kernel panic, stable/12 r341604, swapon -a in SU mode, geli encrypted swap, Chelsio T6225-CR, and ccr(4) To: =?UTF-8?Q?Trond_Endrest=c3=b8l?= , FreeBSD stable References: From: Navdeep Parhar Message-ID: <58497f97-f1ff-0d80-f9b9-5722e53ffa41@gmail.com> Date: Thu, 6 Dec 2018 09:38:06 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 98521770C0 X-Spamd-Result: default: False [-4.58 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_IN_DNSWL_NONE(0.00)[d.2.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.99)[-0.985,0]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-0.58)[ipnet: 2607:f8b0::/32(-1.53), asn: 15169(-1.31), country: US(-0.09)]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2018 17:38:11 -0000 Can you please file a bug at https://bugs.freebsd.org/bugzilla/ and assign it to me? Regards, Navdeep On 12/6/18 4:02 AM, Trond Endrest=C3=B8l wrote: > After booting stable/12 r341604, running a custom kernel including=20 > cxgbe(4), cxgbev(4), and ccr(4), and running swapon -a in SU mode: >=20 > GEOM_ELI: Device gpt/swap0.eli created. > GEOM_ELI: Encryption: AES-XTS 256 > GEOM_ELI: Crypto: hardware >=20 >=20 > Fatal trap 12: page fault while in kernel mode > cpuid =3D 3; apic id =3D 06 > fault virtual address =3D 0x0 > fault code =3D supervisor write data, page not present > instruction pointer =3D 0x20:0xffffffff805be1b2 > stack pointer =3D 0x28:0xfffffe00a6253770 > frame pointer =3D 0x28:0xfffffe00a6253770 > 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 65 (g_eli[3] gpt/swap0) > trap number =3D 12 > panic: page fault > cpuid =3D 3 > time =3D 1544087308 > KDB: stack backtrace: > db_trace_self_wrapper() at 0xffffffff8055d9eb =3D db_trace_self_wrapper= +0x2b/frame 0xfffffe00a6253420 > vpanic() at 0xffffffff808754d3 =3D vpanic+0x1a3/frame 0xfffffe00a625348= 0 > panic() at 0xffffffff80875323 =3D panic+0x43/frame 0xfffffe00a62534e0 > trap_fatal() at 0xffffffff80bd745f =3D trap_fatal+0x35f/frame 0xfffffe0= 0a6253530 > trap_pfault() at 0xffffffff80bd74b9 =3D trap_pfault+0x49/frame 0xfffffe= 00a4b7f590 > trap() at 0xffffffff80bd6ade =3D trap+0x29e/frame 0xfffffe00a4b7f6a0 > calltrap() at 0xffffffff80bb3935 =3D calltrap+0x8/frame 0xfffffe00a4b7f= 6a0 > --- trap 0xc, rip =3D 0xffffffff805be1b2, rsp =3D 0xfffffe00a4b7f770, r= bp =3D 0xfffffe00a4b7f770 > t4_wrq_tx_locked() at 0xffffffff805be1b2 =3D t4_wrq_tx_locked+0x12/fram= e 0xfffffe00a6253770 > ccr_process() at 0xffffffff805e3fc3 =3D ccr_process+0x1953/frame 0xffff= fe00a4b7f970 > crypto_dispatch() at 0xffffffff80ae3fa4 =3D crypto_dispatch+0x144/frame= 0xfffffe00a4b7f9b0 > g_eli_crypto_run() at 0xffffffff807b5cb3 =3D g_eli_crypto_run+0x273/fra= me 0xfffffe00a4b7fa10 > g_eli_worker() at 0xffffffff807aebc8 =3D g_eli_worker+0x3c8/frame 0xfff= ffe00a4b7fa70 > fork_exit() at 0xffffffff80834d93 =3D fork_exit+0x83/frame 0xfffffe00a4= b7fab0 > fork_trampoline() at 0xffffffff80bb491e =3D fork_trampoline+0xe/frame 0= xfffffe00a4b7fab0 > --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- > Uptime: 14s > Automatic reboot in 15 seconds - press a key on the console to abort > --> Press a key on the console to reboot, >=20 > The Chelsio NIC is a T6225-CR. >=20 > Kernel config is=20 > https://ximalas.info/~trond/create-zfs/canmount/ENTERPRISE-amd64-stable= -12 >=20 > I tried stable/12 r341623 with ccr(4) removed from the kernel, and I=20 > had no problems engaging geli encrypted swap in SU mode nor in normal=20 > mode. >=20 > Has anyone else tried ccr(4) on recent stable/12? > Are we discouraged from using ccr(4)? > I was hoping to take advantage of the crypto accelerator. >=20