artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db6423e
)
During coredumps only a single thread should be active, check this
author
claudio
<claudio@openbsd.org>
Thu, 12 May 2022 16:29:58 +0000
(16:29 +0000)
committer
claudio
<claudio@openbsd.org>
Thu, 12 May 2022 16:29:58 +0000
(16:29 +0000)
by checking that it is a single threaded process or that ps_single is set.
OK mpi@
sys/kern/exec_elf.c
patch
|
blob
|
history
diff --git
a/sys/kern/exec_elf.c
b/sys/kern/exec_elf.c
index
567a252
..
da29b0f
100644
(file)
--- a/
sys/kern/exec_elf.c
+++ b/
sys/kern/exec_elf.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: exec_elf.c,v 1.16
5 2021/12/09 00:26:10 guenther Exp $
*/
+/* $OpenBSD: exec_elf.c,v 1.16
6 2022/05/12 16:29:58 claudio Exp $
*/
/*
* Copyright (c) 1996 Per Fogelstrom
@@
-1165,6
+1165,7
@@
coredump_notes_elf(struct proc *p, void *iocookie, size_t *sizep)
size_t size, notesize;
int error;
+ KASSERT(!P_HASSIBLING(p) || pr->ps_single != NULL);
size = 0;
/* First, write an elfcore_procinfo. */