Received: by 10.223.185.116 with SMTP id b49csp2392063wrg; Mon, 12 Feb 2018 08:50:52 -0800 (PST) X-Google-Smtp-Source: AH8x226NUGB/R38Fl0z7/hEbr2rAKjUc4t1UYC0vtBw1/+B6Pip/r9uJuD2IgyUttCLWWDdcXUe4 X-Received: by 10.99.67.133 with SMTP id q127mr9782847pga.365.1518454252295; Mon, 12 Feb 2018 08:50:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518454252; cv=none; d=google.com; s=arc-20160816; b=ikdh/SWm78ym/UZXZcMYRQeUCJFVbCU7s/pqSNd5IYU6g9KpyP0d0FxWZncEUFJ6oP UXBiegbIr2lt+eaS84L5meuGJof0u9BNNupjvByBfGo1mksNgaQDR4KDQ6SDAaE/bGaz nV1nNXs8dDn95s6qKYdqM4Sxw7wvRZMBPlC3CEnJ7HhpeC9PZdx+xvx3C/XHphGJTBC1 aBYWWQsByyDJ7RwKnoCAZoHxAr0V4CvgrFUYiNeIgn26yRyB/grxEcftF6uKxNTV2g4v 1IJljtwLD6e/yAX5wp3YJadesZO9Ntlq831EcdXOtu+6PTKDvK2LCsMQ8VaPPOwPcJ9u etww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date :arc-authentication-results; bh=UDcmFcOP2xKLBFtazfVBEXUfWq5osKJaQYZgn2kBXD8=; b=xaEMETs2k6TD/R6u+o7Gs/x0bVZpRc9EBamUc2kO+NxcoDfX8Un/CvMhqQLSk7Y8ck 5DGgPuof96OPkYNrh2nzq+1dqad6BH8zMZmZqiEJqtNNO+d9YGXKBjJuNrNPRQ/6wYJ7 eJVOLwfUSVJpILga185zl0YmbHRkTpQfHQd2/JzO3ArqA5moucgR2CKNU1go2/4g551Y ExwsHEOwj6LoMnGp7Rs0edaTRkE0eg8dizF3i1Ec1vzKShlYm4dspxhl4kWh4wQYHWkS LflKQMZme85xHn5aDhUomhOKFT8mg1bY4g3jFLqmBwT85LXv0M01i1KyYGLVrTBLZcTi gLcQ== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i14si5301889pgp.516.2018.02.12.08.50.37; Mon, 12 Feb 2018 08:50:52 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934867AbeBLMyA (ORCPT + 99 others); Mon, 12 Feb 2018 07:54:00 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:53432 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934855AbeBLMx6 (ORCPT ); Mon, 12 Feb 2018 07:53:58 -0500 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1CCpvA1116946 for ; Mon, 12 Feb 2018 07:53:57 -0500 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 2g39cmmge8-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 12 Feb 2018 07:53:57 -0500 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 12 Feb 2018 12:53:55 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 12 Feb 2018 12:53:51 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1CCrocI46202974; Mon, 12 Feb 2018 12:53:50 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D6A0C52047; Mon, 12 Feb 2018 11:45:53 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.8.138]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id B44A45203F; Mon, 12 Feb 2018 11:45:52 +0000 (GMT) Date: Mon, 12 Feb 2018 14:53:47 +0200 From: Mike Rapoport To: Igor Stoppa Cc: willy@infradead.org, rdunlap@infradead.org, corbet@lwn.net, keescook@chromium.org, mhocko@kernel.org, labbott@redhat.com, jglisse@redhat.com, hch@infradead.org, cl@linux.com, linux-security-module@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Subject: Re: [PATCH 4/6] Protectable Memory References: <20180211031920.3424-1-igor.stoppa@huawei.com> <20180211031920.3424-5-igor.stoppa@huawei.com> <20180211123743.GC13931@rapoport-lnx> <20180212114310.GD20737@rapoport-lnx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180212114310.GD20737@rapoport-lnx> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 18021212-0040-0000-0000-0000042EE5D5 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18021212-0041-0000-0000-000020D2A591 Message-Id: <20180212125347.GE20737@rapoport-lnx> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-12_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802120167 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 12, 2018 at 01:43:11PM +0200, Mike Rapoport wrote: > On Mon, Feb 12, 2018 at 01:26:28PM +0200, Igor Stoppa wrote: > > On 11/02/18 14:37, Mike Rapoport wrote: > > > On Sun, Feb 11, 2018 at 05:19:18AM +0200, Igor Stoppa wrote: > > > > >> + * Return: 0 if the object does not belong to pmalloc, 1 if it belongs to > > >> + * pmalloc, -1 if it partially overlaps pmalloc meory, but incorectly. > > > > > > typo: ^ memory > > > > thanks :-( > > > > [...] > > > > >> +/** > > >> + * When the sysfs is ready to receive registrations, connect all the > > >> + * pools previously created. Also enable further pools to be connected > > >> + * right away. > > >> + */ > > > > > > This does not seem as kernel-doc comment. Please either remove the second * > > > from the opening comment mark or reformat the comment. > > > > For this too, I thought I had caught them all, but I was wrong ... > > > > I didn't find any mention of automated checking for comments. > > Is there such tool? > > I don't know if there is a tool. I couldn't find anything in scripts, maybe > somebody have such tool out of tree. > > For now, I've added mm-api.rst that includes all mm .c files and run 'make > htmldocs' which spits plenty of warnings and errors. Actually, you can run 'scripts/kernel-doc -v -none ' to check comments starting with '/**'. I afraid it won't catch formatted blocks that start with '/*' -- Sincerely yours, Mike.