summaryrefslogtreecommitdiffstats
path: root/tools/net/bpf_exp.y
diff options
context:
space:
mode:
authorXiubo Li <lixiubo@cmss.chinamobile.com>2017-07-12 09:51:17 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2017-07-31 00:12:32 +0200
commitc542942cb42186f99b6d715a833c7afad359f48f (patch)
tree935be87483fc8dcd9029bae5cc61f322fe505121 /tools/net/bpf_exp.y
parentLinux 4.13-rc2 (diff)
downloadlinux-c542942cb42186f99b6d715a833c7afad359f48f.tar.xz
linux-c542942cb42186f99b6d715a833c7afad359f48f.zip
tcmu: Fix possible to/from address overflow when doing the memcpy
For most case the sg->length equals to PAGE_SIZE, so this bug won't be triggered. Otherwise this will crash the kernel, for example when all segments' sg->length equal to 1K. Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com> Reviewed-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'tools/net/bpf_exp.y')
0 files changed, 0 insertions, 0 deletions