Skip to content

netconsole: selftest for userdata overflow

Breno Leitao linux-kselftest lkml netdev 3 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected] change-id 20241204-netcons_overflow_test-eaf735d1f743

Versions newest first

  1. v3 Latest4 patches 0 repliesApplied 4/4
  2. v24 patches 2 repliesSuperseded
  3. v14 patches 5 repliesSuperseded

Changes in v3 from the cover letter

- Added the new shell helpers files in the TEST_INCLUDES (Jakub)
- Link to v2: https://lore.kernel.org/r/[email protected]

Patches in v3 All 4 applied

#Subject and filesSizeRepliesApplied
1/4netconsole: Warn if MAX_USERDATA_ITEMS limit is exceededdrivers/net/netconsole.c+1 -10 repliesApplied
2/4netconsole: selftest: Split the helpers from the selftestMAINTAINERS tools/testing/selftests/drivers/net/Makefile tools/testing/selftests/drivers/net/lib/sh/lib_netcons.sh +1 more+228 -2170 repliesApplied
3/4netconsole: selftest: Delete all userdata keystools/testing/selftests/drivers/net/lib/sh/lib_netcons.sh+3 -30 repliesApplied
4/4netconsole: selftest: verify userdata entry limitMAINTAINERS tools/testing/selftests/drivers/net/Makefile tools/testing/selftests/drivers/net/netcons_overflow.sh+69 -10 repliesApplied

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchSimon Horman
1/4R-b
2/4T-b R-b
3/4R-b
4/4T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH net-next v3 0/4] netconsole: selftest for userdata overflow

Implement comprehensive testing for netconsole userdata entry handling, demonstrating correct behavior when creating maximum entries and preventing unauthorized overflow.

Refactor existing test infrastructure to support modular, reusable helper functions that validate strict entry limit enforcement.

Also, add a warning if update_userdata() sees more than MAX_USERDATA_ITEMS entries. This shouldn't happen and it is a bug that shouldn't be silently ignored.

---
Changes in v3:
- Added the new shell helpers files in the TEST_INCLUDES (Jakub)
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Add the new script (netcons_overflow.sh) in tools/testing/selftests/drivers/net/Makefile as suggested by Simon
Horman
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Breno Leitao (4):
netconsole: Warn if MAX_USERDATA_ITEMS limit is exceeded
netconsole: selftest: Split the helpers from the selftest
netconsole: selftest: Delete all userdata keys
netconsole: selftest: verify userdata entry limit

 MAINTAINERS                                        |   3 +-
 drivers/net/netconsole.c                           |   2 +-
 tools/testing/selftests/drivers/net/Makefile       |   2 +
 .../selftests/drivers/net/lib/sh/lib_netcons.sh    | 225 +++++++++++++++++++++
 .../testing/selftests/drivers/net/netcons_basic.sh | 218 +-------------------
 .../selftests/drivers/net/netcons_overflow.sh      |  67 ++++++
 6 files changed, 298 insertions(+), 219 deletions(-)

---
base-commit: 7bf1659bad4e9413cdba132ef9cbd0caa9cabcc4
change-id: 20241204-netcons_overflow_test-eaf735d1f743

Best regards,

Signature · 1 line
Breno Leitao <[email protected]>