[PATCH net 0/3] netconsole: configfs store callback fixes

Breno Leitao posted 3 patches 1 month, 3 weeks ago
There is a newer version of this series
drivers/net/netconsole.c | 31 +++++++++++++++++--------------
1 file changed, 17 insertions(+), 14 deletions(-)
[PATCH net 0/3] netconsole: configfs store callback fixes
Posted by Breno Leitao 1 month, 3 weeks ago
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@horms.kernel.org/

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@debian.org>
---
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@debian.org>