From nobody Fri Aug 26 21:46:31 2022 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MDth74mRHz4b0jC for ; Fri, 26 Aug 2022 21:46:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MDth72nnHz3thw for ; Fri, 26 Aug 2022 21:46:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MDth71nMSzXnJ for ; Fri, 26 Aug 2022 21:46:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 27QLkV2m073519 for ; Fri, 26 Aug 2022 21:46:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27QLkV55073518 for net@FreeBSD.org; Fri, 26 Aug 2022 21:46:31 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: net@FreeBSD.org Subject: [Bug 266054] panic: page fault in sys/ofed/drivers/infiniband/core/ib_cma.c:1060 Date: Fri, 26 Aug 2022 21:46:31 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: erj@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661550391; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wPaZXJjYsevt7tZA05B47hvQ34USEt9vPBA1LYJrHt0=; b=bMto3G/BBB10bOfKk8hBPRzoV+Xd4Nb47+cL+D/Jf3D5Al5yekTMlskQ2H9+nVT0lzuM82 21wSH5IljKcYkBSrUTiylZXXvHOoLlWr7Jrce/KSfJfY+1KHes03NWa61glUSVyvGM3dzd Lvw/3B2OY3F6dRB2JqQRDPMIoVqZqCpqta3KMOvc8Vqp+c7F1ig8NVgAA++DmL192qi9Gr QB1mU4Q59lGwy4Bx/URhBSbxEfvCEwi0/dyCnqwC/KKS0eH8y2eRpVS6OgQ5UYf4FJYRSQ 1PWO8qXkL/fDFL2FtJKQqyuKUW/GVpYTe1PZk5xnXPDyixbub3/MPAYOiCT8xw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661550391; a=rsa-sha256; cv=none; b=ofTBwi9ASIsQIvpbkgrVQ95OJFR6nk58T/lbGOfKgg7YzlsLVyDtw5kzelJ3F4t8GiPk9Z wUewIHMQXXEkdqdPvexqNQS5bHVpHajUad1lC9yP/OR248zuCOX9gdMA4k4ErXc54/5poz EId2r9PzP9ooxRAEeJhDDRp8KLmRW4Dou2NVgmaJd/upv9ljwpnBgkgTEDOlLDOg4+Ol7h uxRtQlJ0WzftKR9cUb8ecf/lmvvrR4PYfgNHqiZa/89gNAQh6Bp/TJ5gGqzYEs+g9XnHGY hAMUse4gu1ayyXLhbBzCbzKXqYexkTT8fXDGKTEu+KZ83TrC73oiN88l+lYsVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266054 Eric Joyner changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |erj@freebsd.org --- Comment #3 from Eric Joyner --- I think I can help; I discovered this already: (we had a little Twitter thr= ead) https://twitter.com/kaevans91/status/1557167097813278722 The tl;dr is that the V_in_loopback_mask variable (that gets accessed from within cma_loopback_addr via the ipv4 loopback check) got added in a previo= us commit but that RDMA code doesn't have the currvnet set, so the vnet that g= ets checked in V_in_loopback_mask is NULL and the kernel panics. IPv6 code in RDMA doesn't seem to use anything VIMAGE-related so that isn't affected by this issue; you can IPv6 ping as a workaround for now. But krpi= ng is IPv4 only, so that's currently unusable. I think there are other IPv4 places in OFED that also need fixing, like validate_ipv4_net_dev(). I tried looking around, but never got around to properly finishing a patch that I was working on. --=20 You are receiving this mail because: You are the assignee for the bug.=