Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2070989pxp; Fri, 18 Mar 2022 02:29:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjan3SrDzfPgVBfgSIcAlUoy+Oe/NNfxvpoxrbQWat1BpMFZHOfiR9sjqIc7GJicagfkj+ X-Received: by 2002:a05:6a00:1a56:b0:4f7:c17b:28da with SMTP id h22-20020a056a001a5600b004f7c17b28damr9143541pfv.50.1647595775786; Fri, 18 Mar 2022 02:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647595775; cv=none; d=google.com; s=arc-20160816; b=gHscs42tubgWuS27eRK5KwIF4/H05Yv9NKOeZZBpTiTQKQupO5Z8diEPtOZ0w9rk/u fdVnHPqVt/4ag9xBLeZjn4/UMGRif3yEtDFkuEvJDKoJ07HCu3lxIH9G7ZDun4Exd6lX 9jl8VCBtGB4xoy9PEP/zhHcHv6SC3BmFQkgKOwR+rsE8hBM0pKi4GH0EbnoLPowhGHUv 60UUwoIo/2QrszdyOAWn+VPNrvilOBp6WSMbymVSB656ESXKtUP+Lk6qhCN8FVJxoJfz o9S1zKJSV16d4jEVG5bXef3PqG5IlZie2tp+ijQoI8A515aueOWMdn5VZoGoEzS96yu2 OYcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=sZU6lJnvX+MCH9+t7hFEQz2h4HVh6Nmu1/oDipWHGFM=; b=L6CT4kYeJleOin+WQ78peNy7hxsmc/HyBzAfSUKFlW+Tdunj806yr1mDH0axWGisEC g9ytyDXgB76IIDqsZSCoHVIYkFfNL/dHUHnFv4I+YwnNosWucrXvYDVW/4NSoyZyqJc8 /jRRk+WAnMJ4B+qRwA0HajoUdPuqhx6rl2hZp1AqJvbxYqrc75eGP/e7VnBZKFsUtHka 1GBfULBu48mm38EZIxfdml0dIq7tAygl5Tgtf7zEkJ5qY2byurM5nJVHuiU1JxnmsCfx 9NnJMK/ev8YQTsLFmcoAskmwNn1PsQdXynLZaByc7uFD68OcEfemU4WPohi5rjSUkSEb iSJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=yGmiKqYM; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=haecd6TN; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p23-20020a637417000000b003816043efc3si4679633pgc.440.2022.03.18.02.29.11; Fri, 18 Mar 2022 02:29:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@suse.de header.s=susede2_rsa header.b=yGmiKqYM; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=haecd6TN; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232441AbiCRFFk (ORCPT + 99 others); Fri, 18 Mar 2022 01:05:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232428AbiCRFFk (ORCPT ); Fri, 18 Mar 2022 01:05:40 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C8DE2AFA33 for ; Thu, 17 Mar 2022 22:04:22 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 603A11F37F; Fri, 18 Mar 2022 05:04:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1647579860; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sZU6lJnvX+MCH9+t7hFEQz2h4HVh6Nmu1/oDipWHGFM=; b=yGmiKqYMkN29rr2CvOUPt6GhhAfRW7GhxmSWbrno1BfcWY93VW/sFLroKp/zha9Tn4/kJF pKZRvJmZqwF58DNJIs4X12PXNPv613HS5goMjTBjpVwcBm28Bid6SGd1tZFIfm9jg/nWt0 2Vi9Way5Nyj0+lyrL2ex0BarlgEoUBY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1647579860; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sZU6lJnvX+MCH9+t7hFEQz2h4HVh6Nmu1/oDipWHGFM=; b=haecd6TNEo0ImCwu4dMqkQ4eoAgZIOkr+OOMAo8sBVjIObngNCq257H5j/vYOHfYaQBNFU c1NElzLj/MSLXoBw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8FD0313B01; Fri, 18 Mar 2022 05:04:19 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id xUeiE9MSNGKpZAAAMHmgww (envelope-from ); Fri, 18 Mar 2022 05:04:19 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 From: "NeilBrown" To: "Trond Myklebust" Cc: "linux-nfs@vger.kernel.org" Subject: Re: [PATCH] NFS: Fix memory allocation in rpc_malloc() In-reply-to: References: <20220315162052.570677-1-trondmy@kernel.org>, <164739558440.9764.6759307849718646101@noble.neil.brown.name>, Date: Fri, 18 Mar 2022 16:04:13 +1100 Message-id: <164757985358.24302.15398274267316568244@noble.neil.brown.name> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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-nfs@vger.kernel.org T24gVGh1LCAxNyBNYXIgMjAyMiwgVHJvbmQgTXlrbGVidXN0IHdyb3RlOgo+IE9uIFdlZCwgMjAy Mi0wMy0xNiBhdCAxMjo1MyArMTEwMCwgTmVpbEJyb3duIHdyb3RlOgo+ID4gT24gV2VkLCAxNiBN YXIgMjAyMiwgdHJvbmRteUBrZXJuZWwub3JnwqB3cm90ZToKPiA+ID4gRnJvbTogVHJvbmQgTXlr bGVidXN0IDx0cm9uZC5teWtsZWJ1c3RAaGFtbWVyc3BhY2UuY29tPgo+ID4gPiAKPiA+ID4gV2hl biBhbGxvY2F0aW5nIG1lbW9yeSwgaXQgc2hvdWxkIGJlIHNhZmUgdG8gYWx3YXlzIHVzZSBHRlBf S0VSTkVMLAo+ID4gPiBzaW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