Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp126887imu; Tue, 8 Jan 2019 16:05:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN6UgG4ow8esWH8p6Yo+CpsDc882AZEPcGZpM/4GrgmYP4MOJDBzgj37CG8PJZfi+g8UXhgL X-Received: by 2002:a63:6006:: with SMTP id u6mr3422492pgb.176.1546992343355; Tue, 08 Jan 2019 16:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546992343; cv=none; d=google.com; s=arc-20160816; b=cEFe5Is6BEcA/DQkGXgbaYDkMK9WnYAU9zXgtmYyWIHI2bM7Ih5IQHG7ltMj09Pu7N W45rZ19zyq9foKfIoK0snFzwP1+dB+zXw+WhhyYZvFJESfhd6t7gdBxV0sbF1a1aw5jm et6KxqhiKdK7pBpdY681vv8FstgRZTaVKzXGOPjT+XOCxpKKHwHVuSM9mCn64hYI5HEh zIR1KvTeR72VT65CDcEoZiJ7Q+xKLQFx55FquXz3nMAERoaWLL3js7aDjU8a0t5pMayC BOa9yCaJ0SHQ4iMequMMk2PJ2jYDL1jIB3dpc5Zfdzl5tUfSBNF9WbI0fqjnP3v8vAGL pxoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=m9+WYIVyNxmgqLem1K5EceoV5fNoCdzLQqMQZD6WVMM=; b=JbzGC6H5j/rILpKQbsznlEpMZoWbKtzbt2sYNPEgWvnX0nAk7HLK8F/K4Wp/eZIKao T2/xV7kaW359kzPzP79x4a9xJrnL2+UPf+u46Abc0RuZzsVhvmuYYGWeEzuGYCqpI+jc zzf2uPXvFVIU5Gbo6LdlaK9iyC5AFln6+eAhYJmKOsoNuV49HxFVIvY+zvebjLVQm8zR txTHqB3HcJhBPtksEwQToxrNnH64BZ6uJJfc6GYIIJAWJ/iRnmHvdK8TcLUxvzfIrsVe 3tSbCkKaKL9tWUcKEDAMuK++mNzxOKuC1XRiWj2vdAq7rpBm+CAF6N+GaP+07IhP1YEL /xhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Gc82E8mo; 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 n18si1582383pfj.30.2019.01.08.16.05.27; Tue, 08 Jan 2019 16:05:43 -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=Gc82E8mo; 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 S1729459AbfAIACZ (ORCPT + 99 others); Tue, 8 Jan 2019 19:02:25 -0500 Received: from mail-ed1-f42.google.com ([209.85.208.42]:39284 "EHLO mail-ed1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728112AbfAIACY (ORCPT ); Tue, 8 Jan 2019 19:02:24 -0500 Received: by mail-ed1-f42.google.com with SMTP id b14so5852597edt.6 for ; Tue, 08 Jan 2019 16:02:23 -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:references:mime-version :content-disposition:in-reply-to:user-agent; bh=m9+WYIVyNxmgqLem1K5EceoV5fNoCdzLQqMQZD6WVMM=; b=Gc82E8moS/YlaP+5ub/BQCsMEB6xjWWCRlfWnLspsE61ZEBgV+bJZGzq/gWAuf1hgr YzgWHtS0rAu3IFU+0LmJJGXViP/KMm9NdxIMf62MkURJoNr9/dwCPN2slgg/6QP89EZK tHqkHZa7hPiYkVr2T6G1lq95KGQ7eXpMHnf6o= 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=m9+WYIVyNxmgqLem1K5EceoV5fNoCdzLQqMQZD6WVMM=; b=k/hI04s9lmgjOp9O/9XQvu9SucJ88uyrR684noKZ+GzAmOmg6KFprie5puUYpmiols +CTwg0UvdE3E2pzcQj6z7UlIw3WPQt0cY+bUuZ1+NfsgORnhrWmNIGdAA49T9U9O83ua KSX0yB6phKH/Xw1DaTCLKxfkSvHKCWhY//9iZlC8bSvE+9Gl/+c6oUYjtli5yEDCvRF3 QYtXsGSjemeYgWBLf2p+vYlIocrXQg+bZTxCOj3eJuKCSEMnlK2fWQI2+y/wTpZSZ04/ 9jDtpmm6dDpWiTgkoFzTuUgSbv134m22sC7Wg+iOrsiEQYhI6OsBQGvsj2fRDEBEuC44 2pNw== X-Gm-Message-State: AJcUukey15TOvBSIsHDzs0b2CQ4XhtWB9rypqcUV+NtCNpbTkFG0EaL6 xvDmoVlPQyEsnsYawCI8Rl6s2g== X-Received: by 2002:aa7:c6d1:: with SMTP id b17mr3982459eds.249.1546992142463; Tue, 08 Jan 2019 16:02:22 -0800 (PST) Received: from andrea ([89.22.71.151]) by smtp.gmail.com with ESMTPSA id n10sm445016edq.33.2019.01.08.16.02.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 Jan 2019 16:02:21 -0800 (PST) Date: Wed, 9 Jan 2019 01:02:14 +0100 From: Andrea Parri To: Anatol Pomozov Cc: fw@strlen.de, Dmitry Vyukov , paulmck@linux.ibm.com, LKML Subject: Re: seqcount usage in xt_replace_table() Message-ID: <20190109000214.GA5907@andrea> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Anatol, On Tue, Jan 08, 2019 at 11:33:39AM -0800, Anatol Pomozov wrote: > Hello folks, > > A bit of context what I am doing. I am trying to port KTSAN (Kernel > Thread Sanitizer) tool to v4.20. That tool tracks shared data usage > and makes sure it is accessed in a thread-safe manner. Interesting! FYI, some LKMM's maintainers (Paul included) had and continued to have some "fun" discussing topics related to "thread- safe memory accesses": I'm sure that they'll be very interested in such work of yours and eager to discuss your results. Cheers, Andrea