Alan Cox
ad9798967d
6pack: fix buffer length mishandling
...
Dmitry Vyukov wrote:
> different runs). Looking at code, the following looks suspicious -- we
> limit copy by 512 bytes, but use the original count which can be
> larger than 512:
>
> static void sixpack_receive_buf(struct tty_struct *tty,
> const unsigned char *cp, char *fp, int count)
> {
> unsigned char buf[512];
> ....
> memcpy(buf, cp, count < sizeof(buf) ? count : sizeof(buf));
> ....
> sixpack_decode(sp, buf, count1);
With the sane tty locking we now have I believe the following is safe as
we consume the bytes and move them into the decoded buffer before
returning.
Signed-off-by: Alan Cox <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2016-09-20 22:51:30 -04:00
..
appletalk
arcnet
bonding
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2016-09-12 15:52:44 -07:00
caif
can
cris
dsa
net-next: dsa: qca8k: remove empty set_addr() stub
2016-09-20 04:47:44 -04:00
ethernet
mlx4: add missed recycle opportunity for XDP_TX on TX failure
2016-09-20 04:58:17 -04:00
fddi
fjes
hamradio
6pack: fix buffer length mishandling
2016-09-20 22:51:30 -04:00
hippi
hyperv
Revert "hv_netvsc: make inline functions static"
2016-09-10 21:23:00 -07:00
ieee802154
ipvlan
ipvlan: Introduce l3s mode
2016-09-19 01:25:22 -04:00
irda
phy
net: phy: Add MAC-IF driver for Microsemi PHYs.
2016-09-20 04:39:23 -04:00
plip
ppp
ppp: declare PPP devices as LLTX
2016-08-31 14:33:09 -07:00
slip
team
team: loadbalance: push lacpdus to exact delivery
2016-08-26 13:08:59 -07:00
usb
kaweth: remove obsolete debugging statements
2016-09-07 17:45:31 -07:00
vmxnet3
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2016-08-30 00:54:02 -04:00
wan
net: wan: sbni: Spelling s/acknoweledge/acknowledge/, Grammar
2016-08-31 09:26:30 -07:00
wimax
wireless
This time we have various things - all across the board:
2016-09-18 22:29:08 -04:00
xen-netback
xen-netback: using kfree_rcu() to simplify the code
2016-08-23 17:00:26 -07:00
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
ipvlan: Introduce l3s mode
2016-09-19 01:25:22 -04:00
LICENSE.SRC
loopback.c
macsec.c
macsec: set network devtype
2016-09-09 16:52:43 -07:00
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tun.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2016-08-30 00:54:02 -04:00
veth.c
net: veth: Set features for MPLS
2016-08-30 22:27:18 -07:00
virtio_net.c
vrf.c
net: vrf: Remove RT_FL_TOS
2016-09-17 10:05:05 -04:00
vxlan.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2016-09-12 15:52:44 -07:00
xen-netfront.c
xen-netfront: avoid packet loss when ethernet header crosses page boundary
2016-09-20 04:40:41 -04:00