Rework REFCOUNT_FULL using atomic_fetch_* operations
Status from this message: The following commit has been merged into the locking/core branch of tip:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest posting 2/210 patches 12 repliesApplied
- v4 posting 1/210 patches 3 repliesSuperseded
- v310 patches 11 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 6 patches | 9 replies | Superseded | |
| v1 | 6 patches | 8 replies | Superseded |
Patches in v4 posting 2/2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | lib/refcount: Define constants for saturation and max refcount valuesdrivers/ include/ lib/ | +29 | 0 replies | |
| 2/10 | lib/refcount: Ensure integer operands are treated as signedinclude/ lib/ | +10 | 0 replies | |
| 3/10 | lib/refcount: Remove unused refcount_*_checked() variantsinclude/ lib/ | +36 | 3 replies | |
| 4/10 | lib/refcount: Move bulk of REFCOUNT_FULL implementation into headerinclude/ lib/ | +229 | 0 replies | |
| 5/10 | lib/refcount: Improve performance of generic REFCOUNT_FULL codeinclude/ | +75 | 3 replies | |
| 6/10 | lib/refcount: Move saturation warnings out of lineinclude/ lib/ | +48 | 0 replies | |
| 7/10 | lib/refcount: Consolidate REFCOUNT_{MAX,SATURATED} definitionsinclude/ | +2 | 0 replies | |
| 8/10 | refcount: Consolidate implementations of refcount_tarch/ arch/ arch/ +8 more | +59 | 4 replies | |
| 9/10 | lib/refcount: Remove unused 'refcount_error_report()' functioninclude/ kernel/ | +0 | 0 replies | |
| 10/10 | drivers/lkdtm: Remove references to CONFIG_REFCOUNT_FULLdrivers/ | +1 | 0 replies |
Reviews trailers per patch
All 10 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Kees Cook | Hanjun Guo | Jan Glauber | Ard Biesheuvel |
|---|---|---|---|---|
| Series | T-b | R-b | ||
| 1/10 | R-b | |||
| 2/10 | R-b | |||
| 3/10 | R-b | |||
| 4/10 | R-b | |||
| 5/10 | R-b | T-b | T-b | |
| 6/10 | R-b | |||
| 7/10 | R-b | |||
| 8/10 | A-b | |||
| 9/10 | A-b | |||
| 10/10 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [RESEND PATCH v4 00/10] Rework REFCOUNT_FULL using atomic_fetch_* operations
Hi everybody,
This is a resend of version four of the patches I posted here:
v4: https://lore.kernel.org/lkml/[email protected]
Previous versions can be found at:
v1: https://lkml.kernel.org/r/[email protected]
v2: https://lkml.kernel.org/r/[email protected]
v3: https://lkml.kernel.org/r/[email protected]
I didn't receive any feedback last time around, other than some positive noises from Kees, so please consider this for inclusion in mainline.
Thanks,
Will
--->8
Will Deacon (10):
lib/refcount: Define constants for saturation and max refcount values lib/refcount: Ensure integer operands are treated as signed lib/refcount: Remove unused refcount_*_checked() variants lib/refcount: Move bulk of REFCOUNT_FULL implementation into header lib/refcount: Improve performance of generic REFCOUNT_FULL code lib/refcount: Move saturation warnings out of line lib/refcount: Consolidate REFCOUNT_{MAX,SATURATED} definitions
refcount: Consolidate implementations of refcount_t lib/refcount: Remove unused 'refcount_error_report()' function drivers/lkdtm: Remove references to CONFIG_REFCOUNT_FULL
arch/Kconfig | 21 --- arch/arm/Kconfig | 1 - arch/arm64/Kconfig | 1 - arch/s390/configs/debug_defconfig | 1 - arch/x86/Kconfig | 1 - arch/x86/include/asm/asm.h | 6 - arch/x86/include/asm/refcount.h | 126 -------------- arch/x86/mm/extable.c | 49 ------ drivers/gpu/drm/i915/Kconfig.debug | 1 - drivers/misc/lkdtm/refcount.c | 11 +- include/linux/kernel.h | 7 - include/linux/refcount.h | 269 ++++++++++++++++++++++++----- kernel/panic.c | 11 -- lib/refcount.c | 255 +++------------------------ 14 files changed, 257 insertions(+), 503 deletions(-) delete mode 100644 arch/x86/include/asm/refcount.h
Signature · 1 line
2.24.0.432.g9d3f5f5b63-goog