Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp363260rdh; Wed, 7 Feb 2024 07:03:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4+lbiFZ/iGKQ/pQqaZ9QpeJkho6znIUuHDkq2xNg6qtEjm7rjOfCVsn1H95nHmpgpL/sN X-Received: by 2002:a17:90a:e60c:b0:296:669d:bf74 with SMTP id j12-20020a17090ae60c00b00296669dbf74mr2803448pjy.1.1707318203690; Wed, 07 Feb 2024 07:03:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707318203; cv=pass; d=google.com; s=arc-20160816; b=I7m5/5YWn4SdOP5MNv2hHjVOSJL7O8j07N4zyXhGlvODF385q4SeADPNTKqb4jOnKQ MkVsYP9QPr9hubOEYIYWCHTBYunTfuEh6sOrvaWEntXhDjFnhCZIeZ8la8VsNzzz/w4t 3wTQYuv2fiJIKnoSbCj7/w1OIchWf0NdEJiTK+0nKAwsJK0XJ4c1wGIv6D2jG30aEG8K by8AhmhwD+9YEGhd1i2KnROgKLE2FdUf9mCivwFqM+MlzT0HLvIZpBOEkGi1vuVQCDzJ lWtj+JL+rOaeOgdTFrhGIklAnGV2UZI18bMyXPWC28ioo8nxf8M2251SoAUGXuNZ2GQN 9g0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=W0M3TTROdnQ99LEOVazWVIVuG+en6VXt1COOl14WDc8=; fh=d4tfHjUBKwWfcVnnpl2kN1T4NlIe/l1MAToaLcIwIDg=; b=C1XL0tv7LQN5GvjbFI17+nyB1pdBlqOzUndGQKcZuWr8zaFibre38V2JzmB0YtREql 3398PdfngVf9EHc0LTFfvZ7F4x4G7VzrAfBCv7OpfoJhAeCLuIz8ZwbM52lqcV8tKRWj 6haeb3AmBdpjME90Kfc4sqdr4jsNmC7Rms8l2dfiXMWspGgYTDEcD0n5fzJuOCvy6u+f mVEjd3F4UEl/l01UMUVjVJM/6i2uiXNQMWbCsR5+F4e6spHs+CHb4xfG2KOSURGgFBGN J5YkaN/o12j9nrxZxLz6Pdhf5gxOtrJpO5C0Khah0eane3LDuDfZXP6tP3xep2ZcIoOI T87g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=TuqdcN5g; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-56675-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56675-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCVVnDBVlPsfTKXTUn/gn8K6otI1yFNwrp5aka2btyrK3tc4EnXJ+qKSJuwB8xgIgCZATfkXSTPc2gzYBvUlxKo3uyS4v0zgf1VeIstHRA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j12-20020a17090a94cc00b00296a4fa0d7csi1694409pjw.158.2024.02.07.07.03.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 07:03:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56675-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=TuqdcN5g; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-56675-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56675-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D1FFAB27390 for ; Wed, 7 Feb 2024 14:57:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DA6E7F486; Wed, 7 Feb 2024 14:57:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="TuqdcN5g" Received: from mail-oi1-f173.google.com (mail-oi1-f173.google.com [209.85.167.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9743B7E77F for ; Wed, 7 Feb 2024 14:56:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707317821; cv=none; b=RuJdtP2k5sQN66udnSB+V4R+rmjl7OwYNFWne9PQgwHGGaWz3f03qLRx9ZwL0AF3mKA9SFAyQP8wVsn4hh8HU40PrOMTzBRYbipGHlcftd3eawBlMbsbQQR3+zENb0FngEeMHMphveEvMG8qF6E11pWwhPKrF/RYTwRUM5e/OqU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707317821; c=relaxed/simple; bh=/qjE+nqSpEqB34LHfo7cPWwv+pZ6RnEWm3Y5iE2Thd0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=t00F0GTehCcPkvTZv6yXkmtjP2J8t0g6DXM8PBKFTJPIi+XqXs6d1Xm5KlI/icjbvuQYqGyudnfPzBLL9tpgid7Ua/rB9V2vXAkNg9NUInDItn3KEdC4nKQ/v2r7ov2B4QuARFfGpxGLHxFVgsI7cQsEZqRaBcZzGDlQKwtqdxY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=TuqdcN5g; arc=none smtp.client-ip=209.85.167.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Received: by mail-oi1-f173.google.com with SMTP id 5614622812f47-3bfdb84c0ebso404832b6e.1 for ; Wed, 07 Feb 2024 06:56:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1707317818; x=1707922618; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=W0M3TTROdnQ99LEOVazWVIVuG+en6VXt1COOl14WDc8=; b=TuqdcN5gvVjifQyToKKHIrb62FsRQfdArYZ8Wk6zzRqDa6PeACYWWs5V87c9irJ169 mtSBMBe0Afsar8dTeATIAtSxI4tnijzUWuYdygcMGx5G0hDvk4t79IqH2CGCF4ku+EyM u+cOk2DjPcA2tHIPygW1mVgjiodc36jclGo26XNtO6YVoWO6pjAppDPpE26cPzojyMit ZTgvJBH7Zp7H3yRkIjrKNIRSX6++llI+uTLis+8of/QzjDIu8Ekgue+HqWK55CytceEA qGcXsKF5wvBjqz8g9dWCGvlYZuenqFccHFmsxG0PD9l/v8/VJi5f5/e/CXZJbqEU7pg8 Ta9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707317818; x=1707922618; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=W0M3TTROdnQ99LEOVazWVIVuG+en6VXt1COOl14WDc8=; b=rjrIgH7ke+4gLwf6XgaEt1OprGAtb2Egr+QhosDC7u8ix+Le93nhNeX8QjomWHt/5+ S7S1vUfHguqx9GouYhgj46k8LPLp3Uj+IwGqegvNq15JHSGs0HsxnEtOxAFnKWgUsfN1 Uz4DjRxKGp5UFxQxZJUg+cGtbY1jwbh+iUcPCxzVql0NMOC9wK2+JxH2HiNBwmqz0eFn 81PQ8gplgpYWBWIP19kiy9FaKzqR3kAfpOX6QE4qsrBaXnfy6uYUof5DZditqumFts2/ 3XeD7Lbkgzs4TDpMzxEDTuGK5/8caoqyvpZeuSBeH5ekrLsYnUI9gpWUHVq6KR0eVHdN /E5A== X-Gm-Message-State: AOJu0YzR+Cw862zqMZ5d1lnbCINmNpymlLWjho3SKsiYrnMON3evRykS V9BfVi1gbmRL9lduuftegdOvzFRDJ2m1Pq3vOIrfh/lQRGAc+z8n14awbQtzN/s= X-Received: by 2002:a05:6808:228d:b0:3bf:e427:d11e with SMTP id bo13-20020a056808228d00b003bfe427d11emr6918880oib.27.1707317818498; Wed, 07 Feb 2024 06:56:58 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCW8Vl0sHpxqYNmb3IO1yaxSDS8Kwsbp3SFMBoVHT0KITNM8mecYYn7vRx6DgxJfxVsz+8az+e0iU511lusFO7VEXsStZrpyPCtahqJFSKIGp8qCQyhZ0VBPq9iFSzT5sLyGS4mfU/JS0TPw+n5X0EUOaI1UuaMhwyQbc2p60pV8YqEJk9NQa9hCOGfMvMJCYaBBPATZLFVDBMKCOu06L4Izdao9SVg= Received: from ziepe.ca (hlfxns017vw-142-68-80-239.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.80.239]) by smtp.gmail.com with ESMTPSA id es11-20020a056808278b00b003bfe85d3a62sm205325oib.38.2024.02.07.06.56.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 06:56:58 -0800 (PST) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1rXjM8-008VpY-Vw; Wed, 07 Feb 2024 10:56:56 -0400 Date: Wed, 7 Feb 2024 10:56:56 -0400 From: Jason Gunthorpe To: Nikhil V Cc: Will Deacon , Joerg Roedel , Robin Murphy , Charan Teja Kalla , iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] iommu: Avoid races around default domain allocations Message-ID: <20240207145656.GJ31743@ziepe.ca> References: <139a9abe-75d8-3bda-3ec9-a14a493eb2a9@quicinc.com> <20240201162317.GI50608@ziepe.ca> <9ba9c4fa-3fa9-c6c4-ce77-0c6cd5e23680@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9ba9c4fa-3fa9-c6c4-ce77-0c6cd5e23680@quicinc.com> On Wed, Feb 07, 2024 at 07:56:25PM +0530, Nikhil V wrote: > > > On 2/1/2024 9:53 PM, Jason Gunthorpe wrote: > > On Mon, Jan 29, 2024 at 01:29:12PM +0530, Nikhil V wrote: > > > > > Gentle ping to have your valuable feedback. This fix is helping us > > > downstream without which we see a bunch of kernel crashes. > > > > What are you expecting here? This was fixed in Linus's tree some time > > ago now > > > > Are you asking for the stable team to put something weird in 6.1? I > > don't think they generally do that? > > > > Jason > > > Hi @Jason, > > Considering that the issue is reported on 6.1, which is an __LTS kernel__, > any suggestion to fix this issue cleanly would help us a lot. Right thing > here would have been propagating the changes from 6.6 (like for any > stability issue), but considering the intrusiveness of them, is it even > possible? > > Just to be open about reproducibility of the issue, a bunch of them are > reported, both internally and by customers. I think you need to talk to the stable maintainers not the iommu upstream folks. I don't well know their policy. Frankly, I'd suggest just proposing the necessary (and tested) upstream patches to 6.1, however large they are, and see what Greg and Sasha say. This is the usual working model they have, as I understand it. Jason