From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 6045FE7D242 for ; Tue, 26 Sep 2023 07:34:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233559AbjIZHeV (ORCPT ); Tue, 26 Sep 2023 03:34:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233448AbjIZHeR (ORCPT ); Tue, 26 Sep 2023 03:34:17 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F143DC for ; Tue, 26 Sep 2023 00:34:11 -0700 (PDT) Received: from kwepemi500008.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RvrxZ46TCzMlrn; Tue, 26 Sep 2023 15:30:26 +0800 (CST) Received: from [10.67.109.254] (10.67.109.254) by kwepemi500008.china.huawei.com (7.221.188.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Tue, 26 Sep 2023 15:34:07 +0800 Message-ID: <57ce70f7-2b5d-384d-d14e-b9e96e3ca636@huawei.com> Date: Tue, 26 Sep 2023 15:34:07 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH v2 0/2] static_call: Fix two wild-memory-access bugs in static_call_del_module() Content-Language: en-US To: , , , , , , References: <20230915123605.3732345-1-ruanjinjie@huawei.com> From: Ruan Jinjie In-Reply-To: <20230915123605.3732345-1-ruanjinjie@huawei.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.109.254] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemi500008.china.huawei.com (7.221.188.139) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ping. On 2023/9/15 20:36, Jinjie Ruan wrote: > In __static_call_init(), any one of the kzalloc fails will cause > wild-memory-access when traverse the site and subsequent sites in > static_call_del_module(). > > Changes in v2: > - Add a new patch which fix a a similar problem. > - Update the commit message and simplify error stack for the first. > > Jinjie Ruan (2): > static_call: Fix a wild-memory-access bug in static_call_del_module() > static_call: Fix a wild-memory-access bug when > static_call_key_sites(key) is true > > kernel/static_call_inline.c | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) >