Skip to content

net: replace deprecated simple_strto* parsers

Eric-Terminal bridge linux-nfs netdev 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/22 patches 0 repliesNew
  2. v3 posting 1/22 patches 3 repliesSuperseded
  3. v24 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch0 repliesSuperseded

Changes in v3 from the cover letter

- Split into a dedicated net series for bridge and sunrpc.
- No functional changes since v2.

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: bridge: replace deprecated simple_strtoul with kstrtoulnet/bridge/br_sysfs_if.c+2 -30 replies
2/2net: sunrpc: replace deprecated simple_strtol with kstrtouintnet/sunrpc/sysctl.c+12 -120 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] net: replace deprecated simple_strto* parsers

From: Yufan Chen <[email protected]>

Hi,

This series replaces deprecated simple_strto* parsers in two net paths with kstrto* helpers and tightens parse semantics.

The series has been split from a previous mixed 9p/net series to ease review and align with subsystem boundaries.

Patch 1 switches bridge brport_store() to kstrtoul() to ensure strict input validation before taking locks.

Patch 2 updates sunrpc proc_dodebug() to use kstrtouint() for full-token conversion, improving error reporting consistency in sysctl paths.

Testing:
- Verified migration to kstrto* ensures that sysfs/procfs interfaces now properly validate the entire input string, rejecting malformed input.

v3:
- Split into a dedicated net series for bridge and sunrpc.
- No functional changes since v2.

Yufan Chen (2):
net: bridge: replace deprecated simple_strtoul with kstrtoul
net: sunrpc: replace deprecated simple_strtol with kstrtouint

 net/bridge/br_sysfs_if.c |  5 +++--
 net/sunrpc/sysctl.c      | 24 ++++++++++++------------
 2 files changed, 15 insertions(+), 14 deletions(-)
Signature · 1 line
2.47.3