Skip to content

l2tp: set l2specific_len based on l2specific_type

Lorenzo Bianconi netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 3 repliesIn review
  2. v25 patches 16 repliesSuperseded
  3. v13 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- drop the patch related to a fix in the switch default case in l2tp_nl_cmd_session_create()
- use L2SPECTYPE_NONE as default case in l2tp_get_l2specific_len()

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4l2tp: double-check l2specific_type provided by userspacenet/l2tp/l2tp_netlink.c+9 -20 replies
2/4l2tp: remove l2specific_len dependency in l2tp_corenet/l2tp/l2tp_core.c net/l2tp/l2tp_core.h+27 -180 replies
3/4l2tp: remove l2specific_len configurable parameternet/l2tp/l2tp_core.c net/l2tp/l2tp_core.h net/l2tp/l2tp_debugfs.c +1 more+1 -80 replies
4/4l2tp: mark L2TP_ATTR_L2SPEC_LEN as not usedinclude/uapi/linux/l2tp.h+1 -10 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGuillaume NaultJames Chapman
SeriesA-b
1/4R-b T-b
2/4R-b T-b
3/4R-b T-b
4/4R-b T-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 v3 net-next 0/4] l2tp: set l2specific_len based on l2specific_type

Do not rely on l2specific_len value provided by userspace but set sublayer length according to l2specific_type.
Mark L2TP_ATTR_L2SPEC_LEN attribute as not used

Changes since v2:
- drop the patch related to a fix in the switch default case in l2tp_nl_cmd_session_create()
- use L2SPECTYPE_NONE as default case in l2tp_get_l2specific_len()

Changes since v1:
- remove l2specific_len parameter
- add sanity check on l2specific_type provided by userspace

Lorenzo Bianconi (4):
l2tp: double-check l2specific_type provided by userspace
l2tp: remove l2specific_len dependency in l2tp_core
l2tp: remove l2specific_len configurable parameter
l2tp: mark L2TP_ATTR_L2SPEC_LEN as not used

 include/uapi/linux/l2tp.h |  2 +-
 net/l2tp/l2tp_core.c      | 35 ++++++++++++++++-------------------
 net/l2tp/l2tp_core.h      | 13 +++++++++++--
 net/l2tp/l2tp_debugfs.c   |  2 +-
 net/l2tp/l2tp_netlink.c   | 15 +++++++++------
 5 files changed, 38 insertions(+), 29 deletions(-)
Signature · 1 line
2.13.6