On Fri, Nov 06, 2015 at 07:59:45PM +0100, Stefan Wollny wrote:
>
> With the patch I was able to use ktrace / kdump. The program crashes the
> system reliably. Here is the result:
>
Hi,
There is a typo in the previous patch. Could you try with this one ?
(you need the previous patch that have been commited)
Thanks for your feedback, but please include the kernel backtrace on
ni_pledge panic.
--
Sebastien Marie
Index: compat_util.c
===================================================================
RCS file: /cvs/src/sys/compat/common/compat_util.c,v
retrieving revision 1.17
diff -u -p -r1.17 compat_util.c
--- compat_util.c 5 Nov 2015 23:43:33 -0000 1.17
+++ compat_util.c 7 Nov 2015 07:37:48 -0000
@@ -129,7 +129,7 @@ emul_find(struct proc *p, caddr_t *sgp,
*/
/* XXX: prototype should have const here for NDINIT */
NDINIT(&ndroot, LOOKUP, FOLLOW, UIO_SYSSPACE, prefix, p);
- nd.ni_pledge = PLEDGE_EXEC;
+ ndroot.ni_pledge = PLEDGE_EXEC;
if ((error = namei(&ndroot)) != 0)
goto bad2;