artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23f5897
)
If ld.so loading fails inside execve, uprintf a message to report this
author
deraadt
<deraadt@openbsd.org>
Mon, 29 Aug 2022 16:53:46 +0000
(16:53 +0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 29 Aug 2022 16:53:46 +0000
(16:53 +0000)
before the SIGABRT kills the process. This clarifies the failure mode
(and resolution to take) when a dynamic executable is run while /usr
isn't mounted. ok miod kettenis
sys/kern/exec_elf.c
patch
|
blob
|
history
diff --git
a/sys/kern/exec_elf.c
b/sys/kern/exec_elf.c
index
10a0345
..
a27dac2
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
7 2022/08/14 01:58:27 jsg Exp $
*/
+/* $OpenBSD: exec_elf.c,v 1.16
8 2022/08/29 16:53:46 deraadt Exp $
*/
/*
* Copyright (c) 1996 Per Fogelstrom
@@
-738,6
+738,7
@@
exec_elf_fixup(struct proc *p, struct exec_package *epp)
if (interp &&
(error = elf_load_file(p, interp, epp, ap)) != 0) {
+ uprintf("execve: cannot load %s\n", interp);
free(ap, M_TEMP, sizeof *ap);
pool_put(&namei_pool, interp);
kill_vmcmds(&epp->ep_vmcmds);