Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751684AbaAMNzD (ORCPT ); Mon, 13 Jan 2014 08:55:03 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:43354 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750962AbaAMNy7 (ORCPT ); Mon, 13 Jan 2014 08:54:59 -0500 Date: Mon, 13 Jan 2014 21:54:33 +0800 From: Bruce Liu To: Daniel Borkmann Cc: peppe.cavallaro@st.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] When timestamping is enabled, stmmac_tx_clean will call stmmac_get_tx_hwtstamp to get tx TS. It's possible that skb is NULL because there are other network frames that use several descriptors. So we must return immediately in stmmac_get_tx_hwtstamp if skb is NULL to avoid system crash. Message-ID: <20140113135431.GA1956@gmail.com> References: <1389492095-6589-1-git-send-email-damuzi000@gmail.com> <20140112093951.GA3743@gmail.com> <52D27EB4.9050909@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52D27EB4.9050909@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 12, 2014 at 12:38:28PM +0100, Daniel Borkmann wrote: > On 01/12/2014 10:39 AM, Bruce Liu wrote: > > When timestamping is enabled, stmmac_tx_clean will call stmmac_get_tx_hwtstamp to get tx TS. > > It's possible that skb is NULL because there are other network frames that use several descriptors. > > So we must return immediately in stmmac_get_tx_hwtstamp if skb is NULL to avoid system crash. > > > > > >Signed-off-by: Bruce Liu > > Please see Documentation/SubmittingPatches +489 > > You subject line is way too long and should just be something like: > > [PATCH net-next] net: stmmac: fix NULL pointer dereference in stmmac_get_tx_hwtstamp > > Don't indent your actual commit message with whitespaces as prefix, > and do a line break after around 70 chars. > > Btw, I mentioned net-next in the subject since merge window will > open soon anyway. > Thanks, and I'll resend the patch. Bruce. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/