Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3488414rdb; Wed, 13 Sep 2023 13:41:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFHgUsgV1GXMa3NMQR6XyXnUNfcdbb335kyI77hAGtu/PXa4sxhIjD2fle5iVs9Umt2Fnwj X-Received: by 2002:a05:6a21:9988:b0:134:d4d3:f0a5 with SMTP id ve8-20020a056a21998800b00134d4d3f0a5mr3582662pzb.2.1694637695683; Wed, 13 Sep 2023 13:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694637695; cv=none; d=google.com; s=arc-20160816; b=N1r7jUwqH6h+gQ6UzWnz7m7Pg05D8UTzoPxQ5whtz3i5/1N+JeKlzDU/S635A/6LbL Qwj0eaCMC6EpsMfkgDJpwLgUi9s6i9sofbyByT78bq56QSsP5Afp7LWe+dsm2cNWr0Zw PFn7KefP9es59dvDIeGkAx7+VrSMmllIPTcAy9QVmW46TOJocGQ6k0DpcXMmLq1RRhtP zGWRJxKtGZzD6HVpW3hoZIt63dOar6gfI7ZA6QdcXT13P6idc/ta7ePxEDC0Nw2Lbgmg i6ufzNinwr6vJNPn2cO9iYw2Nqe9ZXtXOodCGu5Z9yfCRVVzPJy2jt/f779ulyuMaRq5 PCng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0ihId+82HD26SjvNufvLy8at2aoRO48c9rDf8oEccLw=; fh=vhyMgzwtVf8Cd+Xluz+kIPeaZIksHpPCItLJmpWVnQM=; b=CcSYTYU8FJX787X+UQ/DEQ8mFbbIDN4sUy2vwxpGVn9Cl3bi+VuHUb5YqMXZCHU8ku ylXaShanBXAraS49ZaUUTa240zrJstwCRDUZsXbafuhtYvCwL4EQgPf4pxKEvHaHVQuC J6J5DyC8KahVs+j0LhplDFlPDboF8ZxjVTjvU6qKYumN4jUPuTsrqtw7zyLBzqR/FkKb kPM51ShUX5lf5benWcC9jFVV/EF9u0lSPg9n1aK91VoojzHV6H98dDpOyQ+cebEuzOBa CcMfdZsJ9s2fa5aDMLqw9QOZ/VmcwjoWvuNTx3WER9BTGNOPell7GU1EskAWNqNIEkJQ D/Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=NH+35ieV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id g17-20020a056a001a1100b0069023e4bca8si1816pfv.214.2023.09.13.13.41.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 13:41:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=NH+35ieV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 813448129ADB; Wed, 13 Sep 2023 10:09:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231582AbjIMRJD (ORCPT + 99 others); Wed, 13 Sep 2023 13:09:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231140AbjIMRIs (ORCPT ); Wed, 13 Sep 2023 13:08:48 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 767A62680 for ; Wed, 13 Sep 2023 10:08:24 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-27405bafa2eso45502a91.2 for ; Wed, 13 Sep 2023 10:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694624904; x=1695229704; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0ihId+82HD26SjvNufvLy8at2aoRO48c9rDf8oEccLw=; b=NH+35ieV5I21W1NWcBjrpFrIPZiI/Rrp5wRiFL2nSAFhyJppHGLkkHVMKjamdHep/3 Re0Y0MUyqUwuMfPp01jFfDriRjLQrfo9kV7TAY+uwNMxNdCzxrtYb3qDij5MdXu/dTKD FFrROH3NXo86y5uZoMXr8k8c+AQ7ltbtgdO1CYn8qPdIe0IPLtJjAjc5mTgtXAIxZEyz jioRIg7aXfif00FSqgyEYzb3KLGz4QL7u2s0j89/H+CfUWOytr4Z+O8idlUjL2zWfQ3u y7j3xyNjJSlvFmAPoSTZN8AVziuJ6i1ognTWP8WAxZcLlgaR5CkQWdSvTngSf2tmv5c/ kQHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694624904; x=1695229704; h=content-transfer-encoding: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=0ihId+82HD26SjvNufvLy8at2aoRO48c9rDf8oEccLw=; b=w0S9fjCDZ2mo3/A29CaYm7uhXWM8RGXipCak0H/DIWeppyIbAMwoCYBuk/EiZIK8ak nduOfA/PwNXxR+97V6aUFzulIBYscVy9Th7PZigG56hRVwvm9/JgA3vcAV9rf0gzgQui fuJF42fhBhSq4ICo3vkuidheIgCGUy8goRyLCpOHO+JepMXi8prIsBV8KbFWZxrWeaxx qKcuy80pBDXB+G2+Iy35uw4SU+s2UFRMAOUJF83yTFrfWuoqY1PMsbSVAqlVvfpdozGd i7ypOCPssWx8gYhekD097zvIumfpLf9G4PtWfCpMP7RYpKDcMNw0YrOLC8tnJNL8Yvo8 ZjDQ== X-Gm-Message-State: AOJu0Yxe0rITuAacEoK1Q0RYZnavmIzs1oNoBXfHlX7mrL+G1Eti4gSS IIJEGJpakaCm9HWcXokc2W2sogwhuJR0EVApkT0= X-Received: by 2002:a17:90b:357:b0:269:2682:11fb with SMTP id fh23-20020a17090b035700b00269268211fbmr2891842pjb.8.1694624903831; Wed, 13 Sep 2023 10:08:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Andrey Konovalov Date: Wed, 13 Sep 2023 19:08:12 +0200 Message-ID: Subject: Re: [PATCH 15/15] kasan: use stack_depot_evict for tag-based modes To: Marco Elver Cc: andrey.konovalov@linux.dev, Alexander Potapenko , Dmitry Vyukov , Vlastimil Babka , kasan-dev@googlegroups.com, Evgenii Stepanov , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Sep 2023 10:09:05 -0700 (PDT) On Mon, Sep 4, 2023 at 8:59=E2=80=AFPM Marco Elver wrote= : > > > > > Hm, I actually suspect we don't need these READ/WRITE_ONCE to entry > > fields at all. This seems to be a leftover from the initial series > > when I didn't yet have the rwlock. The rwlock prevents the entries > > from being read (in kasan_complete_mode_report_info) while being > > written and the try_cmpxchg prevents the same entry from being > > rewritten (in the unlikely case of wrapping during writing). > > > > Marco, do you think we can drop these READ/WRITE_ONCE? > > Yes, I think they can be dropped. Will drop in v2, thanks!