Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1049610ybl; Wed, 29 Jan 2020 14:23:11 -0800 (PST) X-Google-Smtp-Source: APXvYqy3VY58MwfN+PlUZOyYYNU9xBXRM2xbtFjP8ZF0cpmD6CSKZWcvtWprEa5xMzJ3e1UGj2Ns X-Received: by 2002:a05:6830:4b9:: with SMTP id l25mr1215599otd.266.1580336591057; Wed, 29 Jan 2020 14:23:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580336591; cv=none; d=google.com; s=arc-20160816; b=0NyTnktagGOie0+P7C2sRJiY+VOOTJdInntjFV4boBx7qJPbHxycCA7cArI1fwFrlB VQNOkT+Je3X/AMRNksvbR9s16MSTfhCdRfjxFavlQWhIihqPq8mDdQwtkrblpAf8z+w+ 0pnAJu2VxRJ4BjDFlrLCQjceY/2QfR0frEHP5Bw30wiOMgqLgXmmeB5t/Gyp5z2vELEq 8pyNl4tYXuCR88k/6OShsaY7KDXPhguEUEHZ3fxkd3/54J3zlIisz+ppAT3yZfKdgSXk A5cxq+3NPxn2mHN8tU7Hq/fvCJ6wZDhtqKSNVZqeUjAiLF4qCDyoqfpypsBts1N8Z01X HBaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:subject:cc:to:from:date; bh=bN4R71kJcrNDO+lzVuXfnS2TF3GjwOQ91MVsrKuInVo=; b=M0+QRSZ6lkbStrUHbCmjSVMZjo3Xgx7d5UJFh/4wrnoG+EhGpWp0NcGDjU9Aajr2wN YbF2wYceD+OpRTqz8cCyw5LfL7A1G1dqnQMZxg/qDxFC5F51/YGRQxoUbcYGX2VaBBNG pzb/cpz6wi0BjgS5U47JG4m4Zwu6s/u/L7scI4ZQbo6Y1SH4IAJbGdyO4Dd3ywcdebV+ M0n11I9upxoh3tmU1i4IhhfdufLFpMhXyz2tqO3DCCLNieQRsvPg3kXBQLBtTbjkWYu1 hBYpt5c6MynVFiMjOTs4NMnTYXTm9+6l240u4q7YIUj1gvBSAFUCb4grHKw6fqWAYdGX i16g== 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 z66si1710727oia.265.2020.01.29.14.22.59; Wed, 29 Jan 2020 14:23:11 -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 S1726617AbgA2WVC (ORCPT + 99 others); Wed, 29 Jan 2020 17:21:02 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:21818 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726528AbgA2WVB (ORCPT ); Wed, 29 Jan 2020 17:21:01 -0500 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00TMDqaI122600 for ; Wed, 29 Jan 2020 17:21:00 -0500 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 2xuagn9780-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 29 Jan 2020 17:21:00 -0500 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 29 Jan 2020 22:20:57 -0000 Received: from b06avi18626390.portsmouth.uk.ibm.com (9.149.26.192) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 29 Jan 2020 22:20:47 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 00TMJtGT43974988 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 Jan 2020 22:19:55 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E97D85204E; Wed, 29 Jan 2020 22:20:46 +0000 (GMT) Received: from thinkpad (unknown [9.152.96.253]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id BB14952052; Wed, 29 Jan 2020 22:20:45 +0000 (GMT) Date: Wed, 29 Jan 2020 23:20:44 +0100 From: Gerald Schaefer To: Qian Cai Cc: Anshuman Khandual , Linux-MM , Andrew Morton , Vlastimil Babka , Greg Kroah-Hartman , Thomas Gleixner , Mike Rapoport , Jason Gunthorpe , Dan Williams , Peter Zijlstra , Michal Hocko , Mark Rutland , Mark Brown , Steven Price , Ard Biesheuvel , Masahiro Yamada , Kees Cook , Tetsuo Handa , Matthew Wilcox , Sri Krishna chowdary , Dave Hansen , Russell King - ARM Linux , Michael Ellerman , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , "David S. Miller" , Vineet Gupta , James Hogan , Paul Burton , Ralf Baechle , "Kirill A . Shutemov" , Christophe Leroy , Ingo Molnar , linux-snps-arc@lists.infradead.org, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V12] mm/debug: Add tests validating architecture page table helpers In-Reply-To: <016A776F-EFD9-4D2B-A3A9-788008617D95@lca.pw> References: <1580174873-18117-1-git-send-email-anshuman.khandual@arm.com> <14882A91-17DE-4ABD-ABF2-08E7CCEDF660@lca.pw> <214c0d53-eb34-9b0c-2e4e-1aa005146331@arm.com> <016A776F-EFD9-4D2B-A3A9-788008617D95@lca.pw> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 20012922-0016-0000-0000-000002E1DF70 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20012922-0017-0000-0000-00003344A733 Message-Id: <20200129232044.2d133d98@thinkpad> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-29_07:2020-01-28,2020-01-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 mlxlogscore=999 malwarescore=0 phishscore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 suspectscore=60 bulkscore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1911200001 definitions=main-2001290170 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 27 Jan 2020 22:33:08 -0500 Qian Cai wrote: > > > >> Did those tests ever find any regression or this is almost only useful for new > > > > The test has already found problems with s390 page table helpers. > > Hmm, that is pretty weak where s390 is not even official supported with this version. > I first had to get the three patches upstream, each fixing non-conform behavior on s390, and each issue was found by this extremely useful test: 2416cefc504b s390/mm: add mm_pxd_folded() checks to pxd_free() 2d1fc1eb9b54 s390/mm: simplify page table helpers for large entries 1c27a4bc817b s390/mm: make pmd/pud_bad() report large entries as bad I did not see any direct effect of this misbehavior yet, but I am very happy that this could be found and fixed in order to prevent future issues. And this is exactly the value of this test, to make sure that all architectures have a common understanding of how the various page table helpers are supposed to work. For example, who would have thought that pXd_bad() is supposed to report large entries as bad? It's not really documented anywhere, so we just checked them for sanity like normal entries, which apparently worked fine so far, but for how long?