Received: by 10.192.165.148 with SMTP id m20csp4579033imm; Tue, 8 May 2018 10:37:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr3P1W3hc4Ic9yaEyp2bTzhj150d9fPfMmvgfOZKKvLPsnFejWdS3iNNklORDNE868iWaEq X-Received: by 2002:a63:4383:: with SMTP id q125-v6mr34133317pga.412.1525801045661; Tue, 08 May 2018 10:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525801045; cv=none; d=google.com; s=arc-20160816; b=Z/1ZKvzrK1f7k2rfz4+1L4neAqLyMjM42JlPKhljneC5yk6awVFZsJyj0mjiMe9paZ T4xfvqjBfHkbSvs8Gzzv6sTsOwgpToyb1JY7HkH+Sj/Rs677awwTwPTCGGwihmU0CoLJ isJH6QfDr9M2AQHWDg5XDy7/6BeidF8meZ/3+ZUBn2LweAZ0GunqniwHTnuHmdmgLbhq 2QhYh4bXlEgfXgkhOAXreopFY+Ajt9/F3XpQj0sqEvZMHJDMEawkT2tKEQDMErBj80hD BQdnrmdmrUsXHpfrKmIfrE9kQZUdO91mkENDuHLMFQw+K3QSyEOZtq9JMuRWUWim/wWW rTqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticoutput:user-agent :in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=vRKWc+d+9rC9c7UCw22CQtSZ4HjKNegcgfn4M6Dfmic=; b=sjcfhOTfi2vVu+gPtLvTlwn5A1Wh2dYDTPXvOc904+BAME+XT1fWip47lDVC1HpdI8 MUKuFCU8znPnIBpza3mGOjTzk8+8KEE8FJwtE8R+gL+wgEUQpRgEDnae8Pv0b8ifYGPb D3Uwc3jqWQ1aQDjjlVgtJVm483Rgl5tMESPzQ9PDQ0QJOVMTrQkLsaV9XsQx471Vux9m BtPYisxbS8tgOZ2CNyln1EPJJGiPnrFzsymFPvnJkMCXEhy2A2k1P6dS3n6HYU89cFHH q4mUp3V3HLFwZdNoNLjwIwCaSGr9VsxGAJk8GPxSIUOeIRy5jeLhv/y5fr9Coyc6Ibmg 0L/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=OApHwAaK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3-v6si24700473pld.2.2018.05.08.10.37.10; Tue, 08 May 2018 10:37:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=OApHwAaK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932386AbeEHRgG (ORCPT + 99 others); Tue, 8 May 2018 13:36:06 -0400 Received: from mail-db5eur03hn0243.outbound.protection.outlook.com ([104.47.10.243]:9344 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751723AbeEHRgE (ORCPT ); Tue, 8 May 2018 13:36:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=vRKWc+d+9rC9c7UCw22CQtSZ4HjKNegcgfn4M6Dfmic=; b=OApHwAaKidABec0QB2BX7ShATFhF0ndZQXGY25I5jm96kVkFaWSkaCzPk73qBuCM4yKeu2H8Bb9HlC3SXg9ItnFK0MrMdd+zoZuqc/U1YABssMxc1A3lRlii5rdcsjy8hbNiC/ZSzJ5ZBgljcEIjF8Qj70x3QJ/kRHXnriZxcOw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=rkagan@virtuozzo.com; Received: from rkaganb.sw.ru (195.214.232.6) by VI1PR0801MB1983.eurprd08.prod.outlook.com (2603:10a6:800:8a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.18; Tue, 8 May 2018 17:35:54 +0000 Date: Tue, 8 May 2018 20:35:51 +0300 From: Roman Kagan To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Thomas Avery Subject: Re: [PATCH] KVM: hyperv: idr_find needs RCU protection Message-ID: <20180508173550.GD2184@rkaganb.sw.ru> Mail-Followup-To: Roman Kagan , Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Thomas Avery References: <1525713900-26152-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1525713900-26152-1-git-send-email-pbonzini@redhat.com> User-Agent: Mutt/1.9.3 (2018-01-21) X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1P192CA0011.EURP192.PROD.OUTLOOK.COM (2603:10a6:3:fe::21) To VI1PR0801MB1983.eurprd08.prod.outlook.com (2603:10a6:800:8a::16) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:VI1PR0801MB1983; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0801MB1983;3:iCGkanRPiI9m610Bn1oBiXVfv7cl31GUP31eCDEsV7ah+LOER28vIcS5CZfH7MxKIUZ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DVWdIbUv0wW86k38sJkBzw4UB/Tj/2Mh653yHDIsqnZne2A90hzgEVchd+018mqii1y3iVzV82ksV8KHokHxIlp8lBZI2T7FxqZn4WNwVcnlHudMKxOPpk8AOldWgdYtKpDW8RYFwYtaXGhI5cSVlnMXeW657WPk631I+rCSEaEvjuxPOkjz4UVdjCqhkfKeWIrLBa10HiReDkbyPtoJ5hZIi4/Aq5podJtwRLAMY3oUMs/FRUIXrNJ808QoFngaak9vDmOA0XfmnH1irgmS5TOhPg81Ruwwhw5J;4:eL0G7IeR5d6n/Qk9lSuwkCsZPKXS6JD+Xhyip6LDQRCwAGF/9oZsx+ovrhPvQBfowri9ILKJx+6RsD5D2NOkv9cw+BtIUiQca6vG/AElJbnPN+B6qnUuLTyMRzSsYshhPTf0sMK7+AsRCSHMV4fWyplj9/HSKPYf9bgRpKRDYoGgVDzWBp2TxpYwa5NrP4zmYledbxxSaYkQyuISDF8kzbAPe59FrH2/o4dtZPdABmK/aqhBjk8t46jkck3oWtRP416/tW+AVFKKJrX89o22yQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(3002001)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011);SRVR:VI1PR0801MB1983;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0801MB1983; X-Forefront-PRVS: 0666E15D35 X-Forefront-Antispam-Report: SFV:SPM;SFS:(10019020)(396003)(39850400004)(39380400002)(376002)(366004)(346002)(199004)(189003)(11346002)(58126008)(53416004)(9686003)(229853002)(4326008)(186003)(97736004)(47776003)(6506007)(59450400001)(1076002)(2906002)(26005)(23726003)(52116002)(16526019)(55236004)(39060400002)(386003)(305945005)(6666003)(66066001)(16586007)(53936002)(316002)(6246003)(55016002)(7696005)(68736007)(76176011)(69596002)(6916009)(36756003)(7736002)(478600001)(86362001)(33656002)(50466002)(8936002)(486006)(105586002)(5660300001)(25786009)(446003)(106356001)(6116002)(3846002)(81156014)(8676002)(81166006)(476003)(956004)(30126002);DIR:OUT;SFP:1501;SCL:5;SRVR:VI1PR0801MB1983;H:rkaganb.sw.ru;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;VI1PR0801MB1983;23:rFxcb0NhG0mFE0gKrTz1AKUxxEXrOw1LUuPv4dX?= =?us-ascii?Q?5uWl57aHfT2naaHnZTtjGmh37xPzwZJOewL8S6Oxq+fifkIWZd96X2ErXf5l?= =?us-ascii?Q?cGnVqZHWFZ7lLW/yre03G7UpYBJV3VJP4+m0vjAdzi9s1H5YhKlX/cyMwsz7?= =?us-ascii?Q?wvIvNTrnEb3klX5bMP0RmbDyT/oDmqL5ZmR90Fyb2inmEr6LrrEZqmejTlMd?= =?us-ascii?Q?d3tDXPfOG9FRWXBokqJkSLchfv6fPkRvgezjlyoLyV7V9AiUm2rVXEuZAKPj?= =?us-ascii?Q?0DLMGrM/1VrjgAlmX9t4/LVwocjp/pRbmJ/mLCqw5V2TkugP8hiVTIafrtEV?= =?us-ascii?Q?AkmVFRB7m4MMHVwFBR+wzskNVmhp/43v19qXQHkqdv/ozp9GZOaPPZZWR62s?= =?us-ascii?Q?IkvMJXinco2Xrdz8eUzpa+ajEjzauPSebOEGfXRBhbT0Ra/FPEKAmld7kXvZ?= =?us-ascii?Q?1LOdb5JoF9P7SGzO10Y7Xj7DQFAZ4LZuTS156mIqsyAUzHduudIEHNGS4pSX?= =?us-ascii?Q?+yTeQ8d7DSYPM/cexIp7LlYVYHV3zFqY+rQsMqL41nRnb2jPlB30Br+nLPf8?= =?us-ascii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/cBGow88CvGhYFVrTTesrffM+FKW1i4fBPdyy7vU+g9cjYhdo49UbWqId2Q1TPJPZnriTxHfAkAevIb5eUR/OA8Zg5B3IhWZxuFC+MdqJSwANDX+qSjDRADxoZnV1CfhykUXw2AMy2PmbEcNXnZ54ghKi6bPiE2qdy/FqW8Q4I7qn0Z4s8yPRlL8oa/tpL6J2CTEvv82WCdJ+Gpn0Q5EJPTF4zJywsyxfos= SpamDiagnosticOutput: 1:22 X-Microsoft-Exchange-Diagnostics: 1;VI1PR0801MB1983;7:/sMQUkHIIuhTDfqUQpXAy1K4TNsN1XFiXC1FMCTxCFQQkjh/8nbbvNm74MWt0ybhOb6xrk6+s8/xItykqJIGpgT8ouVtWAZ9SPVCeAPIBmqaijq2hFRe1yCJIFUphtumiMcNUfMJOUk+SUdwBfnU9KHvZ5KveC5MF5j4H6gUBKxjMxLH5i/Bb/Ynpvy1sf7m9Aa3nz0yuLYiOF8HpSDzV/0K6I+a6vNDHHYy7hRYr0MxW3McGc1s+4Giu0Q+PeLL;20:u5iCxosiGXn9TtMYMLP65THK2GLu6DrC30RgfVu6KZKjW+Yx2fposq8tr2dgcwHNXf3PermBednY9cxWRVaG5zQ8LxU3KgMzSkks4SordgdqsA8cAnGCST2/C7dA+RP/O1A487femURm77d9dds5i296zzx05K4WEfMPVU8PxWs= X-MS-Office365-Filtering-Correlation-Id: 3a4e8e55-5bef-4406-9378-08d5b50a2723 X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2018 17:35:54.9361 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3a4e8e55-5bef-4406-9378-08d5b50a2723 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1983 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 07, 2018 at 07:25:00PM +0200, Paolo Bonzini wrote: > Even though the eventfd is released after the KVM SRCU grace period > elapses, the conn_to_evt data structure itself is not; it uses RCU > internally, instead. Fix the read-side critical section to happen > under rcu_read_lock/unlock; the result is still protected by > vcpu->kvm->srcu. > > Signed-off-by: Paolo Bonzini > --- > arch/x86/kvm/hyperv.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Reviewed-by: Roman Kagan