android_kernel_motorola_sm6375/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Eric Dumazet e7711f15ed sch_netem: fix issues in netem_change() vs get_dist_table()
commit 11b73313c12403f617b47752db0ab3deef201af7 upstream.

In blamed commit, I missed that get_dist_table() was allocating
memory using GFP_KERNEL, and acquiring qdisc lock to perform
the swap of newly allocated table with current one.

In this patch, get_dist_table() is allocating memory and
copy user data before we acquire the qdisc lock.

Then we perform swap operations while being protected by the lock.

Note that after this patch netem_change() no longer can do partial changes.
If an error is returned, qdisc conf is left unchanged.

Fixes: 2174a08db80d ("sch_netem: acquire qdisc lock in netem_change()")
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230622181503.2327695-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-16 18:19:25 +02:00
..
6lowpan
9p
802
8021q vlan: fix a potential uninit-value in vlan_dev_hard_start_xmit() 2023-05-30 12:44:06 +01:00
appletalk
atm atm: hide unused procfs functions 2023-06-09 10:28:59 +02:00
ax25
batman-adv batman-adv: Broken sync while rescheduling delayed work 2023-06-14 10:59:56 +02:00
bluetooth Bluetooth: L2CAP: Fix use-after-free in l2cap_sock_ready_cb 2023-08-11 11:53:59 +02:00
bpf
bpfilter
bridge net: bridge: keep ports without IFF_UNICAST_FLT in BR_PROMISC mode 2023-07-27 08:37:23 +02:00
caif
can can: bcm: Fix UAF in bcm_proc_show() 2023-07-27 08:37:40 +02:00
ceph libceph: fix potential hang in ceph_osdc_notify() 2023-08-11 11:53:58 +02:00
core bpf: sockmap: Remove preempt_disable in sock_map_sk_acquire 2023-08-11 11:53:57 +02:00
dcb net: dcb: choose correct policy to parse DCB_ATTR_BCN 2023-08-11 11:53:57 +02:00
dccp dccp: fix data-race around dp->dccps_mss_cache 2023-08-16 18:19:24 +02:00
decnet Remove DECnet support from kernel 2023-06-21 15:44:10 +02:00
dns_resolver
dsa net: dsa: tag_sja1105: fix MAC DA patching from meta frames 2023-07-27 08:37:24 +02:00
ethernet
hsr
ieee802154
ife
ipv4 tcp_metrics: fix data-race in tcpm_suck_dst() vs fastopen 2023-08-11 11:53:58 +02:00
ipv6 ipv6: adjust ndisc_is_useropt() to also return true for PIO 2023-08-16 18:19:22 +02:00
iucv
kcm
key
l2tp
l3mdev
lapb
llc llc: Don't drop packet from non-root netns. 2023-07-27 08:37:44 +02:00
mac80211
mac802154
mpls
ncsi
netfilter netfilter: nf_tables: report use refcount overflow 2023-08-16 18:19:24 +02:00
netlabel
netlink netlink: Add __sock_i_ino() for __netlink_diag_dump(). 2023-07-27 08:37:12 +02:00
netrom netrom: fix info-leak in nr_write_internal() 2023-06-09 10:28:52 +02:00
nfc net: nfc: Fix use-after-free caused by nfc_llcp_find_local 2023-07-27 08:37:11 +02:00
nsh net: nsh: Use correct mac_offset to unwind gso skb in nsh_gso_segment() 2023-05-30 12:44:05 +01:00
openvswitch
packet net/packet: annotate data-races around tp->status 2023-08-16 18:19:23 +02:00
phonet
psample
qrtr
rds
rfkill
rose
rxrpc
sched sch_netem: fix issues in netem_change() vs get_dist_table() 2023-08-16 18:19:25 +02:00
sctp sctp: fix potential deadlock on &net->sctp.addr_wq_lock 2023-07-27 08:37:22 +02:00
smc
strparser
sunrpc SUNRPC: Fix UAF in svc_tcp_listen_data_ready() 2023-07-27 08:37:35 +02:00
switchdev
tipc net: tipc: resize nlattr array to correct size 2023-06-21 15:44:12 +02:00
tls treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
unix net: add missing data-race annotations around sk->sk_peek_off 2023-08-11 11:53:56 +02:00
vmw_vsock
wimax
wireless wifi: wext-core: Fix -Wstringop-overflow warning in ioctl_standard_iw_point() 2023-07-27 08:37:42 +02:00
x25
xdp xsk: Honor SO_BINDTODEVICE on bind 2023-07-27 08:37:23 +02:00
xfrm xfrm: Check if_id in inbound policy/secpath match 2023-06-09 10:28:56 +02:00
compat.c
Kconfig Remove DECnet support from kernel 2023-06-21 15:44:10 +02:00
Makefile Remove DECnet support from kernel 2023-06-21 15:44:10 +02:00
socket.c
sysctl_net.c