]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: fix potential kernel paging errors for unicast transmissions
authorLinus Lüssing <linus.luessing@web.de>
Tue, 6 Aug 2013 18:21:15 +0000 (20:21 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Sat, 10 Aug 2013 20:55:42 +0000 (22:55 +0200)
commit04064d7de632762afb7803d4d726d1e818e2da0a
treeeef64eda7ea4985117e5a4ccefaa76578bded182
parent6e5a36dcee4cb4a67d5b65f42c00164e06516f66
batman-adv: fix potential kernel paging errors for unicast transmissions

There are several functions which might reallocate skb data. Currently
some places keep reusing their old ethhdr pointer regardless of whether
they became invalid after such a reallocation or not. This potentially
leads to kernel paging errors.

This patch fixes these by refetching the ethdr pointer after the
potential reallocations.

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/gateway_client.c
net/batman-adv/gateway_client.h
net/batman-adv/soft-interface.c
net/batman-adv/unicast.c