https://github.com/torvalds/linux
Revision 99e72a0fed07d118d329f3046ad2ec2ae9357d63 authored by Tobias Klauser on 24 June 2014, 13:33:22 UTC, committed by David S. Miller on 25 June 2014, 23:40:02 UTC
Use kcalloc/kmalloc_array to make it clear we're allocating arrays. No
integer overflow can actually happen here, since len/flen is guaranteed
to be less than BPF_MAXINSNS (4096). However, this changed makes sure
we're not going to get one if BPF_MAXINSNS were ever increased.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 677a9fd
History
Tip revision: 99e72a0fed07d118d329f3046ad2ec2ae9357d63 authored by Tobias Klauser on 24 June 2014, 13:33:22 UTC
net: filter: Use kcalloc/kmalloc_array to allocate arrays
Tip revision: 99e72a0
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.6 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 274.8 KB
Makefile -rw-r--r-- 50.8 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top