syzbot


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

Status: closed as dup on 2019/12/29 16:23
Reported-by: syzbot+d10273fb90ed06d2b8cc@syzkaller.appspotmail.com
First crash: 1573d, last: 1573d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
panic: receive 1: so ADDR, so_type 3, sb_cc 176 1 1635d 1635d

Sample crash report:
panic: receive 1: so 0xfffffd805e4d2000, so_type 3, sb_cc 112
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*495424  70261      0           0          0    0  dhclient
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821a2cc5) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd805e4d2000,0,ffff80001d37e5f8,0,0,ffff80001d37e504) at soreceive+0x16ac sys/kern/uipc_socket.c:798
soo_read(fffffd80619fc438,ffff80001d37e5f8,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff8000ffff93c8,6,ffff80001d37e5f8,0,ffff80001d37e6e0) at dofilereadv+0x1a2 sys/kern/sys_generic.c:236
sys_read(ffff8000ffff93c8,ffff80001d37e690,ffff80001d37e6e0) at sys_read+0x83 sys/kern/sys_generic.c:156
syscall(ffff80001d37e760) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffe2e30, 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> 
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
receive 1: so 0xfffffd805e4d2000, so_type 3, sb_cc 112
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821a2cc5) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd805e4d2000,0,ffff80001d37e5f8,0,0,ffff80001d37e504) at soreceive+0x16ac sys/kern/uipc_socket.c:798
soo_read(fffffd80619fc438,ffff80001d37e5f8,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff8000ffff93c8,6,ffff80001d37e5f8,0,ffff80001d37e6e0) at dofilereadv+0x1a2 sys/kern/sys_generic.c:236
sys_read(ffff8000ffff93c8,ffff80001d37e690,ffff80001d37e6e0) at sys_read+0x83 sys/kern/sys_generic.c:156
syscall(ffff80001d37e760) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffe2e30, count: -8
ddb> show registers
rdi                                0
rsi                              0x1
rbp               0xffff80001d37e340
rbx               0xffff80001d37e3f0
rdx                              0x2
rcx                                0
rax                                0
r8                0xffff80001d37e300
r9                               0x1
r10                                0
r11               0xe9981e387ca5ecbc
r12                     0x3000000008
r13               0xffff80001d37e350
r14                            0x100
r15                              0x1
rip               0xffffffff815afb78    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff80001d37e330
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb> show proc
PROC (dhclient) pid=495424 stat=onproc
    flags process=0 proc=0
    pri=50, usrpri=50, nice=20
    forw=0xffffffffffffffff, list=0xffff8000ffff8008,0xffff8000ffff9650
    process=0xffff8000ffff6a48 user=0xffff80001d379000, vmspace=0xfffffd806bc09110
    estcpu=0, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 37508  121112  60178      0  2           0                syz-executor.0
 37508   63995  60178      0  3   0x4000000  tqbar         syz-executor.0
 14954   26298      0      0  3     0x14200  bored         sosplice
 60178    2213  90824      0  2       0x482                syz-executor.0
 13131  306042  90824      0  3        0x82  nanosleep     syz-executor.1
 90824  296163  40335      0  3        0x82  thrsleep      syz-fuzzer
 90824  141758  40335      0  3   0x4000082  thrsleep      syz-fuzzer
 90824  342675  40335      0  3   0x4000082  thrsleep      syz-fuzzer
 90824  485092  40335      0  3   0x4000082  thrsleep      syz-fuzzer
 90824  317874  40335      0  3   0x4000082  kqread        syz-fuzzer
 90824  184266  40335      0  3   0x4000082  thrsleep      syz-fuzzer
 90824   60246  40335      0  3   0x4000082  thrsleep      syz-fuzzer
 90824  112473  40335      0  3   0x4000082  thrsleep      syz-fuzzer
 40335   50796  70873      0  3    0x10008a  pause         ksh
 70873  344866  22086      0  3        0x92  select        sshd
 19741   69706      1      0  3    0x100083  ttyin         getty
 22086  451193      1      0  3        0x80  select        sshd
 97981  521468  50252     73  3    0x100090  kqread        syslogd
 50252  153514      1      0  3    0x100082  netio         syslogd
 77395  491433      1     77  2    0x100010                dhclient
*70261  495424      1      0  7           0                dhclient
 73806  507255      0      0  2     0x14200                zerothread
 64590  391545      0      0  3     0x14200  aiodoned      aiodoned
 62243  179846      0      0  3     0x14200  syncer        update
 85617  450618      0      0  3     0x14200  cleaner       cleaner
 10000  316994      0      0  3     0x14200  reaper        reaper
 14644  261939      0      0  3     0x14200  pgdaemon      pagedaemon
 77103  150839      0      0  3     0x14200  bored         crynlk
 71145  442687      0      0  3     0x14200  bored         crypto
 82709  217588      0      0  3  0x40014200  acpi0         acpi0
 97846  490762      0      0  2     0x14200                softnet
 54409  170849      0      0  2     0x14200                systqmp
 55811  474450      0      0  3     0x14200  bored         systq
 20543   16306      0      0  3  0x40014200  bored         softclock
 77263   36789      0      0  3  0x40014200                idle0
 51724   97527      0      0  3     0x14200  bored         smr
     1  249607      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb> show all locks
No such command
ddb> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf  9474   6334K    6588K  78643K     10697        0
            pcb    13      8K       8K  78643K        29        0
         rtable    74     10K      11K  78643K       320        0
         ifaddr    49     10K      14K  78643K        92        0
       counters    19     16K      16K  78643K        19        0
       ioctlops     0      0K       2K  78643K        45        0
            iov     0      0K      12K  78643K        14        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1215     76K      77K  78643K      1262        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      0K       0K  78643K         2        0
            sem     6      0K       0K  78643K         6        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1794    195K     288K  78643K     12646        0
      file desc     5     13K      25K  78643K       220        0
          sigio     0      0K       0K  78643K        10        0
           proc    48     38K      54K  78643K       359        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         6        0
       in_multi    63      2K       3K  78643K       136        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    43    201K     201K  78643K        43        0
           exec     0      0K       1K  78643K       183        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   111     22K      31K  78643K      1312        0
       UVM aobj     4      2K       2K  78643K         4        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       1K  78643K        26        0
            NDP     8      0K       0K  78643K        15        0
           temp    82   3009K    3074K  78643K      3636        0
      SYN cache     2     16K      16K  78643K         2        0
ddb> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp         64        6    0        4     1     0     1     1     0     8    0
rtpcb       80       29    0       27     1     0     1     1     0     8    0
rtentry    112       87    0       60     2     0     2     2     0     8    0
unpcb      120       49    0       41     1     0     1     1     0     8    0
syncache   264        4    0        4     1     1     0     1     0     8    0
tcpqe       32       20    0       20     2     2     0     1     0     8    0
tcpcb      544       26    0       22     1     0     1     1     0     8    0
inpcb      280      324    0      316     2     0     2     2     0     8    1
nd6         48        7    0        7     1     0     1     1     0     8    1
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      543    0      349    14     0    14    14     0     8    0
art_table   32      544    0      349     2     0     2     2     0     8    0
art_node    16       86    0       52     1     0     1     1     0     8    0
sysvmsgpl   40        4    0        2     1     0     1     1     0     8    0
semupl     112        1    0        1     1     0     1     1     0     8    1
semapl     112        4    0        0     1     0     1     1     0     8    0
shmpl      112        2    0        0     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     1633    0      234    46     0    46    46     0     8    0
ffsino     240     1633    0      234    83     0    83    83     0     8    0
nchpl      144     2063    0      452    60     0    60    60     0     8    0
uvmvnodes   72     1706    0        0    32     0    32    32     0     8    0
vnodes     208     1706    0        0    90     0    90    90     0     8    0
namei      1024    5016    0     5016     1     0     1     1     0     8    1
scxspl     192     5673    0     5673     1     0     1     1     0     8    1
plimitpl   152       14    0        7     1     0     1     1     0     8    0
sigapl     432      391    0      378     2     0     2     2     0     8    0
futexpl     56     2719    0     2719     1     0     1     1     0     8    1
knotepl    112       64    0       45     1     0     1     1     0     8    0
kqueuepl   104      142    0      139     1     0     1     1     0     8    0
pipepl     112      228    0      209     1     0     1     1     0     8    0
fdescpl    424      392    0      378     2     0     2     2     0     8    0
filepl     120     1988    0     1891     4     0     4     4     0     8    1
lockfpl    104       16    0       15     1     0     1     1     0     8    0
lockfspl    48        5    0        4     1     0     1     1     0     8    0
sessionpl  112       17    0        7     1     0     1     1     0     8    0
pgrppl      48       17    0        7     1     0     1     1     0     8    0
ucredpl     96      121    0      114     1     0     1     1     0     8    0
zombiepl   144      378    0      377     1     0     1     1     0     8    0
processpl  872      407    0      377     4     0     4     4     0     8    0
procpl     632      616    0      578     4     0     4     4     0     8    0
sosppl     128        7    0        7     1     0     1     1     0     8    1
sockpl     384      408    0      390     3     0     3     3     0     8    1
mcl64k     65536      8    0        8     1     0     1     1     0     8    1
mcl16k     16384      1    0        1     1     0     1     1     0     8    1
mcl12k     12288      2    0        2     1     0     1     1     0     8    1
mcl9k      9216       1    0        1     1     0     1     1     0     8    1
mcl8k      8192       4    0        4     1     0     1     1     0     8    1
mcl4k      4096      12    0       12     2     1     1     1     0     8    1
mcl2k      2048   69191    0    69143    16     4    12    13     0     8    5
mtagpl      80        9    0        6     2     1     1     1     0     8    0
mbufpl     256   110308    0   110245    15     3    12    12     0     8    0
bufpl      280     6357    0     1326   360     0   360   360     0     8    0
anonpl      16    52778    0    33911    86     1    85    85     0   107    5
amapchunkpl 152    1664    0     1516    11     0    11    11     0   158    4
amappl16   192     1848    0      751    56     0    56    56     0     8    1
amappl15   184      213    0      207     1     0     1     1     0     8    0
amappl14   176       28    0       24     1     0     1     1     0     8    0
amappl13   168        2    0        1     1     0     1     1     0     8    0
amappl12   160      113    0      111     2     1     1     1     0     8    0
amappl11   152       50    0       39     1     0     1     1     0     8    0
amappl10   144       17    0       14     1     0     1     1     0     8    0
amappl9    136      561    0      558     1     0     1     1     0     8    0
amappl8    128      110    0       89     1     0     1     1     0     8    0
amappl7    120       88    0       78     1     0     1     1     0     8    0
amappl6    112       56    0       49     1     0     1     1     0     8    0
amappl5    104      235    0      225     1     0     1     1     0     8    0
amappl4     96      603    0      575     1     0     1     1     0     8    0
amappl3     88      119    0      110     1     0     1     1     0     8    0
amappl2     80     2427    0     2358     3     1     2     3     0     8    0
amappl1     72    16402    0    15989    26    16    10    20     0     8    2
amappl      80      842    0      797     1     0     1     1     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        3    0        0     1     0     1     1     0     8    0
uaddrrnd    24      392    0      378     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      392    0      378     1     0     1     1     0     8    0
vmmpekpl   168     6406    0     6385     2     0     2     2     0     8    0
vmmpepl    168    54138    0    51953   136     5   131   131     0   357   31
vmsppl     272      391    0      378     2     0     2     2     0     8    1
pdppl      4096     790    0      756     6     0     6     6     0     8    1
pvpl        32   164567    0   142709   198     0   198   198     0   265   14
pmappl     200      391    0      378     1     0     1     1     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      149    0       10     4     0     4     4     0     8    0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/29 12:16 openbsd 8fdeade23c58 af6b8ef8 .config console log report ci-openbsd-main
* Struck through repros no longer work on HEAD.