android_kernel_sony_sdm845/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Pavel Skripkin 13abbb34c6 net: sched: fix warning in tcindex_alloc_perfect_hash
[ Upstream commit 3f2db250099f46988088800052cdf2332c7aba61 ]

Syzbot reported warning in tcindex_alloc_perfect_hash. The problem
was in too big cp->hash, which triggers warning in kmalloc. Since
cp->hash comes from userspace, there is no need to warn if value
is not correct

Fixes: b9a24bb76b ("net_sched: properly handle failure case of tcf_exts_init()")
Reported-and-tested-by: syzbot+1071ad60cd7df39fdadb@syzkaller.appspotmail.com
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Acked-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:21:03 +02:00
..
6lowpan 6lowpan: Off by one handling ->nexthdr 2020-01-29 10:24:22 +01:00
9p net: 9p: initialize sun_server.sun_path to have addr's value only when addr is valid 2020-11-10 10:23:54 +01:00
802
8021q vlan: fix memory leak in vlan_dev_set_egress_priority 2020-01-12 11:24:27 +01:00
appletalk appletalk: Fix skb allocation size in loopback case 2021-04-07 12:05:39 +02:00
atm atm: fix a memory leak of vcc->user_back 2020-10-01 20:40:12 +02:00
ax25 AX.25: Prevent integer overflows in connect and sendmsg 2020-07-31 16:44:06 +02:00
batman-adv batman-adv: Avoid WARN_ON timing related checks 2021-06-30 08:49:13 -04:00
bluetooth Bluetooth: mgmt: Fix slab-out-of-bounds in tlv_data_is_valid 2021-07-20 16:21:03 +02:00
bridge net: bridge: vlan: fix error return code in __vlan_add() 2020-12-29 13:44:48 +01:00
caif net: caif: fix memory leak in cfusbl_device_notify 2021-06-10 12:42:36 +02:00
can can: bcm/raw/isotp: use per module netdevice notifier 2021-06-30 08:49:18 -04:00
ceph libceph: clear con->out_msg on Policy::stateful_server faults 2020-11-10 10:23:59 +01:00
core rtnetlink: Fix regression in bridge VLAN configuration 2021-06-30 08:49:13 -04:00
dcb net: dcb: Accept RTM_GETDCB messages carrying set-like DCB commands 2021-01-23 15:38:18 +01:00
dccp ipv6: weaken the v4mapped source check 2021-04-07 12:05:38 +02:00
decnet decnet: fix DN_IFREQ_SIZE 2019-12-05 15:35:12 +01:00
dns_resolver KEYS: DNS: fix parsing multiple options 2018-07-22 14:27:39 +02:00
dsa net: dsa: tag_brcm: Fix skb->fwd_offload_mark location 2020-04-13 10:32:53 +02:00
ethernet net: add annotations on hh->hh_len lockless accesses 2020-01-12 11:24:19 +01:00
hsr hsr: use netdev_err() instead of WARN_ONCE() 2021-05-22 10:40:20 +02:00
ieee802154 net: ieee802154: fix null deref in parse dev addr 2021-06-30 08:49:10 -04:00
ipv4 ping: Check return value of function 'ping_queue_rcv_skb' 2021-06-30 08:49:20 -04:00
ipv6 udp: fix race between close() and udp_abort() 2021-06-30 08:49:13 -04:00
ipx ipx: call ipxitf_put() in ioctl error path 2017-05-25 15:44:41 +02:00
irda irda: Only insert new objects into the global database via setsockopt 2018-09-15 09:43:01 +02:00
iucv net/af_iucv: set correct sk_protocol for child sockets 2020-12-11 13:37:56 +01:00
kcm kcm: switch order of device registration to fix a crash 2019-04-17 08:36:44 +02:00
key af_key: relax availability checks for skb size calculation 2021-02-23 13:59:14 +01:00
l2tp l2tp: fix races with ipv4-mapped ipv6 addresses 2021-01-09 13:35:49 +01:00
l3mdev net: ipv6: Remove l3mdev_get_saddr6 2016-09-10 23:12:53 -07:00
lapb net: lapb: Copy the skb before sending a packet 2021-02-10 09:09:25 +01:00
llc llc: make sure applications use ARPHRD_ETHER 2020-07-22 09:10:47 +02:00
mac80211 mac80211: drop multicast fragments 2021-06-30 08:49:20 -04:00
mac802154 net: mac802154: Fix general protection fault 2021-04-16 11:59:10 +02:00
mpls net: avoid infinite loop in mpls_gso_segment when mpls_hlen == 0 2021-03-17 16:10:13 +01:00
ncsi net/ncsi: Use real net-device for response handler 2021-01-12 19:49:01 +01:00
netfilter netfilter: nft_exthdr: check for IPv6 packet before further processing 2021-07-20 16:21:02 +02:00
netlabel netlabel: Fix memory leak in netlbl_mgmt_add_common 2021-07-20 16:21:02 +02:00
netlink netlink: disable IRQs for netlink_lock_table() 2021-06-16 11:36:33 +02:00
netrom net: netrom: Fix potential nr_neigh refcnt leak in nr_add_node 2020-05-02 17:23:08 +02:00
nfc net/nfc/rawsock.c: fix a permission check bug 2021-06-16 11:36:32 +02:00
openvswitch openvswitch: fix stack OOB read while fragmenting IPv4 packets 2021-05-22 10:40:19 +02:00
packet net/packet: annotate accesses to po->ifindex 2021-06-30 08:49:20 -04:00
phonet phonet: fix building with clang 2019-03-23 13:19:44 +01:00
qrtr net: qrtr: fix a kernel-infoleak in qrtr_recvmsg() 2021-03-30 14:41:42 +02:00
rds net: rds: fix memory leak in rds_recvmsg 2021-06-30 08:49:13 -04:00
rfkill rfkill: Fix incorrect check to avoid NULL pointer dereference 2020-01-12 11:24:23 +01:00
rose rose: Fix Null pointer dereference in rose_send_frame() 2020-12-11 13:37:56 +01:00
rxrpc rxrpc: Fix handling of an unsupported token type in rxrpc_read() 2021-01-23 15:38:19 +01:00
sched net: sched: fix warning in tcindex_alloc_perfect_hash 2021-07-20 16:21:03 +02:00
sctp sctp: fix a SCTP_MIB_CURRESTAB leak in sctp_sf_do_dupcook_b 2021-05-22 10:40:31 +02:00
strparser strparser: Fix incorrect strp->need_bytes value. 2018-04-29 11:32:02 +02:00
sunrpc SUNRPC: Should wake up the privileged task firstly. 2021-07-20 16:20:57 +02:00
switchdev switchdev: Execute bridge ndos only for bridge ports 2016-10-19 10:58:04 -04:00
tipc tipc: skb_linearize the head skb when reassembling msgs 2021-06-03 08:23:30 +02:00
unix net/af_unix: fix a data-race in unix_dgram_sendmsg / unix_release_sock 2021-06-30 08:49:15 -04:00
vmw_vsock vsock/vmci: log once the failed queue pair allocation 2021-05-22 10:40:28 +02:00
wimax
wireless cfg80211: call cfg80211_leave_ocb when switching away from OCB 2021-06-30 08:49:20 -04:00
x25 net/x25: Return the correct errno code 2021-06-30 08:49:12 -04:00
xfrm xfrm: Fix oops in xfrm_replay_advance_bmp 2021-02-03 23:19:51 +01:00
compat.c net: Return the correct errno code 2021-06-30 08:49:12 -04:00
Kconfig
Makefile
socket.c net: Set fput_needed iff FDPUT_FPUT is set 2020-08-21 11:02:04 +02:00
sysctl_net.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2016-10-06 09:52:23 -07:00