Message ID | 20250127160709.80604-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 0F00EC0218A for <linux-mm@archiver.kernel.org>; Mon, 27 Jan 2025 16:07:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8DE542800D4; Mon, 27 Jan 2025 11:07:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7C9976B015C; Mon, 27 Jan 2025 11:07:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 66AFB2800D4; Mon, 27 Jan 2025 11:07:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 468796B015B for <linux-mm@kvack.org>; Mon, 27 Jan 2025 11:07:26 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id B60EEC02EC for <linux-mm@kvack.org>; Mon, 27 Jan 2025 16:07:25 +0000 (UTC) X-FDA: 83053711650.10.C50ED7B Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) by imf20.hostedemail.com (Postfix) with ESMTP id CA3E01C0009 for <linux-mm@kvack.org>; Mon, 27 Jan 2025 16:07:23 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=OIHxLIiZ; spf=pass (imf20.hostedemail.com: domain of ubizjak@gmail.com designates 209.85.218.50 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=1737994043; 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=13uoeEuOAUDeU2sBGlX5vh5ANGHasr+UQ2OuOgeNuQ0p7XjjxinLaRJUqSQKkadA/lfcca /Us2JjqGkaeZOafsBw56RG9cFxD3gdnl91SVE5epOSlmU/onNtinV9urmZAxefnQ6e68/9 YGQGqLRbDMRxsx+eJrBoMtR2GwU6U8o= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=OIHxLIiZ; spf=pass (imf20.hostedemail.com: domain of ubizjak@gmail.com designates 209.85.218.50 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=1737994043; a=rsa-sha256; cv=none; b=3J0iF8OalOUnWSpL+SX4oQI248ULtfRduugFm+SwUQPcAgwNDJddA+kPxc3v7IZlBA/Kvq ZRtf3yt2bLmvPRpwFpMK6fFgnT0b01gjnZsXidZE19F8H53Gq7870Y3TvK/LvPHacuPu2V VeHWAOl30QIRwfunSuVbnS0AFiGlRK4= Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-ab39f84cbf1so895047266b.3 for <linux-mm@kvack.org>; Mon, 27 Jan 2025 08:07:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737994042; x=1738598842; 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=OIHxLIiZGFEYxnRxlJRXw6tc8tD/NtAduCjfyIBcbHt2ByVs5uK98LDU7I3Zu1kg8N ATwkA9/vkRmqsJUMfApQvb8y5DOxR8RR39pgO6fOyzdmltSf4rIGLT9Ub1A3oRXudufs LgWQfCn9J3HMwm0IzqRLvnLzVIrNWiiV+DOhnnEF6zT9C12n3cyymqDtGWv8uH26ITuy 0kf3wgLAfxfIGhG8yILxPt9h+8tM/jAXfZ+hy+GmVoQoDcn8DPfY+b57HLimUwzHdh5D l3eylDeSqFLZVdMG2fJ1BEHYYcG+skBM2Gccmp6mtZots457W/0JZMMj4k7UjArkg5w7 IF7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737994042; x=1738598842; 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=Bvppy0g3exPzIRftGPCn50wNHppYHgtwwvCO1u+ePTMoIVjN3ImjH1Sh9vy7NJ2Uo8 20vasFOhYDlsKSSbpXg0ijAKW5Y3Qj+ypq1NO8K//HMQbcIgi7OLjV/m165b9v4iZ6Hg U+aqBCvd8S3mN82ADblfHDYvMOrA8Be5haMhui7nhctiZNYTpYDk0+tzZzzzqQ7uGiOb Z67v5STkTu6QQQBgCKsCHG5DqTCXbdqXD9RNOYl+KGc2zaF63tACm/cjivnQfTpLyadh 7IEfT55dmcqkwG4NZ/GmHHATAbwzCsVrn1vOhIA2jO+1Sbv5W8KfLmJt3rI4KrnUu4PF jf4g== X-Forwarded-Encrypted: i=1; AJvYcCX3tth4L+hjN9O9rcmZ6rlWMWLSKORH3sucnawzkJoHrs+jAy08c8WWtw5TmxuvKBAtYTHT7u5rAQ==@kvack.org X-Gm-Message-State: AOJu0YyrSKCX7ZxCjFc++fGcQV4BKmu9E7VdwTpOdnrYpJdh85MqpWV2 DW+8glAOOq5PbXaLLpRHSdWhKIOHtrfsUj1FRAm6ckWVboj6HYqH X-Gm-Gg: ASbGncuVwn7yIF6VqOsBWZkKjAGOHL8OFf6adRxhqiylHSi5TNHxXe4LDwCuI74ZZkT 79gTcC15RiB8wUzTY7s+lUwTIbozztzi2ddSBFQ+zK0ASIBQCjjVFDnTzoIh2GvpHYZtKFhOeb3 qftAydsEeYrVpYOk+GDx9VeSjygwqYPp9fqTlG0B3vsgNCcpkvz3NTiBE6NLnIMW2F+MBoee2Wl +ddR2qTZoSOz5h8tlXSgI4pDwyzWh5CLUfWwEJKKXX4id5cTrXI0atrUrcTX0TAGLAQjplUyk3Y HsWaKfP2EC7PLA== X-Google-Smtp-Source: AGHT+IGxHekg6wyKtSsIHlBYr5ZZfkRZgv/1+kkXgRb8vYd9lhSt2dayN8UQWL8xHzS8S9+szifYTg== X-Received: by 2002:a17:907:930c:b0:aa6:557a:c36f with SMTP id a640c23a62f3a-ab38b378436mr3836172866b.46.1737994041908; Mon, 27 Jan 2025 08:07:21 -0800 (PST) Received: from localhost.localdomain ([46.248.82.114]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab675e8b01asm592643866b.84.2025.01.27.08.07.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jan 2025 08:07:21 -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 v4 1/6] x86/kgdb: Use IS_ERR_PCPU() macro Date: Mon, 27 Jan 2025 17:05:05 +0100 Message-ID: <20250127160709.80604-2-ubizjak@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20250127160709.80604-1-ubizjak@gmail.com> References: <20250127160709.80604-1-ubizjak@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: CA3E01C0009 X-Stat-Signature: ouanatjqadij1q1c51e7kujsfiriwq4h X-Rspamd-Server: rspam08 X-Rspam-User: X-HE-Tag: 1737994043-241342 X-HE-Meta: U2FsdGVkX1+ZhL0MBPrEVQsje6QOYrTC7XQp8fATTbLWyV+095dDlslS5FTzwVAM8V82e0AHOTkwpnfPF4Z9qZsIS1wPuvRAH+x2WXJJUx4jXHpTq2M0JCQSEB/ERICZlyFmZjeWGluq/Dy0PcwJGcGgW7sZ81M/h4fAYTIDW7R5uVfwGuQQgTm8X8YJ6+nXPnbhqWMgPKyhxMYt9MB7xTzxX9isBExVQez6bzCcsoDKkk54p4KqLPQjes1Hgq5n4vO3bVI1whddZdQe6ehca2Yu9I2oAjN6EV79ATj05u2aZ9N+TxtCyFkI+T5MhnzppjCPQycaH35v1N43VG9PURoqMluBEJ8onpg+mEWhnDN61j8dnxoGw1/gRw/V4x87mbmLzAbWDWOjU02wK8X60Y0cy/Jr2cIEFKMy6Njxb9sLjm5/azU0FIjX3mt2jabfHAXHR3mIXSpYkLHqYS0YD1K2aODRvrGLEZGx27RsnJJobHzzq440Q2/O7/4dzJuPmIOOB5+4t5YbBhPTyDFWpzhSdAKYAvRtMDRAepH5jWT4eUr8UsV4vhxf/6cVXxAlx+VI42e4TPXgteHldUbL2mchJ8TAsOFlK1q5Y14UTGWVzYtlh56WHfvffC/vzf24TKP//vkf835IKaZ3b5IBU6Mb6EhlCJa2z+ZDh2rcn9WQb5mhLVUwQYX3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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;