From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 74E0EA59 for ; Mon, 17 Mar 2025 05:09:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742188159; cv=none; b=ghzJz/l0K5KuDVKv5j2TUrsFnqakO1Ye3318ROJ2HgPiORmOibBaEIhsu/nzurc1bWJ8k8A7KkKIVGQh5M2IYfxC2CbYXao9LHTl42IgVpzOozBvdz4eXEeRlqDwUk5QZ/xGsfADr0qDQ194c9PRqHSv6d/DEMsM//yB16NgA78= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742188159; c=relaxed/simple; bh=ME1F5eAonxOdukWBQMO+b+qeS+/N/MBvs9J/qYkld8w=; h=Date:To:From:Subject:Message-Id; b=VCTj+Zh8ePQGLDlqpy2w3UblqdPyUoz15hS5PUVJdpxRN7SQqxvkCTaFrq+FhuW+CBntA7fsfTWOJ1XxGpCNosqtfZQx0v5NacoUqysLZriVtHFgWGjsa8nGOrrL0YkcA/Zayv7/G2mtc71NRmGeXVuiHqyVdvpfc5jogvFkf2A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=poQ3lTbZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="poQ3lTbZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3D20C4CEEC; Mon, 17 Mar 2025 05:09:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1742188158; bh=ME1F5eAonxOdukWBQMO+b+qeS+/N/MBvs9J/qYkld8w=; h=Date:To:From:Subject:From; b=poQ3lTbZCXSRzwygw2DIXJBD4bPN6s0TLJfq4z8OoswhMm1OYR5b8ukBpW4MJn2L0 86UiNKRjXxBZu0GCQXMoPqce4qb8FU8Mj68z1EEzODEH9Me1/+m5XvHbuZJYyRhB37 AREvdHXab+rOqCz4ELWVk53QOiMwgazGgV9T1+CI= Date: Sun, 16 Mar 2025 22:09:18 -0700 To: mm-commits@vger.kernel.org,will@kernel.org,torvalds@linux-foundation.org,tj@kernel.org,tglx@linutronix.de,peterz@infradead.org,pabeni@redhat.com,nadav.amit@gmail.com,mingo@kernel.org,luto@kernel.org,longman@redhat.com,kuba@kernel.org,kent.overstreet@linux.dev,hpa@zytor.com,edumazet@google.com,dvlasenk@redhat.com,dennis@kernel.org,davem@davemloft.net,dave.hansen@linux.intel.com,cl@linux.com,brgerst@gmail.com,bp@alien8.de,boqun.feng@gmail.com,arnd@arndb.de,ubizjak@gmail.com,akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-stable] x86-kgdb-use-is_err_pcpu-macro.patch removed from -mm tree Message-Id: <20250317050918.C3D20C4CEEC@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The quilt patch titled Subject: x86/kgdb: use IS_ERR_PCPU() macro has been removed from the -mm tree. Its filename was x86-kgdb-use-is_err_pcpu-macro.patch This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: Uros Bizjak Subject: x86/kgdb: use IS_ERR_PCPU() macro Date: Mon, 27 Jan 2025 17:05:05 +0100 Patch series "Enable strict percpu address space checks", v4. Enable strict percpu address space checks via x86 named address space qualifiers. Percpu variables are declared in __seg_gs/__seg_fs named AS and kept named AS qualified until they are dereferenced via percpu accessor. This approach enables various compiler checks for cross-namespace variable assignments. Please note that current version of sparse doesn't know anything about __typeof_unqual__() operator. Avoid the usage of __typeof_unqual__() when sparse checking is active to prevent sparse errors with unknowing keyword. The proposed patch by Dan Carpenter to implement __typeof_unqual__() handling in sparse is located at: https://lore.kernel.org/lkml/5b8d0dee-8fb6-45af-ba6c-7f74aff9a4b8@stanley.mountain/ This patch (of 6): Use IS_ERR_PCPU() when checking the error pointer in the percpu address space. This macro adds intermediate cast to unsigned long when switching named address spaces. The patch will avoid future build errors due to pointer address space mismatch with enabled strict percpu address space checks. Link: https://lkml.kernel.org/r/20250127160709.80604-1-ubizjak@gmail.com Link: https://lkml.kernel.org/r/20250127160709.80604-2-ubizjak@gmail.com Signed-off-by: Uros Bizjak Acked-by: Nadav Amit Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: "H. Peter Anvin" Cc: Dennis Zhou Cc: Tejun Heo Cc: Christoph Lameter Cc: Linus Torvalds Cc: Andy Lutomirski Cc: Brian Gerst Cc: Peter Zijlstra Cc: Arnd Bergmann Cc: Boqun Feng Cc: "David S. Miller" Cc: Denys Vlasenko Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Kent Overstreet Cc: Paolo Abeni Cc: Waiman Long Cc: Will Deacon Signed-off-by: Andrew Morton --- arch/x86/kernel/kgdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/kernel/kgdb.c~x86-kgdb-use-is_err_pcpu-macro +++ a/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; _ Patches currently in -mm which might be from ubizjak@gmail.com are