netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/5] l2tp: set l2specific_len based on l2specific_type
@ 2018-01-14 14:50 Lorenzo Bianconi
  2018-01-14 14:50 ` [PATCH v2 net-next 1/5] l2tp: fix switch default error handling in l2tp_nl_cmd_session_create() Lorenzo Bianconi
                   ` (5 more replies)
  0 siblings, 6 replies; 22+ messages in thread
From: Lorenzo Bianconi @ 2018-01-14 14:50 UTC (permalink / raw)
  To: davem; +Cc: netdev, jchapman, g.nault

Do not rely on l2specific_len value provided by userspace but set sublayer
length according to l2specific_type.
Fix a harmless issue in the switch default case in
l2tp_nl_cmd_session_create().

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

Lorenzo Bianconi (5):
  l2tp: fix switch default error handling in
    l2tp_nl_cmd_session_create()
  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   | 17 ++++++++++-------
 5 files changed, 39 insertions(+), 30 deletions(-)

-- 
2.13.6

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2018-01-16 11:50 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-14 14:50 [PATCH v2 net-next 0/5] l2tp: set l2specific_len based on l2specific_type Lorenzo Bianconi
2018-01-14 14:50 ` [PATCH v2 net-next 1/5] l2tp: fix switch default error handling in l2tp_nl_cmd_session_create() Lorenzo Bianconi
2018-01-15 18:33   ` Guillaume Nault
2018-01-15 21:18     ` Lorenzo Bianconi
2018-01-15 22:00       ` James Chapman
2018-01-15 22:07         ` Lorenzo Bianconi
2018-01-16 10:24       ` Guillaume Nault
2018-01-14 14:50 ` [PATCH v2 net-next 2/5] l2tp: double-check l2specific_type provided by userspace Lorenzo Bianconi
2018-01-15 18:00   ` Guillaume Nault
2018-01-15 18:18     ` Lorenzo Bianconi
2018-01-15 18:44       ` Guillaume Nault
2018-01-14 14:50 ` [PATCH v2 net-next 3/5] l2tp: remove l2specific_len dependency in l2tp_core Lorenzo Bianconi
2018-01-15 18:20   ` Guillaume Nault
2018-01-15 18:43     ` Lorenzo Bianconi
2018-01-15 18:54       ` Guillaume Nault
2018-01-15 21:11         ` Lorenzo Bianconi
2018-01-16  9:40           ` Guillaume Nault
2018-01-14 14:50 ` [PATCH v2 net-next 4/5] l2tp: remove l2specific_len configurable parameter Lorenzo Bianconi
2018-01-14 14:50 ` [PATCH v2 net-next 5/5] l2tp: mark L2TP_ATTR_L2SPEC_LEN as not used Lorenzo Bianconi
2018-01-16 10:55 ` [PATCH v2 net-next 0/5] l2tp: set l2specific_len based on l2specific_type Guillaume Nault
2018-01-16 11:45   ` Lorenzo Bianconi
2018-01-16 11:50     ` Guillaume Nault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).