The following diff ought to fix the problem, although there is no reason
it should have occurred in the first place.

Do the uvm_fault errors disappear if you `boot -c' and `disable ucc'? Or
if you `disable pckbd'?

Index: wskbdutil.c
===================================================================
RCS file: /OpenBSD/src/sys/dev/wscons/wskbdutil.c,v
retrieving revision 1.19
diff -u -p -r1.19 wskbdutil.c
--- wskbdutil.c 30 Dec 2021 06:55:11 -0000      1.19
+++ wskbdutil.c 2 Aug 2022 19:00:40 -0000
@@ -405,6 +405,8 @@ wskbd_load_keymap(const struct wskbd_map
        for (cur = layout & ~KB_HANDLEDBYWSKBD, stack_ptr = 0;
             cur != 0; stack_ptr++) {
                mp = mapdata->keydesc;
+               if (mp == NULL)
+                       return(EFAULT); /* XXX */
                while (mp->map_size > 0) {
                        if (cur == 0 || mp->name == cur) {
                                break;

Reply via email to