Sven Eckelmann
130bd50d00
batman-adv: Don't schedule OGM for disabled interface
...
commit 8e8ce08198de193e3d21d42e96945216e3d9ac7f upstream.
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: c6c8fea297 ("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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-18 07:17:54 +01:00
..
bat_algo.c
bat_algo.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
bat_iv_ogm.c
batman-adv: Don't schedule OGM for disabled interface
2020-03-18 07:17:54 +01:00
bat_iv_ogm.h
bat_v.c
batman-adv: BATMAN_V: introduce per hard-iface OGMv2 queues
2019-08-04 22:22:00 +02:00
bat_v.h
bat_v_elp.c
bat_v_elp.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
bat_v_ogm.c
batman-adv: Avoid free/alloc race when handling OGM2 buffer
2019-10-13 20:36:39 +02:00
bat_v_ogm.h
batman-adv: BATMAN_V: introduce per hard-iface OGMv2 queues
2019-08-04 22:22:00 +02:00
bitarray.c
bitarray.h
bridge_loop_avoidance.c
bridge_loop_avoidance.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
debugfs.c
batman-adv: no need to check return value of debugfs_create functions
2019-06-27 19:25:04 +02:00
debugfs.h
batman-adv: no need to check return value of debugfs_create functions
2019-06-27 19:25:04 +02:00
distributed-arp-table.c
batman-adv: Fix DAT candidate selection on little endian systems
2020-01-23 08:22:49 +01:00
distributed-arp-table.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
fragmentation.c
fragmentation.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
gateway_client.c
gateway_client.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
gateway_common.c
gateway_common.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
hard-interface.c
batman-adv: Avoid free/alloc race when handling OGM buffer
2019-10-13 21:00:07 +02:00
hard-interface.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
hash.c
hash.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
icmp_socket.c
batman-adv: no need to check return value of debugfs_create functions
2019-06-27 19:25:04 +02:00
icmp_socket.h
batman-adv: no need to check return value of debugfs_create functions
2019-06-27 19:25:04 +02:00
Kconfig
net: Fix Kconfig indentation
2019-09-26 08:56:17 +02:00
log.c
batman-adv: no need to check return value of debugfs_create functions
2019-06-27 19:25:04 +02:00
log.h
batman-adv: Add missing include for atomic functions
2019-05-25 12:59:53 +02:00
main.c
main.h
batman-adv: Start new development cycle
2019-07-22 21:34:14 +02:00
Makefile
multicast.c
batman-adv: Fix deletion of RTR(4|6) mcast list entries
2019-07-22 21:34:58 +02:00
multicast.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
netlink.c
batman-adv: fix uninit-value in batadv_netlink_get_ifindex()
2019-08-14 19:27:07 +02:00
netlink.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
network-coding.c
batman-adv: no need to check return value of debugfs_create functions
2019-06-27 19:25:04 +02:00
network-coding.h
batman-adv: no need to check return value of debugfs_create functions
2019-06-27 19:25:04 +02:00
originator.c
batman-adv: mcast: detect, distribute and maintain multicast router presence
2019-06-27 19:25:05 +02:00
originator.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
routing.c
routing.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
send.c
send.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
soft-interface.c
net: core: add generic lockdep keys
2019-10-24 14:53:48 -07:00
soft-interface.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
sysfs.c
batman-adv: Replace usage of strlcpy with strscpy
2019-07-22 21:34:14 +02:00
sysfs.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
tp_meter.c
tp_meter.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
trace.c
trace.h
translation-table.c
translation-table.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
tvlv.c
tvlv.h
batman-adv: Use includes instead of fwdecls
2019-05-25 12:59:53 +02:00
types.h
batman-adv: Avoid free/alloc race when handling OGM buffer
2019-10-13 21:00:07 +02:00