From owner-freebsd-fs@freebsd.org Thu Feb 7 23:35:04 2019 Return-Path: Delivered-To: freebsd-fs@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 03DFD14C8DF5 for ; Thu, 7 Feb 2019 23:35:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 8C8DD82705 for ; Thu, 7 Feb 2019 23:35:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4B72314C8DF4; Thu, 7 Feb 2019 23:35:03 +0000 (UTC) Delivered-To: fs@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 26AF314C8DF3 for ; Thu, 7 Feb 2019 23:35:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B49D382700 for ; Thu, 7 Feb 2019 23:35:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id D6B9CFD2C for ; Thu, 7 Feb 2019 23:35:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x17NZ1WU099207 for ; Thu, 7 Feb 2019 23:35:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x17NZ1g8099204 for fs@FreeBSD.org; Thu, 7 Feb 2019 23:35:01 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 235582] rpc_svc_gss / nfsd kernel panic Date: Thu, 07 Feb 2019 23:35:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: panic X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: peter.x.eriksson@liu.se X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2019 23:35:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235582 --- Comment #2 from Peter Eriksson --- This is a huge wild chance, but I was looking at the assembler code for the svc_rpc_gss function at around the offset (0x8f2 =3D 2290) and it looks like this: 0xffffffff8286d4bc : callq 0xffffffff8286bc50 0xffffffff8286d4c1 : mov 0x78(%r14),%rsi 0xffffffff8286d4c5 : lea -0x38(%rbp),%rdi 0xffffffff8286d4c9 : lea -0x70(%rbp),%rdx 0xffffffff8286d4cd : callq 0xffffffff828678b0 0xffffffff8286d4d2 : test %eax,%eax 0xffffffff8286d4d4 : je 0xffffffff8286d932 Looking at the source code in the svc_rpcsec_gss.c file this _might_ corres= pond to code in svc_rpc_gss_accept_sec_context() at around line 941: client->cl_rawcred.version =3D RPCSEC_GSS_VERSION; rpc_gss_oid_to_mech(mech, &client->cl_rawcred.mechanism); maj_stat =3D gss_export_name(&min_stat, client->cl_cname, &export_name); if (maj_stat !=3D GSS_S_COMPLETE) { rpc_gss_log_status("gss_export_name", client->cl_me= ch, maj_stat, min_stat); return (FALSE); } client->cl_rawcred.client_principal =3D mem_alloc(sizeof(*client->cl_rawcred.client_princip= al) + export_name.length); client->cl_rawcred.client_principal->len =3D export_name.le= ngth; memcpy(client->cl_rawcred.client_principal->name, export_name.value, export_name.length); --=20 You are receiving this mail because: You are the assignee for the bug.=