Message ID | 20240805184012.358023-1-ubizjak@gmail.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68711C3DA4A for <linux-mm@archiver.kernel.org>; Mon, 5 Aug 2024 18:40:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F35556B008C; Mon, 5 Aug 2024 14:40:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E96A06B0095; Mon, 5 Aug 2024 14:40:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D109C6B0096; Mon, 5 Aug 2024 14:40:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id AFD026B008C for <linux-mm@kvack.org>; Mon, 5 Aug 2024 14:40:37 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 68132141C80 for <linux-mm@kvack.org>; Mon, 5 Aug 2024 18:40:37 +0000 (UTC) X-FDA: 82419057714.10.08D8F13 Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) by imf26.hostedemail.com (Postfix) with ESMTP id A3281140006 for <linux-mm@kvack.org>; Mon, 5 Aug 2024 18:40:35 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=kpjCGXCh; spf=pass (imf26.hostedemail.com: domain of ubizjak@gmail.com designates 209.85.218.46 as permitted sender) smtp.mailfrom=ubizjak@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1722883228; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=awSiegGC/aiLfudQJZdzAXeSh+lcoFYzPuFVEvS4a0Y=; b=yQX/KtDr6zQWq59IzRc91Q0xZniTyQoQTA2lLkuN0Rx6eSSTz0CKgaWXPyui2LXeYe3g81 7oTVx9IYt66qpaSa3gB42owk/CplqM251DwCnSpXwBCXbI4B1/ThydUfo2WaZTtC37482e OihSyXRsanvXElnIydvUWd5CU6txKJo= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=kpjCGXCh; spf=pass (imf26.hostedemail.com: domain of ubizjak@gmail.com designates 209.85.218.46 as permitted sender) smtp.mailfrom=ubizjak@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1722883228; a=rsa-sha256; cv=none; b=n2b9IurLYL4jG7XRxETvEtI7eYg0Rhb7Ue1XSZQjsz9PlkY2itGpIlUCToFmd6oVr/A9/6 kHoKgadH0Moz2n+HeLl1eYUXHy1hDO6LP/2hltvk8FV2MS5O6FMeOiyoTfVTg82/WVuogd F0wMvhbuPGrQg0/TKjnbxPlIoxe/39w= Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a7aac70e30dso437715566b.1 for <linux-mm@kvack.org>; Mon, 05 Aug 2024 11:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722883233; x=1723488033; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=awSiegGC/aiLfudQJZdzAXeSh+lcoFYzPuFVEvS4a0Y=; b=kpjCGXChuqYdmdsfUwkTiY6UgI2nflSEUd0PSuOiHvh32x/+n66/kXEMuhISUu3VSn 4U9QyROh02GRoy6Ge3BXI7DoffeYHN+bAgnGjF1lyt6of4ENWgrXo9yVQ3dagnONqgMp mPIKN6FQvz6fwmvFG0gIAea8rtgZGRl2DHlNxxeOv7JQJ6J0PY6LtR/d1x2ViFY6aGim ngXY1/qhBhUkZEm1Lcmt0A90upG+2sEKi2nbJzk9aHhwZaBto/DQt0UB+UszM9rIR7le jUiW/FxZIzva6BB+PoSqzmK1vT7S5ea//Yu6WrukCm6DN0UgNGh1z7LHe+JHrWtbN18a Y28A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722883233; x=1723488033; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=awSiegGC/aiLfudQJZdzAXeSh+lcoFYzPuFVEvS4a0Y=; b=OUjdEVlG5se5Bu+9mYMSDU2TODw17VUB+J30XLFgxEaxdWUtwGvDg9lClD63h+h9U/ DeErb4b1CS8fz1knUi0jrZM59SyxI96iLyXoAx7lm3z50QUadSle5Da09omPedR+p0t0 ZugegWnwXJiUuSmh+HW/bn2erTWSi3HQIZ6CBC5lpM8A0j7ty4gOyT2/rqeQvW/iuW2H VLwjTso1bN5AatxkBH2bR3N+04908iUDQoxx24FZ3AyILUzqfcSWMj485pdlakuQtwma EiAfbvP/4AWbUnTrX69iiDjV7TZ+X5OAkaloVO3DAuoZPOWz/BQgTsqAJUNE5TWdqgq4 6QEA== X-Gm-Message-State: AOJu0Yxdx3OwlBZjdsjrjiJTy4/kkZzEMRI9MxE8jIiNU0pMq3SRD3lw msqbhaB+fzo+SNnso2WsIl+NOiCsJrwa4sG09UY9JJO4C1SfYyaIbolgXTV7 X-Google-Smtp-Source: AGHT+IG3IJucHUtbQegGWUcxHDuD0ZT7B2y4b+n1mdQUt41gzRRMP1VfFAaDF+0h2xfcpfg5bxqTgg== X-Received: by 2002:a17:907:724b:b0:a7a:c083:8575 with SMTP id a640c23a62f3a-a7dc4ae31afmr1010343066b.0.1722883232611; Mon, 05 Aug 2024 11:40:32 -0700 (PDT) Received: from localhost.localdomain (93-103-32-68.dynamic.t-2.net. [93.103.32.68]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9c12ad3sm478517266b.88.2024.08.05.11.40.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 11:40:32 -0700 (PDT) From: Uros Bizjak <ubizjak@gmail.com> To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Uros Bizjak <ubizjak@gmail.com>, Dennis Zhou <dennis@kernel.org>, Tejun Heo <tj@kernel.org>, Christoph Lameter <cl@linux.com>, Andy Lutomirski <luto@kernel.org>, Ingo Molnar <mingo@kernel.org>, Nadav Amit <nadav.amit@gmail.com>, Brian Gerst <brgerst@gmail.com>, Denys Vlasenko <dvlasenk@redhat.com>, "H . Peter Anvin" <hpa@zytor.com>, Linus Torvalds <torvalds@linux-foundation.org>, Peter Zijlstra <peterz@infradead.org>, Thomas Gleixner <tglx@linutronix.de>, Borislav Petkov <bp@alien8.de>, Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Subject: [RFC PATCH 0/3] Enable strict percpu address space checks Date: Mon, 5 Aug 2024 20:38:58 +0200 Message-ID: <20240805184012.358023-1-ubizjak@gmail.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Stat-Signature: fbrybkw7qjgqj65euioniwuh1xiaikjg X-Rspamd-Queue-Id: A3281140006 X-Rspamd-Server: rspam11 X-HE-Tag: 1722883235-722665 X-HE-Meta: U2FsdGVkX1/Zdy7JKjXxyPBb9mjuvNg7ipZOvs/tYJJOFx06nueA+vqX3UYRc0bfpgUXnrPL6DRIsL8BZYu5lNk7iaywEJ1k+bGXBm1hITcLpK7UhJSslmR5cWtxH87YEnW753dZKR5xWe1e0FIj98uFcdro6pRfiu3N7V9Gp+6i634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cysJGxIufyKcteCqQVmowsRDjbGsi7SrmH+9LIJPMNvAYMr7lDIIBvWqd3JxIKO+M9TRmi+tkSFH7E4PeddslEVKWRg2UfLIoSobIxSV1LxulREi+LM7fbK9u/N8P57o1zCaKqKca4SBqLGkiygPEDVxVgtGYSyHEP7HEfplqizHC/zh1Ju/5BsdqqYsJ+RDkFCKTuJcjeZimz0+NPbVh9e5oc5CwQ7rZYtIGLvvxb02+QvOip238IPFHQmsmAriIcjvwIFuHyIdqV3j830vDWAk5VEXc6wR1UMjLVk76NMNqu6AmiqvsakKB5mCVePuTTx1lTdjQFuG4tUbM2pRyq8a0fCM8daBDKj7SYjXImohLOUKxGB41UeU0Qhyic4DLAjsOb5BOg5eatz2MYo26X3jP4SXxrWBvlMBSfvgcxFmP44lbfkdWxQZTZ0eeJ3q+oBRsfdjtyiV7hG227SEzOY3K1ToSEFcSv7h1KBdBndCct9sIKS0GILlGUYA0yLSmmy/hLWSVlffWg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Enable strict percpu address space checks
|
expand
|
On Tue, Aug 6, 2024 at 10:32 PM Christoph Lameter (Ampere) <cl@gentwo.org> wrote: > > On Mon, 5 Aug 2024, Uros Bizjak wrote: > > > Also, the last patch hijacks __percpu tag and repurposes it as a named > > address space qualifier. While this works surprisingly well in this RFC > > patchset, I would really appreciate some help on how to rewrite this > > hack into some "production ready" code. > > This looks like good work to find issues with per cpu macro usage. Per cpu > macros are a bit esoteric and it would be a good benefit if you can > get this done. Thanks, I will do my best. > Sadly I cannot help you much with the address space qualifier. I have solved this in RFC v2, please see [1]. [1] https://lore.kernel.org/lkml/20240812115945.484051-1-ubizjak@gmail.com/ Thanks and best regards, Uros.