syzbot


panic: receive 1: so ADDR, so_type 3, sb_cc 3774

Status: closed as dup on 2019/12/22 08:55
Reported-by: syzbot+f8cb266bd7a02b005e9e@syzkaller.appspotmail.com
First crash: 1800d, last: 1800d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
panic: receive 1: so ADDR, so_type 3, sb_cc 176 1 1854d 1854d

Sample crash report:
panic: receive 1: so 0xfffffd806f66c000, so_type 3, sb_cc 3774
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 440986  84966      0         0x2  0x4000000    0  syz-fuzzer
*126214  80077      0           0          0    1K dhclient
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821bff33) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd806f66c000,0,ffff800020ab5208,0,0,ffff800020ab5114) at soreceive+0x16ec sys/kern/uipc_socket.c:798
soo_read(fffffd807d7f61c8,ffff800020ab5208,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff800020a6e008,6,ffff800020ab5208,0,ffff800020ab52f0) at dofilereadv+0x1a2 sys/kern/sys_generic.c:236
sys_read(ffff800020a6e008,ffff800020ab52a0,ffff800020ab52f0) at sys_read+0x83 sys/kern/sys_generic.c:156
syscall(ffff800020ab5370) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020ab5370) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffd7950, 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 1: so 0xfffffd806f66c000, so_type 3, sb_cc 3774
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821bff33) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd806f66c000,0,ffff800020ab5208,0,0,ffff800020ab5114) at soreceive+0x16ec sys/kern/uipc_socket.c:798
soo_read(fffffd807d7f61c8,ffff800020ab5208,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff800020a6e008,6,ffff800020ab5208,0,ffff800020ab52f0) at dofilereadv+0x1a2 sys/kern/sys_generic.c:236
sys_read(ffff800020a6e008,ffff800020ab52a0,ffff800020ab52f0) at sys_read+0x83 sys/kern/sys_generic.c:156
syscall(ffff800020ab5370) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
syscall(ffff800020ab5370) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffd7950, count: -8
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff800020ab4f50
rbx               0xffff800020ab5000
rdx               0xffff800020a6e008
rcx                                0
rax                                0
r8                0xffffffff81962f3f    kprintf+0x16f
r9                               0x1
r10                             0x25
r11               0xbe88541715a148ef
r12                     0x3000000008
r13               0xffff800020ab4f60
r14                            0x100
r15                              0x1
rip               0xffffffff816ef798    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff800020ab4f40
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (dhclient) pid=126214 stat=onproc
    flags process=0 proc=0
    pri=50, usrpri=50, nice=20
    forw=0xffffffffffffffff, list=0xffff800020a6f150,0xffff800020a6e508
    process=0xffff800020a9a010 user=0xffff800020ab0000, vmspace=0xfffffd807f0082e0
    estcpu=0, cpticks=1, pctcpu=0.1
    user=0, sys=1, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 96472  156971      0      0  3     0x14200  acct          acct
 52755  320842      0      0  3     0x14200  bored         sosplice
 96929   25059  84966      0  3         0x2  biowait       syz-executor.1
 84966  387936  92535      0  3        0x82  kqread        syz-fuzzer
 84966  292719  92535      0  3   0x4000082  nanosleep     syz-fuzzer
 84966  227135  92535      0  3   0x4000082  thrsleep      syz-fuzzer
 84966  375608  92535      0  3   0x4000082  thrsleep      syz-fuzzer
 84966  391908  92535      0  3   0x4000082  thrsleep      syz-fuzzer
 84966  233270  92535      0  3   0x4000082  thrsleep      syz-fuzzer
 84966  440986  92535      0  7   0x4000002                syz-fuzzer
 84966  213381  92535      0  3   0x4000082  thrsleep      syz-fuzzer
 84966   24914  92535      0  3   0x4000082  thrsleep      syz-fuzzer
 84966  481848  92535      0  3   0x4000082  nanosleep     syz-fuzzer
 92535  367845  77683      0  3    0x10008a  pause         ksh
 77683  417934  96949      0  3        0x92  select        sshd
 76283  100748      1      0  3    0x100083  ttyin         getty
 96949  194519      1      0  3        0x80  select        sshd
 67850  196761  21745     74  3    0x100092  bpf           pflogd
 21745  189679      1      0  3        0x80  netio         pflogd
 63224  231470  84318     73  3    0x100090  kqread        syslogd
 84318  489874      1      0  3    0x100082  netio         syslogd
 16315  217602      1     77  3    0x100090  poll          dhclient
*80077  126214      1      0  7           0                dhclient
 78385  136972      0      0  2     0x14200                zerothread
  3688  413699      0      0  3     0x14200  aiodoned      aiodoned
  3444  206214      0      0  3     0x14200  syncer        update
 54491  375793      0      0  3     0x14200  cleaner       cleaner
 91100  228567      0      0  3     0x14200  reaper        reaper
  4722  354140      0      0  3     0x14200  pgdaemon      pagedaemon
 29669  432127      0      0  3     0x14200  bored         crynlk
 47317  207746      0      0  3     0x14200  bored         crypto
 77190  166514      0      0  3  0x40014200  acpi0         acpi0
 75866  301146      0      0  3  0x40014200                idle1
 59976  346979      0      0  3     0x14200  bored         softnet
 56709  204459      0      0  3     0x14200  bored         systqmp
 70174  257385      0      0  3     0x14200  bored         systq
  1728  162225      0      0  3  0x40014200  bored         softclock
 95133  290646      0      0  3  0x40014200                idle0
 53586  233093      0      0  3     0x14200  bored         smr
     1  192599      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 96929 (syz-executor.1) thread 0xffff800020ac0290 (25059)
exclusive rrwlock inode r = 0 (0xfffffd806509f4e0)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  rw_enter+0x453 sys/kern/kern_rwlock.c:309
#2  rrw_enter+0x88 sys/kern/kern_rwlock.c:453
#3  ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140
#4  ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352
#5  ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392
#6  ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164
#7  VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450
#8  domkdirat+0x121 sys/kern/vfs_syscalls.c:2974
#9  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#9  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#10 Xsyscall+0x128
exclusive rrwlock inode r = 0 (0xfffffd806ace5918)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  rw_enter+0x453 sys/kern/kern_rwlock.c:309
#2  rrw_enter+0x88 sys/kern/kern_rwlock.c:453
#3  VOP_LOCK+0xf9 sys/kern/vfs_vops.c:615
#4  vn_lock+0x81 sys/kern/vfs_vnops.c:571
#5  vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419
#6  namei+0x63c sys/kern/vfs_lookup.c:249
#7  domkdirat+0x75 sys/kern/vfs_syscalls.c:2959
#8  syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline]
#8  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#9  Xsyscall+0x128
Process 80077 (dhclient) thread 0xffff800020a6e008 (126214)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82614e30)
#0  witness_lock+0x52e sys/kern/subr_witness.c:1163
#1  solock+0x66 sys/kern/uipc_socket2.c:292
#2  soreceive+0x114 sys/kern/uipc_socket.c:706
#3  soo_read+0x53 sys/kern/sys_socket.c:70
#4  dofilereadv+0x1a2 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:92 [inline]
#6  syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555
#7  Xsyscall+0x128
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf  9551   7446K    7961K  78643K     12011        0
            pcb    13      8K       8K  78643K        75        0
         rtable    84      3K       4K  78643K       321        0
         ifaddr    64     12K      15K  78643K       123        0
       counters    39     33K      33K  78643K        39        0
       ioctlops     0      0K       4K  78643K      1480        0
            iov     0      0K      16K  78643K       219        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1225     77K      77K  78643K      1595        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    10      1K       1K  78643K        11        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1809    196K     290K  78643K     12766        0
      file desc     3      5K      25K  78643K       248        0
           proc    62     63K      95K  78643K       472        0
        subproc    16      1K       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        34        0
       in_multi    43      2K       2K  78643K        75        0
    ether_multi     1      0K       0K  78643K         2        0
            mrt     0      0K       0K  78643K         6        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    96    424K     424K  78643K        96        0
           exec     0      0K       1K  78643K       227        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   107     13K      22K  78643K      1824        0
       UVM aobj    14      2K       2K  78643K        14        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       0K  78643K        27        0
           temp   116   3034K    3664K  78643K     18932        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        2     1     0     1     1     0     8    0
plcache    128       20    0        0     1     0     1     1     0     8    0
rtpcb       80       44    0       42     1     0     1     1     0     8    0
rtentry    112       61    0       29     2     0     2     2     0     8    0
unpcb      120      140    0      130     1     0     1     1     0     8    0
syncache   264        4    0        4     1     1     0     1     0     8    0
tcpqe       32     1196    0     1196     1     1     0     1     0     8    0
tcpcb      544      104    0      100     1     0     1     1     0     8    0
inpcb      280      378    0      371     3     0     3     3     0     8    2
rttmr       72        2    0        2     2     1     1     1     0     8    1
nd6         48        7    0        6     1     0     1     1     0     8    0
ppxss      1128       8    0        8     1     0     1     1     0     8    1
pffrag     232       15    0       15     1     0     1     1     0   482    1
pffrnode    88       15    0       15     1     0     1     1     0     8    1
pffrent     40      464    0      464     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       30    0        3     1     0     1     1     0     8    0
pfstkey    112       30    0        3     1     0     1     1     0     8    0
pfstate    328       30    0        3     3     0     3     3     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      284    0      130    14     1    13    14     0     8    1
art_table   32      285    0      130     2     0     2     2     0     8    0
art_node    16       60    0       30     1     0     1     1     0     8    0
sysvmsgpl   40       43    0       19     1     0     1     1     0     8    0
semupl     112        3    0        3     1     1     0     1     0     8    0
semapl     112        9    0        1     1     0     1     1     0     8    0
shmpl      112       12    0        0     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     1799    0      391    46     0    46    46     0     8    0
ffsino     272     1799    0      391    95     0    95    95     0     8    0
nchpl      144     2459    0      838    61     0    61    61     0     8    0
uvmvnodes   72     2150    0        0    40     0    40    40     0     8    0
vnodes     208     2150    0        0   114     0   114   114     0     8    0
namei      1024    7156    0     7155     1     0     1     1     0     8    0
percpumem   16       30    0        0     1     0     1     1     0     8    0
scxspl     192     6772    0     6771     8     6     2     7     0     8    1
plimitpl   152       31    0       24     1     0     1     1     0     8    0
sigapl     432      447    0      434     3     1     2     3     0     8    0
futexpl     56     5788    0     5788     1     0     1     1     0     8    1
knotepl    112       95    0       78     1     0     1     1     0     8    0
kqueuepl   104       70    0       68     1     0     1     1     0     8    0
pipepl     160      288    0      273     2     0     2     2     0     8    1
fdescpl    488      448    0      434     3     0     3     3     0     8    0
filepl     152     3451    0     3368     7     0     7     7     0     8    3
lockfpl    104       73    0       72     1     0     1     1     0     8    0
lockfspl    48       26    0       25     1     0     1     1     0     8    0
sessionpl  112       18    0        8     1     0     1     1     0     8    0
pgrppl      48       26    0       16     1     0     1     1     0     8    0
ucredpl     96      357    0      348     1     0     1     1     0     8    0
zombiepl   144      434    0      434     1     0     1     1     0     8    1
processpl  904      465    0      434     4     0     4     4     0     8    0
procpl     632     1040    0     1000     5     0     5     5     0     8    1
sosppl     128        8    0        8     2     1     1     1     0     8    1
sockpl     384      580    0      561     5     0     5     5     0     8    3
mcl64k     65536      9    0        0     2     0     2     2     0     8    0
mcl16k     16384      4    0        0     1     0     1     1     0     8    0
mcl12k     12288      3    0        0     1     0     1     1     0     8    0
mcl9k      9216       1    0        0     1     0     1     1     0     8    0
mcl8k      8192       5    0        0     1     0     1     1     0     8    0
mcl4k      4096       6    0        0     1     0     1     1     0     8    0
mcl2k2     2112       2    0        0     1     0     1     1     0     8    0
mcl2k      2048     185    0        0    23     0    23    23     0     8    0
mtagpl      80       18    0        0     1     0     1     1     0     8    0
mbufpl     256      447    0        0    27     0    27    27     0     8    0
bufpl      280     6875    0     1350   395     0   395   395     0     8    0
anonpl      16    57017    0    37210    82     1    81    81     0   125    0
amapchunkpl 152    2423    0     2273     8     1     7     8     0   158    0
amappl16   192     2146    0     1064    55     0    55    55     0     8    0
amappl15   184       58    0       54     1     0     1     1     0     8    0
amappl14   176       27    0       26     1     0     1     1     0     8    0
amappl13   168      107    0      106     1     0     1     1     0     8    0
amappl12   160        4    0        3     2     1     1     1     0     8    0
amappl11   152      168    0      152     1     0     1     1     0     8    0
amappl10   144       17    0       10     1     0     1     1     0     8    0
amappl9    136      609    0      606     1     0     1     1     0     8    0
amappl8    128      131    0      108     1     0     1     1     0     8    0
amappl7    120      107    0       92     1     0     1     1     0     8    0
amappl6    112      170    0      164     1     0     1     1     0     8    0
amappl5    104      133    0      119     1     0     1     1     0     8    0
amappl4     96      814    0      780     1     0     1     1     0     8    0
amappl3     88      120    0      112     1     0     1     1     0     8    0
amappl2     80     2646    0     2582     3     1     2     3     0     8    0
amappl1     72    19620    0    19198    26    16    10    21     0     8    0
amappl      80     1294    0     1252     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       13    0        0     1     0     1     1     0     8    0
uaddrrnd    24      448    0      434     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      448    0      434     1     0     1     1     0     8    0
vmmpekpl   168     7388    0     7357     2     0     2     2     0     8    0
vmmpepl    168    62687    0    60600   139    18   121   133     0   357   20
vmsppl     368      447    0      434     2     0     2     2     0     8    0
pdppl      4096     903    0      868     6     0     6     6     0     8    1
pvpl        32   188484    0   165632   191     0   191   191     0   265    3
pmappl     232      447    0      434     2     1     1     2     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      186    0        4     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
2019/12/21 13:05 openbsd c546434136a2 34011c05 .config console log report ci-openbsd-multicore
* Struck through repros no longer work on HEAD.