Do not rely on l2specific_len value provided by userspace but set sublayer length according to l2specific_type.
Lorenzo Bianconi (3): l2tp: fix switch default error handling in l2tp_nl_cmd_session_create() l2tp: configure l2specific_len according to l2specific_type l2tp: mark L2TP_ATTR_L2SPEC_LEN as not used include/uapi/linux/l2tp.h | 2 +- net/l2tp/l2tp_netlink.c | 23 +++++++++++++++++------ 2 files changed, 18 insertions(+), 7 deletions(-) -- 2.13.6