Message ID | 20220103142052.985722765@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47AB9C433F5 for <stable@archiver.kernel.org>; Mon, 3 Jan 2022 14:28:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233878AbiACO2r (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 3 Jan 2022 09:28:47 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:58070 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233957AbiACO1m (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 3 Jan 2022 09:27:42 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A9F8361136; Mon, 3 Jan 2022 14:27:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 899C4C36AFE; Mon, 3 Jan 2022 14:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1641220061; bh=835agNvo92K8Nrg+aPky4sSPjA3rMSz61RUL0EcWUSw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dt6XTJ2kz1nDahK6MoujfvJ7gCyj0e9PH3EkVK2EhQUnnNoWZsQaY7PsMglC0Q1Bm BXIIh7lHOqh1bKM60H0qnHVD6+6t93UWZ+qZyDl4wXGaDuVbaAXeUnzsTxp6pZY4rU Jd891rxZNKRFZT4MlGF7/EG9H+ZVMf585Ay0JuiI= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Muchun Song <songmuchun@bytedance.com>, Cong Wang <cong.wang@bytedance.com>, Fam Zheng <fam.zheng@bytedance.com>, Jakub Kicinski <kuba@kernel.org> Subject: [PATCH 5.4 36/37] net: fix use-after-free in tw_timer_handler Date: Mon, 3 Jan 2022 15:24:14 +0100 Message-Id: <20220103142052.985722765@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220103142051.883166998@linuxfoundation.org> References: <20220103142051.883166998@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -1974,6 +1974,10 @@ static int __init inet_init(void) ip_init(); + /* Initialise per-cpu ipv4 mibs */ + if (init_ipv4_mibs()) + panic("%s: Cannot init ipv4 mibs\n", __func__); + /* Setup TCP slab cache for open requests. */ tcp_init(); @@ -2004,12 +2008,6 @@ static int __init inet_init(void) if (init_inet_pernet_ops()) pr_crit("%s: Cannot init ipv4 inet pernet ops\n", __func__); - /* - * Initialise per-cpu ipv4 mibs - */ - - if (init_ipv4_mibs()) - pr_crit("%s: Cannot init ipv4 mibs\n", __func__); ipv4_proc_init();