Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5187380rwb; Mon, 21 Nov 2022 18:18:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf6uDxJQSwZm/HthK/iDzxEb4538ohqPKYiZHMfJrZRqHmbgjLkaKzVgJFwejL7Hnv0fUEcl X-Received: by 2002:a17:902:e849:b0:186:898a:f33d with SMTP id t9-20020a170902e84900b00186898af33dmr2451850plg.33.1669083502523; Mon, 21 Nov 2022 18:18:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669083502; cv=none; d=google.com; s=arc-20160816; b=fZQSR99nvVLsi+CbWGIRUTMDAooCUlAizg+bNHaiA0ynZGy6L+3lBua0vBGS5GjS9K 7cgyNlOpwNUzoGKIXdhNy4pFdU8QfhWynojumn0867rZtZ8dPsr5SlxTWUi0UuE2WNNJ Xc26UHzLUPDjIuqkFIxTeRg36Z8VYmrrnPFPb/rrdh4eZL881x6OaEPkcUiwMJuAHTxZ scDbtSNgHjtglNGWC8B9EBRz9cm7Esp5vF0Sv33S3jGGxpJiX2NdsjHksP4eb/oSSUz6 L+dGt9B8qo1sGHBa7iq3HcHlHJizLvfcXVbIu6GMWf/I4npDo3zozMw1Zps7bFk494hu NvBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=5YANN2A+v9QX/VwNmEQAIJDIsYE9zT+bS9l7vDQBfcI=; b=Th0Df2IExgeqWmVJXt+3a3ntmIZoTYa/49yNOq+wb4cSJEsihAVoeioWYw7OirxLuO EcH1+8HUV8l3bW6RtdVqU+6woIDqwnaWnkL3/CaA+ZXhV9kJ9k51vkZpkY7NpkINPTkp VHeIs2KG/nCdH6z84kreE0kvWFjZfsRTupKCUsUORGNYuq+N7pVufGtotUfphGM0QBdG aMQIUNs01NiQPWl4bVUoP9bRDE1UanoR46zHEA/i12u6F2s8E3EYmObciqx3cvY6Umyx ui1m/Wt15o9eKeiaN5ldBk1/Gg/GfmBh+Wdv5ULvSAIHLlwYqE2Jf87q1hPqSA/6hmmq J4ag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020a17090276c300b00186be05c702si1876686plt.530.2022.11.21.18.18.10; Mon, 21 Nov 2022 18:18:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232426AbiKVCK7 (ORCPT + 92 others); Mon, 21 Nov 2022 21:10:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229882AbiKVCKz (ORCPT ); Mon, 21 Nov 2022 21:10:55 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D8EDE223D; Mon, 21 Nov 2022 18:10:53 -0800 (PST) Received: from canpemm500006.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4NGSQJ1tBwzHwD6; Tue, 22 Nov 2022 10:10:16 +0800 (CST) Received: from [10.174.179.200] (10.174.179.200) by canpemm500006.china.huawei.com (7.192.105.130) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 22 Nov 2022 10:10:51 +0800 Subject: Re: [PATCH] can: can327: fix potential skb leak when netdev is down To: Max Staudt CC: , , , , , , , , , Vincent Mailhol References: <20221110061437.411525-1-william.xuanziyang@huawei.com> <20221111010412.6ca0ff1c.max@enpas.org> From: "Ziyang Xuan (William)" Message-ID: Date: Tue, 22 Nov 2022 10:10:50 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20221111010412.6ca0ff1c.max@enpas.org> Content-Type: text/plain; charset="gbk" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.200] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500006.china.huawei.com (7.192.105.130) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Gently ask. Is there any other problem? And can it be applied? Thanks. > (CC Vincent, he may be interested) > > > On Thu, 10 Nov 2022 14:14:37 +0800 > Ziyang Xuan wrote: > >> Fix it by adding kfree_skb() in can327_feed_frame_to_netdev() when netdev >> is down. Not tested, just compiled. > > Looks correct to me, so: > > Reviewed-by: Max Staudt > > > Thank you very much for finding and fixing this! > > Max > > . >