syzbot


kernel: protection fault trap, code=NUM (4)

Status: closed as invalid on 2022/04/28 06:52
Reported-by: syzbot+994bdaaab8af55601814@syzkaller.appspotmail.com
First crash: 756d, last: 756d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd kernel: protection fault trap, code=NUM (3) 1 793d 793d 0/3 closed as invalid on 2022/03/22 11:48
openbsd kernel: protection fault trap, code=NUM (5) 2 633d 633d 0/3 closed as dup on 2022/08/29 15:02
openbsd kernel: protection fault trap, code=NUM (2) C 16 874d 898d 0/3 closed as invalid on 2021/12/31 06:19
openbsd kernel: protection fault trap, code=NUM 1 978d 978d 0/3 closed as invalid on 2021/09/18 05:58
openbsd kernel: protection fault trap, code=NUM (6) 42 13d 559d 0/3 upstream: reported on 2022/11/10 22:10

Sample crash report:
exclusive kernel: protection fault trap, code=0
Faulted in DDB; continuing...
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 10185   6487K    6876K  78643K     16747        0
            pcb    13     14K      17K  78643K      2379        0
         rtable   226      7K       9K  78643K       584        0
         ifaddr    85     18K      19K  78643K       227        0
         sysctl     2      0K       0K  78643K         2        0
       counters    56     35K      35K  78643K       102        0
       ioctlops     0      0K       4K  78643K      2462        0
            iov     0      0K      16K  78643K       161        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         5        0
         vnodes  1336     83K      84K  78643K      3005        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K      13K  78643K       169        0
         VM map     2      1K       1K  78643K         2        0
            sem    12      1K       1K  78643K        20        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1697    195K     286K  78643K     12548        0
      file desc    14     49K      93K  78643K      5437        0
          sigio     0      0K       0K  78643K        14        0
           proc    70     91K     128K  78643K       677        0
        subproc   104      6K       6K  78643K       144        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K        46        0
       in_multi    91      6K       7K  78643K       171        0
    ether_multi     1      0K       0K  78643K         7        0
            mrt     0      0K       0K  78643K         1        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    73    334K     334K  78643K        73        0
           exec     0      0K       2K  78643K       831        0
            tdb     3      0K       0K  78643K         3        0
        pagedep     1      8K       8K  78643K         1        0
       inodedep     1     32K      32K  78643K         1        0
         newblk     1      0K       0K  78643K         1        0
        VM swap     7     26K      26K  78643K         7        0
       UVM amap   276    197K     215K  78643K     30495        0
       UVM aobj   131      4K       4K  78643K       141        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K        43        0
            NDP    12      0K       2K  78643K        61        0
           temp   129   4730K    4796K  78643K     22990        0
         kqueue    12     18K      26K  78643K       307        0
      SYN cache     2     16K      16K  78643K         2        0
ddb{1}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache    128       22    0        0     1     0     1     1     0     8    0
rtpcb      120      128    0      125     2     1     1     2     0     8    0
rtentry    112      166    0       62     4     0     4     4     0     8    0
unpcb      136     1527    0     1512    13    12     1     6     0     8    0
syncache   296       10    0       10     3     3     0     1     0     8    0
tcpqe       32      101    0      101     3     3     0     1     0     8    0
tcpcb      736     2654    0     2649    67    63     4    21     0     8    3
arp        120       24    0        6     1     0     1     1     0     8    0
inpcb      312     5617    0     5610    49    45     4    12     0     8    3
nd6         48       39    0       18     1     0     1     1     0     8    0
pkpcb       40        1    0        1     1     1     0     1     0     8    0
kcovpl      48       11    0        3     1     0     1     1     0     8    0
ppxss      1248       7    0        7     2     2     0     1     0     8    0
pfstscr     40        1    0        1     1     1     0     1     0     8    0
pffrag     232        7    0        7     2     2     0     1     0   482    0
pffrnode    88        7    0        7     2     2     0     1     0     8    0
pffrent     40       18    0       18     2     2     0     1     0     8    0
pfosfp      40     1428    0     1005     5     0     5     5     0     8    0
pfosfpen   112     1428    0      714    21     0    21    21     0     8    0
pfrktable  1344      21    0       21     1     1     0     1     0     8    0
pftag       88        3    0        2     1     0     1     1     0     8    0
pfstitem    24       21    0       19     1     0     1     1     0     8    0
pfstkey    112       23    0       21     1     0     1     1     0     8    0
pfstate    336       22    0       20     2     1     1     2     0     8    0
pfrule     1360      41    0       40     2     1     1     2     0     8    0
rttmrq      48        9    0        5     1     0     1     1     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      726    0      301    30     2    28    29     0     8    0
art_table   32      727    0      301     4     0     4     4     0     8    0
art_node    16      165    0       70     1     0     1     1     0     8    0
sysvmsgpl   40       47    0       39     2     1     1     1     0     8    0
semupl     112        7    0        7     1     1     0     1     0     8    0
semapl     112       10    0        0     1     0     1     1     0     8    0
shmpl      112      138    0       10     4     0     4     4     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     8598    0     7160    91     0    91    91     0     8    0
ffsino     272     8598    0     7160    97     0    97    97     0     8    0
nchpl      144    15062    0    13417    63     0    63    63     0     8    0
uvmvnodes   80     5926    0        0   121     0   121   121     0     8    0
vnodes     224     5926    0        0   349     0   349   349     0     8    0
namei      1024   43567    0    43566     2     1     1     2     0     8    0
percpumem   16       63    0       23     1     0     1     1     0     8    0
vcpupl     2048      40    0        2     5     0     5     5     0     8    0
vmpool     560       40    0        2     3     0     3     3     0     8    0
pfiaddrpl  120        7    0        7     1     1     0     1     0     8    0
kstatmem   264       70    0       46     2     0     2     2     0     8    0
scxspl     216    45417    0    45416    11    10     1     8     0     8    0
plimitpl   152      152    0      137     1     0     1     1     0     8    0
sigapl     424     5736    0     5692     6     0     6     6     0     8    0
futexpl     64    32788    0    32786     1     0     1     1     0     8    0
knotepl    120      354    0        0     8     0     8     8     0     8    0
kqueuepl   216      398    0      390     1     0     1     1     0     8    0
pipepl     336      456    0      428    14    11     3     8     0     8    0
fdescpl    496     5721    0     5694     5     0     5     5     0     8    0
filepl     152    21843    0    21602    38    27    11    18     0     8    1
lockfpl    104      377    0      375     2     1     1     2     0     8    0
lockfspl    48      111    0      109     1     0     1     1     0     8    0
sessionpl  144       27    0       10     1     0     1     1     0     8    0
pgrppl      48       31    0       14     1     0     1     1     0     8    0
ucredpl     96     1640    0     1628     1     0     1     1     0     8    0
zombiepl   144     5694    0     5692     1     0     1     1     0     8    0
processpl  1064    5736    0     5692     4     0     4     4     0     8    0
procpl     672    13580    0    13525     8     2     6     7     0     8    0
sosppl     168       33    0       33     5     5     0     1     0     8    0
sockpl     480     7340    0     7315    85    77     8    23     0     8    4
mcl64k     65536     17    0        0     3     0     3     3     0     8    0
mcl16k     16384      8    0        0     1     0     1     1     0     8    0
mcl12k     12288     10    0        0     1     0     1     1     0     8    0
mcl9k      9216       9    0        0     1     0     1     1     0     8    0
mcl8k      8192      17    0        0     3     0     3     3     0     8    0
mcl4k      4096      17    0        0     3     0     3     3     0     8    0
mcl2k2     2112       2    0        0     1     0     1     1     0     8    0
mcl2k      2048     160    0        0    19     0    19    19     0     8    0
mtagpl      96      401    0        0    10     0    10    10     0     8    0
mbufpl     256     3925    0        0   244     0   244   244     0     8    0
bufpl      288    10070    0     3737   453     0   453   453     0     8    0
anonpl      24   965304    0   950671   140    30   110   128     0   186    0
amapchunkpl 152   87059    0    86420    47    14    33    36     0   158    1
amappl16   200    11146    0    10604    37     7    30    30     0     8    0
amappl15   192     1372    0     1369     1     0     1     1     0     8    0
amappl14   184      104    0      101     1     0     1     1     0     8    0
amappl13   176      649    0      646     1     0     1     1     0     8    0
amappl12   168      665    0      661     2     1     1     1     0     8    0
amappl11   160     1458    0     1436     2     0     2     2     0     8    1
amappl10   152       84    0       79     1     0     1     1     0     8    0
amappl9    144     1162    0     1158     1     0     1     1     0     8    0
amappl8    136     1357    0     1287     3     0     3     3     0     8    0
amappl7    128      784    0      770     1     0     1     1     0     8    0
amappl6    120      902    0      885     2     1     1     2     0     8    0
amappl5    112     2831    0     2815     1     0     1     1     0     8    0
amappl4    104     3710    0     3683     2     0     2     2     0     8    0
amappl3     96    16779    0    16733     2     0     2     2     0     8    0
amappl2     88     7327    0     7260     3     1     2     3     0     8    0
amappl1     80   133573    0   132966    21     6    15    20     0     8    0
amappl      88    29947    0    29773     6     1     5     5     0    92    0
dma4096    4096       1    0        1     1     1     0     1     0     8    0
dma1024    1024       1    0        0     1     0     1     1     0     8    0
dma256     256        6    0        6     1     1     0     1     0     8    0
dma128     128      253    0      253     1     1     0     1     0     8    0
dma64       64        6    0        6     1     1     0     1     0     8    0
dma32       32        7    0        7     1     1     0     1     0     8    0
dma16       16       18    0       17     1     0     1     1     0     8    0
aobjpl      72      140    0       10     3     0     3     3     0     8    0
uaddrrnd    24     5761    0     5695     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     5761    0     5695     1     0     1     1     0     8    0
vmmpekpl   168    36366    0    36314     3     0     3     3     0     8    0
vmmpepl    168   534846    0   532343   156    30   126   140     0   357    5
vmsppl     368     5760    0     5695     8     1     7     7     0     8    0
rwobjpl     56   128939    0   121333   110     1   109   109     0     8    0
pdppl      4096   11529    0    11428   218   111   107   109     0     8    6
pvpl        32  2010149    0  1991306   305   101   204   244     0   265   22
pmappl     248     5760    0     5695     5     0     5     5     0     8    0
extentpl    40       58    0       38     1     0     1     1     0     8    0
phpool     112     1318    0      238    32     0    32    32     0     8    0
ddb{1}> machine ddbcpu 0
Stopped at      x86_ipi_db+0x1a:        addq    $0x8,%rsp
x86_ipi_db(ffffffff82960ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
x86_bus_space_io_write_1(3f8,0,75) at x86_bus_space_io_write_1+0x31 sys/arch/amd64/amd64/bus_space.c:759
comcnputc(800,75) at comcnputc+0x128 bus_space_barrier machine/bus.h:481 [inline]
comcnputc(800,75) at comcnputc+0x128 sys/dev/ic/com.c:1263
cnputc(75) at cnputc+0x4b sys/dev/cons.c:239
db_putchar(75) at db_putchar+0x3fc sys/ddb/db_output.c:155
kprintf() at kprintf+0x20ec sys/kern/subr_prf.c:1068
db_printf(ffffffff82613d0b) at db_printf+0x85 sys/kern/subr_prf.c:502
panic(ffffffff8259a4b4) at panic+0xd7 sys/kern/subr_prf.c:220
__assert(ffffffff8260cacb,ffffffff82582f8f,90,ffffffff8256bbbb) at __assert+0x25 sys/kern/subr_prf.c:161
uvm_pagealloc_pg(fffffd8007306940,fffffd80671dc9e8,3c7bca000,0) at uvm_pagealloc_pg+0x427 uvm_pageinsert sys/uvm/uvm_page.c:138 [inline]
uvm_pagealloc_pg(fffffd8007306940,fffffd80671dc9e8,3c7bca000,0) at uvm_pagealloc_pg+0x427 sys/uvm/uvm_page.c:710
uvm_pagealloc(fffffd80671dc9e8,3c7bca000,0,3) at uvm_pagealloc+0x1e8 sys/uvm/uvm_page.c:918
pmap_get_ptp(fffffd80671dc9b8,78f7959f000) at pmap_get_ptp+0x18d sys/arch/amd64/amd64/pmap.c:1183
end trace frame: 0xffff80002e35b2c0, count: 0
ddb{0}> trace
x86_ipi_db(ffffffff82960ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23
x86_bus_space_io_write_1(3f8,0,75) at x86_bus_space_io_write_1+0x31 sys/arch/amd64/amd64/bus_space.c:759
comcnputc(800,75) at comcnputc+0x128 bus_space_barrier machine/bus.h:481 [inline]
comcnputc(800,75) at comcnputc+0x128 sys/dev/ic/com.c:1263
cnputc(75) at cnputc+0x4b sys/dev/cons.c:239
db_putchar(75) at db_putchar+0x3fc sys/ddb/db_output.c:155
kprintf() at kprintf+0x20ec sys/kern/subr_prf.c:1068
db_printf(ffffffff82613d0b) at db_printf+0x85 sys/kern/subr_prf.c:502
panic(ffffffff8259a4b4) at panic+0xd7 sys/kern/subr_prf.c:220
__assert(ffffffff8260cacb,ffffffff82582f8f,90,ffffffff8256bbbb) at __assert+0x25 sys/kern/subr_prf.c:161
uvm_pagealloc_pg(fffffd8007306940,fffffd80671dc9e8,3c7bca000,0) at uvm_pagealloc_pg+0x427 uvm_pageinsert sys/uvm/uvm_page.c:138 [inline]
uvm_pagealloc_pg(fffffd8007306940,fffffd80671dc9e8,3c7bca000,0) at uvm_pagealloc_pg+0x427 sys/uvm/uvm_page.c:710
uvm_pagealloc(fffffd80671dc9e8,3c7bca000,0,3) at uvm_pagealloc+0x1e8 sys/uvm/uvm_page.c:918
pmap_get_ptp(fffffd80671dc9b8,78f7959f000) at pmap_get_ptp+0x18d sys/arch/amd64/amd64/pmap.c:1183
pmap_enter(fffffd80671dc9b8,78f7959f000,6584d000,3,22) at pmap_enter+0x2ac
uvm_fault_upper(ffff80002e35b460,ffff80002e35b498,ffff80002e35b360,0) at uvm_fault_upper+0x2b1 sys/uvm/uvm_fault.c:1047
uvm_fault(fffffd80688cc5c0,78f7959f000,0,2) at uvm_fault+0x164 sys/uvm/uvm_fault.c:610
upageflttrap(ffff80002e35b5d0,78f7959f2f8) at upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181
usertrap(ffff80002e35b5d0) at usertrap+0x1aa sys/arch/amd64/amd64/trap.c:403
recall_trap() at recall_trap+0x8
end of kernel
end trace frame: 0x7f7fffffb220, count: -20
ddb{0}> machine ddbcpu 1
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8259a4b4) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff8260cacb,ffffffff82614998,aae,ffffffff825c8d72) at __assert+0x25 sys/kern/subr_prf.c:161
uvm_map_teardown(fffffd80688cc000) at uvm_map_teardown+0x2e8 sys/uvm/uvm_map.c:2736
uvmspace_free(fffffd80688cc000) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685
reaper(ffff8000210f9a40) at reaper+0x19a sys/kern/kern_exit.c:454
end trace frame: 0x0, count: 9
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8259a4b4) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff8260cacb,ffffffff82614998,aae,ffffffff825c8d72) at __assert+0x25 sys/kern/subr_prf.c:161
uvm_map_teardown(fffffd80688cc000) at uvm_map_teardown+0x2e8 sys/uvm/uvm_map.c:2736
uvmspace_free(fffffd80688cc000) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3685
reaper(ffff8000210f9a40) at reaper+0x19a sys/kern/kern_exit.c:454
end trace frame: 0x0, count: -6

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/28 05:23 openbsd 259734c7096b 8a1f1f07 .config console log report ci-openbsd-multicore kernel: protection fault trap, code=NUM
* Struck through repros no longer work on HEAD.