Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp674157lqm; Wed, 1 May 2024 12:02:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVABbeo4VFTI4cIFZZDSoJN/OHn7NSnPBV6ms6Xh9niQ7DxdYZaCLJf9AZmOnP1QdHo6k08PT3B3PuTOlYdjH86AvtnEeQo1OlxZvD61Q== X-Google-Smtp-Source: AGHT+IEgWARXpYVKzB4OLQ1W7g9gYqnpPblVf0GfIbv0g9q8sbTSAzLFH5ouRdZZZC3SsnfTh6Py X-Received: by 2002:ad4:4e48:0:b0:6a0:fd30:935c with SMTP id eb8-20020ad44e48000000b006a0fd30935cmr1167973qvb.0.1714590157204; Wed, 01 May 2024 12:02:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714590157; cv=pass; d=google.com; s=arc-20160816; b=G/SpngieeluboSr/d9P1IePtUrXuEpwOncMgqkZYwQeExkbxj3dmtlL9VqP1RTffP5 BNLkuQNzSCBAZ4C+4UJUIoPyyPeHGtCfPfBjxWlND73mECmFSphzWJ9UVhYAeZDLRUiT lT71DODxIoRuFVFNrue0hx3r4gnGz7+EmytjnTux0LFqQYALJjx27tWxCgmRITq7mgJa FjJ3leRBeKSHdV9EkptagDtDG3wbhf5UtbnCPRjJ9zTPtF3Vi/dxjZr7o+EhWcQD5+gU SofQ6BNyLsaB3HEhD5sZ4cPBptE5/BRFAVTbgD3WXypRHfLkZDFzPEglzMppVuqF48o5 MH8A== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=mtK2MuJjqWhPYKpFawQmP2hHow2KSmszwM24/gh6sTQ=; fh=5OYaGM6GxhqoyvkOO+cntjLzCWdb6x9s0f2esLy/bDo=; b=tAkyx9NENAsc6s7BXK/3Y85PNISKrdJWFBVpcpHPPgPL+jZJg0Ro6lmJWJjzAax28b jg4DoVdGVu7Ysyfdz2StCxtHU8eOBT4HhEcXsD7KefydZCLWSx7d1Sr5XwwLtlBiJA5X B8Kv2Bv7EOhFZ59ljGpi1/D1dYHP2MHgIK/ja3qDPtAUNLcNIlC7aRGnUvd9/XjLhbsA 8IuvgQUi2ajQv82YBbpbBROVTm9rRC02tubn4f1T5EKxf13i0ldzi/zI/KKsGvHAflnl C0499R2mRYgRi6KT4fZ2LTvyBMbyF4Ef9+8LCT6ae5G+DZUCCTUgimtFGz4Vi+Qyz/sQ XNWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WyGL4Tmy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165701-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165701-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o5-20020ad45c85000000b006a0cb7cb4a8si8585507qvh.421.2024.05.01.12.02.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 12:02:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165701-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WyGL4Tmy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165701-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165701-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EA1A61C2127A for ; Wed, 1 May 2024 19:02:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 207ED161304; Wed, 1 May 2024 19:02:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WyGL4Tmy" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D1551607BB for ; Wed, 1 May 2024 19:02:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714590150; cv=none; b=isiZ98SKbsUTcGozoZ27CkoT3NS/6KqF3BUCRB5jBCvWF7GT3S7ja+pDS/yJNoUVYQ+45/PeQbFQlAy2aysrfjTaBl/aNCdrXrV81H1RXnV03Y7fdy50JLDrACRu0tDHmof2c5b2gP5AbCHvZRSMspbIB74/GpHjDP8nROqhKjI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714590150; c=relaxed/simple; bh=9udOA9Ep/XqlHS3m8QRVgy6nVeB1FOn7sChRztjh8K4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sKI/CeaxKg4IxPiBaQMq0ZkUiOyCUfF6uhH1HK3ndvuNlvyXA4CngNB70ig6uPgavPGXrx+S90tZq4z8dBjMGMv2vp9Z8Kx8Eva0ciSOxHDBt7/lk9wkfMxKU4tu0Z1hFaoc55genO7spjwRLrAgpzLH/lhLDj3zZkBnQMhHQCw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WyGL4Tmy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C74A8C32789; Wed, 1 May 2024 19:02:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714590149; bh=9udOA9Ep/XqlHS3m8QRVgy6nVeB1FOn7sChRztjh8K4=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=WyGL4TmydGYnrzJF2iDWXIPDWO8MdKBPdA4c9INgSzW+YAgYfJdIiIagJ4pFQY0nk fSvOvsnAgDLi2zIijIfVdljbxzLoiXITlPT+4gKvWnu7tpHCj0RXrfQAmgBwt3mVLw HiBHV0JHvghRgd0GNZmmf9X4pmR/A/HHx4GwuJQNi5wA6wo1LHNuG4+n5udUTneVgl C0Pufi9Dy8w+rnTbdx7rMcRzfhng1A05CiKvSk/G9s72t3iZZI40Y8vOAR9AnPyE+G WcuKjHukgigWlu1yDShuy1luOpIrifOoHnaXSNkWkyq0qxe+4ZEzxZ+ZqRFaloFyoN mchXMNJEog+Tg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 76CB0CE0C37; Wed, 1 May 2024 12:02:29 -0700 (PDT) Date: Wed, 1 May 2024 12:02:29 -0700 From: "Paul E. McKenney" To: Linus Torvalds Cc: Marco Elver , Tetsuo Handa , Greg Kroah-Hartman , Dmitry Vyukov , syzbot , linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, Nathan Chancellor , Arnd Bergmann , Al Viro , Jiri Slaby Subject: Re: [PATCH v3] tty: tty_io: remove hung_up_tty_fops Message-ID: <892324fc-9b75-4e8a-b3b6-cf3c5b4c3506@paulmck-laptop> Reply-To: paulmck@kernel.org References: <8edbd558-a05f-c775-4d0c-09367e688682@I-love.SAKURA.ne.jp> <2023053048-saved-undated-9adf@gregkh> <18a58415-4aa9-4cba-97d2-b70384407313@I-love.SAKURA.ne.jp> 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: On Wed, May 01, 2024 at 11:56:26AM -0700, Linus Torvalds wrote: > On Wed, 1 May 2024 at 11:46, Paul E. McKenney wrote: > > > > In short, I for one do greatly value KCSAN's help. Along with that of > > a great many other tools, none of which are perfect, but all of which > > are helpful. > > It's not that I don't value what KCSAN does, but I really think this > is a KCSAN issue. > > I absolutely *detest* these crazy "randomly add data race annotations". > > Could we instead annotate particular structure fields? I don't want to > mark things actually "volatile", because that then causes the compiler > to generate absolutely horrendous code. But some KCSAN equivalent of > "this field has data races, and we don't care" kind of annotation > would be lovely.. That would give the poor sleep-deprived innocent bystander some way to figure out which fields were shared, so that does sound like a good improvement! I would naively expect that KCSAN's ability to handle volatile fields would make this doable, but there is much that I do not know about KCSAN internals. So I must defer to Marco on this one. Thanx, Paul