Module Name: src
Committed By: simonb
Date: Sat Apr 3 11:19:11 UTC 2021
Modified Files:
src/sys/kern: kern_sig.c
Log Message:
CTASSERT that NSIG <= 128. There are many hard-coded assumptions that
there are <= 4 x 32bit signal mask bits.
To generate a diff of this commit:
cvs rdiff -u -r1.396 -r1.397 src/sys/kern/kern_sig.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/kern_sig.c
diff -u src/sys/kern/kern_sig.c:1.396 src/sys/kern/kern_sig.c:1.397
--- src/sys/kern/kern_sig.c:1.396 Mon Jan 11 17:18:51 2021
+++ src/sys/kern/kern_sig.c Sat Apr 3 11:19:11 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_sig.c,v 1.396 2021/01/11 17:18:51 skrll Exp $ */
+/* $NetBSD: kern_sig.c,v 1.397 2021/04/03 11:19:11 simonb Exp $ */
/*-
* Copyright (c) 2006, 2007, 2008, 2019 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.396 2021/01/11 17:18:51 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.397 2021/04/03 11:19:11 simonb Exp $");
#include "opt_execfmt.h"
#include "opt_ptrace.h"
@@ -110,6 +110,9 @@ __KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v
#include <uvm/uvm_extern.h>
+/* Many hard-coded assumptions that there are <= 4 x 32bit signal mask bits */
+__CTASSERT(NSIG <= 128);
+
#define SIGQUEUE_MAX 32
static pool_cache_t sigacts_cache __read_mostly;
static pool_cache_t ksiginfo_cache __read_mostly;