Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6055277pxv; Thu, 29 Jul 2021 05:29:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIrJ7RAKuQ0hdfh92CKkjMEBFgNc7e5h5DSmuvBvV8+1athr+7FP6gLixJIy1qAuy9EEQ3 X-Received: by 2002:a17:906:30d0:: with SMTP id b16mr4319777ejb.495.1627561764372; Thu, 29 Jul 2021 05:29:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627561764; cv=none; d=google.com; s=arc-20160816; b=r877AkC8K8eKvRUkXXUlGj+8tG5EQIswDCGDHa91nOg+pTcNrJ33WQUx4KFbep6k+V +hD30syLEhyr41Y9iBSvWdW+hZ1KhZ6YlabUzDnCRMF2YPM8+HLXQmAkzb0yfBHmGOCO R6KPvym9YlDoZfTb2sI48Aq7vpCWbbtkWNXEAX+CHQbSZ6mAsARfjhajq4+XjFp7nz66 FpGLoVOFLVhYVgkFhYgj5Ar9ufIR2+cK/XYahnf6ShSrFnZrbnEm+LyTf8P2oycWV+aB jhKC2dDoMKathYOLWSeSuQ4mguwwCa76AlGh5zaMiocQ5aRGMjoJfSbsxKUL05w/hLdK BnrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=jAeYpTpD86gcaq0fp6AOwIIDB2L6QnWwp67+iHCveIY=; b=k+9wtyawQeeqe+gQ6gZkMcg7oTiIraIZXgiy7yszZq1yKd3+YBD+8gO30lid+yXX68 /Hk+hfr94h+fH+wd6AxY+rw2uisHQKrC5uWkqTkdOHHZGBLjCTscXHny/gTLn3D/dyr8 EgN+OGo+CS+c20WcIO5py1ha/AhBsa2hoBgjna96vyg/churtf93BYn0AtIIvonwaPpU SuzaVHepU1PNoK9YqepywKGlsQAeuC31FrsbWDdUiqSPaLhHXPUuiCSCJF5DnKS8vNld UPuwX2l2RMS/VQW2HjzWcTzInp1TkT0z00oNh5jGSIUjlxz4XdNnG2jg1kyHhglBMZq8 pKUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="ml7Q/Yn+"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d26si2892928ejz.183.2021.07.29.05.29.01; Thu, 29 Jul 2021 05:29:24 -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=@google.com header.s=20161025 header.b="ml7Q/Yn+"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236981AbhG2M1q (ORCPT + 99 others); Thu, 29 Jul 2021 08:27:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236686AbhG2M1q (ORCPT ); Thu, 29 Jul 2021 08:27:46 -0400 Received: from mail-oo1-xc2c.google.com (mail-oo1-xc2c.google.com [IPv6:2607:f8b0:4864:20::c2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 291A1C061765 for ; Thu, 29 Jul 2021 05:27:43 -0700 (PDT) Received: by mail-oo1-xc2c.google.com with SMTP id e3-20020a4ab9830000b029026ada3b6b90so1543988oop.0 for ; Thu, 29 Jul 2021 05:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jAeYpTpD86gcaq0fp6AOwIIDB2L6QnWwp67+iHCveIY=; b=ml7Q/Yn+L1JNrhw7y+0CfmimrYs8yNnxEQL5SIK39c4Q4kU9hmEqtqiUIj7p0lualS 0vl5sVIyOjyzAJs3BAYo00cW5Xuzev16ok5ctZ1VenR5k5EXd9Hs4EhZnOyoCHNxd2e8 h6gi/8lbU8DnWXPHHV9lzdhTWrNGRNs/TgW0907rIkBQJgmhpBfuZUCcl9P5uAbSbudl 6PY2SQe37ZnHdElfZ4fPaT+GKxN2JRT/bytQfZ5pkpMxa5xqutvqEJQNyuWCQq3v8OZD uIvrWImjE/wtpdzv+NDPzLdp+rslqBSRMHRTF3PRKSl0ihPR9C/7MqQwEX3Gsd5sw7Nl 5txg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jAeYpTpD86gcaq0fp6AOwIIDB2L6QnWwp67+iHCveIY=; b=ncWSLcgXgaGEOSJySaG/7gz+VKxF2ClyuVTb9PEbBJS9JL97Etyt6FzjIvfNhLfWAP 4drXoG4mofN73c813RKjGU0tzDrG+tqv8tgdvxKem9T8IqYYFEM/vp1S9mve8r/dJQ5y fCYZZ4+ALZoJcKLHwHaLUb4/J72yQ2m3eaAlF3xsv62KWWws8LmatDD4L70eYD3zzzTJ Kw2/SveZwvugaQqgBiycCS4dNrRHC37Z9wlDCgoNND+O02kalNPRwyKvfZoprATyHAgR RtL/VUrbEK9sLbuvmm2VRVwrlWYB1pp8rdAEkC+ikBaf5c12YYfLckabE0WW3m+dkfi2 h1/A== X-Gm-Message-State: AOAM532TPHMQ/3jKLIglgug0FB8iqFt1gu9AeFruwyCf+iLnzPK+6dqx fJAnFg2EwoRrV+4dpQqnk/ddjwe4ZYjSqvZu5slzGA== X-Received: by 2002:a4a:e502:: with SMTP id r2mr2827562oot.36.1627561662128; Thu, 29 Jul 2021 05:27:42 -0700 (PDT) MIME-Version: 1.0 References: <20210728190254.3921642-1-hca@linux.ibm.com> <20210728190254.3921642-3-hca@linux.ibm.com> In-Reply-To: From: Marco Elver Date: Thu, 29 Jul 2021 14:27:30 +0200 Message-ID: Subject: Re: [PATCH 2/4] kfence: add function to mask address bits To: Heiko Carstens 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Jul 2021 at 14:25, Heiko Carstens wrote: > 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. I think that's reasonable. I'm not aware of any conflicts, nor am I expecting any for the upcoming cycle. Thanks, -- Marco