Skip to content
Commit e11eb32d authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Steffen Klassert
Browse files

netlink/compat: Append NLMSG_DONE/extack to frag_list



Modules those use netlink may supply a 2nd skb, (via frag_list)
that contains an alternative data set meant for applications
using 32bit compatibility mode.

In such a case, netlink_recvmsg will use this 2nd skb instead of the
original one.

Without this patch, such compat applications will retrieve
all netlink dump data, but will then get an unexpected EOF.

Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarDmitry Safonov <dima@arista.com>
Reviewed-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent 5f3eea6b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment