[PATCH net 0/3] netconsole: configfs store callback fixes
From: Breno Leitao
Date: Thu Apr 23 2026 - 05:44:01 EST
This series fixes a small cluster of related issues in netconsole's
configfs store callbacks.
They showed up in sashiko and brought to my attention by Simon:
https://lore.kernel.org/all/20260421162219.GF651125@xxxxxxxxxxxxxxxx/
None are crashes or security problems, but each is a real correctness
bug that surfaces at boundary conditions and was easy to clean up while
the code was already under the microscope.
All three changes narrow the accepted write size by exactly one byte
at the boundary that was previously buggy, so no well-behaved
userspace should notice the tightening.
Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>
---
Breno Leitao (3):
netconsole: return count instead of strnlen(buf, count) from store callbacks
netconsole: avoid clobbering userdatum value on truncated write
netconsole: propagate device name truncation in dev_name_store()
drivers/net/netconsole.c | 31 +++++++++++++++++--------------
1 file changed, 17 insertions(+), 14 deletions(-)
---
base-commit: 70c8a7ec6715b5fb14e501731b5b9210a16684f7
change-id: 20260422-netconsole_ai_fixes-24599337a79d
Best regards,
--
Breno Leitao <leitao@xxxxxxxxxx>