Message ID | 20200111094903.559798696@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=JpBV=3A=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EC08C33C9E for <stable@archiver.kernel.org>; Sat, 11 Jan 2020 10:03:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 36C7920848 for <stable@archiver.kernel.org>; Sat, 11 Jan 2020 10:03:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578737033; bh=R3F0oxfs8gfJYmPuvUSgnD2wieukgLsd+9x58Xcb2FU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=ACN4xFNKNOtXJjC5hk/T2K+IiLAlfUP2AUsXkt23BylX9lm9O3Do46vzCq3NjU8js R9kcGopHIu5S22V0RgsL5jJn5USj1bZu85f6LDpvSwAubLLnizdVyeAZx7SrMp9b7E HU7C6NxBGMEevzaT97ZP+2mQutNNqT+WYDkW561I= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729368AbgAKKDw (ORCPT <rfc822;stable@archiver.kernel.org>); Sat, 11 Jan 2020 05:03:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:35554 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728850AbgAKKDw (ORCPT <rfc822;stable@vger.kernel.org>); Sat, 11 Jan 2020 05:03:52 -0500 Received: from localhost (unknown [62.119.166.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A707220866; Sat, 11 Jan 2020 10:03:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578737031; bh=R3F0oxfs8gfJYmPuvUSgnD2wieukgLsd+9x58Xcb2FU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1Bm8T6DtpnyRszpHfBSvV+9cpzQFMRpcjI8CEN9VGkOeczY1dPsM6XPJE5dnD2AP2 sEAnKpR+hFcDOEBqnZw4swEK99FZxCChUVCv3/milhKq+SL3VUILCKfrOBczlkQlhn 0K3f8g594XK0Bix9qzfmMW2qkVWftHxcRAVVl6Q0= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, syzbot+611164843bd48cc2190c@syzkaller.appspotmail.com, David Howells <dhowells@redhat.com>, "David S. Miller" <davem@davemloft.net>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.9 49/91] rxrpc: Fix possible NULL pointer access in ICMP handling Date: Sat, 11 Jan 2020 10:49:42 +0100 Message-Id: <20200111094903.559798696@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200111094844.748507863@linuxfoundation.org> References: <20200111094844.748507863@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/net/rxrpc/peer_event.c b/net/rxrpc/peer_event.c index bf13b8470c9a..80950a4384aa 100644 --- a/net/rxrpc/peer_event.c +++ b/net/rxrpc/peer_event.c @@ -148,6 +148,9 @@ void rxrpc_error_report(struct sock *sk) struct rxrpc_peer *peer; struct sk_buff *skb; + if (unlikely(!local)) + return; + _enter("%p{%d}", sk, local->debug_id); skb = sock_dequeue_err_skb(sk);