Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5153023pxb; Wed, 19 Jan 2022 12:11:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWN2H5abzaZHpVPUUB7yLC0L/ezNqRyIOPYRohRiDNcmtvlQwrtOdxm0/Sv3j5GJGqCO3/ X-Received: by 2002:a17:90b:228b:: with SMTP id kx11mr6338997pjb.76.1642623074619; Wed, 19 Jan 2022 12:11:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642623074; cv=none; d=google.com; s=arc-20160816; b=XRJumiPSX5VJgKUGBL1FnDYlOSK9UE0CrXbW85Co6iHAY+MJck7GtlJXPu32fAYK5x cN3sMSqD8oWyqv73frsTgqFdbdJpDe3pYsKCIw40cvurNo39IUdTfcW1EHvvhYPp0sql HC/K8DqmlFaxFU9S9O24ByxL/bjYTrIbpDTYagoY3tjdsOlnODY9SrKDEH4QpLfb2J65 oQk0QIVtSMriZq3Y+SMCVCS3TXuvCYA2nwg9rSyacI+fF0fXJCWkk6/NQE9IMSqdQ0x5 Incuvq30LKwzGVLoLTc1XODFpTMBQD4bNORV3yeVSQ1yTvZLDFoWiCbmuAJb7L6MQ9gL OLeg== 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-disposition:mime-version :message-id:subject:cc:to:from:date; bh=FFwtS9aVWudvhEmBYpfHMyzQjl4f1rVJb56G/7wxEs4=; b=aT3u45BkaXe1+z9q0r87QuvcGEixWetq1TIF4v7ryXmrx8Hzm2EpI/rAP+JK+dxfco aU8xnlYBLnTi5c/++Vabbex5BOMq6rzXF1n5sSZsUdv9c3GLKjwH11jNvhhwMCe9mBkF 6w+wBbQLS4YrFNwmTFfFPlOghL7vgr5CK+rfcVeuqo+rmEIMucHeMk/dYN3SrFKkaOO2 H30Lvn5dAoxCTFAmJg5XFMf6rPNclgn2yQY5cVk3gKvYYj0ndvRE76qH6sFjOoibH4al KcfMEqsfZz+kG1AbLGBcXF3DL5vP1Q/afoBvtDUzarEvbedRIHaK/XdCQcHpIJevINiV EklQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x6si601452pjo.82.2022.01.19.12.10.50; Wed, 19 Jan 2022 12:11:14 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244186AbiARG7F (ORCPT + 99 others); Tue, 18 Jan 2022 01:59:05 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:59644 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230196AbiARG7E (ORCPT ); Tue, 18 Jan 2022 01:59:04 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1n9iRd-0007cI-7l; Tue, 18 Jan 2022 17:58:18 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Tue, 18 Jan 2022 17:58:17 +1100 Date: Tue, 18 Jan 2022 17:58:17 +1100 From: Herbert Xu To: Linus Torvalds Cc: ebiggers@kernel.org, surenb@google.com, hannes@cmpxchg.org, tj@kernel.org, lizefan.x@bytedance.com, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, corbet@lwn.net, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, stable@vger.kernel.org, kernel-team@android.com, syzbot+cdb5dd11c97cc532efad@syzkaller.appspotmail.com Subject: Re: [PATCH v2 1/1] psi: Fix uaf issue when psi trigger is destroyed while being polled Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Newsgroups: apana.lists.os.linux.doc,apana.lists.os.linux.kernel Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote: > > Of course, in practice, for pointers, the whole "dereference off a > pointer" on the read side *does* imply a barrier in all relevant > situations. So yes, a smp_store_release() -> READ_ONCE() does work in > practice, although it's technically wrong (in particular, it's wrong > on alpha, because of the completely broken memory ordering that alpha > has that doesn't even honor data dependencies as read-side orderings) READ_ONCE has contained the alpha barrier since 2017: commit 76ebbe78f7390aee075a7f3768af197ded1bdfbb Author: Will Deacon Date: Tue Oct 24 11:22:47 2017 +0100 locking/barriers: Add implicit smp_read_barrier_depends() to READ_ONCE() Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt