syzbot


protection_fault: sys_msgrcv (2)

Status: upstream: reported C repro on 2022/10/13 01:20
Reported-by: syzbot+c80235d951da9769a00f@syzkaller.appspotmail.com
First crash: 549d, last: 54d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd protection_fault: sys_msgrcv 1 785d 785d 0/3 auto-closed as invalid on 2022/05/19 20:14
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/04/01 18:13 0m retest repro openbsd error OK
2024/04/01 18:13 0m retest repro openbsd error OK
2024/04/01 17:23 44m retest repro openbsd error OK
2024/03/18 17:15 18m retest repro openbsd OK log
2024/03/18 16:44 1m retest repro openbsd error OK
2024/02/19 23:35 41m retest repro openbsd report log
2024/02/19 23:08 10m retest repro openbsd error OK
2024/01/22 17:33 9m retest repro openbsd error OK
2024/01/22 17:24 9m retest repro openbsd error OK
2024/01/22 17:13 9m retest repro openbsd error OK

Sample crash report:
kernel: protection fault trap, code=0
Stopped at      sys_msgrcv+0x2df:       movq    0x10(%r13),%rdi
ddb{1}> 
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
the kernel did not panic
ddb{1}> trace
sys_msgrcv(ffff800021214af8,ffff80002125f770,ffff80002125f7c0) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline]
sys_msgrcv(ffff800021214af8,ffff80002125f770,ffff80002125f7c0) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349
syscall(ffff80002125f840) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
syscall(ffff80002125f840) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xb1e18f51950, count: -3
ddb{1}> show registers
rdi                            0x108
rsi                       0x20002708
rbp               0xffff80002125f760
rbx                            0x108
rdx               0xffff80002125a000
rcx                                0
rax                                0
r8                    0x7f7fffffc000
r9                               0x1
r10               0xa019f788cafc96b0
r11               0x1422459b5c4bf78a
r12               0xfffffd806ca1af50
r13               0xdead4110dead4110
r14               0xffff800000cd1000
r15                            0x108
rip               0xffffffff8125c52f    sys_msgrcv+0x2df
cs                               0x8
rflags                       0x10202    __ALIGN_SIZE+0xf202
rsp               0xffff80002125f6d0
ss                              0x10
sys_msgrcv+0x2df:       movq    0x10(%r13),%rdi
ddb{1}> show proc
PROC (syz-executor4141097575) pid=363089 stat=onproc
    flags process=0 proc=4000000<THREAD>
    pri=36, usrpri=50, nice=20
    forw=0xffffffffffffffff, list=0xffff8000212142d0,0xffff800021215330
    process=0xffff800021212e20 user=0xffff80002125a000, vmspace=0xfffffd806d5bd750
    estcpu=0, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 36694  475179   1616      0  7           0                syz-executor4141097575
*36694  363089   1616      0  7   0x4000000                syz-executor4141097575
 36694  130603   1616      0  2   0x4000000                syz-executor4141097575
 36694  512834   1616      0  2   0x4000000                syz-executor4141097575
 36694  445912   1616      0  2   0x4000000                syz-executor4141097575
  1616  269598  16282      0  3        0x82  nanoslp       syz-executor4141097575
 16282  238436  94750      0  3    0x10008a  sigsusp       ksh
 94750  502203  13434      0  3        0x9a  kqread        sshd
 37412  480183      1      0  3    0x100083  ttyin         getty
 13434  203926      1      0  3        0x88  kqread        sshd
  1399  349570  57915     74  3   0x1100092  bpf           pflogd
 57915  244289      1      0  3        0x80  netio         pflogd
 15417  123461  61370     73  3   0x1100090  kqread        syslogd
 61370  254664      1      0  3    0x100082  netio         syslogd
 38042  173365      1      0  3    0x100080  kqread        resolvd
 91430  419398  77478     77  3    0x100092  kqread        dhcpleased
 28336  297370  77478     77  3    0x100092  kqread        dhcpleased
 77478   60613      1      0  3        0x80  kqread        dhcpleased
 44488   76558      0      0  3     0x14200  bored         smr
 57210  254592      0      0  2     0x14200                zerothread
  8222  247921      0      0  3     0x14200  aiodoned      aiodoned
 49655  293843      0      0  3     0x14200  syncer        update
 86040  444243      0      0  3     0x14200  cleaner       cleaner
 56640  312969      0      0  3     0x14200  reaper        reaper
  3946    9699      0      0  3     0x14200  pgdaemon      pagedaemon
 68580   10991      0      0  3     0x14200  bored         viomb
 40875  472465      0      0  3  0x40014200  acpi0         acpi0
 71720  449863      0      0  3  0x40014200                idle1
 62947  198893      0      0  3     0x14200  bored         softnet3
  1983   67356      0      0  3     0x14200  bored         softnet2
 79467  303384      0      0  3     0x14200  bored         softnet1
  4728  436436      0      0  3     0x14200  bored         softnet0
 59688  221975      0      0  3     0x14200  bored         systqmp
 71398  141216      0      0  3     0x14200  bored         systq
 87014  235858      0      0  3  0x40014200  bored         softclock
 70124  183544      0      0  3  0x40014200                idle0
     1  391028      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 36694 (syz-executor4141097575) thread 0xffff800021214af8 (363089)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82cb5fd8)
#0  witness_lock+0x447
#1  __mp_acquire_count+0x48 sys/kern/kern_lock.c:227
#2  mi_switch+0x4c6 sys/kern/sched_bsd.c:470
#3  sleep_finish+0x19b sys/kern/kern_synch.c:414
#4  rw_enter+0x341 sys/kern/kern_rwlock.c:285
#5  uvmfault_lookup+0xd9 sys/uvm/uvm_fault.c:1773
#6  uvm_fault_check+0x3e sys/uvm/uvm_fault.c:673
#7  uvm_fault+0xf2 sys/uvm/uvm_fault.c:601
#8  kpageflttrap+0x252 sys/arch/amd64/amd64/trap.c:279
#9  kerntrap+0xf3 sys/arch/amd64/amd64/trap.c:332
#10 alltraps_kern_meltdown+0x7b
#11 copyout+0x57
#12 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
#12 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623
#13 Xsyscall+0x128
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 10162   6455K    6456K  78643K     11240        0
            pcb    13      8K       8K  78643K        13        0
         rtable    58      1K       2K  78643K       114        0
             pf    15      6K      10K  78643K        26        0
         ifaddr    13      9K       9K  78643K        13        0
        ifgroup    22      1K       1K  78643K        22        0
       counters    44     33K      33K  78643K        44        0
       ioctlops     0      0K       4K  78643K      1475        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         4        0
         vnodes  1176     74K      74K  78643K      1192        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       1K  78643K         2        0
         VM map     2      1K       1K  78643K         2        0
            sem     5      0K       0K  78643K         5        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1697    195K     286K  78643K     12548        0
      file desc     1      0K       0K  78643K         1        0
           proc    67     91K      91K  78643K       302        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
       in_multi    11      0K       0K  78643K        11        0
    ether_multi     1      0K       0K  78643K         1        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    25    122K     122K  78643K        25        0
           exec     0      0K       1K  78643K       269        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   112     12K      12K  78643K      2568        0
       UVM aobj     3      2K       2K  78643K         3        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
            NDP     4      0K       0K  78643K         4        0
           temp     4   5904K    5968K  78643K      3104        0
         kqueue    11     16K      18K  78643K        24        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       20    0       17     1     0     1     1     0     8    0
rtentry    112       23    0        1     1     0     1     1     0     8    0
unpcb      144       35    0       20     1     0     1     1     0     8    0
syncache   296        5    0        5     1     0     1     1     0     8    1
tcpqe       32      129    0      129     1     1     0     1     0     8    0
tcpcb      808        8    0        5     1     0     1     1     0     8    0
arp        120        2    0        0     1     0     1     1     0     8    0
inpcb      368       33    0       27     1     0     1     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
pfstitem    24        9    0        0     1     0     1     1     0     8    0
pfstkey    128        9    0        0     1     0     1     1     0     8    0
pfstate    376        9    0        0     1     0     1     1     0     8    0
pfrule     1344      21    0       16     2     1     1     2     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256       96    0        0     6     0     6     6     0     8    0
art_table   32       97    0        0     1     0     1     1     0     8    0
art_node    16       22    0        2     1     0     1     1     0     8    0
sysvmsgpl   40        6    0        6     1     0     1     1     0     8    1
semapl     112        3    0        0     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     1436    0       40    88     0    88    88     0     8    0
ffsino     272     1436    0       40    94     0    94    94     0     8    0
nchpl      144     1625    0       54    59     0    59    59     0     8    0
uvmvnodes   80     1450    0        0    30     0    30    30     0     8    0
vnodes     216     1450    0        0    81     0    81    81     0     8    0
namei      1024    4573    0     4573     1     0     1     1     0     8    1
percpumem   16       35    0        0     1     0     1     1     0     8    0
kstatmem   264        8    0        0     1     0     1     1     0     8    0
scxspl     216     4880    0     4880     3     2     1     2     1     8    1
plimitpl   152       18    0       10     1     0     1     1     0     8    0
sigapl     424      340    0      307     5     1     4     5     0     8    0
futexpl     64       12    0       12     1     0     1     1     0     8    1
knotepl    120       45    0        0     2     0     2     2     0     8    0
kqueuepl   216       20    0       13     1     0     1     1     0     8    0
pipepl     320       94    0       91     1     0     1     1     0     8    0
fdescpl    496      323    0      307     3     0     3     3     0     8    0
filepl     152     1277    0     1219     3     0     3     3     0     8    0
lockfpl    104        6    0        4     1     0     1     1     0     8    0
lockfspl    48        4    0        2     1     0     1     1     0     8    0
sessionpl  144       18    0        9     1     0     1     1     0     8    0
pgrppl      48       18    0        9     1     0     1     1     0     8    0
ucredpl    104       71    0       59     1     0     1     1     0     8    0
zombiepl   144      307    0      307     1     0     1     1     0     8    1
processpl  1072     340    0      307     3     0     3     3     0     8    0
procpl     696      352    0      315     4     0     4     4     0     8    0
sockpl     488       88    0       64     4     0     4     4     0     8    0
mcl8k      8192       3    0        0     1     0     1     1     0     8    0
mcl4k      4096       2    0        0     1     0     1     1     0     8    0
mcl2k      2048     310    0        0    39     0    39    39     0     8    0
mtagpl      96        2    0        0     1     0     1     1     0     8    0
mbufpl     256      322    0        0    21     0    21    21     0     8    0
bufpl      288     2572    0       86   178     0   178   178     0     8    0
anonpl      24   169428    0   167361    24     4    20    24     0   186    7
amapchunkpl 152    8572    0     8393     8     1     7     8     0   158    0
amappl16   200     4714    0     4712     5     4     1     5     0     8    0
amappl15   192       11    0       11     1     1     0     1     0     8    0
amappl14   184      113    0      102     1     0     1     1     0     8    0
amappl13   176       11    0       11     1     1     0     1     0     8    0
amappl12   168      873    0      857     2     1     1     2     0     8    0
amappl11   160       55    0       41     1     0     1     1     0     8    0
amappl10   152       12    0       11     1     0     1     1     0     8    0
amappl9    144      161    0      161     1     1     0     1     0     8    0
amappl8    136       48    0       46     1     0     1     1     0     8    0
amappl7    128       23    0       20     1     0     1     1     0     8    0
amappl6    120      153    0      138     1     0     1     1     0     8    0
amappl5    112      129    0      118     1     0     1     1     0     8    0
amappl4    104      488    0      456     1     0     1     1     0     8    0
amappl3     96     2515    0     2476     2     1     1     2     0     8    0
amappl2     88      500    0      452     2     0     2     2     0     8    0
amappl1     80     9445    0     8969    12     0    12    12     0     8    0
amappl      88     2259    0     2194     2     0     2     2     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        2    0        0     1     0     1     1     0     8    0
uaddrrnd    24      323    0      307     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      323    0      307     1     0     1     1     0     8    0
vmmpekpl   168     7209    0     7190     1     0     1     1     0     8    0
vmmpepl    168    35706    0    34617    52     1    51    52     0   357    0
vmsppl     464      322    0      307     3     0     3     3     0     8    0
rwobjpl     56    18879    0    16718    33     2    31    33     0     8    0
pdppl      4096     654    0      614    54    14    40    46     0     8    0
pvpl        32   272658    0   267752    57     4    53    57     0   265   10
pmappl     248      322    0      307     2     0     2     2     0     8    0
extentpl    40       56    0       38     1     0     1     1     0     8    0
phpool     112      492    0       16    14     0    14    14     0     8    0
ddb{1}> machine ddbcpu 0
Stopped at      x86_ipi_db+0x1e:        addq    $0x8,%rsp
ddb{0}> trace
x86_ipi_db(ffffffff82c01ff0) 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+0x27
__mp_lock(ffffffff82cb5dd0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82cb5dd0) at __mp_lock+0x122 sys/kern/kern_lock.c:147
softintr_dispatch(0) at softintr_dispatch+0x52 sys/arch/amd64/amd64/softintr.c:88
Xsoftclock() at Xsoftclock+0x27
end of kernel
end trace frame: 0x72192c862ed0, count: -6
ddb{0}> machine ddbcpu 1
Stopped at      sys_msgrcv+0x2df:       movq    0x10(%r13),%rdi
ddb{1}> trace
sys_msgrcv(ffff800021214af8,ffff80002125f770,ffff80002125f7c0) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline]
sys_msgrcv(ffff800021214af8,ffff80002125f770,ffff80002125f7c0) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349
syscall(ffff80002125f840) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline]
syscall(ffff80002125f840) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xb1e18f51950, count: -3
ddb{1}> 

Crashes (30):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/24 16:01 openbsd 5db6d8bd4d7e 6f19564f .config console log report syz C [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore protection_fault: sys_msgrcv
2023/03/23 06:38 openbsd 1e5b016c5082 f94b4a29 .config console log report syz [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2023/03/08 21:44 openbsd 1e5b016c5082 4fc6d98d .config console log report syz [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2023/02/27 18:50 openbsd 1e5b016c5082 95aee97a .config console log report syz [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2022/12/21 22:22 openbsd bcc2e3d7508b 4067838e .config console log report syz [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2022/12/19 22:38 openbsd 4068fef5c65e c52b2efb .config console log report syz [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2023/06/13 12:31 openbsd fafd6c403a36 749afb64 .config console log report syz C [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2024/01/26 20:15 openbsd 4bdff4bed0e3 cc4a4020 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore protection_fault: sys_msgrcv
2023/09/18 22:45 openbsd e88da610350a 0b6a67ac .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore protection_fault: sys_msgrcv
2023/09/06 00:53 openbsd b3774972aa78 0b6286dc .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore protection_fault: sys_msgrcv
2023/07/30 22:07 openbsd d0c03c4f4dd4 2a0d0f29 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2023/06/29 10:58 openbsd 2b5ea97fcaa5 134ddc02 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore protection_fault: sys_msgrcv
2023/06/13 08:57 openbsd fafd6c403a36 749afb64 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2023/05/15 23:15 openbsd 510f4386e153 71b00cfb .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore protection_fault: sys_msgrcv
2023/04/24 19:05 openbsd 1e5b016c5082 c778c7f4 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2023/04/23 22:33 openbsd 1e5b016c5082 2b32bd34 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2023/04/23 20:10 openbsd 1e5b016c5082 2b32bd34 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2023/04/22 23:45 openbsd 1e5b016c5082 2b32bd34 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2023/04/15 09:48 openbsd 1e5b016c5082 3cfcaa1b .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore protection_fault: sys_msgrcv
2023/04/12 22:17 openbsd 1e5b016c5082 82d5e53e .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2023/04/07 14:00 openbsd 1e5b016c5082 f7ba566d .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2023/04/07 02:44 openbsd 1e5b016c5082 00ce4c67 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2023/04/06 12:21 openbsd 1e5b016c5082 08707520 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2023/03/23 06:09 openbsd 1e5b016c5082 f94b4a29 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2023/03/08 15:10 openbsd 1e5b016c5082 4fc6d98d .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2023/02/27 15:19 openbsd 1e5b016c5082 95aee97a .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2023/02/15 18:37 openbsd 1e5b016c5082 6be0f1f5 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2022/12/21 21:54 openbsd bcc2e3d7508b 4067838e .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2022/12/19 22:00 openbsd 4068fef5c65e c52b2efb .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-setuid protection_fault: sys_msgrcv
2022/10/13 01:20 openbsd ddd5e87dd012 89b5a509 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore protection_fault: sys_msgrcv
* Struck through repros no longer work on HEAD.