Received: by 10.223.185.116 with SMTP id b49csp21629wrg; Thu, 22 Feb 2018 15:43:25 -0800 (PST) X-Google-Smtp-Source: AH8x227wMT6FRemI0FGeGsdYQpUKkuwQcT6w3Vnu6Wld+wUM6Ezrt6cnEHZiIoJihiFakKre1SyX X-Received: by 10.99.125.22 with SMTP id y22mr6975581pgc.125.1519343005757; Thu, 22 Feb 2018 15:43:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519343005; cv=none; d=google.com; s=arc-20160816; b=vk0Q8HstRDHLzClsaGAljEGmUtApAxLsmmhC7zfPoHFUcxzS0Uaq6XfAUjGuL62iqu out3SrqWno3AHtWnobU9y3qm1gHxDANfFUAEjoNX022dZWOEsIbZTiSGLdhzTE7KcMgn WSt92RbvEfmWTmaZknHH52G6n+Xb3kFsZdS7FI2yWEMr1sd6pfon6u6I1T/QGMOLPMYS L5RcZ/qaIxavEVcX4Xsf5pCL5eBUL+I1zctBEcgFJNL8Ruo3bO7gbmk6GfQibjW5VD7i cfKJlnGCQFaE4/hNZ5IDz5q9PgpFlKjTA/rt3tCGTvBviu2IGgC/MmzssDHO3FqU/s/4 8j7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :arc-authentication-results; bh=3Z1Eu+4guyyOMsNdpjT7Yu0CdwMB/cbP1T/yiePzLzE=; b=rILn7WAnYVd6LgmFyoMrr5g/RvSdK/E+5eRAW0WcgiH2uG4t6/lXYIFEpNCoetbT3N kZfqUj0FPDuL49LDrG6pjdBxzUhYopyeAW3P5ueACqNMc/hamwKNTEuh1BKdWEsIdJLE E3fh6VCq5kjHw0XOevjFqamIJqiwpu4WcDR3lT3KgU0q0cWWUM4CIw4MJVMEfpgogQxW cpx6rT6334wMFraBLx39er+YMXhtSAAT1e+CtxC0ppNMrtbTFXqECr8cGkOUO6uW0KMj ZxiOwYa/k+Pk8C9zqMOCATzo1NAaNseyYWxKOEZ+qVGTTD8IXG3WvbnORj2HZYRIfL8P xAkQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 j11-v6si772375plt.385.2018.02.22.15.43.09; Thu, 22 Feb 2018 15:43:25 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751764AbeBVXmT (ORCPT + 99 others); Thu, 22 Feb 2018 18:42:19 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:41090 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750916AbeBVXmR (ORCPT ); Thu, 22 Feb 2018 18:42:17 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0BC60EB702; Thu, 22 Feb 2018 23:42:17 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-250.rdu2.redhat.com [10.10.120.250]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2908710A9DED; Thu, 22 Feb 2018 23:42:16 +0000 (UTC) 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: <151931646922.27713.5363631712174136041.stgit@warthog.procyon.org.uk> References: <151931646922.27713.5363631712174136041.stgit@warthog.procyon.org.uk> <151931642737.27713.5082532296556836948.stgit@warthog.procyon.org.uk> To: jmorris@namei.org Cc: dhowells@redhat.com, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Kirill Marinushkin Subject: Re: [PATCH 6/6] KEYS: Use individual pages in big_key for crypto buffers MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29837.1519342935.1@warthog.procyon.org.uk> Date: Thu, 22 Feb 2018 23:42:15 +0000 Message-ID: <29838.1519342935@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Thu, 22 Feb 2018 23:42:17 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Thu, 22 Feb 2018 23:42:17 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Howells wrote: > + l = min(len, PAGE_SIZE); Sigh. This needs to be a min_t(). David