syzbot


uvm_fault: softclock_process_kclock_timeout

Status: auto-obsoleted due to no activity on 2023/07/31 19:55
Reported-by: syzbot+8422bc7c865ccbcf6fde@syzkaller.appspotmail.com
First crash: 655d, last: 571d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd uvm_fault: softclock_process_kclock_timeout (2) 4 278d 397d 0/3 auto-obsoleted due to no activity on 2024/05/19 19:30

Sample crash report:
uvm_fault(0xffffffff82dd6460, 0xb82d882c0, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at      softclock_process_kclock_timeout+0x3e:  movq    timeout_kclock(%r15),%r13
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
softclock_process_kclock_timeout(fffffd8077b6ee88,0) at softclock_process_kclock_timeout+0x3e sys/kern/kern_timeout.c:652
softclock(0) at softclock+0x11a sys/kern/kern_timeout.c:717
softintr_dispatch(0) at softintr_dispatch+0xfb sys/arch/amd64/amd64/softintr.c:90
Xsoftclock() at Xsoftclock+0x23
acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffffffff82c13ff0) at sched_idle+0x427 sys/kern/kern_sched.c:175
end trace frame: 0x0, count: 9
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports.  Insufficient info makes it difficult to find and fix bugs.
ddb{0}> 
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
*cpu0: uvm_fault(0xffffffff82dd6460, 0xb82d882c0, 0, 1) -> e
ddb{0}> trace
softclock_process_kclock_timeout(fffffd8077b6ee88,0) at softclock_process_kclock_timeout+0x3e sys/kern/kern_timeout.c:652
softclock(0) at softclock+0x11a sys/kern/kern_timeout.c:717
softintr_dispatch(0) at softintr_dispatch+0xfb sys/arch/amd64/amd64/softintr.c:90
Xsoftclock() at Xsoftclock+0x23
acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffffffff82c13ff0) at sched_idle+0x427 sys/kern/kern_sched.c:175
end trace frame: 0x0, count: -6
ddb{0}> show registers
rdi               0xfffffd8077b6ee88
rsi                                0
rbp               0xffff80002116f4c0
rbx                                0
rdx                                0
rcx               0xffffffff82d80200    timeout_todo
rax                       0x40000000
r8                              0x75
r9                              0x75
r10               0x5446c38b235a6275
r11               0x1e40a988c2c41b8b
r12               0x652d7a7973000000
r13               0xffffffff82df7e70    rdrand_tmo
r14               0xfffffd8077b6ee88
r15                      0xc00000000
rip               0xffffffff81eb7a1e    softclock_process_kclock_timeout+0x3e
cs                               0x8
rflags                       0x10206    __ALIGN_SIZE+0xf206
rsp               0xffff80002116f470
ss                              0x10
softclock_process_kclock_timeout+0x3e:  movq    timeout_kclock(%r15),%r13
ddb{0}> show proc
PROC (idle0) pid=366724 stat=onproc
    flags process=14000<NOZOMBIE,SYSTEM> proc=40000200<SYSTEM,CPUPEG>
    pri=0, usrpri=50, nice=20
    forw=0x2a824cb70a0bbbd2, list=0xffff800021169878,0xffff800021169060
    process=0xffff8000ffffe180 user=0xffff80002116a000, vmspace=0xffffffff82dd6460
    estcpu=0, cpticks=78359, pctcpu=0.0
    user=0, sys=0, intr=0
ddb{0}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 13057  205253  88519      0  3        0x80  nanoslp       syz-executor.0
 13057  371389  88519      0  3   0x4000080  netio         syz-executor.0
 13057  158489  88519      0  3   0x4000080  fsleep        syz-executor.0
 32554  371227  16008      0  3        0x82  piperd        syz-executor.7
 88519  106796  16008      0  2       0x482                syz-executor.0
 23580  329811  16008      0  3        0x82  piperd        syz-executor.5
 74975  172412      0      0  3     0x14280  nfsidl        nfsio
 20720  328456      0      0  3     0x14280  nfsidl        nfsio
 78049  348898      0      0  3     0x14280  nfsidl        nfsio
 55919  450074      0      0  3     0x14280  nfsidl        nfsio
 44567  493637      0      0  3     0x14280  nfsidl        nfsio
 43210  284478      0      0  3     0x14280  nfsidl        nfsio
 46379  429178      0      0  3     0x14280  nfsidl        nfsio
 45603  161063      0      0  3     0x14280  nfsidl        nfsio
 18931  284881      0      0  3     0x14280  nfsidl        nfsio
 27251  382859      0      0  3     0x14280  nfsidl        nfsio
 24468  117333      0      0  3     0x14280  nfsidl        nfsio
 27403  147491      0      0  3     0x14280  nfsidl        nfsio
 50692   22189      0      0  3     0x14280  nfsidl        nfsio
  4187  202151      0      0  3     0x14280  nfsidl        nfsio
 47872  159370      0      0  3     0x14280  nfsidl        nfsio
 50503  390181      0      0  3     0x14280  nfsidl        nfsio
 67385  314123      0      0  3     0x14280  nfsidl        nfsio
 59128   37571      0      0  3     0x14280  nfsidl        nfsio
 96723   36732      0      0  3     0x14280  nfsidl        nfsio
 12430  231746      0      0  3     0x14280  nfsidl        nfsio
  8645   69173  16008      0  3        0x82  piperd        syz-executor.2
 17363  486078  16008      0  3        0x82  piperd        syz-executor.6
 63112  517544  16008      0  3        0x82  piperd        syz-executor.4
 68413  282752  16008      0  3        0x82  piperd        syz-executor.1
 41989  185754      1      0  3    0x100083  ttyin         getty
 30289   35644  16008      0  3        0x82  piperd        syz-executor.3
 70437   46812      0      0  3     0x14200  bored         sosplice
 16008   92836  98369      0  3        0x82  wait          syz-fuzzer
 16008  292389  98369      0  3   0x4000082  thrsleep      syz-fuzzer
 16008  147839  98369      0  3   0x4000082  thrsleep      syz-fuzzer
 16008   83344  98369      0  3   0x4000082  wait          syz-fuzzer
 16008  282090  98369      0  3   0x4000082  thrsleep      syz-fuzzer
 16008  194195  98369      0  3   0x4000082  wait          syz-fuzzer
 16008  121729  98369      0  3   0x4000082  thrsleep      syz-fuzzer
 16008  164425  98369      0  3   0x4000082  wait          syz-fuzzer
 16008  265563  98369      0  3   0x4000082  wait          syz-fuzzer
 16008  181007  98369      0  3   0x4000082  thrsleep      syz-fuzzer
 16008   67779  98369      0  3   0x4000082  thrsleep      syz-fuzzer
 16008  491191  98369      0  3   0x4000082  kqread        syz-fuzzer
 16008   36172  98369      0  3   0x4000082  wait          syz-fuzzer
 16008  520287  98369      0  3   0x4000082  wait          syz-fuzzer
 16008   13894  98369      0  3   0x4000082  wait          syz-fuzzer
 16008   38693  98369      0  3   0x4000082  thrsleep      syz-fuzzer
 98369  254542  37923      0  3    0x10008a  sigsusp       ksh
 37923  239335  88648      0  3        0x9a  kqread        sshd
 88648  429220      1      0  3        0x88  kqread        sshd
 53884  282881  26675     74  3   0x1100092  bpf           pflogd
 26675  385283      1      0  3        0x80  netio         pflogd
 89424   55530  63240     73  3   0x1100090  kqread        syslogd
 63240  169817      1      0  3    0x100082  netio         syslogd
 28310   20106      1      0  3    0x100080  kqread        resolvd
 27074   75464  69269     77  3    0x100092  kqread        dhcpleased
 42674  482800  69269     77  3    0x100092  kqread        dhcpleased
 69269  189816      1      0  3        0x80  kqread        dhcpleased
 51937   79952      0      0  3     0x14200  bored         smr
 41324  116675      0      0  3     0x14200  pgzero        zerothread
  1888   99349      0      0  3     0x14200  aiodoned      aiodoned
 14912  314247      0      0  3     0x14200  syncer        update
  2104  375956      0      0  3     0x14200  cleaner       cleaner
 97528   94829      0      0  3     0x14200  reaper        reaper
 61028     702      0      0  3     0x14200  pgdaemon      pagedaemon
 65250  385144      0      0  3     0x14200  bored         viomb
 77395  383777      0      0  3  0x40014200  acpi0         acpi0
 81284   76238      0      0  7  0x40014200                idle1
 22860  479100      0      0  3     0x14200  bored         softnet
 13777  515674      0      0  3     0x14200  bored         softnet
 56383   60111      0      0  3     0x14200  bored         softnet
 47137  456135      0      0  3     0x14200  bored         softnet
 78904   62942      0      0  3     0x14200  bored         systqmp
 73799  387900      0      0  3     0x14200  bored         systq
  8485  450312      0      0  3  0x40014200  bored         softclock
*64957  366724      0      0  7  0x40014200                idle0
     1  359307      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{0}> show all locks
ddb{0}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 10229   6506K    7218K  78643K     46734        0
            pcb    13     20K      22K  78643K      5402        0
         rtable   204     17K      18K  78643K      5296        0
         ifaddr    78     28K      31K  78643K      2065        0
         sysctl     2      0K       2K  78643K        18        0
       counters    56     35K      36K  78643K      1446        0
       ioctlops     0      0K       4K  78643K      3266        0
            iov     0      0K      32K  78643K      5660        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         4        0
         vnodes  1692    106K     107K  78643K     18393        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       9K  78643K       251        0
         VM map     2      1K       1K  78643K         2        0
            sem    18     17K      32K  78643K      3072        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1697    195K     286K  78643K     12548        0
      file desc    11     37K      78K  78643K     27594        0
          sigio     0      0K       0K  78643K       615        0
           proc    71     91K     115K  78643K      4278        0
        subproc   104      6K      10K  78643K      1522        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K      1468        0
       in_multi    74      5K       7K  78643K      1723        0
    ether_multi     1      0K       0K  78643K       196        0
            mrt     1      0K       0K  78643K       121        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys   265   1182K    1182K  78643K       265        0
           exec     0      0K       1K  78643K      4355        0
     pfkey data     0      0K       0K  78643K        16        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   471    103K     111K  78643K    258399        0
       UVM aobj   131      4K       4K  78643K       140        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K       972        0
            NDP    14      0K       2K  78643K       717        0
           temp   137   5858K    6882K  78643K    347316        0
         kqueue    12     18K      26K  78643K      2169        0
      SYN cache     2     16K      16K  78643K         2        0
ddb{0}> 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     2225    0     2222    32    31     1     6     0     8    0
rtentry    112     1714    0     1633     4     0     4     4     0     8    0
unpcb      144    75696    0    75673   355   349     6    13     0     8    4
syncache   296      204    0      204    22    22     0     1     0     8    0
sackhl      24        2    0        2     2     2     0     1     0     8    0
tcpqe       32      302    0      302    23    23     0     1     0     8    0
tcpcb      776    11873    0    11869   359   351     8    17     0     8    7
arp        120      266    0      252     1     0     1     1     0     8    0
inpcb      368    30103    0    30096   484   477     7    16     0     8    6
nd6        136      354    0      335     1     0     1     1     0     8    0
pkpcb       40      224    0      224    14    13     1     1     0     8    1
kcovpl      48      105    0       97     1     0     1     1     0     8    0
mppekey    1024      18    0       18     5     5     0     1     0     8    0
ppxss      1256     388    0      388    41    40     1     1     0     8    1
pppxif     1456      72    0       72    16    15     1     1     0     8    1
pffrag     232      276    0      271     6     5     1     1     0   482    0
pffrnode    88      272    0      267     6     5     1     1     0     8    0
pffrent     40     1304    0     1299     6     5     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     1363    0     1284     1     0     1     1     0     8    0
pfstkey    128     1363    0     1284    10     7     3     6     0     8    0
pfstate    384     1363    0     1284    30    22     8    16     0     8    0
pfrule     1344      21    0       16     2     1     1     2     0     8    0
rttmr      136       27    0       27    12    12     0     1     0     8    0
art_heap8  4096       8    0        7     5     3     2     3     0     8    1
art_heap4  256     7694    0     7354    68    43    25    31     0     8    0
art_table   32     7702    0     7361     5     1     4     4     0     8    0
art_node    16     1692    0     1621     1     0     1     1     0     8    0
sysvmsgpl   40       38    0       10     1     0     1     1     0     8    0
semupl     112        5    0        5     1     1     0     1     0     8    0
semapl     112     3061    0     3045     1     0     1     1     0     8    0
shmpl      112      137    0        9     4     0     4     4     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256    38955    0    37426    97     0    97    97     0     8    0
ffsino     272    38955    0    37426   103     0   103   103     0     8    0
nchpl      144    80803    0    79142    64     0    64    64     0     8    0
rtmask      32       16    0       16     5     5     0     1     0     8    0
uvmvnodes   80     7980    0        0   163     0   163   163     0     8    0
vnodes     216     7980    0        0   444     0   444   444     0     8    0
namei      1024  275714    0   275714    13    12     1     2     0     8    1
percpumem   16      736    0      695     1     0     1     1     0     8    0
kstatmem   264      942    0      914    15    12     3     3     0     8    0
scsiplug    72       15    0       15     5     5     0     1     0     8    0
scxspl     216   232518    0   232518    43    42     1     8     0     8    1
plimitpl   152     2968    0     2952     1     0     1     1     0     8    0
sigapl     424    27765    0    27703    10     2     8     8     0     8    0
futexpl     64   287035    0   287034     9     8     1     1     0     8    0
knotepl    120     1770    0        0    17     3    14    17     0     8    0
kqueuepl   216     4928    0     4920    87    84     3     8     0     8    2
pipepl     320     7171    0     7143   172   169     3    13     0     8    0
fdescpl    496    27705    0    27681     7     3     4     5     0     8    0
filepl     152   235707    0   235457   432   417    15    24     0     8    3
lockfpl    104     9104    0     9102    21    20     1     3     0     8    0
lockfspl    48     2699    0     2697     1     0     1     1     0     8    0
sessionpl  144      126    0      109     1     0     1     1     0     8    0
pgrppl      48      263    0      246     1     0     1     1     0     8    0
ucredpl    104    23806    0    23788     1     0     1     1     0     8    0
zombiepl   144    27703    0    27703     6     5     1     1     0     8    1
processpl  1072   27765    0    27703     5     0     5     5     0     8    0
procpl     696    69854    0    69775    30    20    10    10     0     8    1
srpgc       96      146    0      146    32    31     1     1     0     8    1
sosppl     168      283    0      283    27    26     1     1     0     8    1
sockpl     488   108428    0   108395  2298  2278    20    46     0     8   15
mcl64k     65536     22    0        0     3     1     2     3     0     8    0
mcl16k     16384     18    0        0     3     0     3     3     0     8    0
mcl12k     12288     20    0        0     2     0     2     2     0     8    0
mcl9k      9216      15    0        0     2     0     2     2     0     8    0
mcl8k      8192      25    0        0     3     0     3     3     0     8    0
mcl4k      4096      17    0        0     3     0     3     3     0     8    0
mcl2k2     2112       5    0        0     1     0     1     1     0     8    0
mcl2k      2048     553    0        0    53    26    27    53     0     8    0
mtagpl      96     1249    0        0    13     0    13    13     0     8    0
mbufpl     256     9316    0        0   546     0   546   546     0     8    0
bufpl      288    46081    0    38100   571     0   571   571     0     8    0
anonpl      24  2597655    0  2580391   375   242   133   186     0   186    0
amapchunkpl 152  827224    0   826343   240   196    44    70     0   158    0
amappl16   200    43827    0    43258   205   171    34    44     0     8    2
amappl15   192       31    0       30     1     0     1     1     0     8    0
amappl14   184      472    0      452    10     8     2     2     0     8    0
amappl13   176       13    0       12     1     0     1     1     0     8    0
amappl12   168    29938    0    29906     3     1     2     2     0     8    0
amappl11   160       60    0       46     1     0     1     1     0     8    0
amappl10   152      136    0      123     1     0     1     1     0     8    0
amappl9    144      331    0      331    60    60     0     2     0     8    0
amappl8    136     1343    0     1113     9     1     8     8     0     8    0
amappl7    128      187    0      166     1     0     1     1     0     8    0
amappl6    120     1119    0     1083     4     2     2     2     0     8    0
amappl5    112      915    0      906     1     0     1     1     0     8    0
amappl4    104     2326    0     2279     3     1     2     3     0     8    0
amappl3     96   160013    0   159949     4     1     3     3     0     8    0
amappl2     88    28914    0    28840     3     1     2     3     0     8    0
amappl1     80   113746    0   113209    23    10    13    23     0     8    0
amappl      88   256002    0   255765     8     0     8     8     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      139    0        9     3     0     3     3     0     8    0
uaddrrnd    24    27705    0    27681     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24    27705    0    27681     1     0     1     1     0     8    0
vmmpekpl   168   200007    0   199935     4     0     4     4     0     8    0
vmmpepl    168  1662870    0  1660376   579   423   156   158     0   357    4
vmsppl     456    27704    0    27681     5     1     4     5     0     8    0
rwobjpl     56   372560    0   362621   157    15   142   145     0     8    0
pdppl      4096   55417    0    55362  1501  1432    69    77     0     8   14
pvpl        32  7644279    0  7621339   875   649   226   343     0   265    5
pmappl     248    27704    0    27681     3     1     2     3     0     8    0
extentpl    40       56    0       38     1     0     1     1     0     8    0
phpool     112     3505    0     2041    42     0    42    42     0     8    0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
softclock_process_kclock_timeout(fffffd8077b6ee88,0) at softclock_process_kclock_timeout+0x3e sys/kern/kern_timeout.c:652
softclock(0) at softclock+0x11a sys/kern/kern_timeout.c:717
softintr_dispatch(0) at softintr_dispatch+0xfb sys/arch/amd64/amd64/softintr.c:90
Xsoftclock() at Xsoftclock+0x23
acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffffffff82c13ff0) at sched_idle+0x427 sys/kern/kern_sched.c:175
end trace frame: 0x0, count: -6
ddb{0}> machine ddbcpu 1
Stopped at      x86_ipi_db+0x1e:        addq    $0x8,%rsp
x86_ipi_db(ffff800020d58ff0) 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
acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffff800020d58ff0) at sched_idle+0x427 sys/kern/kern_sched.c:175
end trace frame: 0x0, count: 10
ddb{1}> trace
x86_ipi_db(ffff800020d58ff0) 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
acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffff800020d58ff0) at sched_idle+0x427 sys/kern/kern_sched.c:175
end trace frame: 0x0, count: -5

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/02 19:54 openbsd 044d65e98b1d 52d40fd2 .config console log report ci-openbsd-multicore uvm_fault: softclock_process_kclock_timeout
2023/03/27 10:56 openbsd 1e5b016c5082 f8f96aa9 .config console log report ci-openbsd-main uvm_fault: softclock_process_kclock_timeout
2023/02/26 08:50 openbsd 1e5b016c5082 e792ae78 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main uvm_fault: softclock_process_kclock_timeout
2023/02/07 23:53 openbsd 0da56a053721 b68d0e75 .config console log report ci-openbsd-main uvm_fault: softclock_process_kclock_timeout
* Struck through repros no longer work on HEAD.