Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2365168rdb; Fri, 8 Dec 2023 06:13:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHkfCwWNEWXICjBu8w/vp7M+mjx31uw8UDtUfeV+YqVzDnDDUR6M0isOeLlJ1T95iJLMDOn X-Received: by 2002:a17:90a:4b87:b0:28a:3837:6972 with SMTP id i7-20020a17090a4b8700b0028a38376972mr128046pjh.22.1702044812483; Fri, 08 Dec 2023 06:13:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702044812; cv=none; d=google.com; s=arc-20160816; b=0nbeCaTcPQ3VFAIwMB4kDqjK++ECC0+kQos2KzWrKUOPYb8SeSghpi7eFgSIJ/P3nu y7ls/RyIAPmPYiDgjuBYD8Cfp8zki5/Ux2gLYFpL3OUleTjfy7Baq3B92UZ3eg/SCF4P ormZ/2UgvXUnV4sj3JIGGnsESAVeebtXd55st5o03ocwzEWkhA6avaRY3BGm28IOkXvv b6O62pISK18km9EfQSkMkbIoH1Xm+GlSbIh0cBN9Ti4lZkbyr5GBlo6FpWNIXL/pCuWO feqGLDTofIB8Y42mKLVUiBH88X5EIjJgVFG5ei1i5SIzmlNQQqAmU9bCG0VdmLVdWaXJ dOBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=7ozIt0NpDzyo+Um0CWiKiW7MbyrySc7KdMzm0CGPzvo=; fh=T2aNzMZKiel5T7oljcjNA4082h+4fiqouc3EEuAmxsw=; b=mvNvjxpc5dFA/v+/DD1KsQb5WXXuHc5nk/VQcE+hhkgiJvCzZBKvJYhL3m8WynBnri ozjPhOU5dCbOTFCPjQWaqhIM1vvlFL77DdwsjJnk+yVRvMvKwOyH4PHue1I5rKkqtOdu vwceOdSUhxl6fIIjuuLHfdLlLg+bFqYLm3h7srwWDVfkb6jQLUaIQJf9rM7rXx0L716T nq006gsl/KFyd3mFQcYtrWtl2bcmq8FCWYSkihgF5hoD+8QO3JsptzKwKo34kYxf8JQF d9g8hvDcH9H6wXPfcalxy3diQEaNWD9BDEae8uVDNjrOfMGWeo6fSKslbCtykAqMyqUh hAiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=DlHwMQpa; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id v6-20020a632f06000000b005c67a42a56dsi1564229pgv.741.2023.12.08.06.13.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 06:13:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=DlHwMQpa; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id BF24482CD631; Fri, 8 Dec 2023 06:13:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573903AbjLHONQ (ORCPT + 99 others); Fri, 8 Dec 2023 09:13:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573881AbjLHONP (ORCPT ); Fri, 8 Dec 2023 09:13:15 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5DDF10F1; Fri, 8 Dec 2023 06:13:21 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702044800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7ozIt0NpDzyo+Um0CWiKiW7MbyrySc7KdMzm0CGPzvo=; b=DlHwMQpaXXu9BhQft/LEkcmfYfndeA0JHHiXh79nshdASb0bAd2Z/klENPH+N4myV1G122 4B3k4UTw63qVars0Nwp/WQxVw2Wx9blklGJCq9I8Vae6FgrA5hWRwy9l4emdKzWr9pVwhP +kYw8UjZIZsWpL5XuWrfwmaPKIT+I2UEtBdLJleL96glP86AHjLkjqjEXz97NISbeUFba5 RQ6/kaEtsbWwsBIbeTQkZW6iS7154lQtl/u50Y2w3kJOH9UXWf2S32eBzfGfauphyD7ZoZ ympLna5q+pczEwnWH1nkk/OtXU+4rt6uXPAW6fYmkZjVM4jMEk4M84altptwwg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702044800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7ozIt0NpDzyo+Um0CWiKiW7MbyrySc7KdMzm0CGPzvo=; b=nNtuGdKFbQkUmGMEp2doPQYFowq/a6IiDjr7VB3UWAe8RUZPqQstA4RYB8U8SC1EroxuSh wRykCv5Ci1i0K6Aw== To: Haoran Liu , tsbogend@alpha.franken.de Cc: fancer.lancer@gmail.com, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Haoran Liu Subject: Re: [PATCH] [irqchip] mips-cpu: Add error handling in mips_cpu_register_ipi_domain In-Reply-To: <20231130040642.36133-1-liuhaoran14@163.com> References: <20231130040642.36133-1-liuhaoran14@163.com> Date: Fri, 08 Dec 2023 15:13:19 +0100 Message-ID: <87o7f0sry8.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 08 Dec 2023 06:13:30 -0800 (PST) On Wed, Nov 29 2023 at 20:06, Haoran Liu wrote: The subject line: https://www.kernel.org/doc/html/latest/process/maintainer-tip.html#patch-subject > This patch enhances the mips_cpu_register_ipi_domain function in # git grep 'This patch' Documentation/process/ > drivers/irqchip/irq-mips-cpu.c by adding error handling for the > kzalloc The file name is irrelevant. Please read and follow: https://www.kernel.org/doc/html/latest/process/maintainer-tip.html > call. Previously, the function lacked proper handling for kzalloc > failures, which could lead to potential null pointer dereference issues > under low memory conditions. The value of this "enhancement" is dubious. if that kzalloc() fails then any subsequent allocation will fail too and the machine will crash anyway.