Skip to content

Fix slab-out-of-bounds Write in dbgfs_rm_context_write

SeongJae Park damon linux-kselftest linux-mm lkml stable 2 versions – Applied

Status from this message: [merged mm-stable] selftests-damon-test-non-context-inputs-to-rm_contexts-file.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesApplied 2/2
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm/damon/dbgfs: check if rm_contexts input is for a real contextmm/damon/dbgfs.c+7 -00 repliesApplied
2/2selftests/damon: test non-context inputs to rm_contexts filetools/testing/selftests/damon/Makefile tools/testing/selftests/damon/debugfs_rm_non_contexts.sh+20 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Fix slab-out-of-bounds Write in dbgfs_rm_context_write

Changes from v1
(https://lore.kernel.org/damon/[email protected]/)
- Rebase on latest mm-unstable

---

This patchset is for fixing (patch 1) the syzbot-reported slab-out-of-bounds write in dbgfs_rm_context_write[1], and adding a selftest for the bug (patch 2).

[1] https://lore.kernel.org/damon/[email protected]/

SeongJae Park (2):
mm/damon/dbgfs: check if rm_contexts input is for a real context selftests/damon: test non-context inputs to rm_contexts file

 mm/damon/dbgfs.c                              |  7 +++++++
 tools/testing/selftests/damon/Makefile        |  1 +
 .../damon/debugfs_rm_non_contexts.sh          | 19 +++++++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 100755 tools/testing/selftests/damon/debugfs_rm_non_contexts.sh
Signature · 1 line
2.25.1