mm: slub: Enhanced debugging in slub error
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest2 patches 11 repliesIn review
- v32 patches 10 repliesSuperseded
- v21 patch 2 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 1 patch | 4 replies | Superseded |
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mm: slub: Print the broken data before restoring slub.mm/ | +14 | 2 replies | |
| 2/2 | mm: slub: call WARN() when the slab detect an errormm/ mm/ | +19 | 3 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Harry Yoo |
|---|---|
| Series | R-b |
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/2] mm: slub: Enhanced debugging in slub error
Dear Maintainer,
The purpose is to improve the debugging capabilities of the slub allocator when a error occurs. The following improvements have been made:
- Added WARN() calls at specific locations (slab_err, object_err) to detect
errors effectively and to generate a crash dump if panic_on_warn is enabled.
- Additionally, the error printing location in check_object has been adjusted to
display the broken data before the restoration process. This improvement allows for a better understanding of how the data was corrupted.
This series combines two patches that were discussed seperately in the links below.
https://lore.kernel.org/linux-mm/[email protected]/
https://lore.kernel.org/linux-mm/[email protected]/
Thanks you.
version 2 changes
- Replaced direct calling of BUG_ON with the use of WARN() to trigger a panic.
- Modified the code to print the broken data only once before the restore.
version 3 changes
- Moved WARN() from slab_fix to slab_err and object to call WARN on all error reporting paths.
- Changed the parameter type of check_bytes_and_report.
version 4 changes
- Modified the print format to include specific error names.
- Removed the redundant warning by removing WARN() in kmem_cache_destroy
Hyesoo Yu (2):
mm: slub: Print the broken data before restoring slub.
mm: slub: call WARN() when the slab detect an error
mm/slab_common.c | 3 --- mm/slub.c | 63 +++++++++++++++++++++++++----------------------- 2 files changed, 33 insertions(+), 33 deletions(-)
Signature · 1 line
2.28.0