Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64/amd64 Explicitly align to 8 bytes, found by k...



details:   https://anonhg.NetBSD.org/src/rev/7720d573bdb2
branches:  trunk
changeset: 932153:7720d573bdb2
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri May 01 07:03:02 2020 +0000

description:
Explicitly align to 8 bytes, found by kUBSan.

Reported-by: syzbot+f1e1561ed739db869d44%syzkaller.appspotmail.com@localhost

diffstat:

 sys/arch/amd64/amd64/vector.S |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 296464cd2533 -r 7720d573bdb2 sys/arch/amd64/amd64/vector.S
--- a/sys/arch/amd64/amd64/vector.S     Fri May 01 05:45:57 2020 +0000
+++ b/sys/arch/amd64/amd64/vector.S     Fri May 01 07:03:02 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vector.S,v 1.75 2020/04/27 16:55:50 bouyer Exp $       */
+/*     $NetBSD: vector.S,v 1.76 2020/05/01 07:03:02 maxv Exp $ */
 
 /*
  * Copyright (c) 1998, 2007, 2008 The NetBSD Foundation, Inc.
@@ -630,6 +630,7 @@
  */
 #define INTRSTUB_ARRAY_16(name)                ; \
        .type _C_LABEL(name ## _stubs), @object ; \
+       .align 8                                ; \
 LABEL(name ## _stubs)                          ; \
        INTRSTUB_ENTRY(name ## 0)               ; \
        INTRSTUB_ENTRY(name ## 1)               ; \
@@ -654,6 +655,7 @@
  */
 #define INTRSTUB_ARRAY_32(name)                ; \
        .type _C_LABEL(name ## _stubs), @object ; \
+       .align 8                                ; \
 LABEL(name ## _stubs)                          ; \
        INTRSTUB_ENTRY(name ## 0)               ; \
        INTRSTUB_ENTRY(name ## 1)               ; \
@@ -745,6 +747,7 @@
        .quad entry_xenev , _C_LABEL(Xrecurse_ ## name ## sir); \
        .quad _C_LABEL(Xresume_ ## name ## sir);
 
+       .align 8
 LABEL(xenev_stubs)
        XENINTRSTUB_ENTRY(xenev, SIR_XENIPL_VM) ;
        XENINTRSTUB_ENTRY(xenev, SIR_XENIPL_SCHED) ;



Home | Main Index | Thread Index | Old Index