Message ID | 20190523015708.20395-1-dja@axtens.net |
---|---|
State | Superseded |
Headers | show |
Series | powerpc: pseries/hvconsole: fix stack overread | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | Successfully applied on branch next (8150a153c013aa2dd1ffae43370b89ac1347a7fb) |
snowpatch_ozlabs/build-ppc64le | fail | Test build-ppc64le on branch next |
snowpatch_ozlabs/build-ppc64be | fail | Test build-ppc64be on branch next |
snowpatch_ozlabs/build-ppc64e | fail | Test build-ppc64e on branch next |
snowpatch_ozlabs/build-pmac32 | fail | Test build-pmac32 on branch next |
snowpatch_ozlabs/checkpatch | fail | Test checkpatch on branch next |
snowpatch_ozlabs/apply_patch | success | Successfully applied on branch next (8150a153c013aa2dd1ffae43370b89ac1347a7fb) |
snowpatch_ozlabs/build-ppc64le | success | Build succeeded |
snowpatch_ozlabs/build-ppc64be | success | Build succeeded |
snowpatch_ozlabs/build-ppc64e | success | Build succeeded |
snowpatch_ozlabs/build-pmac32 | success | Build succeeded |
snowpatch_ozlabs/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 11 lines checked |
diff --git a/arch/powerpc/platforms/pseries/hvconsole.c b/arch/powerpc/platforms/pseries/hvconsole.c index 74da18de853a..c39907b635eb 100644 --- a/arch/powerpc/platforms/pseries/hvconsole.c +++ b/arch/powerpc/platforms/pseries/hvconsole.c @@ -67,9 +67,10 @@ EXPORT_SYMBOL(hvc_get_chars); */ int hvc_put_chars(uint32_t vtermno, const char *buf, int count) { - unsigned long *lbuf = (unsigned long *) buf; + unsigned long lbuf[2]; long ret; + memcpy(lbuf, buf, count); /* hcall will ret H_PARAMETER if 'count' exceeds firmware max.*/ if (count > MAX_VIO_PUT_CHARS)