Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1461036lqa; Mon, 29 Apr 2024 09:04:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjjN5DpEH6ZORG6CUAMglUpxjt61fMip03Dzeof31sHgaibEyhzq6saPooXkY6JNH/stwpS4kUqscNKZePhcGbfUKcEwuBD8c5ydgdcg== X-Google-Smtp-Source: AGHT+IH9UnEvaGJML1hzkSMPq/0px0tf2yOMuXqpn8Jtwc1evNy0yDIaRkWYZD7oTXHVe8tTHBh8 X-Received: by 2002:a17:90a:f507:b0:2af:76fa:fb3e with SMTP id cs7-20020a17090af50700b002af76fafb3emr72pjb.45.1714406665080; Mon, 29 Apr 2024 09:04:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714406665; cv=pass; d=google.com; s=arc-20160816; b=WU/h1cPvjeShW9dNSXqSrnpbpn1PJ7UrQYE9jm3PJtlGMEeBXhsVUlF4widT9rQNEn 7D3sPQ09Zr0M9JuAAZUFIeu6Y0BENu8MePFOdLFy2y8qf/cC+K4KwouAJui8yRnqEEDE /nMzOA169Yxe+Xv65hHUc4uAyL/bhGQYHWaL+R12E4FV2ioT6MkIcumoBYca4uWp8XEu U8VkLFrk+mTlXp7Cy3m/vaA03icBQABdlGi8BOZYP2qvk+GhGVUI5V8g3uI4yLATUFzu HDRqHcWT3Pt2onssgtRwbiR3aZVFNDSwL2SK9ykXEi+SHsIaPwnX0GE2+fLZLPGxTHc2 /XNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=yzvwkbrrAC9JiUG9n8YloB91+ZmYMnCxhqfGJQxrqwQ=; fh=UtKsD3vYEtD9MV2yW6d2FOPzl/RjKWJ05CJ1FNDGTTk=; b=YRws4l4BFGUvI+/8FuY2Y9CPpAqqdxGn5abiO9eF5jCK7Npjt8Ly59QbPm5z5ZRMKP fjyhQIOE0VwmxKv/AXwHVE/StznB/9gMyF1xKfocFP0wTD56LG/m5g/08sK8fiizoIlJ +gYF2Cw3zyYJOoyGlgYWWmdCbcV5ckYgUXfD9d1V7KDsxeDmYmtVEMlhvV0+spvB3rIE ZVMRH1+vzomAZ08rhgzaNiaIYm0a5hyiTS+e7wxKFVZpfJm8ch1FEWRA0VfhEG9anZzd jaLlP8PPtViThD1yxeRdv7G1QtSnslLrsM+2tykEx4ghpcZ6BjZp9fYuUEusKSMuUUQp G5yQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="IM9nb9E/"; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-162601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162601-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ls17-20020a17090b351100b002b0de70cc05si4481765pjb.166.2024.04.29.09.04.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 09:04:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162601-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=@linux-foundation.org header.s=google header.b="IM9nb9E/"; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-162601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162601-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 625BEB24ED8 for ; Mon, 29 Apr 2024 15:38:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9ADB7F487; Mon, 29 Apr 2024 15:38:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="IM9nb9E/" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 2D2FF7E0F6 for ; Mon, 29 Apr 2024 15:38:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714405130; cv=none; b=R7/Fq93+nfDiSUn81Yt0QdRQIwKybS0qzJfbswfk+LmFgkhdwt2bb2Fcq/okJQ+FqthSMhCAKQDCAz2MoZsUABH4U9/rxqZ9tuJKQ14mBSdD9SnYftJ0Bs4Zb1+rkJ8j1RZsXbMkhsqmbE1drQ3JQCnIumCuyPwZ0J09U6vbrn0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714405130; c=relaxed/simple; bh=v0HkdwseVtxbUG+TpIadKDFDMEX1O+OVMMIYGmNmfBo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=EJsbil/Q4ylowgEmUHdIL9RlVMrqjvj2RuO6efFRBngpDPgCyUCQWRe9VtSOucIVWBuKNaAaZ06KbSgiU5Hx0MqJL8meA6MvnNSyzCbnkftiX5P3YcKVjnCatYvXtwIgbtuSmA/AfFfIcXbBSXjHCVYCMKtwZmFub0uQLJcwIws= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=IM9nb9E/; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-51d62b0ecb7so2518076e87.3 for ; Mon, 29 Apr 2024 08:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1714405126; x=1715009926; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=yzvwkbrrAC9JiUG9n8YloB91+ZmYMnCxhqfGJQxrqwQ=; b=IM9nb9E/iQ9AmoxGKiClzhen7ssbqIH/WfNV3l6Msbsm+MGaQUcfvwx8aqZkcF0QpW DIAI6zNVBx4xwP/IyFaEDMLuxjmhAKTC8dSvkCEsGsgHT3bl3oJdJ5LH3V12mF+7kNnq ixY0NsrPYKNcC1SEDlNafHAX5LUFbWvoLzXwU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714405126; x=1715009926; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yzvwkbrrAC9JiUG9n8YloB91+ZmYMnCxhqfGJQxrqwQ=; b=RA0sxhyvbBlqFfOUV/43rZGbVkGMTw1hjSeniDdOwQbWXXwqBZsOTqDNra+6vn+zTz ZtBJyVpFETxraeoXkP9RVf8o86nBKn37Rjh5Mx1Z6LxnbBg1YMiveZ3EwFz4nFoZW8jH qTTO7eSP4/bA0EdrKCG7YF+UFzogBaMSLErfluk6m+92gtKzJ/3xAf0B+0ZvCDuND0B0 rlE4/DIJscic0bXUaGJ7Q+JKy63oNYVg7DhCfsCs359XhTtPsLYfTVQP8V8qvT2zBkA3 swa4owMTM4/GnIlwB0/lRJC2c6XjppM0z0kxfvC75rbP1xzR/w7EnrR3mIcJMmhMMFLm E2fg== X-Forwarded-Encrypted: i=1; AJvYcCWJxBJ7McZvGiFiUCkDh3CiElVCmPBuDUmeGaxtlKEGoj8dX/AxUqzt6HGqU3utNEaGuLdULL5wgxMP9Nsq/kpRcNLpf73e9NyEpjyj X-Gm-Message-State: AOJu0YzAKyBCv0PoJwXsFGuOQug2PB/wO40kHTFB4Z7sUWZVQjiWaUDX LW4T2YsYI7isc2z2xp8V8GSUaQlqOZhHXcRE02M6lQHlyBOCzo/s3DsVhte4YObRBVRcNvcuO7O GTJ/w7g== X-Received: by 2002:a05:6512:baa:b0:51d:d630:365c with SMTP id b42-20020a0565120baa00b0051dd630365cmr2567307lfv.4.1714405126060; Mon, 29 Apr 2024 08:38:46 -0700 (PDT) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com. [209.85.167.48]) by smtp.gmail.com with ESMTPSA id s14-20020a19770e000000b005188ea5d2b5sm4232478lfc.303.2024.04.29.08.38.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Apr 2024 08:38:45 -0700 (PDT) Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-5176f217b7bso7946288e87.0 for ; Mon, 29 Apr 2024 08:38:45 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXYVeQuBW+axr4igMRrJgAbqWZi8+Y+s1uNZX/g55pw3Rp4dTp0hDwPKSkRcgpDoxNw9BsVNQg39kkm/pLOdCfBOJjIv/HlpBCO3OXU X-Received: by 2002:a19:5f5d:0:b0:512:e02f:9fa7 with SMTP id a29-20020a195f5d000000b00512e02f9fa7mr8210499lfj.1.1714405125069; Mon, 29 Apr 2024 08:38:45 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20230424004431.GG3390869@ZenIV> <8e21256a-736e-4c2d-1ff4-723775bcac46@I-love.SAKURA.ne.jp> <2fca7932-5030-32c3-dd61-48dd78e58e11@I-love.SAKURA.ne.jp> <20230425160344.GS3390869@ZenIV> <1b405689-ea0a-6696-6709-d372ce72d68c@I-love.SAKURA.ne.jp> <5cebade5-0aa9-506c-c817-7bcf098eba89@I-love.SAKURA.ne.jp> <2023053005-alongside-unvisited-d9af@gregkh> <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> In-Reply-To: From: Linus Torvalds Date: Mon, 29 Apr 2024 08:38:28 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] tty: tty_io: remove hung_up_tty_fops To: Marco Elver Cc: 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 , "Paul E. McKenney" Content-Type: text/plain; charset="UTF-8" On Mon, 29 Apr 2024 at 06:56, Marco Elver wrote: > > A WRITE_ONCE() / READ_ONCE() pair would do it here. What should we use instead? Why would we annotate a "any other code generation is insane" issues at all? When we do chained pointer loads in file->f_op->op() and we say "I don't care what value I get for the middle one", I don't see the value in annotating that at all. There is no compiler that will sanely and validly do a pointer chain load by *anything* but a load. And it doesn't matter to us if it then spills and reloads, it will *STILL* be a load. We're not talking about "extract different bits in separate operations". We're talking about following one pointer that can point to two separate static values. Reality matters. A *lot* more than some "C standard" that we already have ignored for decades because it's not strong enough. Linus