From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1172289AbdDXOOo (ORCPT ); Mon, 24 Apr 2017 10:14:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47042 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1171712AbdDXOOh (ORCPT ); Mon, 24 Apr 2017 10:14:37 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 243FA3F75C Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dhowells@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 243FA3F75C Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20170421183445.GB12755@gmail.com> References: <20170421183445.GB12755@gmail.com> <20170421083037.12746-3-ebiggers3@gmail.com> <20170421083037.12746-1-ebiggers3@gmail.com> <20091.1492783037@warthog.procyon.org.uk> To: Eric Biggers Cc: dhowells@redhat.com, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Eric Biggers Subject: Re: [PATCH 2/5] KEYS: user_defined: sanitize key payloads MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28137.1493043275.1@warthog.procyon.org.uk> Date: Mon, 24 Apr 2017 15:14:35 +0100 Message-ID: <28138.1493043275@warthog.procyon.org.uk> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 24 Apr 2017 14:14:37 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eric Biggers wrote: > > Add kzfree_rcu()? > > > > David > > We could, but it's not trivial because the way kfree_rcu() works is to store > the offset of the rcu_head as the callback function, then have a special > case in RCU reclaim that recognizes "function pointers" with value < 4096 > and call kfree() rather than the function. ... Okay, that sounds reasonable. David