From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52B6519CC27; Fri, 17 Jan 2025 22:43:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737153814; cv=none; b=oQ1PLskW3bn9RcvZ3KYo3tlaz6sy5ipPZASeLim3FMqmeaAxDi1A6gQTjZXFpbpledOW3Gwo8RlExtV3u3lo0C/3Kcfpvb6CANpteOFt+Z8gYyTSZcZuKZqnb0+bRoqXIzEbAe4wz2XSxVpkyZDrGHoo4hY4A1vG0VIBTjv4bgU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737153814; c=relaxed/simple; bh=50uUaiGANqV+eTVjv+pUZPnWo8IjZ2+xGwYeZjmL7hc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=D80g+jwqcpCaP43EOeI1CTfQgodIbdPnM49qVrtw4mPXxzZKz+KUa1sOUvWvtVzhiUKOHFTswB1Fpnb9jUTEwt9caau21YjWPuv2n1QqGLxXSTQ5C6Y035Tj3q/Zr+4eMVDjvCRNLVskP1LlQX6EcYJoPEGC957kCuV+k8VCpIw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IOioszaV; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IOioszaV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49BCCC4CEDD; Fri, 17 Jan 2025 22:43:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1737153813; bh=50uUaiGANqV+eTVjv+pUZPnWo8IjZ2+xGwYeZjmL7hc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IOioszaVH8LLT7fa6lFj/MNgpD8sikIgmv0ceP8neLNe2fjm9UrtPXxVDwn7T7EQi LIDyGK384xfOkactUZ6BeTEZ9PWA0Gw9eT56ypi3+X3ubQu5CryRY9CSfZVORzMjZk WU0f4+p8uF2ukZ1LSUkYjwmCSD44IdPBQ6amSe9nMtAWAhhA0TSjsrBYb+NSivgu6j jxzh94s04D/yxfnGHG3yC3ZlyEEHhiPIT31Ndb88zHog+cp5iBXi/VqiUG3dCCqUVc NhxiLxL6rNo+aAgdL6fvWR1rhZDFfvP5PelzAbqMNizBRhSSgaxd2flFx6ccgevK4J jrFcJ/q8CIs+A== Date: Fri, 17 Jan 2025 14:43:32 -0800 From: Jakub Kicinski To: Eddie James Cc: Paul Fertser , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, horms@kernel.org, pabeni@redhat.com, edumazet@google.com, davem@davemloft.net, sam@mendozajonas.com, Ivan Mikhaylov Subject: Re: [PATCH] net/ncsi: Fix NULL pointer derefence if CIS arrives before SP Message-ID: <20250117144332.7ea38896@kernel.org> In-Reply-To: <97ec8df6-0690-4158-be44-ef996746d734@linux.ibm.com> References: <20250110194133.948294-1-eajames@linux.ibm.com> <20250114144932.7d2ba3c9@kernel.org> <97ec8df6-0690-4158-be44-ef996746d734@linux.ibm.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 17 Jan 2025 15:05:24 -0600 Eddie James wrote: > I am able to reproduce the panic at will, and unfortunately your patch > does not prevent the issue. > > However I suspect this issue may be unique to my set up, so my patch may > not be necessary. I found that I had some user space issues. Fixing > userspace prevented this issue. The kernel shouldn't crash even if user space is buggy.. Maybe we can apply a simplified patch to return an error if !np?