All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] netlink: nested policy validation
@ 2018-09-19 19:49 Johannes Berg
  2018-09-19 19:49   ` Johannes Berg
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Johannes Berg @ 2018-09-19 19:49 UTC (permalink / raw)
  To: linux-wireless, netdev; +Cc: David Ahern

Ok, I should've tried the idea that David came up with first - it does
in fact make the code quite a bit simpler, and indeed removes the need
for the previously introduced "**error_msg" argument that I hadn't
really liked anyway.

So, changes here are:
 * move setting the bad attr pointer/message into validate_nla()
 * remove the recursion patch since that's no longer needed
 * simply skip the generic bad attr pointer/message setting in
   case of nested nla_validate() failing since that could fail
   only due to validate_nla() failing inside, which already sets
   the extack information

johannes

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

end of thread, other threads:[~2018-09-20 22:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-19 19:49 [PATCH v2 0/5] netlink: nested policy validation Johannes Berg
2018-09-19 19:49 ` [PATCH v2 1/5] netlink: remove NLA_NESTED_COMPAT Johannes Berg
2018-09-19 19:49   ` Johannes Berg
2018-09-20 14:54   ` David Laight
2018-09-20 14:56     ` Johannes Berg
2018-09-20 14:56       ` Johannes Berg
2018-09-20 17:06       ` Johannes Berg
2018-09-19 19:49 ` [PATCH v2 2/5] netlink: make validation_data const Johannes Berg
2018-09-19 19:49   ` Johannes Berg
2018-09-19 19:49 ` [PATCH v2 3/5] netlink: move extack setting into validate_nla() Johannes Berg
2018-09-19 19:52   ` Johannes Berg
2018-09-19 19:49 ` [PATCH v2 4/5] netlink: allow NLA_NESTED to specify nested policy to validate Johannes Berg
2018-09-19 19:49 ` [PATCH v2 5/5] netlink: add nested array policy validation Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.