Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3370917ybb; Mon, 6 Apr 2020 07:42:13 -0700 (PDT) X-Google-Smtp-Source: APiQypJiC07f0dyARpiMSFQIxjayC00hC9a1LS6KxEY3YnvWwXkrUtji3Ikdl2nEK7nTkYYrxvkf X-Received: by 2002:a9d:1d07:: with SMTP id m7mr16995787otm.167.1586184133789; Mon, 06 Apr 2020 07:42:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586184133; cv=none; d=google.com; s=arc-20160816; b=nxArc4KPIVC60/yJgOuTo5HXk1eji7KSlxiiR95J4T31H/f/p3p83u4qNeamEc7q5J PEFT8f4SsbfvwDFmoeAEAQWLlFo7+HLjUpQ86P/gHCYjo2jdYupul3O0IFWnHcqzSvDK M/gppmx8qv3vWFsd/8z88JJPb/hmqNb9B4h03USJ0WhG9Xl0y0eB1xGhduyUXkrUTUdX qqPwj0BJeKZx3u0U+XONhIv+XcoCMrll0IOm2KkhAeQwWjA7gx4SsqbORFBAmTi4uRB2 2FjPqzmDMw60Gtza0P721aknoh1ndcr1aigi4FTA7au9Jhjf578oDQFzYTnBkb6Hd6zG r9Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=3K6eQ8d690wdZUosmRaUm071ZY/MVjAka/1m9mc596s=; b=wSYodG2fAW9znNN/SNH/1pwlwru3MveFuy5QP6oVzROyVSNeL2K8+kLjnymnfg28+q 7QIdJPhocJh3ja+7W+CzXNpNRpfJ5HI9VUQFG6xpCdbG3HvhF+Q7BIf7nyu0xYpewuSi FZU7Elizs8J7UsPt0BAyB2gzGo4tE4BnDCbl5sVFNOonU2FQnLRhCLL864xbx27qnOuj R4STH3SzfgcxnhMMyIdfUYlBcysALKBrcVmRXFUrVDyAiJ3DKAW4i7jSNeHbxAQ2qwxJ YElWrLAjae05shGVKAYKxhpPPtKm4QBJ21YCbHXMSwr7J4h8pBf7T4pTjnAFpOAYgBHJ WSUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=E3v4bwST; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f25si8748898otc.161.2020.04.06.07.42.01; Mon, 06 Apr 2020 07:42:13 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=E3v4bwST; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728767AbgDFOkm (ORCPT + 99 others); Mon, 6 Apr 2020 10:40:42 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:60769 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728566AbgDFOkl (ORCPT ); Mon, 6 Apr 2020 10:40:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586184040; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3K6eQ8d690wdZUosmRaUm071ZY/MVjAka/1m9mc596s=; b=E3v4bwSTax1zv19Kxkbw2o7i3myvyVXz31wOFRNSvay3dS5I61sd5s9MFbceCOaH/1xVyR JrdDYnhn0pNcQB9Aq5Xl+tgpBBUpxZCfBiwfjs0epCFRK0gl90PD0EXsht6/jifZW80sMo QXSVOA5BEwj1DYzDUH6XxC39SwhEEqY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-142-AJQidAWJNPCLNVntPw2esg-1; Mon, 06 Apr 2020 10:40:39 -0400 X-MC-Unique: AJQidAWJNPCLNVntPw2esg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6B4CB8018A5; Mon, 6 Apr 2020 14:40:37 +0000 (UTC) Received: from llong.remote.csb (ovpn-115-20.rdu2.redhat.com [10.10.115.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id B6B0360BE0; Mon, 6 Apr 2020 14:40:35 +0000 (UTC) Subject: Re: [PATCH] mm: Add kvfree_sensitive() for freeing sensitive data objects To: David Howells Cc: Andrew Morton , Jarkko Sakkinen , James Morris , "Serge E. Hallyn" , linux-mm@kvack.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Torvalds References: <20200406023700.1367-1-longman@redhat.com> <102082.1586183529@warthog.procyon.org.uk> From: Waiman Long Organization: Red Hat Message-ID: <04045dde-aa1a-5e7c-5a71-6b4a52c2fbb7@redhat.com> Date: Mon, 6 Apr 2020 10:40:35 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <102082.1586183529@warthog.procyon.org.uk> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/6/20 10:32 AM, David Howells wrote: > Waiman Long wrote: > >> +static inline void kvfree_sensitive(const void *addr, size_t len) > Linus suggested making it non-inline. Sorry, I misread his comment. Will send a v2 to fix that. Cheers, Longman