aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/kernel/softirq.c
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2014-01-27 17:07:13 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-27 21:02:40 -0800
commita19428e5c3f4f39c302cb97b847dfd23613145c1 (patch)
treeef2341c5034451ae55e5c0ca0a727a4455ec6c44 /kernel/softirq.c
parentsplice: fix unexpected size truncation (diff)
downloadwireguard-linux-a19428e5c3f4f39c302cb97b847dfd23613145c1.tar.xz
wireguard-linux-a19428e5c3f4f39c302cb97b847dfd23613145c1.zip
kernel/kexec.c: use vscnprintf() instead of vsnprintf() in vmcoreinfo_append_str()
vsnprintf() may let 'r' larger than sizeof(buf), in this case, if 'r' is also less than "vmcoreinfo_max_size - vmcoreinfo_size" (left size of destination buffer), next memcpy() will read the unexpected addresses. Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/softirq.c')
0 files changed, 0 insertions, 0 deletions