diff options
author | Neil Horman <nhorman@tuxdriver.com> | 2012-04-27 10:11:49 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-02 09:47:42 -0700 |
commit | b2f89a7caf4491dba4086663139e6fbc1ab59711 (patch) | |
tree | a7dd1f6f9aaee9beb434046bd5eae4b0bc996259 /Kconfig | |
parent | 34c0bc428c081c314c4b4ebf6c0fd335cf53c133 (diff) | |
download | kernel_samsung_smdk4412-b2f89a7caf4491dba4086663139e6fbc1ab59711.zip kernel_samsung_smdk4412-b2f89a7caf4491dba4086663139e6fbc1ab59711.tar.gz kernel_samsung_smdk4412-b2f89a7caf4491dba4086663139e6fbc1ab59711.tar.bz2 |
drop_monitor: Make updating data->skb smp safe
commit 3885ca785a3618593226687ced84f3f336dc3860 upstream.
Eric Dumazet pointed out to me that the drop_monitor protocol has some holes in
its smp protections. Specifically, its possible to replace data->skb while its
being written. This patch corrects that by making data->skb an rcu protected
variable. That will prevent it from being overwritten while a tracepoint is
modifying it.
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: David Miller <davem@davemloft.net>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions