syzbot


panic: receive 3: so ADDR, so_type 3, m ADDR, m_type 192

Status: closed as dup on 2020/02/02 10:19
Reported-by: syzbot+c7c96678a69d54275110@syzkaller.appspotmail.com
First crash: 1556d, last: 1556d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
panic: receive 3: so ADDR, so_type 3, m ADDR, m_type 0 syz 400 1530d 1636d

Sample crash report:
panic: receive 3: so 0xfffffd806f6e57d0, so_type 3, m 0xfffffd806c8f0000, m_type 192
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 362503  27605      0           0          0    0  syz-executor.0
*392812   2737      0           0          0    1K dhclient
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821af0a7) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd806f6e57d0,0,ffff800020abd448,0,0,ffff800020abd354) at soreceive+0x1727
soo_read(fffffd807d3fc1c8,ffff800020abd448,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff800020a7c9c8,6,ffff800020abd448,0,ffff800020abd530) at dofilereadv+0x1a1 sys/kern/sys_generic.c:236
sys_read(ffff800020a7c9c8,ffff800020abd4e0,ffff800020abd530) at sys_read+0x83 sys/kern/sys_generic.c:156
syscall(ffff800020abd5b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800020abd5b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffd9380, count: 7
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{1}> 
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
receive 3: so 0xfffffd806f6e57d0, so_type 3, m 0xfffffd806c8f0000, m_type 192
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821af0a7) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd806f6e57d0,0,ffff800020abd448,0,0,ffff800020abd354) at soreceive+0x1727
soo_read(fffffd807d3fc1c8,ffff800020abd448,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff800020a7c9c8,6,ffff800020abd448,0,ffff800020abd530) at dofilereadv+0x1a1 sys/kern/sys_generic.c:236
sys_read(ffff800020a7c9c8,ffff800020abd4e0,ffff800020abd530) at sys_read+0x83 sys/kern/sys_generic.c:156
syscall(ffff800020abd5b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff800020abd5b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffd9380, count: -8
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff800020abd190
rbx               0xffff800020abd240
rdx               0xffff800020a7c9c8
rcx                                0
rax                                0
r8                0xffffffff812ffc6f    kprintf+0x16f
r9                               0x1
r10                             0x25
r11               0xf17095cb24eaef4a
r12                     0x3000000008
r13               0xffff800020abd1a0
r14                            0x100
r15                              0x1
rip               0xffffffff81ae2228    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff800020abd180
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (dhclient) pid=392812 stat=onproc
    flags process=0 proc=0
    pri=24, usrpri=50, nice=20
    forw=0xffffffffffffffff, list=0xffff800020a7cc38,0xffff800020a7ceb8
    process=0xffff800020a90f10 user=0xffff800020ab8000, vmspace=0xfffffd807f000000
    estcpu=0, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 13138  308371  69029      0  2           0                syz-executor.1
 13138  395514  69029      0  3   0x4000080  fsleep        syz-executor.1
 27605  362503  18524      0  7           0                syz-executor.0
 27605    9867  18524      0  2   0x4000000                syz-executor.0
 72149  168607      0      0  3     0x14200  bored         sosplice
 69029  323674  69173      0  3        0x82  nanosleep     syz-executor.1
 18524  230094  69173      0  3        0x82  nanosleep     syz-executor.0
 69173   67421  33220      0  3        0x82  thrsleep      syz-fuzzer
 69173    2550  33220      0  3   0x4000082  nanosleep     syz-fuzzer
 69173  238001  33220      0  3   0x4000082  thrsleep      syz-fuzzer
 69173   78464  33220      0  3   0x4000082  thrsleep      syz-fuzzer
 69173  431789  33220      0  3   0x4000082  thrsleep      syz-fuzzer
 69173  270024  33220      0  3   0x4000082  thrsleep      syz-fuzzer
 69173  261996  33220      0  3   0x4000082  thrsleep      syz-fuzzer
 69173   76066  33220      0  3   0x4000082  thrsleep      syz-fuzzer
 69173  227615  33220      0  3   0x4000082  kqread        syz-fuzzer
 69173   80856  33220      0  3   0x4000082  thrsleep      syz-fuzzer
 69173  447801  33220      0  3   0x4000082  thrsleep      syz-fuzzer
 33220  415349  40718      0  3    0x10008a  pause         ksh
 40718  195964  72986      0  3        0x92  select        sshd
 45233  175604      1      0  3    0x100083  ttyin         getty
 72986  386697      1      0  3        0x80  select        sshd
 45772  325082  57422     74  3    0x100092  bpf           pflogd
 57422  106428      1      0  3        0x80  netio         pflogd
 84594  449930  24375     73  3    0x100090  kqread        syslogd
 24375  247400      1      0  3    0x100082  netio         syslogd
  3655  502803      1     77  3    0x100090  poll          dhclient
* 2737  392812      1      0  7           0                dhclient
 32826   85152      0      0  2     0x14200                zerothread
 45426   31495      0      0  3     0x14200  aiodoned      aiodoned
 75737  287920      0      0  3     0x14200  syncer        update
 79277  483838      0      0  3     0x14200  cleaner       cleaner
 54365  174810      0      0  3     0x14200  reaper        reaper
 66226  202115      0      0  3     0x14200  pgdaemon      pagedaemon
 85463  316806      0      0  3     0x14200  bored         crynlk
 65239   76778      0      0  3     0x14200  bored         crypto
 64146  160152      0      0  3  0x40014200  acpi0         acpi0
 34900  253293      0      0  3  0x40014200                idle1
 86281  509005      0      0  3     0x14200  bored         softnet
 57682  332444      0      0  3     0x14200  bored         systqmp
 21408  235373      0      0  3     0x14200  bored         systq
 82858  147491      0      0  3  0x40014200  bored         softclock
 13185  268960      0      0  3  0x40014200                idle0
 34172  196357      0      0  3     0x14200  bored         smr
     1  297366      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 2737 (dhclient) thread 0xffff800020a7c9c8 (392812)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82645298)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1164
#1  solock+0x66 sys/kern/uipc_socket2.c:292
#2  soreceive+0xb3a sys/kern/uipc_socket.c:950
#3  soo_read+0x53 sys/kern/sys_socket.c:70
#4  dofilereadv+0x1a1 sys/kern/sys_generic.c:236
#5  sys_read+0x83 sys/kern/sys_generic.c:156
#6  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#6  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570
#7  Xsyscall+0x128
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf  9488   6467K    7109K  78643K     10685        0
            pcb    13      8K       8K  78643K        25        0
         rtable   105      3K       3K  78643K       201        0
         ifaddr    49     11K      11K  78643K        52        0
       counters    43     33K      33K  78643K        43        0
       ioctlops     0      0K       4K  78643K      1471        0
            iov     0      0K      16K  78643K         5        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1225     77K      77K  78643K      1252        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     2      0K       0K  78643K         3        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1809    196K     290K  78643K     12766        0
      file desc     6     17K      25K  78643K        59        0
          sigio     0      0K       0K  78643K         3        0
           proc    60     63K      83K  78643K       446        0
        subproc    32      2K       2K  78643K        34        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K         9        0
       in_multi    33      2K       2K  78643K        37        0
    ether_multi     1      0K       0K  78643K         3        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    43    201K     201K  78643K        43        0
           exec     0      0K       1K  78643K       207        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   116     22K      22K  78643K      1122        0
       UVM aobj     8      2K       2K  78643K         8        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K         7        0
            NDP     7      0K       0K  78643K        11        0
           temp    84   3015K    3078K  78643K      2174        0
         kqueue     3      4K      16K  78643K        10        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
arp         64        6    0        0     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       80       19    0       17     1     0     1     1     0     8    0
rtentry    112       45    0        1     2     0     2     2     0     8    0
unpcb      120       67    0       57     2     0     2     2     0     8    1
syncache   264        4    0        4     1     1     0     1     0     8    0
tcpqe       32      137    0      137     1     0     1     1     0     8    1
tcpcb      544       24    0       20     1     0     1     1     0     8    0
inpcb      280       81    0       74     2     0     2     2     0     8    1
nd6         48        4    0        0     1     0     1     1     0     8    0
pffrag     232        1    0        1     1     0     1     1     0   482    1
pffrnode    88        1    0        1     1     0     1     1     0     8    1
pffrent     40       45    0       45     1     0     1     1     0     8    1
pfosfp      40      846    0      423     5     0     5     5     0     8    0
pfosfpen   112     1428    0      714    21     0    21    21     0     8    0
pfstitem    24       15    0        0     1     0     1     1     0     8    0
pfstkey    112       15    0        0     1     0     1     1     0     8    0
pfstate    328       15    0        0     2     0     2     2     0     8    0
pfrule     1360      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      212    0        0    14     0    14    14     0     8    0
art_table   32      213    0        0     2     0     2     2     0     8    0
art_node    16       44    0        4     1     0     1     1     0     8    0
sysvmsgpl   40       22    0       13     1     0     1     1     0     8    0
semapl     112        1    0        1     1     0     1     1     0     8    1
shmpl      112        6    0        0     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     1463    0       55    46     0    46    46     0     8    0
ffsino     272     1463    0       55    95     0    95    95     0     8    0
nchpl      144     1742    0      123    61     0    61    61     0     8    1
uvmvnodes   72     1533    0        0    28     0    28    28     0     8    0
vnodes     208     1533    0        0    81     0    81    81     0     8    0
namei      1024    4567    0     4567     1     0     1     1     0     8    1
percpumem   16       32    0        0     1     0     1     1     0     8    0
scxspl     192     5177    0     5177     4     1     3     3     0     8    3
plimitpl   152       16    0        7     1     0     1     1     0     8    0
sigapl     432      258    0      242     3     0     3     3     0     8    1
futexpl     56      720    0      719     1     0     1     1     0     8    0
knotepl    112       61    0       42     1     0     1     1     0     8    0
kqueuepl   104       18    0       16     1     0     1     1     0     8    0
pipelkpl    48       85    0       75     1     0     1     1     0     8    0
pipepl     120      170    0      151     1     0     1     1     0     8    0
fdescpl    496      259    0      242     3     0     3     3     0     8    0
filepl     152     1488    0     1383     7     0     7     7     0     8    2
lockfpl    104       11    0       10     1     0     1     1     0     8    0
lockfspl    48        6    0        5     1     0     1     1     0     8    0
sessionpl  112       18    0        7     1     0     1     1     0     8    0
pgrppl      48       18    0        7     1     0     1     1     0     8    0
ucredpl     96       99    0       90     1     0     1     1     0     8    0
zombiepl   144      242    0      242     1     0     1     1     0     8    1
processpl  960      275    0      242     5     0     5     5     0     8    0
procpl     624      350    0      305     5     0     5     5     0     8    1
sosppl     128        3    0        3     1     0     1     1     0     8    1
sockpl     400      167    0      148     6     0     6     6     0     8    4
mcl64k     65536      1    0        0     1     0     1     1     0     8    0
mcl16k     16384      1    0        0     1     0     1     1     0     8    0
mcl9k      9216       1    0        0     1     0     1     1     0     8    0
mcl4k      4096       2    0        0     1     0     1     1     0     8    0
mcl2k      2048     166    0        0    20     0    20    20     0     8    0
mtagpl      80        3    0        0     1     0     1     1     0     8    0
mbufpl     256      369    0        0    23     0    23    23     0     8    0
bufpl      280     4155    0      192   284     0   284   284     0     8    0
anonpl      16    39114    0    24067    62     1    61    61     0   125    0
amapchunkpl 152    1108    0      956     8     0     8     8     0   158    0
amappl16   192      964    0      165    41     1    40    40     0     8    0
amappl15   184       82    0       76     1     0     1     1     0     8    0
amappl14   176       29    0       26     1     0     1     1     0     8    0
amappl12   160        5    0        4     1     0     1     1     0     8    0
amappl11   152       54    0       39     1     0     1     1     0     8    0
amappl10   144       26    0       18     1     0     1     1     0     8    0
amappl9    136      602    0      599     1     0     1     1     0     8    0
amappl8    128      131    0      104     2     0     2     2     0     8    0
amappl7    120      121    0      108     1     0     1     1     0     8    0
amappl6    112       60    0       53     1     0     1     1     0     8    0
amappl5    104      132    0      116     1     0     1     1     0     8    0
amappl4     96      511    0      480     1     0     1     1     0     8    0
amappl3     88      116    0      108     1     0     1     1     0     8    0
amappl2     80     1185    0     1100     3     1     2     3     0     8    0
amappl1     72    15644    0    15173    27    13    14    21     0     8    4
amappl      80      604    0      555     2     0     2     2     0    84    0
dma4096    4096       1    0        1     1     1     0     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      64        7    0        0     1     0     1     1     0     8    0
uaddrrnd    24      259    0      242     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      259    0      242     1     0     1     1     0     8    0
vmmpekpl   168     6059    0     6026     2     0     2     2     0     8    0
vmmpepl    168    39082    0    36984   129     9   120   120     0   357   28
vmsppl     368      258    0      242     2     0     2     2     0     8    0
pdppl      4096     525    0      484     6     0     6     6     0     8    0
pvpl        32   139039    0   120731   150     0   150   150     0   265    2
pmappl     232      258    0      242     2     0     2     2     0     8    1
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      184    0        3     6     0     6     6     0     8    0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/01 21:33 openbsd 18b9798e50be 2274ad39 .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.