Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1253716pxb; Sun, 22 Aug 2021 10:37:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoMRawLyL6Gov502hrXc24XE526np9FDe9AzEfJ/XoLpBZDBm4sRWpvTwBzgyHcUycDJDr X-Received: by 2002:a05:6402:31ad:: with SMTP id dj13mr33006159edb.296.1629653840619; Sun, 22 Aug 2021 10:37:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629653840; cv=none; d=google.com; s=arc-20160816; b=GJRF8xjRWUBtvBQvVVVHZlAaa+ybE1wDbmEwyfkBK8jjHRu73f99YnZdxRWERdU9y3 HLPO2Lc7pyJI7ynJMV7Zi7jsIQhYQvKuWL+N8+5oPaEVvH/UWWeF4r4JX6A16KWi1OWx 4+F0DnclZUjZ25k+rL4qlITkMMxOGLEmFHRcRUyJBef2jekLWH8tlUCsf1JWxUL7puaL EF0FoHsqWr+9JrORZduhBsa2QFNzgkMwtGJQDtx9UTSzpzqKXWpX362s3PSl6O9pFgfI q8qozzUoKA6FvP7JlWcsWLExJASGcs6M7jdShwWN3czzgvjTfL+Zuaf0vqCOvnoyr6vc posg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=U2ZYkA40pDQvD6v7BP8S/vsuoCt3e+GjmDpibd/R/f8=; b=YerABFwVGOuqjRTu80uQj6PCR4LE4/FvJr5eBoFSlAJc+/qbjiAQFbxUnzWEfs1jkw xKSacEo/lsiFWgg18gw09M7Pgemy6ZRfkbh9Oc5Ds33msA2RrQCt0OlBo95OvtJ2wbTZ jpKeBUMrvYEpnltal8XnEDw2GhMHTLjjbwc7aMsxqozQfyPWRUlGY/m1pzaXFsdRjJed gpSDZfwxgR0OL/SQosCIIp1X3kBEeanXQDxq4SJY4ZjRLBYBh6DEXxMukdfKOf9QqLlU jqc9wh0CIqbLBSY9tBYvQ0BbZ9CSNiFLbf1qHNfwssEGhEov7oylLSgsXlUQSAVFGPkb GcLA== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gt20si4196094ejc.4.2021.08.22.10.36.52; Sun, 22 Aug 2021 10:37:20 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231259AbhHVRdL (ORCPT + 99 others); Sun, 22 Aug 2021 13:33:11 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:44849 "EHLO mail-wr1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbhHVRdK (ORCPT ); Sun, 22 Aug 2021 13:33:10 -0400 Received: by mail-wr1-f52.google.com with SMTP id x12so22509007wrr.11; Sun, 22 Aug 2021 10:32:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=U2ZYkA40pDQvD6v7BP8S/vsuoCt3e+GjmDpibd/R/f8=; b=ThgeZafg6mNcqu03QFrCL01Qler5MUTKEMlTpmZbJ3Z97UJlNa0X5bUvJVr00m+hXe nmqrwLSVDlzr8BQ4/hPKHMgnJrg90WrhJ5y93IF+HQ2kPEiNNds6vYQZ9U2QQ8JLCrPV kbx/Y77aMwW7Wikbmv0PI66wpjpppSv2hjbO7zoGkCAt0WER0XP8pxuQDI45I7kHlijg ifFv5rj0aG+mfr05YHX6t3GJk32nJ/+ECCf94gE049PYx6gx4ZygbT6yTIQ/HKbspAqM xC92sUYnizuLJaUPborDwCFS/ZkLPgoNp1yv6QTJq/SbXQsKARffpbOIaXD2hshFL+ws BMHQ== X-Gm-Message-State: AOAM531ms/QOHRU75zo0gKQOQd51qlxm9hKK4OvlOhQkNQTcAGxPUvs5 zWMAnTqxKry+T0TmOnWi4G4= X-Received: by 2002:adf:cd91:: with SMTP id q17mr9671938wrj.122.1629653548502; Sun, 22 Aug 2021 10:32:28 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id n14sm2252576wrx.10.2021.08.22.10.32.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Aug 2021 10:32:28 -0700 (PDT) Date: Sun, 22 Aug 2021 17:32:26 +0000 From: Wei Liu To: David Mozes Cc: Wei Liu , David Moses , Michael Kelley , =?utf-8?B?16rXldee16gg15DXkdeV15jXkdeV15w=?= , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] x86/hyper-v: guard against cpu mask changes in hyperv_flush_tlb_others() Message-ID: <20210822173226.ddekpq7jrjwhsguj@liuwe-devbox-debian-v2> References: <20210817112954.ufjd77ujq5nhmmew@liuwe-devbox-debian-v2> <20210822152436.mqfwv3xbqfxy33os@liuwe-devbox-debian-v2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 22, 2021 at 04:25:19PM +0000, David Mozes wrote: > This is not visible since we need a very high load to reproduce. > We have tried a lot but can't achieve the desired load > On our kernel with less load, it is not reproducible as well. There isn't much upstream can do if there is no way to reproduce the issue with an upstream kernel. You can check all the code paths which may modify cpumask and analyze them. KCSAN may be useful too, but that's only available in 5.8 and later. Thanks, Wei. > > -----Original Message----- > From: Wei Liu > Sent: Sunday, August 22, 2021 6:25 PM > To: David Mozes > Cc: David Moses ; Wei Liu ; Michael Kelley ; תומר אבוטבול ; linux-hyperv@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] x86/hyper-v: guard against cpu mask changes in hyperv_flush_tlb_others() > > On Thu, Aug 19, 2021 at 07:55:06AM +0000, David Mozes wrote: > > Hi Wei , > > I move the print cpumask to other two places after the treatment on the empty mask see below > > And I got the folwing: > > > > > > Aug 19 02:01:51 c-node05 kernel: [25936.562674] Hyper-V: ERROR_HYPERV2: cpu_last= > > Aug 19 02:01:51 c-node05 kernel: [25936.562686] WARNING: CPU: 11 PID: 56432 at arch/x86/include/asm/mshyperv.h:301 hyperv_flush_tlb_others+0x23f/0x7b0 > > > > So we got empty on different place on the code . > > Let me know if you need further information from us. > > How you sagest to handle this situation? > > > > Please find a way to reproduce this issue with upstream kernels. > > Thanks, > Wei.