Re: [PATCHv3 00/19] powerpc/mm, pseries, powernv: Enable clang context analysis
From: Madhavan Srinivasan
Date: Mon Nov 30 2026 - 07:27:19 EST
On Fri, 20 Nov 2026 09:32:59 +0530, Ritesh Harjani (IBM) wrote:
> Enable Clang context analysis checking for most of powerpc/mm, pseries & powernv
> platforms.
>
> Lock acquire and release checking used to be done with Sparse. That support was
> removed [1] and replaced with Clang context analysis [2].
>
> Note that enabling this caught a real locking rcu bug in arch/powerpc/mm
> (Patch-1). Note, more invasive checkers to check what each lock protects
> is deferred for later enablement.
>
> [...]
Applied to powerpc/next.
[01/19] powerpc/mm/book3s64: unlock RCU before returning from mm_iommu_is_devmem()
https://git.kernel.org/powerpc/c/d8a6f573d2e41f7780966d433fe6c66d79a6930c
[02/19] powerpc/mm/book3s64: Rework tlbie() to remove conditional locking
https://git.kernel.org/powerpc/c/649a01e51a587293351c0fe7e26ad888856239fd
[03/19] powerpc/64s/hash: Reference all arguments in the 4K pte_iterate_hashed_subpages()
https://git.kernel.org/powerpc/c/32f3ad73a01243d819aec542be634cce71b55539
[04/19] powerpc/mm/book3s64: Rework native_flush_hash_range() to remove conditional locking
https://git.kernel.org/powerpc/c/c159e25b1565528a3f66edf0aee5b9e06f6d4ba7
[05/19] powerpc/mm/book3s64: Annotate the subpage-protection PTE lock
https://git.kernel.org/powerpc/c/bed9247d45f30b16c474cd265c8c5852ac16f231
[06/19] powerpc/mm: Rework nohash TLB broadcast locking
https://git.kernel.org/powerpc/c/65424ff9efd6f1adf60dc2376ddefe84b031afc7
[07/19] powerpc/mm: Enable context analysis
https://git.kernel.org/powerpc/c/87ef3133325bfbe13a16a244199ebe664bb19636
[08/19] powerpc/pseries: Drop inline from hugepage invalidate
https://git.kernel.org/powerpc/c/2663a5d2ce312eb57c53008c2ad0f861231ae72d
[09/19] powerpc/pseries: Rework hugepage invalidate to remove conditional locking
https://git.kernel.org/powerpc/c/9ef129cddb7c64144ce4e224fc49f9ea1fa3fe5b
[10/19] powerpc/pseries: Rework hash flush to remove conditional locking
https://git.kernel.org/powerpc/c/1d39eacbdddacd53e2d5b95c63b660c2d3bb89b5
[11/19] powerpc/pseries: Add context annotations for the DTL worker lock
https://git.kernel.org/powerpc/c/196ad45c594bb46310661d77446a427b6f8d1b4e
[12/19] powerpc/pseries: Annotate the VPD sequence lock context
https://git.kernel.org/powerpc/c/e0b1d91610a688ad1f8adff33962f00fae176845
[13/19] powerpc/pseries: Annotate the RTAS indices sequence lock context
https://git.kernel.org/powerpc/c/23ae8c49d986fd998db0e4d581512a7950fe29e0
[14/19] powerpc/pseries: Annotate the RTAS physical-attestation sequence lock context
https://git.kernel.org/powerpc/c/dc032ac72d240354a8b11f56e234927f6b250945
[15/19] powerpc/pseries: Annotate the DTL debugfs read lock context
https://git.kernel.org/powerpc/c/f40d8b9c6efb73b93af952be612e9a6c46f852a1
[16/19] powerpc/pseries: Disable context analysis for the CMM hotplug notifier
https://git.kernel.org/powerpc/c/5bf31ab770fc4b714c25fb29a89dd383a17369ba
[17/19] powerpc/pseries: Enable context analysis
https://git.kernel.org/powerpc/c/dc3641bd40c73b346b4dfb9a6af18d5a19c0a5ef
[18/19] powerpc/powernv: Rework OPAL console write to remove conditional locking
https://git.kernel.org/powerpc/c/eb917a9846aac7cb470293ce89f08d6eec2c5524
[19/19] powerpc/powernv: Enable context analysis
https://git.kernel.org/powerpc/c/57f7a692020a3511f884ded876bbf37025927502
cheers