Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp536963imu; Thu, 22 Nov 2018 01:20:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/WkO+VxuSe6WLHr4iVGb8UZKVEupC8Q1jU/4S7FH4SaK99i0KErq3mhekuvB8t2VpA5TuEL X-Received: by 2002:a65:64c8:: with SMTP id t8mr9204554pgv.31.1542878449876; Thu, 22 Nov 2018 01:20:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542878449; cv=none; d=google.com; s=arc-20160816; b=m4P4kZBt2qDPVoJzSodiITIPLD5gVLtUm8n+b+z8b6CgmWiktKbYRX6+PCpaPyWNd7 4mT0KBNd7kmYcK+6VKmgCHHgtAumm9w/TFupmajrNUJxcMWXVwDG726R+X58bnIujjHH 2Tf/J8iEje/q93bd1/AhX8GSyzjqS7jQpjRzHzWpUQZm+rOZlMOlij7HD3cms6lXCS0M 4xaphwWoW2ZJmXWvC8xPpFVyCcS4gjqahMMafHKyfNIpTVR4L3ZZDnDBoIFz1omamTeZ BAGMARSs0iCG5RtNPU935VhxUsR2NeIGwZpuXj+wsAObN+/RbIe9tQBkowLhYE7W+HCH /MEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=iyu+r1qU4x4WLB9qIma9AHESoTIw5m2Vat5BZdT61Oo=; b=uoY8vMgy6DI9naxrP8BHQfMASoz5kP3eYs/tRoJKs2eKcYMubTE2TfdZnQhdi4JwBo 3oNWM85vVLO5jt0i5C+syGq6jRRXtMv8h6UhtoZr+Te3V7QGcpi1drDmi2p6lko+CHnj BE8uysB38CUx7AnekKYCgxQ1EvUI1GZaxo343lsfjtXlJjFFxAMVFu8N61QnRyOSOlbY u3Xecs8KjsGNkA0wW3XSz8r2icUftGGh9mJW7AlDCTAJWjQgbAj/nmtCt5vL68xiSPqa UCKvIuNlqV1I5QiuscIig4dEpQSmM/DVnd+wS1FJIUi6woZtL1UsX4JNdR5dlEmU0E3R 0PZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LHaqXnBP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si46694940pgl.148.2018.11.22.01.20.34; Thu, 22 Nov 2018 01:20:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LHaqXnBP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390246AbeKVJRx (ORCPT + 99 others); Thu, 22 Nov 2018 04:17:53 -0500 Received: from mail-ed1-f50.google.com ([209.85.208.50]:45506 "EHLO mail-ed1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387465AbeKVJRx (ORCPT ); Thu, 22 Nov 2018 04:17:53 -0500 Received: by mail-ed1-f50.google.com with SMTP id d39so6139705edb.12 for ; Wed, 21 Nov 2018 14:41:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=iyu+r1qU4x4WLB9qIma9AHESoTIw5m2Vat5BZdT61Oo=; b=LHaqXnBP/y8+l+vQOkAC9X0L09mU85qyc+TDzjjunQCm2KJVcyB4Gw5eTF2LN9Muuj KtghmKz5NGhop25VwimTWbRsuiwEi0K62jCj1AmkY0bnEzRS9/7O1vol0jE1g2ReoT/8 bIyqy9cEP6PGZ5DgOujno5xQaO2/sxjF/zmAk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=iyu+r1qU4x4WLB9qIma9AHESoTIw5m2Vat5BZdT61Oo=; b=Qd3e9bgKe914pntXVNfvBAtPC8GA42gZKuN7HvyDk+Q9k3FGBdb5vQpPaubyugDfYc FdQ0Zp5cfM3fJMnXVshIZA5E8MbupLEvMcjGE/UuWrS75QWk3Ax+xxsSocoqAyQV7RdO NkKBmXz/KgJtbSt0nWoZIqKxNJIBGduKPYq9+DYnRncuZBmHJTkYWDRK4yW5H7vuSeHk DjIBNhWO4En3u5Y9EVnBBHBwRZRE6x1xNb6z6mtyRr6x8iHxpNQL1JSbXELZm85vzyYR Qs+wN2A1eIEGzZddmhW5Xy8ohqo+6pvxBnmuI1X2cVrUG4y2eO+1vtgGG/Hwe81k2LPN H5pA== X-Gm-Message-State: AA+aEWZWkvKwXFjJn2t/dC12VN6QZbr14OmAxT59ViMF+4RJdTH9k97A 9Rzb3ZdlSd88ew4ZSMau6OCmEA== X-Received: by 2002:a50:ad97:: with SMTP id a23mr6814441edd.128.1542840087676; Wed, 21 Nov 2018 14:41:27 -0800 (PST) Received: from andrea (dynamic-2a00-1028-8386-da8a-eacb-c188-78b9-634c.ipv6.broadband.iol.cz. [2a00:1028:8386:da8a:eacb:c188:78b9:634c]) by smtp.gmail.com with ESMTPSA id a22-v6sm2917461ejv.17.2018.11.21.14.41.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Nov 2018 14:41:27 -0800 (PST) Date: Wed, 21 Nov 2018 23:41:24 +0100 From: Andrea Parri To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Oleg Nesterov Cc: linux-kernel@vger.kernel.org Subject: [Question] smp_wmb() in prepare_uprobe() Message-ID: <20181121224124.GB4016@andrea> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, The comment for the smp_wmb() in prepare_uprobe() says: "pairs with rmb() in find_active_uprobe()" but I see no (smp_)rmb() in find_active_uprobe(); I see the smp_rmb() in handle_swbp(): is this the intended pairing barrier? Which memory accesses do you want to "order" with this pairing? Thanks, Andrea