Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp657011rwb; Mon, 26 Sep 2022 04:20:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5sUylPjeVTz/r7CSg4pPBCf258lC6MiSrlki/C8mnvLlUeYlRmNw++5kWNbiZ4lmZQ3gRI X-Received: by 2002:a17:907:70a:b0:750:bf91:caa3 with SMTP id xb10-20020a170907070a00b00750bf91caa3mr17841094ejb.711.1664191223997; Mon, 26 Sep 2022 04:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664191223; cv=none; d=google.com; s=arc-20160816; b=sThwyu/wibmKkBqbP6xlU6+yojBtPkFjOiDiFr4v0J58MNCN5tMhuxwz76gLaPocLN 9ibRtWQuXVK6VPp8oDkdYOaagcVQilcVTYCyyTOvt8JoAptyJRWuQ3oyif4XvQ3ZKsIo q+E4TTrHxrQl2LTo4n20rOk7VdLqA1PLKR4feB1ZBbot7BnwM956LpOTf3ZMrW3dqP7E B7CQWHPVi4gvKTSSMk+oMLurkoKvl9pmY9JKLwE3NSQ6/8tW2cg/hsiYCB7M5/PXfovZ wW1n5GQuehAHTWsohAG9axXdalmUxUiNvyM67rXcEp4UmPUWnru+2/24S4y4/1Lo6m34 0Rfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=d6WYIZRCBRk7dXJktyq9w8ikUhZBpP1ve/NUW071R94=; b=tQx/OktBJ2nNUmL4Kdb4y7R2rB0gQX1TUEyq5c7GMfmSliK0nEqVUochY9AgDiN+Ss kNop7227VkxYykbtfHy/Lg0x9L4lwMm9Ac9T9yHqv7spgN9Ht9dwhx6o6/amtdFQUWoC 1HhP7ZTnMA/cGwjE7MXMR+AIdOq5wuYLpGjuprvxHbh+LerHuI59go8fM4YcZZjRWO8I mUj+805C01KIFH3BGaUfrE2OiiJdge+g8bgCLiuTm0Wr5zMi+XwJMm3A0T9ZinPiRisB M171NpOuucJEbdE3G2tdoai3KTez45byDEknepw2QUDpn37HY8OssWi9wIfOmO5KrmCo SpGQ== 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 sh38-20020a1709076ea600b0077cfdda438csi17031326ejc.35.2022.09.26.04.19.58; Mon, 26 Sep 2022 04:20:23 -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; 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 S236479AbiIZKqR (ORCPT + 99 others); Mon, 26 Sep 2022 06:46:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236477AbiIZKnu (ORCPT ); Mon, 26 Sep 2022 06:43:50 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:12e:520::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0449B1BE87; Mon, 26 Sep 2022 03:25:05 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1oclIG-0003na-RG; Mon, 26 Sep 2022 12:24:56 +0200 Date: Mon, 26 Sep 2022 12:24:56 +0200 From: Florian Westphal To: Herbert Xu Cc: Florian Westphal , netdev@vger.kernel.org, tgraf@suug.ch, urezki@gmail.com, Paolo Abeni , "David S. Miller" , Eric Dumazet , Jakub Kicinski , linux-kernel@vger.kernel.org, akpm@linux-foundation.org, Martin Zaharinov , Michal Hocko , Paolo Bonzini , kvm@vger.kernel.org Subject: Re: [PATCH net] rhashtable: fix crash due to mm api change Message-ID: <20220926102456.GC12777@breakpoint.cc> References: <20220926083139.48069-1-fw@strlen.de> <20220926085018.GA11304@breakpoint.cc> <20220926100550.GA12777@breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,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 Herbert Xu wrote: > Only in the case of kvzalloc. We expect kzalloc to fail, that's > why it gets NOWARN. There is no sane reason for kvzalloc to fail > so it should warn. To me a WARN() only has one purpose: It will get reported to mailing list and a developer can use that to develop a patch/fix. In memory allocation failure, there is no bug, so nothing to fix, so WARN is useless.