Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Decorate check_label_magic() with __noubsan



details:   https://anonhg.NetBSD.org/src/rev/62eb616300c8
branches:  trunk
changeset: 460887:62eb616300c8
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu Nov 07 20:30:49 2019 +0000

description:
Decorate check_label_magic() with __noubsan

Requested by <christos>

diffstat:

 sys/kern/subr_disk_mbr.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r c86b89aa9160 -r 62eb616300c8 sys/kern/subr_disk_mbr.c
--- a/sys/kern/subr_disk_mbr.c  Thu Nov 07 19:45:18 2019 +0000
+++ b/sys/kern/subr_disk_mbr.c  Thu Nov 07 20:30:49 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_disk_mbr.c,v 1.54 2019/11/07 18:35:41 kamil Exp $ */
+/*     $NetBSD: subr_disk_mbr.c,v 1.55 2019/11/07 20:30:49 kamil Exp $ */
 
 /*
  * Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -54,7 +54,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_disk_mbr.c,v 1.54 2019/11/07 18:35:41 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_disk_mbr.c,v 1.55 2019/11/07 20:30:49 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -568,6 +568,7 @@
        return SCAN_CONTINUE;
 }
 
+__noubsan
 static bool
 check_label_magic(const struct disklabel *dlp, uint32_t diskmagic)
 {



Home | Main Index | Thread Index | Old Index