Module Name: src
Committed By: uwe
Date: Sun Oct 22 03:29:23 UTC 2017
Modified Files:
src/sys/arch/sh3/sh3: exception.c
Log Message:
tlb_exception - set ksi_addr to va also when a userland page is not found.
Helps SIGSEGV handlers for PROT_NONE red zones.
To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/arch/sh3/sh3/exception.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/arch/sh3/sh3/exception.c
diff -u src/sys/arch/sh3/sh3/exception.c:1.65 src/sys/arch/sh3/sh3/exception.c:1.66
--- src/sys/arch/sh3/sh3/exception.c:1.65 Tue Jun 20 23:20:01 2017
+++ src/sys/arch/sh3/sh3/exception.c Sun Oct 22 03:29:23 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: exception.c,v 1.65 2017/06/20 23:20:01 uwe Exp $ */
+/* $NetBSD: exception.c,v 1.66 2017/10/22 03:29:23 uwe Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc. All rights reserved.
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exception.c,v 1.65 2017/06/20 23:20:01 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exception.c,v 1.66 2017/10/22 03:29:23 uwe Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -417,6 +417,8 @@ tlb_exception(struct lwp *l, struct trap
/* Page not found. */
if (usermode) {
KSI_INIT_TRAP(&ksi);
+ ksi.ksi_addr = (void *)va;
+
switch (err) {
case ENOMEM:
ksi.ksi_signo = SIGKILL;