Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6055016pxv; Thu, 29 Jul 2021 05:28:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKvnyHQloESYEVf2M85S+ZYcuv+2LGhD7vAk45y8j2mmoL++OY2ju7m6h8FP4loJ6mwsKr X-Received: by 2002:a05:6e02:1543:: with SMTP id j3mr3532942ilu.308.1627561737194; Thu, 29 Jul 2021 05:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627561737; cv=none; d=google.com; s=arc-20160816; b=EdOm15o7FGtYdBD7s4xajMB91/YpYl7G7kYhzU/DRg7zWHPQs9xxnv5a83kvDn8SDC BsNWCyRMOp+w+bAKatFooX9IOfjDO5qrruQRLLPXAC0wX6A4/CZmmeJvmxOpmkjI0SW4 HSi6tBi0sdsgFcvxwAUy3+Q+GMd80q6znU/f5LuM1hRaRvuQn0e4UhL6nw+cwcbWmvO1 5IoOoPYFClaR79OfTUMaloquAqqXHauh7577Tfq8PSV9A2DpFdvb4jrojTyhvUDgMZE+ FoFpwYqsIZGw9awkASyFPdEW+gqGUbIdVWk6630xba3MsDbcRBA5zja7ouHF6AoWEPS3 1C0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GkmeYWDizMKTMJM7MmskuLB3P8agtCV0s0RJcAVmDWY=; b=O7BGAxfuRkyNiN9coHB2r3nqF7x6Fex82y7JYv0G19/f4uozvlMR5iy4K7+iliAXsS cGuxoTtfj+hfVd4G8D4hRNopPoYEi/GT08LgfRmuAjC+EBjzqgBGGnhryMAqgT3ujDHm AoXWm/cYaqH05RJbjukGBKx1RP2ecvWSb1eIpDRIVF/Uv51AVY8oOSUEf7Z2Wekf5pRU W7iaP7c0oIqll9ZHz/VgKBWYAEufGMBoO48auGh2tpRTMneXzFAC9Bq2aAYL+OjWNMAm GZ6qJlGaR9aMLxchiXSBLDjThiRKyBmecIahhf5ybDNoIIS3NVZY6DRuIaWyAsOXZf7U OomQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=oE83htfQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t23si3111267iog.21.2021.07.29.05.28.34; Thu, 29 Jul 2021 05:28:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=oE83htfQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236909AbhG2MZl (ORCPT + 99 others); Thu, 29 Jul 2021 08:25:41 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:51794 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236888AbhG2MZj (ORCPT ); Thu, 29 Jul 2021 08:25:39 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16TCEURP161610; Thu, 29 Jul 2021 08:25:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=GkmeYWDizMKTMJM7MmskuLB3P8agtCV0s0RJcAVmDWY=; b=oE83htfQgxYtsFm9DNM/wpFHmVfKHfUvYzXs3U9DUQ2vw9GP7Od27LRLdzrQYglQB6QS uPuW32UUf4cg+lTxIgTo0U8epfB3hJPDxaXt2ToQslu9tjHbo8KgonSVwY2IwT6AxzI8 /IIt5g8irzxbNK+P6r1ANdWVsM4ova4X6LS9WMDQ8TvOtMjUL1BbSzqNw79VlKa87ir6 0R9Al2B3cp0cPRFDiwv1iE8iHB3JM55mZmr2Eb9/Fc//xKyqQuzXi9ggdDRsZjfzYXs6 4Lzfl9NFTMcXWKPs4YRqMU4oDadaBeiz5DX0w3UvQKNoipaEyK76HJtt8PCCsLvSNY8v ng== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3a3v5n0e8y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Jul 2021 08:25:33 -0400 Received: from m0098404.ppops.net (m0098404.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 16TCEe69162548; Thu, 29 Jul 2021 08:25:33 -0400 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 3a3v5n0e88-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Jul 2021 08:25:32 -0400 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 16TCDbWX009633; Thu, 29 Jul 2021 12:25:30 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma03ams.nl.ibm.com with ESMTP id 3a235yhpx3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Jul 2021 12:25:30 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 16TCPRun23068986 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Jul 2021 12:25:27 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 09D554204F; Thu, 29 Jul 2021 12:25:27 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A665742052; Thu, 29 Jul 2021 12:25:26 +0000 (GMT) Received: from osiris (unknown [9.145.0.186]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 29 Jul 2021 12:25:26 +0000 (GMT) Date: Thu, 29 Jul 2021 14:25:25 +0200 From: Heiko Carstens To: Marco Elver Cc: Alexander Potapenko , Sven Schnelle , Vasily Gorbik , Christian Borntraeger , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: Re: [PATCH 2/4] kfence: add function to mask address bits Message-ID: References: <20210728190254.3921642-1-hca@linux.ibm.com> <20210728190254.3921642-3-hca@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 9tRoZkGVyNh16-45AhbIjXuuDbx5xc_h X-Proofpoint-ORIG-GUID: MAwPuY-TnMuaoJ-rs9aFpx9-iJqftGxF X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-07-29_10:2021-07-29,2021-07-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 phishscore=0 clxscore=1015 suspectscore=0 mlxlogscore=980 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2107290078 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 29, 2021 at 09:48:58AM +0200, Marco Elver wrote: > On Wed, Jul 28, 2021 at 09:02PM +0200, Heiko Carstens wrote: > > From: Sven Schnelle > > > > s390 only reports the page address during a translation fault. > > To make the kfence unit tests pass, add a function that might > > be implemented by architectures to mask out address bits. > > > > Signed-off-by: Sven Schnelle > > Signed-off-by: Heiko Carstens > > I noticed this breaks on x86 if CONFIG_KFENCE_KUNIT_TEST=m, because x86 > conditionally declares some asm functions if !MODULE. > > I think the below is the simplest to fix, and if you agree, please carry > it as a patch in this series before this patch. Will do. > With the below, you can add to this patch: > > Reviewed-by: Marco Elver Done - Thank you! I silently assume this means also you have no objections if we carry this via the s390 tree for upstreaming.