Received: by 10.223.176.46 with SMTP id f43csp1090691wra; Fri, 26 Jan 2018 11:42:46 -0800 (PST) X-Google-Smtp-Source: AH8x2276YugBxlY14eRKp38tWkf04mRB31/B4xXjS3daosuYqgqPXtyf5sj8BPgFBGuR84yLrq6n X-Received: by 10.99.115.4 with SMTP id o4mr16055153pgc.206.1516995766010; Fri, 26 Jan 2018 11:42:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516995765; cv=none; d=google.com; s=arc-20160816; b=geFkvUR4CdJ01M53iYbqCCvtRiruI34Aq3lp1qGOwwjnR4KtU/mQYDCy9tjP8Wb8p+ PUTMZxJpCc+QVcPe7GQ4bk7k1tn/jVaB2WRtjiui0jHUvsVEdcAAFh+yB0HwOyw1GgGI Io12Mg9BSIEHgf/MUe/fEnBaPocRrEvKw+B8i3KL5cLmA38YnHHeN1got9jlwKPugUph rqM+EFR/X2PMoX3SqVfq6BW42P95a9iXdmFlWuxK0yjFOcyOdI80ZontbizOJGGRFChA jjCI10MIGV9lfbhKQ/EpqHUi5kZTwz4jlfBCfAR3PfcOskS276mV/xG+9dlQt3i9dJY/ ShIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=hytk8LBlUwVnau2y2Vo9pWamiDOUsy4mKgXNp/nLzKk=; b=WJ8CP5by6IGqFgBsVv3k5jLRPorXB3HXVNmIV3iasvhyfpEM/FUV9FVu78IqJo7sfg s2zUfPGNGG2ex2Wleh3EFAnv96gSu243DkNbSx/U9x5rv+BD7B87Hh7nndAkTLWe0VXO x1vSC4XBDRZ9N0ksCbJ4gFZ1nCcOTB4ZvPaq/6wk/7LisrShu2fPoQMYBTaZI6hlb5YP aoUOdUDgPHmJUfTM3CORxOvvYATXXwNuJ2WJyyl2tAItjk6v6UFTCuP4RoqRgpW+3Poq 9eRlDqMavuNbUlZXARx7M3FYHllUfhpbIzdYLoKLgu3KzHLyfRpVAHzgsvH3WtrlX+DM 0MDg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v70si6794117pfa.405.2018.01.26.11.42.31; Fri, 26 Jan 2018 11:42:45 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751582AbeAZTlj (ORCPT + 99 others); Fri, 26 Jan 2018 14:41:39 -0500 Received: from lhrrgout.huawei.com ([194.213.3.17]:23113 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751169AbeAZTli (ORCPT ); Fri, 26 Jan 2018 14:41:38 -0500 Received: from LHREML712-CAH.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id 04415A5039B78; Fri, 26 Jan 2018 19:41:35 +0000 (GMT) Received: from [10.122.225.51] (10.122.225.51) by smtpsuk.huawei.com (10.201.108.35) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 26 Jan 2018 19:41:33 +0000 Subject: Re: [PATCH 4/6] Protectable Memory To: , , , , , CC: , , , , References: <20180124175631.22925-1-igor.stoppa@huawei.com> <20180124175631.22925-5-igor.stoppa@huawei.com> From: Igor Stoppa Message-ID: Date: Fri, 26 Jan 2018 21:41:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20180124175631.22925-5-igor.stoppa@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.122.225.51] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/01/18 19:56, Igor Stoppa wrote: [...] > +bool pmalloc_prealloc(struct gen_pool *pool, size_t size) > +{ [...] > +abort: > + vfree(chunk); this should be vfree_atomic() [...] > +void *pmalloc(struct gen_pool *pool, size_t size, gfp_t gfp) > +{ [...] > +free: > + vfree(chunk); and this one too I will fix them in the next iteration. I am waiting to see if any more comments arrive. Otherwise, I'll send it out probably next Tuesday. -- igor