Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3363381pxp; Mon, 14 Mar 2022 17:51:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOZyHlD+tfvOkUIC76R+VdW7Gllbq1dBQRId+zN9s4nuhc78L6t+Q5WY/I9/EW9j6fwNBg X-Received: by 2002:a17:90a:7085:b0:1bd:3db8:6597 with SMTP id g5-20020a17090a708500b001bd3db86597mr1814435pjk.86.1647305504238; Mon, 14 Mar 2022 17:51:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647305504; cv=none; d=google.com; s=arc-20160816; b=vrk7/9HmqXfuXQlWA5+W+2HSQpaZ+YPbUw63tpZCUZ6jvSbZ+dpNUG67QaSO4Py7XS bnU+KmJ9u25cku9ThfYxnDQPBAGnWQGecqJwk4h6qkr5mqfcjd7CG9X+iDs9ItXNX6qK +3+qNq8JyQAd1v0ngy6SAgZWaIqy6e497F2vbekzcWtXabjkYK04gacxTbv4LkQUgcBG M2bYcFfgWBpUypuMieEq+SL2KB1KL4SQJVtbGeCe/JNtq9DRWFDVbSyjey/a1gp4dXbe zpgi5XeFqhAvv61NuYn8dUgn4RvEGJ5+3GL9daP0jUGdADX1zawBtQKahBb2iE+mOhQC sW6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=vsKjz/+sA9FpvgUK0iOib8eC6218aFBxmExWNtLieX4=; b=cw1UpVpDq5V1nI5L/n1w5jX+qiJBYkcutBPozAkzsrGJjjdT3O/vkDKysDrB4M0hQa cYmdJTSu9NdoLT/5QxHtPBwiOWWpPb5E8S0/D7S9C7qRfwLwwQqUgsAKkBTUzl5gjIxM ZJ92Yure8EdQPUMRHxt0nEFohBDa+RXZGbdmg6bwAAN8u/jEOE2liypCc22khxQz58vi 9Fc3MCiD64K3k257julrD+PzqKWPe9mRzQ34vcsdf0rOUy+5hSpFkulKnKB24P6b8nP3 D3+EHwRA86dwVyQ3ExupnBdOMhSZvs7Z+w9YF/wCaFzTkI6JK83ntA5aOdUroTXUpwK+ DKPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nt4X6hyi; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i22-20020a631316000000b0036578093659si16404220pgl.559.2022.03.14.17.51.30; Mon, 14 Mar 2022 17:51:44 -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=@kernel.org header.s=k20201202 header.b=nt4X6hyi; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243025AbiCNROE (ORCPT + 99 others); Mon, 14 Mar 2022 13:14:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233904AbiCNROB (ORCPT ); Mon, 14 Mar 2022 13:14:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B34A0271D; Mon, 14 Mar 2022 10:12:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1983160F3B; Mon, 14 Mar 2022 17:12:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96B97C340E9; Mon, 14 Mar 2022 17:12:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647277967; bh=GEY5cKGvA2rl2PigOsyiq7MnGmDB/pky0S3ErxRuSCk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nt4X6hyiY9aAs5k99yBOnO+JmQiOfPRMOI1+KMBG13zKzbJ5QXgoxnyRbZzoDennH wyucaNOjjNByzNozmYuuJ/AaP9dX/8ImGm+M2xF1hMDpjYko+k7z8Y87juWN+98uuj jAxz+wiMinO+1Be+KldpWOTpDsaM1fAck6SAWBnKgddeLXYpNJgyHYN2GUz/2qZlHb tN3yuzM/aU8zLKe9Bb8fT+sj30Bhx1mJxjqOVp+2Ur8vFZzurJAJQ1gURawPuFm5R5 B+AfS0VIMbBH0zOAqgC2hIWUyvp8/6Vdjcsh3HHizc4jpJU5r9XnFS7zJb1Aw+cfG4 TMSGFJRfqizkw== Date: Mon, 14 Mar 2022 10:12:45 -0700 From: Jakub Kicinski To: Jiasheng Jiang Cc: gregkh@linuxfoundation.org, stephen@networkplumber.org, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, davem@davemloft.net, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, kpsingh@kernel.org, linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH] hv_netvsc: Add check for kvmalloc_array Message-ID: <20220314101245.1589ec82@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20220314083500.2501146-1-jiasheng@iscas.ac.cn> References: <20220314083500.2501146-1-jiasheng@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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-kernel@vger.kernel.org On Mon, 14 Mar 2022 16:35:00 +0800 Jiasheng Jiang wrote: > On Mon, Mar 14, 2022 at 04:13:59PM +0800, Greg KH wrote: > >> The failure of allocation is not included in the tests. > >> And as far as I know, there is not any tool that has the > >> ability to fail the allocation. > > > > There are tools that do this. > > > > Thanks, could you please tell me the tools? Google "linux kernel fail allocation test" second result is "Fault injection capabilities infrastructure" which is what you're looking for. Please try harder next time.