Message ID | 20241208204708.3742696-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 B713AE77180 for <linux-mm@archiver.kernel.org>; Sun, 8 Dec 2024 20:47:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 22BFE6B0389; Sun, 8 Dec 2024 15:47:28 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1DDC26B038B; Sun, 8 Dec 2024 15:47:28 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 02EE96B038C; Sun, 8 Dec 2024 15:47:27 -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 D555F6B0389 for <linux-mm@kvack.org>; Sun, 8 Dec 2024 15:47:27 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 773C1A0632 for <linux-mm@kvack.org>; Sun, 8 Dec 2024 20:47:27 +0000 (UTC) X-FDA: 82872976746.26.3F7F743 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by imf30.hostedemail.com (Postfix) with ESMTP id C170A80012 for <linux-mm@kvack.org>; Sun, 8 Dec 2024 20:46:47 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EKTFDs4H; spf=pass (imf30.hostedemail.com: domain of ubizjak@gmail.com designates 209.85.128.48 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=1733690836; 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=0Q1htcIuRyezgIO91i4eIT4UI9eyj4pep2QYYoTXvqX5Fp2DtLImWEBbLxP1+JZ0sH3vzz 3gWINvu/dETpVbXUdRc+Wk48c2SKmlOqKgmJ5cmO9oLgzxeF3ReXYt3YOp4YuNhHQIin0A 5OeJ8ii9c5k0bJKQEkcr81OTkyU3Av4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733690836; a=rsa-sha256; cv=none; b=IJSd4/BHt5cjM5gm8kpgJCsi7FXv96S+WohhtEso0tXw+O/a7D0ljaEnLVmr40aYeyR6fQ gS0T34yfaBUy9PKherjL3AVR6Pmu/jMnsXFbWT87p8+UrQkmT//m5yHTHKbXAiBiAEC47u 9hCBOp4VwqQ23bbnkH1hTtVYkUqbYZs= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=EKTFDs4H; spf=pass (imf30.hostedemail.com: domain of ubizjak@gmail.com designates 209.85.128.48 as permitted sender) smtp.mailfrom=ubizjak@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-434a2033562so35263395e9.1 for <linux-mm@kvack.org>; Sun, 08 Dec 2024 12:47:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733690844; x=1734295644; 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=EKTFDs4Hc5Xun3QQElEwR12NyeXMksa27QfSwtTA3aPdn48pFGuOLLfswJJ/i8VEBF MjIQOcUoLNhW7bbxQ3lXxTBB6iRpNTN3tw5CB+SbzCySXYZnl5giuc/6OTw6uXqR/QXW BWKmA7Iu8u5rIDP+B2mBGvFq81Tc3mxHkqprSjA+wMcRjcBLY0shAZUfGPTVhNaSBZ/W eQzyWQicq66FyeZe3b81rQaYcW9TCZblvbiJCzTBdROGUmpko/45VzOl6U1htkLsu5Gt 3Puinn6S3yYZ+W3sde1AOJRphhozz7K8BRjAaQIxWH9XuInW+BhwPjE2UFRagZV3yaSJ udGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733690844; x=1734295644; 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=KgXSAfytv3bstZaRQ4RscJ6SUwIQ6UJAZ5KEFiigDN3IA/5v5wTFxkXBc0e09mX8Za IBHu10tAOXv9z5U8I7w1KiOhXuuTjeLo5SYk+gPhodTa7jGC8COMYlzscr2q9oaAU3jO e1GecWoO9dcxTMZju+hwVLGQW5NzZruDTYSDiRTkPd1SoMN6hj6WayrOUWMDERwwBcdw GNPEvyWYzI/EI2yl3/xvmMf+tHsiPwPxHDvYmIUjUbO/rWGWDuJQOU0shsThxxNMu13f 3JyFaYU7xrMiMiRhCzyAeNanBqjRgoz42CXvp/Z19yYzlPlgDDxUez+b//BAQ/+G9mhu tNww== X-Forwarded-Encrypted: i=1; AJvYcCVDi/idwK0WDiRrmY5ZPwD2RxFT1sfywj8AeiGZdw51HXO1JKqjHvbQjLJWntBO/VIeY3TX/ZJHzA==@kvack.org X-Gm-Message-State: AOJu0YwBhmVmgrX5FXuMb0t3jOCo5PXAsghcBMR4Ch3LNmMUn7nDd69T cBKSplk7JlcqETInBN0kmdzrEy6miSi643zsDg+C2HX5NmfuwMlY X-Gm-Gg: ASbGncuPHn2i3XGIof9Z0NAdNVoeYWe0aGH6ublbKndcToP9G6YPBTGZxsUblAs5FDF enIkuYLn8+ENZJRzt6jqWCnhuJkCbkUZ/WY/Tz9TEUmxnE41osUzvvp3Ozx0ysP/aheVSee/lBQ cF/qsWNOYqCbdq4nC7q8h/LnisO/nZ1jZtxZDV0lG1wgH7DT8touLm2p75vRUG/bn9f9VMMpmPr mm08tgSLpS6btvurQq2De2jNPvz2pkFFWDiThoLiGj4KZQ75pO10EaHjlY= X-Google-Smtp-Source: AGHT+IFdmj+6mXpKaatS+ZSrn1/J5DGo/OtucbepOlqgugKcinRIN8pfplGhkw0ngoIgy0n14MnuWA== X-Received: by 2002:a05:6000:1a86:b0:385:fc97:9c76 with SMTP id ffacd0b85a97d-3862b33d72bmr8784844f8f.3.1733690844014; Sun, 08 Dec 2024 12:47:24 -0800 (PST) Received: from localhost.localdomain ([46.248.82.114]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3861f59cc6fsm10874975f8f.34.2024.12.08.12.47.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Dec 2024 12:47:23 -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 v3 1/6] x86/kgdb: Use IS_ERR_PCPU() macro Date: Sun, 8 Dec 2024 21:45:16 +0100 Message-ID: <20241208204708.3742696-2-ubizjak@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20241208204708.3742696-1-ubizjak@gmail.com> References: <20241208204708.3742696-1-ubizjak@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: C170A80012 X-Stat-Signature: 37mrn1hecwze57a3788dpcmx7puxicrd X-Rspam-User: X-HE-Tag: 1733690807-60139 X-HE-Meta: U2FsdGVkX1+0gtUrd0gqr0eIVlL56vddq6gbqvUhpeV+yAC2jBjwKyIAc23aquhxS1ZD0B5Fw1Ww4eMzL4ME0tA1yqf0L7ZiMbLVWy/HA5FK6BxlXV5MTANR9tMETrXhdXDbqxZxNYS4kkMwyWlnheIUMOeNs68UwgM84wwFwSAzgOhqWcY8zDExiO8G52SQPYOrcLLv1nqPwBWF322Z6s+p7RucyjZqLjrZpaDnJDvmk34O9H+BJ55JOEvXZGjgpmbv8dgFRGp+WYJ7Hh+ixmy1V5UtCor7UV0YDiNpB7mMIcvBbXiKWH6LsRIAj7ztAnbm/X3Dwcc3CNlpd9f5CEVu5gVErhLtouONZBgK5V5Bxh4DWbHT0Su5T8164O6MCvdxKhVGlo5+VRU2Joybe9WbrwNuiwjqYqricDyePApQ9XMbUdN4ynNkxisq42mY0cx2x52BpExLnFwtOVU90Wj2jOX57lY0gFKljsOZw2fHk6DMdo28ixrmTQp3uthFq2TW81DQKxNA2nhODu9LpCLtchNaUKTRR5leEuI7mKz3Uo8aqMpAb6NPn/VjG510idU+ShXpNlI5un67obIvsfZQQXMJT5hkLwPkVnFPJiOlae28tERto0nwBBbQaTfKK98/OuumUahoYrnuWZsOczVZEigxynNiQs2oI/x0RO6LdLhG6ZAq3dCAm49xjklqzjp0ZCahvP61FLO6cIqZ4Bim/gg7dFerqoVnjD6AWD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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;