syzbot


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

Status: upstream: reported on 2022/11/10 22:10
Reported-by: syzbot+8eba244a293b9b0a46a3@syzkaller.appspotmail.com
First crash: 207d, last: 6d23h
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd kernel: protection fault trap, code=NUM (3) 1 441d 441d 0/3 closed as invalid on 2022/03/22 11:48
openbsd kernel: protection fault trap, code=NUM (5) 2 281d 282d 0/3 closed as dup on 2022/08/29 15:02
openbsd kernel: protection fault trap, code=NUM (2) C 16 523d 546d 0/3 closed as invalid on 2021/12/31 06:19
openbsd kernel: protection fault trap, code=NUM 1 626d 626d 0/3 closed as invalid on 2021/09/18 05:58
openbsd kernel: protection fault trap, code=NUM (4) 1 404d 404d 0/3 closed as invalid on 2022/04/28 06:52

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 10210   6410K    6419K  78643K     11323        0
            pcb    13     12K      14K  78643K        17        0
         rtable   220      6K       7K  78643K       911        0
         ifaddr    67     23K      24K  78643K       113        0
         sysctl     2      0K       0K  78643K         2        0
       counters    58     35K      35K  78643K        72        0
       ioctlops     0      0K       2K  78643K       119        0
            iov     0      0K      32K  78643K      1387        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         4        0
         vnodes  1278     80K      80K  78643K      2816        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K        47        0
         VM map     2      1K       1K  78643K         2        0
            sem    12      0K       0K  78643K      1524        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1697    195K     286K  78643K     12548        0
      file desc    18     65K     125K  78643K      5611        0
          sigio     0      0K       0K  78643K       135        0
           proc    56     78K     103K  78643K       933        0
        subproc    91      5K       6K  78643K       182        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K       615        0
       in_multi    88      5K       7K  78643K       229        0
    ether_multi     1      0K       0K  78643K        18        0
            mrt     2      0K       0K  78643K         2        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys   271   1208K    1208K  78643K       271        0
           exec     0      0K       1K  78643K      1179        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     8     62K      64K  78643K        10        0
       UVM amap   372     85K     107K  78643K     58370        0
       UVM aobj   131      6K       6K  78643K       132        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K       220        0
            NDP    10      0K       2K  78643K        45        0
           temp   116   5865K    5990K  78643K     17382        0
         kqueue    12     18K      27K  78643K       491        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      586    0      583    11    10     1     3     0     8    0
rtentry    112      185    0       82     4     0     4     4     0     8    0
unpcb      144     5310    0     5296    43    37     6     6     0     8    5
syncache   296       63    0       63    11    10     1     1     0     8    1
tcpqe       32      184    0      184     9     8     1     1     0     8    1
tcpcb      776     6959    0     6951    77    69     8    19     0     8    6
arp        120       32    0       16     1     0     1     1     0     8    0
ipq         40        5    0        4     3     2     1     1     0     8    0
ipqe        40       23    0       22     3     2     1     1     0     8    0
inpcb      368     9061    0     9050    76    68     8    18     0     8    5
ip6q        72        3    0        3     1     1     0     1     0     8    0
ip6af       40        9    0        9     1     1     0     1     0     8    0
nd6        136       48    0       23     1     0     1     1     0     8    0
kcovpl      48       14    0        7     1     0     1     1     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      735    0      317    29     0    29    29     0     8    2
art_table   32      736    0      317     4     0     4     4     0     8    0
art_node    16      184    0       90     1     0     1     1     0     8    0
sysvmsgpl   40       16    0        4     1     0     1     1     0     8    0
semapl     112     1522    0     1512     1     0     1     1     0     8    0
shmpl      112      129    0        1     4     0     4     4     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     9188    0     7744    91     0    91    91     0     8    0
ffsino     272     9188    0     7744    97     0    97    97     0     8    0
nchpl      144    16820    0    15185    63     0    63    63     0     8    0
uvmvnodes   80     5926    0        0   121     0   121   121     0     8    0
vnodes     216     5926    0        0   330     0   330   330     0     8    0
namei      1024   56775    0    56774     2     1     1     2     0     8    0
percpumem   16       49    0        7     1     0     1     1     0     8    0
kstatmem   264       34    0       14     2     0     2     2     0     8    0
scxspl     216    52020    0    52020    20    19     1     8     0     8    1
plimitpl   152     1319    0     1298    12    10     2     2     0     8    1
sigapl     424     5894    0     5847     7     0     7     7     0     8    0
futexpl     64    54244    0    54244     3     2     1     1     0     8    1
knotepl    120      447    0        0    11     0    11    11     0     8    0
kqueuepl   216     1215    0     1207    19    18     1     5     0     8    0
pipepl     320     1470    0     1445    21    18     3    11     0     8    0
fdescpl    496     5876    0     5847     7     1     6     6     0     8    0
filepl     152    43388    0    43168    65    50    15    19     0     8    5
lockfpl    104      702    0      700     1     0     1     1     0     8    0
lockfspl    48      189    0      187     1     0     1     1     0     8    0
sessionpl  144       29    0       14     1     0     1     1     0     8    0
pgrppl      48      118    0      103     1     0     1     1     0     8    0
ucredpl    104     7740    0     7723     1     0     1     1     0     8    0
zombiepl   144     5847    0     5847     1     0     1     1     0     8    1
processpl  1072    5894    0     5847     5     1     4     5     0     8    0
procpl     696    16296    0    16231    14     6     8     9     0     8    0
sosppl     168       69    0       69    10     9     1     1     0     8    1
sockpl     488    15216    0    15188   236   223    13    34     0     8    8
mcl64k     65536     25    0        0     4     1     3     3     0     8    0
mcl16k     16384     17    0        0     3     0     3     3     0     8    0
mcl12k     12288     17    0        0     2     0     2     2     0     8    0
mcl9k      9216       7    0        0     1     0     1     1     0     8    0
mcl8k      8192      17    0        0     3     0     3     3     0     8    0
mcl4k      4096      25    0        0     3     0     3     3     0     8    0
mcl2k2     2112       6    0        0     1     0     1     1     0     8    0
mcl2k      2048     409    0        0    51     4    47    51     0     8    0
mtagpl      96        3    0        0     1     0     1     1     0     8    0
mbufpl     256     1063    0        0    63     0    63    63     0     8    0
bufpl      288    14274    0     7959   452     0   452   452     0     8    0
anonpl      24   713864    0   703068   152    41   111   113     0   186    6
amapchunkpl 152  194440    0   193623    90    41    49    51     0   158   11
amappl16   200    15936    0    15555    65    42    23    33     0     8    0
amappl15   192       14    0       14     4     3     1     1     0     8    1
amappl14   184      171    0      159     2     1     1     2     0     8    0
amappl13   176       14    0       14     3     3     0     1     0     8    0
amappl12   168     6597    0     6566     2     0     2     2     0     8    0
amappl11   160       56    0       46     1     0     1     1     0     8    0
amappl10   152       33    0       23     1     0     1     1     0     8    0
amappl9    144      236    0      234     2     1     1     2     0     8    0
amappl8    136      389    0      287     4     0     4     4     0     8    0
amappl7    128       82    0       63     1     0     1     1     0     8    0
amappl6    120      367    0      346     2     1     1     2     0     8    0
amappl5    112      272    0      264     1     0     1     1     0     8    0
amappl4    104      807    0      768     2     0     2     2     0     8    0
amappl3     96    36276    0    36197     7     4     3     4     0     8    0
amappl2     88     6403    0     6336     4     2     2     3     0     8    0
amappl1     80    29084    0    28585    22     9    13    22     0     8    1
amappl      88    57613    0    57388     7     0     7     7     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      131    0        1     3     0     3     3     0     8    0
uaddrrnd    24     5876    0     5847     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     5876    0     5847     1     0     1     1     0     8    0
vmmpekpl   168    50638    0    50582     3     0     3     3     0     8    0
vmmpepl    168   360081    0   357794   178    60   118   140     0   357    0
vmsppl     464     5875    0     5847     7     1     6     6     0     8    0
rwobjpl     56   101034    0    93592   117     8   109   110     0     8    0
pdppl      4096   11760    0    11694   232   150    82    96     0     8   16
pvpl        32  1866448    0  1850383   412   192   220   335     0   265   42
pmappl     248     5875    0     5847     4     1     3     3     0     8    0
extentpl    40       56    0       38     1     0     1     1     0     8    0
phpool     112     1113    0      226    26     0    26    26     0     8    0
ddb{1}> machine ddbcpu 0
Stopped at      x86_ipi_db+0x1e:        addq    $0x8,%rsp
x86_ipi_db(ffffffff82c29ff0) at x86_ipi_db+0x1e 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
alltraps_kern_meltdown() at alltraps_kern_meltdown+0x68
savectx() at savectx+0xae
end of kernel
end trace frame: 0x7c7dbb7c5060, count: 10
ddb{0}> trace
x86_ipi_db(ffffffff82c29ff0) at x86_ipi_db+0x1e 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
alltraps_kern_meltdown() at alltraps_kern_meltdown+0x68
savectx() at savectx+0xae
end of kernel
end trace frame: 0x7c7dbb7c5060, count: -5
ddb{0}> machine ddbcpu 1
Stopped at      db_enter+0x1c:  addq    $0x8,%rsp
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82784648) at panic+0x17b sys/kern/subr_prf.c:198
vop_generic_badop(ffff80002957f318) at vop_generic_badop+0x1f sys/kern/vfs_default.c:133
VOP_STRATEGY(fffffd805b724060,fffffd8070704d98) at VOP_STRATEGY+0x9f sys/kern/vfs_vops.c:628
bwrite(fffffd8070704d98) at bwrite+0x1f4 sys/kern/vfs_bio.c:760
VOP_BWRITE(fffffd8070704d98) at VOP_BWRITE+0x4e sys/kern/vfs_vops.c:640
ufs_mkdir(ffff80002957f5b0) at ufs_mkdir+0x6c4 sys/ufs/ufs/ufs_vnops.c:1235
VOP_MKDIR(fffffd8068f478b0,ffff80002957f710,ffff80002957f740,ffff80002957f640) at VOP_MKDIR+0xc3 sys/kern/vfs_vops.c:388
domkdirat(ffff800021221070,ffffff9c,7062745e8c50,1ff) at domkdirat+0x125 sys/kern/vfs_syscalls.c:3074
syscall(ffff80002957f8c0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
syscall(ffff80002957f8c0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:632
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7062745e8cc0, count: 4
ddb{1}> trace
db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82784648) at panic+0x17b sys/kern/subr_prf.c:198
vop_generic_badop(ffff80002957f318) at vop_generic_badop+0x1f sys/kern/vfs_default.c:133
VOP_STRATEGY(fffffd805b724060,fffffd8070704d98) at VOP_STRATEGY+0x9f sys/kern/vfs_vops.c:628
bwrite(fffffd8070704d98) at bwrite+0x1f4 sys/kern/vfs_bio.c:760
VOP_BWRITE(fffffd8070704d98) at VOP_BWRITE+0x4e sys/kern/vfs_vops.c:640
ufs_mkdir(ffff80002957f5b0) at ufs_mkdir+0x6c4 sys/ufs/ufs/ufs_vnops.c:1235
VOP_MKDIR(fffffd8068f478b0,ffff80002957f710,ffff80002957f740,ffff80002957f640) at VOP_MKDIR+0xc3 sys/kern/vfs_vops.c:388
domkdirat(ffff800021221070,ffffff9c,7062745e8c50,1ff) at domkdirat+0x125 sys/kern/vfs_syscalls.c:3074
syscall(ffff80002957f8c0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
syscall(ffff80002957f8c0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:632
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7062745e8cc0, count: -11

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Manager Title
2023/05/30 21:12 openbsd 08ac1330e795 09898419 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid kernel: protection fault trap, code=NUM
2023/05/29 12:50 openbsd 83af2fa26020 cf184559 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid kernel: protection fault trap, code=NUM
2023/04/22 08:52 openbsd 1e5b016c5082 2b32bd34 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid kernel: protection fault trap, code=NUM
2023/04/21 13:44 openbsd 1e5b016c5082 2b32bd34 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid kernel: protection fault trap, code=NUM
2023/03/12 08:21 openbsd 1e5b016c5082 5205ef30 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid kernel: protection fault trap, code=NUM
2023/02/22 07:41 openbsd 1e5b016c5082 42a4d508 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid kernel: protection fault trap, code=NUM
2023/02/20 08:06 openbsd 1e5b016c5082 bcdf85f8 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid kernel: protection fault trap, code=NUM
2023/02/09 21:41 openbsd 0b18df416c37 07980f9d .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid kernel: protection fault trap, code=NUM
2023/02/06 18:34 openbsd 6c1aad9dfe4c 0a9c11b6 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid kernel: protection fault trap, code=NUM
2023/02/02 05:58 openbsd b6a2b665f44a 16d19e30 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid kernel: protection fault trap, code=NUM
2023/01/17 13:40 openbsd c6918e3c7e44 aedf5331 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid kernel: protection fault trap, code=NUM
2022/12/22 12:41 openbsd 6a5148d0c915 c692fab1 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid kernel: protection fault trap, code=NUM
2022/11/10 22:09 openbsd f799f30eb9db 3ead01ad .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid kernel: protection fault trap, code=NUM
* Struck through repros no longer work on HEAD.