Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151118364
D13725.id37367.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
910 B
Referenced Files
None
Subscribers
None
D13725.id37367.diff
View Options
Index: sys/amd64/amd64/trap.c
===================================================================
--- sys/amd64/amd64/trap.c
+++ sys/amd64/amd64/trap.c
@@ -660,7 +660,7 @@
* Don't allow user-mode faults in kernel address space.
*/
if (usermode)
- goto nogo;
+ return (SIGSEGV);
map = kernel_map;
} else {
@@ -715,7 +715,6 @@
#endif
return (0);
}
-nogo:
if (!usermode) {
if (td->td_intr_nesting_level == 0 &&
curpcb->pcb_onfault != NULL) {
Index: sys/i386/i386/trap.c
===================================================================
--- sys/i386/i386/trap.c
+++ sys/i386/i386/trap.c
@@ -805,7 +805,7 @@
return (-2);
#endif
if (usermode)
- goto nogo;
+ return (SIGSEGV);
map = kernel_map;
} else {
@@ -862,7 +862,6 @@
#endif
return (0);
}
-nogo:
if (!usermode) {
if (td->td_intr_nesting_level == 0 &&
curpcb->pcb_onfault != NULL) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 7, 5:07 AM (9 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31012471
Default Alt Text
D13725.id37367.diff (910 B)
Attached To
Mode
D13725: Avoid re-check of usermode condition.
Attached
Detach File
Event Timeline
Log In to Comment