summaryrefslogtreecommitdiff
path: root/net/batman-adv/translation-table.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2018-10-31 00:01:28 +0300
committerSimon Wunderlich <sw@simonwunderlich.de>2018-11-12 12:41:51 +0300
commit6f81652a4713e49afa4e1f6923c61e2e165afa08 (patch)
tree5d37de259c0d588d3d927b97cbf19c1deb3bc6ee /net/batman-adv/translation-table.c
parent24d71b92321ab994585c816ede8c12857985d924 (diff)
downloadlinux-6f81652a4713e49afa4e1f6923c61e2e165afa08.tar.xz
batman-adv: Add inconsistent dat netlink dump detection
The netlink dump functionality transfers a large number of entries from the kernel to userspace. It is rather likely that the transfer has to interrupted and later continued. During that time, it can happen that either new entries are added or removed. The userspace could than either receive some entries multiple times or miss entries. Commit 670dc2833d14 ("netlink: advertise incomplete dumps") introduced a mechanism to inform userspace about this problem. Userspace can then decide whether it is necessary or not to retry dumping the information again. The netlink dump functions have to be switched to exclusive locks to avoid changes while the current message is prepared. The already existing generation sequence counter from the hash helper can be used for this simple hash. Reported-by: Matthias Schiffer <mschiffer@universe-factory.net> Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/translation-table.c')
0 files changed, 0 insertions, 0 deletions