Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3685453rwj; Mon, 19 Dec 2022 23:59:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXv3BLHkS/9bnd2YjqFYRqy0OYPrUNS9KsSCD4UCvN5D85yvqKZKeLHoK9n0R7Qb9eoj1mhY X-Received: by 2002:aa7:8c56:0:b0:576:f89d:2c4b with SMTP id e22-20020aa78c56000000b00576f89d2c4bmr11734488pfd.32.1671523145076; Mon, 19 Dec 2022 23:59:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671523145; cv=none; d=google.com; s=arc-20160816; b=gHdTUJbG3473tBrD5SnT8yVBuxMfXdwSfIAmLV3VfE3X0oEU6nH647UTIRpFo5+Psk mSkRt5zHdUBEaBjCrdsnQei3U/cxK6N6jQkYd1YkswU2Uf+JwKH2pKaY+Boi0Ks4mhnH Q4yQqdKwVr0VZ7fMt230U3WN59NoPwrnT3ppL1OY/SuYcIDdLKsAd4dLM0nxlBf8r8/8 DJchT38YL/jlyqBof2GQsZdwO/W14G3s6EnyFJHNP8dhmrhllYjo52fZkbCU2yfx9CGe +KihEJZYVDOYFMCJprh5b+AKx2recJ/kT/xPynsfIqS1UM8c4oPuIaAMpx76Pv1zoz7o iDYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id; bh=s6TGgzBVO0ZeN7kMdzMtr7subzMY7zZ+VLTOo8jDeIs=; b=a109k+sDx8LyuLH9UOSFL97PxBvMOyumzPrCGV1RdEDNlfk4BS6aUk5WVk+MByL3Sc QugQsqwOFcNUln7QsLrDRJXFxkjKoKPMaxplrMxOdlfhROMKSr0e5Wm1yC/XraaiKYjC V/pVGffCQkPUUmBjXF2brnziDluoEtwb0qvSsQ0r04Tx4CyebWvL2MmK/N2UyzRMR20z TBPDmDCsB9PxtTY3qZg9BRHHno6bATDTtVbCwLZz0Miid7WrUY79EncVLEQMSq9S1Vts Kvb7RFRnv2giut0ymkEPlNVMkjh0VJRJPdeqBlbw/3jiN+6mbb/JSNxxUJ9+b5SAXO13 6XCQ== 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 o2-20020a62cd02000000b00577617c05e2si12649366pfg.376.2022.12.19.23.58.56; Mon, 19 Dec 2022 23:59:05 -0800 (PST) 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 S233276AbiLTG6t (ORCPT + 70 others); Tue, 20 Dec 2022 01:58:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233240AbiLTG63 (ORCPT ); Tue, 20 Dec 2022 01:58:29 -0500 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82B9014D2E; Mon, 19 Dec 2022 22:58:28 -0800 (PST) Received: from [2a02:8108:963f:de38:eca4:7d19:f9a2:22c5]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1p7Wa0-0001aJ-CJ; Tue, 20 Dec 2022 07:58:24 +0100 Message-ID: Date: Tue, 20 Dec 2022 07:58:23 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Content-Language: en-US, de-DE To: coverity-bot , Sean Christopherson Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Borislav Petkov , Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , Paolo Bonzini , Sean Christopherson , kvm@vger.kernel.org, Dave Hansen , "Gustavo A. R. Silva" , linux-next@vger.kernel.org, linux-hardening@vger.kernel.org References: <202212010825.C23022D@keescook> From: Thorsten Leemhuis Subject: Re: Coverity: handle_vmclear(): Error handling issues In-Reply-To: <202212010825.C23022D@keescook> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1671519508;07fd6584; X-HE-SMSGID: 1p7Wa0-0001aJ-CJ X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 On 01.12.22 17:25, coverity-bot wrote: > > This is an experimental semi-automated report about issues detected by > Coverity from a scan of next-20221201 as part of the linux-next scan project: > https://scan.coverity.com/projects/linux-next-weekly-scan > > You're getting this email because you were associated with the identified > lines of code (noted below) that were touched by commits: > > Fri Dec 14 17:59:46 2018 +0100 > 55d2375e58a6 ("KVM: nVMX: Move nested code to dedicated files") > > Coverity reported the following: > > [...] > > If this is a false positive, please let us know so we can mark it as > such, or teach the Coverity rules to be smarter. If not, please make > sure fixes get into linux-next. :) For patches fixing this, please > include these lines (but double-check the "Fixes" first): > > Reported-by: coverity-bot Inspired by Sean's reply yesterday a "nit on the bot" from my side, too: Reports like this will sometimes generate a discussion, hence it IMHO would be good if the bot would suggest to place a "Link:" tag to the report itself right after the "Reported-by:" tag. That might be a bit tricky, but with a bit of luck the bot might already know the msgid of the msg it is about to sent, which makes it straight forward to predict the link the report will later have in the lore archives. To explain: These links make things easier for future code archaeologists. That's why Linus[1] considers proper link tags important and why our documentation for some time says to place tags in cases like this, too[2]. [1] for details, see: https://lore.kernel.org/all/CAHk-=wjMmSZzMJ3Xnskdg4+GGz=5p5p+GSYyFBTh0f-DgvdBWg@mail.gmail.com/ https://lore.kernel.org/all/CAHk-=wgs38ZrfPvy=nOwVkVzjpM3VFU1zobP37Fwd_h9iAD5JQ@mail.gmail.com/ https://lore.kernel.org/all/CAHk-=wjxzafG-=J8oT30s7upn4RhBs6TX-uVFZ5rME+L5_DoJA@mail.gmail.com/ [2] see Documentation/process/submitting-patches.rst (http://docs.kernel.org/process/submitting-patches.html) and Documentation/process/5.Posting.rst (https://docs.kernel.org/process/5.Posting.html) > Addresses-Coverity-ID: 1527765 ("Error handling issues") > Fixes: 55d2375e58a6 ("KVM: nVMX: Move nested code to dedicated files") > [...] Ciao, Thorsten