Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3768558iob; Mon, 2 May 2022 05:20:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUXwMshaC8pYkNZCSu7mlGDi7rH4scZvnw68CB6uBZfs4Jsc3nAz08ds8yTfu1+b4de1D4 X-Received: by 2002:a05:6a00:130e:b0:4cc:3c7d:4dec with SMTP id j14-20020a056a00130e00b004cc3c7d4decmr10945927pfu.32.1651494053373; Mon, 02 May 2022 05:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651494053; cv=none; d=google.com; s=arc-20160816; b=06tAQLCmVPGDn4eGiGNTzJljpfJ9NDMTEYxwPeEqEX730s5/UibXy9hIruZCHHXOT5 KXsAllt8nHBannG4wC9kOUsLWD0e7QM3XpZddWRtp0EqZWHEKtucUVJ0GO1tFGlwjlYk 5VNMta1ViycoyJGozxaCT0FpNxp5jsnA1CdZp1kdu+dlYwGCfXDdwhft87Fdo/IQ7o94 9c17LP1IS1xNyNQgy5Zj77W5JSXqrOwGby3NFSi4VCRN718nhfzmNAioXrp+10/XmFw8 WOXOzrLzfySakveYIDnv3bHJrP3CjmMhs+DaZw5oQGBPfNxZfYaiPEToJccmKW7YGaBj F2Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:thread-index :content-transfer-encoding:mime-version:date:subject:in-reply-to :references:cc:to:from:message-id:dkim-signature; bh=a8p/beQuYoG6HbG5O776YKIv8httHP96RkhZpN8ssbs=; b=wL8rW6fKR4Hv01aENW2jMZ+tHdiphxSZlt58/L7bgAeunURxENAqSiy1X6JSbLVbwn oj4IDAQNxq/tJFjSDVwmFX1p4qipsuB/wLthHWSDcjHZQjM1rZtL4+l+BlSMUddIoEk5 q4fk/BGInhFwWzJ8NrHzrq6bA3PZWsFRtW9na1HrDOimXF2Pho93U+d4CPl9HTSqQBKH RRwxUs619ullSYUd9oTL3CWmcSE63uwQ/+Oe8oo4PxUVryGCUW5CG9sgxwd/3ykyHMeQ gX0hLGsuik6k6VWIjIct/SRsDqdcKS88RY9hZl8hC92rgBsozXQiv+Bqx+oyTcXKUeUe a+Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foxmail.com header.s=s201512 header.b=EzcQcbZm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k38-20020a634b66000000b003c25484eea9si869455pgl.394.2022.05.02.05.20.38; Mon, 02 May 2022 05:20:53 -0700 (PDT) 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; dkim=pass header.i=@foxmail.com header.s=s201512 header.b=EzcQcbZm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243239AbiEAHFd (ORCPT + 99 others); Sun, 1 May 2022 03:05:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243029AbiEAHF2 (ORCPT ); Sun, 1 May 2022 03:05:28 -0400 Received: from out203-205-221-231.mail.qq.com (out203-205-221-231.mail.qq.com [203.205.221.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03BF41A051 for ; Sun, 1 May 2022 00:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1651388520; bh=a8p/beQuYoG6HbG5O776YKIv8httHP96RkhZpN8ssbs=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=EzcQcbZmRYTgkly6SzjQblY+JGnfh+Sdzll99PyzivzAfjh4Xp2GCOp4DIaKQrxJR /YYFcDhbNNQR4DHrUbWGdYhx7oSQ0M7MwyiVXVPuBmdTwNg1UW5Lk525apyL+yn744 GPPw3+OMKaOCiNUwGsfggvHSR6N+CIAZ5mltkCTs= Received: from helloworld ([59.172.176.225]) by newxmesmtplogicsvrsza8.qq.com (NewEsmtp) with SMTP id 7A390BB; Sun, 01 May 2022 15:01:58 +0800 X-QQ-mid: xmsmtpt1651388518tiivffook Message-ID: X-QQ-XMAILINFO: NgK2g0LaajGfVebqiSpxy+6pe9sjWuLEBbidSk5qMly00XJlVme3IpgkzT+C6y v2q1liDu/DX4rg4/t0Uw9XMPpPWUJoS63PiVqxeXl0zsW9VACCyT/NPu01zwwCOjkIDhQMsP3O0s FCWyxgaZsepivcSXi4cuNgBkHKI5UhRKB8CQJrYxLuyJ8bUHgdBcZEdEscTsP7PbCEAUGVDgu6BE ey6Tiwj0KMOCvkaYNT/JH++sQpvOt3yHXl8UaJxmzbaZc9S/kkqmfRgUiZg6YdzPNxMRtaP2dp+X 69w1d/6sCtMVKRnWuniBG2HqQUQxdn745LL1iCGKcRpsh4neAG3j8zg4NM7RriMOOkVjveKd83yX 3QpqAzPQPEkDlqZmIfyVBJr02+XkJh/lK1UeBPpiCk7l2xUBGf4aPvFWhn/WIqJCOyP9WkTv5H8M XaWDehsewEUEVATwjPZwRqsyghw/gNAYoTR+WJIHZffZuubTq1J1jkZqjvwFoLc8l1tRMmpkEYQl 91tia9+poX7xqM92hG4r7V3cqQ3Lg1Hl2nW1/HjGQFpsT5y/wm/2qq7IO9Cjd/WNZsQe1FUeI0Qz guSg5S2Up2tF9vEzC4QPmmY5ASsUJNjYGOmtSlBxu9eqwhDUhTC5NiGclnp/HeGRkNvyD24N/KoT jIcPdW45I29kRQ8O1xmPFoFATly4O4rpUJ8WX1TTH7Z3PIWbq1/gb33swhVFRHqGBE6rHJRFT+9X G54MGexMoSVo+baAnzkt56mrNS6tXac9MfNzHkW2bpvtW9G90HwvSeeWUCn9iiD1F4Wt1Pz5Dc/5 g7bOGDy5AgkgDt/1vPYISqKbKKAeNxMQ3yZkF0Tl/LOnl0uA+muWKSldLbIsiWJ3nnDX4eNd/2sV BqYfhH+BycDG7RV18up9FKRKRhiF8h0+6GrK7kVMeBBtxCNw4mpAuhCfQCVFEoYp0dn/yKu+wH6v cWpSCe+DUpblHLOouUgK48mMoBIqzicb6fV5ATBT0= From: To: Cc: , , , , References: In-Reply-To: Subject: Re: [PATCH] ARM: mvebu: check the validation of memory allocation Date: Sun, 1 May 2022 15:01:58 +0800 X-OQ-MSGID: <009b01d85d29$5a1fdeb0$0e5f9c10$@foxmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKWC/NpS5yVGNKjZwJUNiP5WlVJ6gGNT8eoq4HKkAA= Content-Language: zh-cn X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, HELO_DYNAMIC_IPADDR,RCVD_IN_DNSWL_NONE,RDNS_DYNAMIC,SPF_HELO_NONE, SPF_PASS autolearn=no 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 On Friday, April 29, 2022 11:19 PM +0800, linux@armlinux.org.uk wrote: > Are these failures silent, or will they be reported in the kernel log = to > make their failure obvious to those who debug the kernel? According to chapter 14 of the coding style document: "These generic allocation functions all emit a stack dump on failure = when used without __GFP_NOWARN so there is no use in emitting an additional = failure message when NULL is returned." I think that these failures are not silent since __GFP_NOWARN is not enabled. Regards, Xiaoke Wang