From: Andrey Ryabinin Subject: Re: SLAB_TYPESAFE_BY_RCU without constructors (was Re: [PATCH v4 13/17] khwasan: add hooks implementation) Date: Wed, 1 Aug 2018 12:03:18 +0300 Message-ID: <30ee6c72-dc90-275a-8e23-54221f393cb0@virtuozzo.com> References: <01000164f169bc6b-c73a8353-d7d9-47ec-a782-90aadcb86bfb-000000@email.amazonses.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Cc: Dave Airlie , DRI , linux-mm , Eric Dumazet , Network Development , gerrit@erg.abdn.ac.uk, dccp@vger.kernel.org, coreteam@netfilter.org, Jozsef Kadlecsik , Alexey Kuznetsov , linux-ext4@vger.kernel.org, Pablo Neira Ayuso , linux-s390 , Andrey Konovalov , intel-gfx , Ursula Braun , Rodrigo Vivi , Dmitry Vyukov , Theodore Ts'o , Hideaki YOSHIFUJI , Greg Kroah-Hartman , Florian Westphal , Linux Kernel Mailing List , NetFilter , Christoph Lameter Return-path: In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" List-Id: linux-ext4.vger.kernel.org CgpPbiAwNy8zMS8yMDE4IDA5OjUxIFBNLCBMaW51cyBUb3J2YWxkcyB3cm90ZToKPiBPbiBUdWUs IEp1bCAzMSwgMjAxOCBhdCAxMDo0OSBBTSBMaW51cyBUb3J2YWxkcwo+IDx0b3J2YWxkc0BsaW51 eC1mb3VuZGF0aW9uLm9yZz4gd3JvdGU6Cj4+Cj4+IFNvIHRoZSByZS11c2UgbWlnaHQgaW5pdGlh bGl6ZSB0aGUgZmllbGRzIGxhemlseSwgbm90IG5lY2Vzc2FyaWx5IHVzaW5nIGEgY3Rvci4KPiAK PiBJbiBwYXJ0aWN1bGFyLCB0aGUgcGF0dGVybiB0aGF0IG5mX2Nvbm50cmFjayB1c2VzIGxvb2tz IGxpa2UgaXQgaXMgc2FmZS4KPiAKPiB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