Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5624568rwb; Tue, 22 Nov 2022 02:38:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf72URvD43XuahbEe9ry6vFPmuTj7e05LgppFfbjr/HkpZk9ZFZTnvGyjsSo1jqPxitwtaMe X-Received: by 2002:a17:907:a803:b0:7ae:bfeb:f484 with SMTP id vo3-20020a170907a80300b007aebfebf484mr3056739ejc.174.1669113499173; Tue, 22 Nov 2022 02:38:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669113499; cv=none; d=google.com; s=arc-20160816; b=g0mSvmU2qoR1clI4UNqIDfdu3ePBDDBeMnY9NX9c+NYBTJ1aHkm58t+MgIQNBC1fHo G1JWDsO0E2uEgJFveF9MVkbMBBgnvc0I40g+cg/sgEVshMzIkE9YBuCr/53t3UVnOIgf bEZCW8OJc/myUy3n8Upe8vQcB33XvVdIPkrULIeh87R4RbPalYcmg1XYmwEOuDWGNd3/ rZ8nKnD812ftS8HiT/AMgn/tExM1jPHbaCXVAySgdBWkZmtAsACcBh7EQDajLi0m6gpe iut/16m01YSETBbfUxNYZwiH3ODpRafQCs+3sUrrV0aYNadp+Z/eOWcknpQfIFuYYtjc 4wHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=+NUynb/W7cm54YnzNIUhNUQKa6dKzKqxzctmb6tWX1o=; b=TzVRh1nncQSnfpmRBHyj7yUqduYV/xxqzLMGcNnZDzaF9frTMl7kjpVyYqioqX503S Aaa6n1FA4SxnTa+w2PJVQhkLodha3xoXLlqfFOnbJKCjMIUq+EUPnuZU6yJUIEpSOO96 0Ai6ahbXyDI/pQUAsj3j+mBYS1kpJjv2nW/QVAAHhtxOJ3M+FY1OaY0F08krPNEDRbZK m5g6alro++ENsr6+5+tET/3zsa3TCS5ftUaz2GNM3f6TwtVQuPt0kJ+mPEoZjoAWlEi2 o43QKC6tI9ilL6VXFgvinxRx/r/dAY/Mv57rsxeg6Yw/slYkrqhM2hVlJnHjDpdPkTkK YPFw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b19-20020aa7c6d3000000b004692bde507bsi8167466eds.431.2022.11.22.02.37.56; Tue, 22 Nov 2022 02:38:19 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232017AbiKVKKL (ORCPT + 91 others); Tue, 22 Nov 2022 05:10:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiKVKKH (ORCPT ); Tue, 22 Nov 2022 05:10:07 -0500 Received: from mail.enpas.org (zhong.enpas.org [IPv6:2a03:4000:2:537::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8580A13D15; Tue, 22 Nov 2022 02:10:06 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.enpas.org (Postfix) with ESMTPSA id AC0FCFF9E2; Tue, 22 Nov 2022 10:10:01 +0000 (UTC) Date: Tue, 22 Nov 2022 19:09:11 +0900 From: Max Staudt To: , Cc: "Ziyang Xuan (William)" , , , , , , , , Vincent Mailhol Subject: Re: [PATCH] can: can327: fix potential skb leak when netdev is down Message-ID: <20221122190911.4a272f5a.max@enpas.org> In-Reply-To: References: <20221110061437.411525-1-william.xuanziyang@huawei.com> <20221111010412.6ca0ff1c.max@enpas.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Marc, Wolfgang, Could you please include William's patch to can327, provided that you see no issue with it? Thanks :) Max On Tue, 22 Nov 2022 10:10:50 +0800 "Ziyang Xuan (William)" wrote: > 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 > > > > . > >