Message ID | 20241205154247.43444-2-ubizjak@gmail.com (mailing list archive) |
---|---|
State | New |
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 1DAA2E7716C for <linux-mm@archiver.kernel.org>; Thu, 5 Dec 2024 15:43:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7B1396B01AB; Thu, 5 Dec 2024 10:43:11 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 73A776B01F7; Thu, 5 Dec 2024 10:43:11 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4CBEC6B01F8; Thu, 5 Dec 2024 10:43:11 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 226FF6B01AB for <linux-mm@kvack.org>; Thu, 5 Dec 2024 10:43:11 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id BC5C71C84B8 for <linux-mm@kvack.org>; Thu, 5 Dec 2024 15:43:01 +0000 (UTC) X-FDA: 82861323258.30.3C3479D Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by imf06.hostedemail.com (Postfix) with ESMTP id AD5FE180003 for <linux-mm@kvack.org>; Thu, 5 Dec 2024 15:42:48 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=TH8ulI9d; spf=pass (imf06.hostedemail.com: domain of ubizjak@gmail.com designates 209.85.221.41 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=1733413363; 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:in-reply-to:references:references:dkim-signature; bh=3PpdJnIt0LB5LuubDznUPiNtcUhO58iUpeI8CzsV/cw=; b=LO+TOySxT4HwHfCR71XNsU0xJM1piGYnmNKa3hb0hwgEz5W4V71YWAQv+OGhI3n2//QHyY DFhoTNtOaavO+B+xJKkfqRLz2VEveaAFhzbfgW7ki9RQJ4t5krT1O9sO+MroSY5AQ0N7z2 Oubxsetc/6QipDzvMNkL1RVjEarFai4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733413363; a=rsa-sha256; cv=none; b=LLSM0XcqGrz/wKT/t4aecr/BrDFAsE7ivPLd5J9cb7OQS0zRj6IN4/JC9aVRrfNju1nSW0 tR36fLA4WIEEmfwyU5FLKE3eL8d/NrUIFnspy7lI5qD34s0rnS4INojgziZwGwgvHahW7p 8Hq/RljCh0BL409kBEbjV42ICZUdf+I= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=TH8ulI9d; spf=pass (imf06.hostedemail.com: domain of ubizjak@gmail.com designates 209.85.221.41 as permitted sender) smtp.mailfrom=ubizjak@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-385d7f19f20so530397f8f.1 for <linux-mm@kvack.org>; Thu, 05 Dec 2024 07:42:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733413378; x=1734018178; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3PpdJnIt0LB5LuubDznUPiNtcUhO58iUpeI8CzsV/cw=; b=TH8ulI9duaE+xpI4vDEJEdxVPOhGW9BNKSaQHIzLRpiHYc8mHShktB6G+1TqEb9ouc ISkMfPxETwnIHQJs+bdV1T5Acilx3o6LyN+IWDoal6k8MrpxGgP2DwOnmPTSjWSevMRI VnJogQfvoEK74ydZpHkJ8KPnOK7/UfG5RH2UNQEq3UrgKQizDMl0DvxJ/BJdJ+PNgxEa V1R4ZhCUgXvw7Z0D44IauIrAQTdCFSdddqojoRIlY7P/qhC4sGdp3TCxGemR40AwsSpS OntFPGZh9DhlpZdyJsWMnpuGOhtOBAC0KgFemzdbY+jgCV1CK5XTyhmF20NBeKKBWvSX e48Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733413378; x=1734018178; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3PpdJnIt0LB5LuubDznUPiNtcUhO58iUpeI8CzsV/cw=; b=oGqxqkwsvXbEGRGaNzzNqgXmQtcplWZje/lneoLU0HvmP4H+LK4GXwVEV9stFoE8mA Bixbr2QnSS8tX6bNxNvSuq+wVff0idE2+3Zh+q5DVLR2NgIIE4EeceW19TzAfGw2od9u SFu5wQop6cC/awecQZAh2jSXZhue4nxFMunta7V7+t6kBFVdE0uL9KUuBeE3P1VlCKJh X2QPf6ibx6wwQvn7+YD4XS3xbbchV4SKxMyx7BJjDuUXOmrIxfZOEAl0+8OwmBK+PxCk WK8uq/TlDFvsk02IO6UQRu28m6eYlPBB5hzv59LpPwzSpDMIF4z8RbwVS4tAP52pacDu zqBQ== X-Forwarded-Encrypted: i=1; AJvYcCUFZ9gw4Dc9TAtBSXsH2D9rIRKKwnugdKnSdW6oUEV8m0wEw5yImgxHGX6bZbPHHvfeDU4JzgaZig==@kvack.org X-Gm-Message-State: AOJu0YztubwcjnKrYT4L1o0nZ/9eErJSTBM+fUzWTD5p2T8hpMgOGu50 BLHd97f29yYRsvLtOal5ID6AIYBEUUGGbsFuC0E+GgZ6yRS06e9G X-Gm-Gg: ASbGnctd1jYeLKPUx9AmFY/I6IEVUONrQWKLeCnxUbSngRtPIkEAOinIPHzyAL8Ki3D TkdKJYEtcGirkIqeAUJ1xbXkP7d9j3wzb1a1fOlT97MGf1DO+EziiOEAFnM5GSvhkbQ0REAgcMT F/o64ntmJidJCVHCbIeixRLR2sNnj2KhRb05bB/M+rty9miJgyFUROWnxVF4GiJj3f6x5gEo+1J daCOrTxLKA7+vxNbHY25C+wZYT31uKZZQ+Ui9viUrNVhnbNUVJQOtYZrOc= X-Google-Smtp-Source: AGHT+IHjT8E7BvyXoaNZ42se9YSKI4Pj1z26eB19khUL1Wi5cgUCpT69kmrNNvwAPzpn4fbartlnOg== X-Received: by 2002:a5d:47cc:0:b0:382:31a1:8dc3 with SMTP id ffacd0b85a97d-38607ae5ee6mr7265481f8f.35.1733413378249; Thu, 05 Dec 2024 07:42:58 -0800 (PST) Received: from localhost.localdomain ([46.248.82.114]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434da11387dsm27020185e9.30.2024.12.05.07.42.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2024 07:42:57 -0800 (PST) From: Uros Bizjak <ubizjak@gmail.com> To: x86@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-bcachefs@vger.kernel.org, linux-arch@vger.kernel.org, netdev@vger.kernel.org Cc: Uros Bizjak <ubizjak@gmail.com>, Nadav Amit <nadav.amit@gmail.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@kernel.org>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, "H. Peter Anvin" <hpa@zytor.com>, Dennis Zhou <dennis@kernel.org>, Tejun Heo <tj@kernel.org>, Christoph Lameter <cl@linux.com>, Linus Torvalds <torvalds@linux-foundation.org>, Andy Lutomirski <luto@kernel.org>, Brian Gerst <brgerst@gmail.com>, Peter Zijlstra <peterz@infradead.org> Subject: [PATCH v2 1/6] x86/kgdb: Use IS_ERR_PCPU() macro Date: Thu, 5 Dec 2024 16:40:51 +0100 Message-ID: <20241205154247.43444-2-ubizjak@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20241205154247.43444-1-ubizjak@gmail.com> References: <20241205154247.43444-1-ubizjak@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: AD5FE180003 X-Rspam-User: X-Rspamd-Server: rspam07 X-Stat-Signature: kwbwkupx4jz8g4rt7to9fejkou6akkm9 X-HE-Tag: 1733413368-395902 X-HE-Meta: U2FsdGVkX19Rx9l5uSu6ecgxdAUgvglMTFX/KrDlt9sbBof3qlC2PDULNs+lqBGCesM6+VIUgvTAiPQjD+0sPsoQwutEqMxz8bRsiolLbbznLaaXinq6FFNbQ6/ibbxRgnZyNkGaAGqSXT3F4Yn1OsAx7TL44hVobPoQ1bdx3fhkEqI36ASDOAZTQ09+DyMIHuaj1sq2hMBSSRXus1KSUKHyxY+M9K8CfigHzKRiTHjI3bp7Z/6hklnp+rfAiwlddU9TcGCAELAtTL4JNDfhLqwj7UNDAG/3TGUbfII+9ZwwLp9p/DPamXodNUYGkmN3O+c/bs/DVzB+V5N+5Ku9DbYwLMCqT29Wbe4fd0oYiY0I9J9wocapR5aSgCISvJBVECJl/zw80y7dqsZOUoqo5PG/u/OoVFTiSXdQMhZqOeIWCiFYpVecVlLxo6FFXp2AUjcunBgaTd1TwWx3Wz01xTiwrIaogxd+7ei/4Fgu4rqoTx5KuPKHb6Th9br+Ge5VMj3SVLzVkdcISIPOoXgShkEk8CRaotZJzLgsOMYM/I+MkAMJVaxJBIQ6tfupRNnwB6p1T+8MeTup1VxifbjaxjALe1LtsNEdSs/D9quzBYYPMbm69hI2cRb57LKLXZUIehr/QhTFFSQbw/uw/rNV/f9Hpt0pXaGYZ+9n3/CDyvuVaOucM3oS6V/LPmwOwpQTCuV38tskFddjVXNpqpCo9IhrylXVggp/t4AeVTomt1TTGj/d0afAGSFxi+SoSHztsLtKqr2+nUsqjsvKn4uRg1aUmmx3CKAude9jbPqqoT36gQwmStR2aqRPmjPldBo1CoF7nFMczB86VYY8FVbj7ukizBBYwEXGa5ZVhUYXjler5Wpcqy179XIc4yYbNXq0CkG4VAHZnJTu2WRkLHTx+N5WesIP3qZKKXmeegkLxc7jY9yRajmxEYTNH6kkKuLinKCN4zyrQFO1wfdKtPL RlFQR+Qa UbDQzNekPnDPPeLgvaK3bq4SeI52xOxiL8eZDRCdeMOJdcb3HAe18QsdPUhcb64+WXyqhWjkgzqlWFAY72RcaDhNlFte1b7fl00oNWeYET5QtHJpv7F5y8H4HFcT2tdfeN7eKTm/3B0nlV18PTtozhxTJEPx5XESkojXz0Ebm8ebgzrzGIrocG8hTqFP0sx95MSPEogLSclYLgl6lYjur3J8wE7q2DJsyssnYIZX1en3vO6E02P6RwWQbi/JB+eY2eCp6A/yrlUu3jolvS+mBxXnbizjAvEjsc7G4JWm/Lxgz31Uic0MZpliA4/Kdp075qNbXsQzSOU3HcZW4gEuood9htX9/+8h6SXwTVKVj4MuZJkK1UPSVk9Ci+b5S519DofikthMoFMrwMLwxi7VmkR5oAXFuy1Q+14OhPadwqXwGJUcEGzLLpkckNBcfrHXdSuU7S3db31E2m9bEw/pi3CdHO20PUW6hPWKIQscW7rimW3pZ6w85BUvyg88tqeaVkODkqktgyP1sqmccnQFlpJc/m3HLgnbvarOG34kdNP8TEq8Jt1aYF1BFMhMoQd+5UTTDayKyje5VtfNfg/y6ecz0tljYylKMAG/K9wozKB74tFrtV66CZp/5qGPmU/Evv2vhKKky88lT0KN3jbG8bgzag0nkOMhS2VE7Mm92YL1Hn6okKYlsNa3ZXANLcluKCK6dTKmj/WodbSFZj5xgzniokXAiB4pv/eQRGmLKbitqf5Ig/QCBu9KbfmN+s+INAt2EUHfaCvJFj7MXjIRUcWgAbg== 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
|
diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c index 9c9faa1634fb..102641fd2172 100644 --- a/arch/x86/kernel/kgdb.c +++ b/arch/x86/kernel/kgdb.c @@ -655,7 +655,7 @@ void kgdb_arch_late(void) if (breakinfo[i].pev) continue; breakinfo[i].pev = register_wide_hw_breakpoint(&attr, NULL, NULL); - if (IS_ERR((void * __force)breakinfo[i].pev)) { + if (IS_ERR_PCPU(breakinfo[i].pev)) { printk(KERN_ERR "kgdb: Could not allocate hw" "breakpoints\nDisabling the kernel debugger\n"); breakinfo[i].pev = NULL;