From: Linus Torvalds Subject: Re: SLAB_TYPESAFE_BY_RCU without constructors (was Re: [PATCH v4 13/17] khwasan: add hooks implementation) Date: Tue, 31 Jul 2018 11:51:59 -0700 Message-ID: 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 , Andrey Ryabinin , linux-ext4@vger.kernel.org, Alexey Kuznetsov , 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 Return-path: In-Reply-To: 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 T24gVHVlLCBKdWwgMzEsIDIwMTggYXQgMTA6NDkgQU0gTGludXMgVG9ydmFsZHMKPHRvcnZhbGRz QGxpbnV4LWZvdW5kYXRpb24ub3JnPiB3cm90ZToKPgo+IFNvIHRoZSByZS11c2UgbWlnaHQgaW5p dGlhbGl6ZSB0aGUgZmllbGRzIGxhemlseSwgbm90IG5lY2Vzc2FyaWx5IHVzaW5nIGEgY3Rvci4K CkluIHBhcnRpY3VsYXIsIHRoZSBwYXR0ZXJuIHRoYXQgbmZfY29ubnRyYWNrIHVzZXMgbG9va3Mg bGlrZSBpdCBpcyBzYWZlLgoKSWYgeW91IGhhdmUgYSB3ZWxsLWRlZmluZWQgcmVmY291bnQsIGFu ZCB1c2UgImF0b21pY19pbmNfbm90X3plcm8oKSIKdG8gZ3VhcmQgdGhlIHNwZWN1bGF0aXZlIFJD VSBhY2Nlc3Mgc2V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