Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp266242ybt; Tue, 16 Jun 2020 23:53:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPj5WvPYg+MQ+LIYYAV25Di8JByCnw/m1JvpKbFx5oijQP/Gat5QKNFo8lylblqnVq5bdG X-Received: by 2002:a17:906:fc13:: with SMTP id ov19mr6076061ejb.212.1592376810342; Tue, 16 Jun 2020 23:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592376810; cv=none; d=google.com; s=arc-20160816; b=R16sjMAUL8sj0yyIuVYWPkgu2LUDh11XCohgaBdqxJs22+qbr7ByuGVBXV0kHAn3Vn W2kaKHsvijEYZUymtPXcaVsfUgQ8PrOA/NQTuI1n6g1KatrLrwwjMofLoT9u8z0cuRSH G0Og8LUoNc01l6cfhBOn0Z5iYsDI9vSWaFfXuOftz65sGVmFzyKgCb5ddQCQ49F9p7JJ GJWBqaCNyaE0J6WLCi8UtX/KBXc5gAUgM/AJSEZqPGY7M5hjcamq4qs27lumZUzQxiiI 7d+ZoJkuiuyavb+dsDKJm183b+EfQqxHQxlO3xCFdCktBnaJIngNtQw1BcLJJVZNXQWW xDTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=djs/SAZ8Kw19NRABzWaFH2COlmug2zxctAwykTCTT6Y=; b=bmbM7KULqJNZGCBMWKH4NIP28f8GQLDa6lqZKtVZpSsgTGzf0U0ez7ieRVZfqtKab1 Lwf+Y7MvSwiY9vQaL2d7S1+dsRD+VqPorZyDnEbjpjCp+aCg0fl50kUi/g5v2WfOa4H7 WqxiUW/8HhobwcfIJn5eZ9TyknRBVI4ppwxb1OrM5iSIKh205i8taGKC4sNy6eZ1NCii q95w8IiX2lsXN2aDKmJmkwr9somOgtMdxfqBAoHU8xpiXkMcp7Zs932A6FrVKixLj7Ex j6Q5F6z6IKQmwfUzJ//C/X0QhuV+kOPaev8TYqX+KPs2k3MDqic3MlKbLgnW8+ntRXzG srZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w29si12684464edl.502.2020.06.16.23.53.07; Tue, 16 Jun 2020 23:53:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726025AbgFQGvS (ORCPT + 99 others); Wed, 17 Jun 2020 02:51:18 -0400 Received: from mx2.suse.de ([195.135.220.15]:43236 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbgFQGvR (ORCPT ); Wed, 17 Jun 2020 02:51:17 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9127EAC5E; Wed, 17 Jun 2020 06:51:20 +0000 (UTC) Date: Wed, 17 Jun 2020 08:51:15 +0200 From: Daniel Wagner To: Alex Williamson Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, cohuck@redhat.com, cai@lca.pw Subject: Re: [PATCH] vfio/pci: Clear error and request eventfd ctx after releasing Message-ID: <20200617065115.ccaawd5ehap6pqfq@beryllium.lan> References: <159234276956.31057.6902954364435481688.stgit@gimli.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <159234276956.31057.6902954364435481688.stgit@gimli.home> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alex, On Tue, Jun 16, 2020 at 03:26:36PM -0600, Alex Williamson wrote: > The next use of the device will generate an underflow from the > stale reference. > > Cc: Qian Cai > Fixes: 1518ac272e78 ("vfio/pci: fix memory leaks of eventfd ctx") > Reported-by: Daniel Wagner > Signed-off-by: Alex Williamson Thanks for the quick fix. I gave it a try and the warning is gone. Tested-by: Daniel Wagner Thanks, Daniel