android_kernel_samsung_a7y1.../net/batman-adv
Sven Eckelmann de5c446d49 batman-adv: Don't schedule OGM for disabled interface
A transmission scheduling for an interface which is currently dropped by
batadv_iv_ogm_iface_disable could still be in progress. The B.A.T.M.A.N. V
is simply cancelling the workqueue item in an synchronous way but this is
not possible with B.A.T.M.A.N. IV because the OGM submissions are
intertwined.

Instead it has to stop submitting the OGM when it detect that the buffer
pointer is set to NULL.

Reported-by: syzbot+a98f2016f40b9cd3818a@syzkaller.appspotmail.com
Reported-by: syzbot+ac36b6a33c28a491e929@syzkaller.appspotmail.com
Fixes: c6c8fea29769 ("net: Add batman-adv meshing protocol")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Cc: Hillf Danton <hdanton@sina.com>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 14:13:30 +02:00
..
bat_algo.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bat_iv_ogm.c batman-adv: Don't schedule OGM for disabled interface 2020-04-07 14:13:30 +02:00
bitarray.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bitarray.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bridge_loop_avoidance.c batman-adv: Reduce claim hash refcnt only for removed entry 2020-04-07 14:13:21 +02:00
bridge_loop_avoidance.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
debugfs.c batman-adv: Fix debugfs path for renamed softif 2020-04-07 14:13:10 +02:00
debugfs.h batman-adv: Fix debugfs path for renamed softif 2020-04-07 14:13:10 +02:00
distributed-arp-table.c batman-adv: Fix rx packet/bytes stats on local ARP reply 2020-04-07 14:12:51 +02:00
distributed-arp-table.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fragmentation.c batman-adv: Fix transmission of final, 16th fragment 2020-04-07 14:12:49 +02:00
fragmentation.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gateway_client.c batman-adv: Prevent duplicated gateway_node entry 2020-04-07 14:13:14 +02:00
gateway_client.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gateway_common.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gateway_common.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hard-interface.c batman-adv: Avoid free/alloc race when handling OGM buffer 2020-04-07 14:13:28 +02:00
hard-interface.h batman-adv: Drop reference to netdevice on last reference 2020-04-07 14:12:18 +02:00
hash.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hash.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
icmp_socket.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
icmp_socket.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
main.c batman-adv: Prevent duplicated tvlv handler 2020-04-07 14:13:19 +02:00
main.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
multicast.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
multicast.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
network-coding.c batman-adv: Prevent duplicated nc_node entry 2020-04-07 14:13:15 +02:00
network-coding.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
originator.c batman-adv: Fix internal interface indices types 2020-04-07 14:12:56 +02:00
originator.h batman-adv: Fix internal interface indices types 2020-04-07 14:12:56 +02:00
packet.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
routing.c batman-adv: Fix skbuff rcsum on packet reroute 2020-04-07 14:13:00 +02:00
routing.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
send.c batman-adv: Fix speedy join in gateway client mode 2020-04-07 14:12:44 +02:00
send.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
soft-interface.c batman-adv: Clean up untagged vlan when destroying via rtnl-link 2020-04-07 14:12:29 +02:00
soft-interface.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sysfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sysfs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
translation-table.c batman-adv: Reduce tt_global hash refcnt only for removed entry 2020-04-07 14:13:24 +02:00
translation-table.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
types.h batman-adv: Avoid free/alloc race when handling OGM buffer 2020-04-07 14:13:28 +02:00