syzbot


panic: receive 1: so ADDR, so_type 3, sb_cc 48 (2)

Status: closed as dup on 2020/02/16 13:55
Reported-by: syzbot+4cc42c08aea782e0d874@syzkaller.appspotmail.com
First crash: 1528d, last: 1528d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
panic: receive 1: so ADDR, so_type 3, sb_cc 6586 1 1551d 1551d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd panic: receive 1: so ADDR, so_type 3, sb_cc 48 1 1620d 1620d 0/3 closed as dup on 2019/11/17 14:11

Sample crash report:
panic: receive 1: so 0xfffffd805e564320, so_type 3, sb_cc 48
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*365072  37303      0           0          0    0  dhclient
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821bf469) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd805e564320,0,ffff80001d3725e8,0,0,ffff80001d3724f4) at soreceive+0x16ac sys/kern/uipc_socket.c:823
soo_read(fffffd805eb10618,ffff80001d3725e8,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff80001d339ea8,6,ffff80001d3725e8,0,ffff80001d3726d0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237
sys_read(ffff80001d339ea8,ffff80001d372680,ffff80001d3726d0) at sys_read+0x83 sys/kern/sys_generic.c:157
syscall(ffff80001d372750) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffff4f40, 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 0xfffffd805e564320, so_type 3, sb_cc 48
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff821bf469) at panic+0x15c sys/kern/subr_prf.c:207
soreceive(fffffd805e564320,0,ffff80001d3725e8,0,0,ffff80001d3724f4) at soreceive+0x16ac sys/kern/uipc_socket.c:823
soo_read(fffffd805eb10618,ffff80001d3725e8,0) at soo_read+0x53 sys/kern/sys_socket.c:70
dofilereadv(ffff80001d339ea8,6,ffff80001d3725e8,0,ffff80001d3726d0) at dofilereadv+0x1a1 sys/kern/sys_generic.c:237
sys_read(ffff80001d339ea8,ffff80001d372680,ffff80001d3726d0) at sys_read+0x83 sys/kern/sys_generic.c:157
syscall(ffff80001d372750) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7fffff4f40, count: -8
ddb> show registers
rdi                                0
rsi                              0x1
rbp               0xffff80001d372330
rbx               0xffff80001d3723e0
rdx                              0x2
rcx                                0
rax                                0
r8                0xffff80001d3722f0
r9                               0x1
r10                                0
r11               0x54ff42d88e2eee22
r12                     0x3000000008
r13               0xffff80001d372340
r14                            0x100
r15                              0x1
rip               0xffffffff81cd8128    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff80001d372320
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb> show proc
PROC (dhclient) pid=365072 stat=onproc
    flags process=0 proc=0
    pri=24, usrpri=50, nice=20
    forw=0xffffffffffffffff, list=0xffff80001d339008,0xffff80001d33a128
    process=0xffff8000ffffa390 user=0xffff80001d36d000, vmspace=0xfffffd806bc09770
    estcpu=0, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
  8337  493006  61446      0  2           0                syz-executor.1
  8337  421325  61446      0  2   0x4000000                syz-executor.1
 61446  140356  92568      0  2       0x482                syz-executor.1
 85023  372008      0      0  3     0x14200  bored         sosplice
 37705  422500  92568      0  2       0x482                syz-executor.0
 92568  401665  62879      0  3        0x82  thrsleep      syz-fuzzer
 92568  316942  62879      0  3   0x4000082  thrsleep      syz-fuzzer
 92568  249513  62879      0  3   0x4000082  thrsleep      syz-fuzzer
 92568  310018  62879      0  3   0x4000082  thrsleep      syz-fuzzer
 92568  257067  62879      0  3   0x4000082  thrsleep      syz-fuzzer
 92568  105794  62879      0  3   0x4000082  kqread        syz-fuzzer
 92568  310161  62879      0  3   0x4000082  thrsleep      syz-fuzzer
 92568  198194  62879      0  3   0x4000082  thrsleep      syz-fuzzer
 62879  447017  59241      0  3    0x10008a  pause         ksh
 59241  424407  50940      0  3        0x92  select        sshd
 38329  443628      1      0  3    0x100083  ttyin         getty
 50940  120717      1      0  3        0x80  select        sshd
  9578  156139  88115     73  3    0x100090  kqread        syslogd
 88115  444615      1      0  3    0x100082  netio         syslogd
 96493  202332      1     77  2    0x100010                dhclient
*37303  365072      1      0  7           0                dhclient
 84180  204934      0      0  2     0x14200                zerothread
 50712  263241      0      0  3     0x14200  aiodoned      aiodoned
 23010  354148      0      0  3     0x14200  syncer        update
   572  501112      0      0  3     0x14200  cleaner       cleaner
 99471  379036      0      0  3     0x14200  reaper        reaper
 50957  411735      0      0  3     0x14200  pgdaemon      pagedaemon
 12505  136013      0      0  3     0x14200  bored         crynlk
 28358  464516      0      0  3     0x14200  bored         crypto
 76843  109699      0      0  3  0x40014200  acpi0         acpi0
 99842  311750      0      0  2     0x14200                softnet
 87984  395495      0      0  3     0x14200  bored         systqmp
 80191  389602      0      0  3     0x14200  bored         systq
 24381  502108      0      0  3  0x40014200  bored         softclock
 10565  321180      0      0  3  0x40014200                idle0
 64141  302791      0      0  3     0x14200  bored         smr
     1  522464      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  9499   6351K    6844K  78643K     11159        0
            pcb    13      8K       8K  78643K        55        0
         rtable    97      2K       3K  78643K       390        0
         ifaddr    69     13K      13K  78643K       140        0
       counters    22     16K      17K  78643K        31        0
       ioctlops     0      0K       2K  78643K        26        0
            iov     0      0K      12K  78643K        36        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1222     77K      77K  78643K      1420        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K         9        0
         VM map     2      0K       0K  78643K         2        0
            sem    12      1K       1K  78643K        47        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1794    195K     288K  78643K     12646        0
      file desc     5     13K      25K  78643K       264        0
          sigio     0      0K       0K  78643K         9        0
           proc    51     38K      63K  78643K       435        0
        subproc    32      2K       2K  78643K        51        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K        39        0
       in_multi    29      1K       2K  78643K       132        0
    ether_multi     1      0K       0K  78643K        10        0
            mrt     0      0K       0K  78643K         9        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys    49    228K     228K  78643K        49        0
           exec     0      0K       1K  78643K       219        0
     pfkey data     0      0K       1K  78643K         2        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   103     37K      38K  78643K      1450        0
       UVM aobj    25      6K       6K  78643K        29        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K        40        0
            NDP    12      0K       0K  78643K        28        0
           temp   131   3025K    3089K  78643K     16195        0
         kqueue     3      4K      12K  78643K        29        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        9    0        3     1     0     1     1     0     8    0
rtpcb       80       31    0       29     1     0     1     1     0     8    0
rtentry    112      100    0       60     2     0     2     2     0     8    0
unpcb      120      169    0      161     1     0     1     1     0     8    0
syncache   264        6    0        6     2     1     1     1     0     8    1
tcpqe       32        9    0        9     2     2     0     1     0     8    0
tcpcb      544      119    0      114     1     0     1     1     0     8    0
ipq         40        5    0        5     1     0     1     1     0     8    1
ipqe        40      225    0      225     1     0     1     1     0     8    1
inpcb      280      353    0      345     2     0     2     2     0     8    1
rttmr       72        2    0        2     1     0     1     1     0     8    1
nd6         48       10    0        7     1     0     1     1     0     8    0
pkpcb       40        4    0        4     2     1     1     1     0     8    1
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      548    0      376    13     0    13    13     0     8    0
art_table   32      549    0      376     2     0     2     2     0     8    0
art_node    16       97    0       60     1     0     1     1     0     8    0
sysvmsgpl   40       27    0       24     2     1     1     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112       45    0       35     1     0     1     1     0     8    0
shmpl      112       27    0        4     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino1pl    128     1757    0      359    46     0    46    46     0     8    0
ffsino     240     1757    0      359    83     0    83    83     0     8    0
nchpl      144     2406    0      807    60     0    60    60     0     8    0
uvmvnodes   72     1954    0        0    36     0    36    36     0     8    0
vnodes     208     1954    0        0   103     0   103   103     0     8    0
namei      1024    6551    0     6551     1     0     1     1     0     8    1
vcpupl     1984       2    0        0     1     0     1     1     0     8    0
vmpool     528        2    0        0     1     0     1     1     0     8    0
scxspl     192     6811    0     6811     1     0     1     1     0     8    1
plimitpl   152       31    0       24     1     0     1     1     0     8    0
sigapl     432      432    0      419     2     0     2     2     0     8    0
futexpl     56     7066    0     7066     1     0     1     1     0     8    1
knotepl    112      107    0       88     1     0     1     1     0     8    0
kqueuepl   144      471    0      469     1     0     1     1     0     8    0
pipelkpl    16      145    0      135     1     0     1     1     0     8    0
pipepl     120      290    0      271     2     0     2     2     0     8    1
fdescpl    432      433    0      419     2     0     2     2     0     8    0
filepl     120     3449    0     3353     5     0     5     5     0     8    2
lockfpl    104       94    0       93     1     0     1     1     0     8    0
lockfspl    48       37    0       36     1     0     1     1     0     8    0
sessionpl  112       18    0        8     1     0     1     1     0     8    0
pgrppl      48       20    0       10     1     0     1     1     0     8    0
ucredpl     96      224    0      217     1     0     1     1     0     8    0
zombiepl   144      419    0      418     1     0     1     1     0     8    0
processpl  896      448    0      418     4     0     4     4     0     8    0
procpl     624      728    0      690     4     0     4     4     0     8    1
sosppl     128        2    0        2     1     1     0     1     0     8    0
sockpl     400      557    0      539     4     0     4     4     0     8    2
mcl64k     65536     29    0       29     1     0     1     1     0     8    1
mcl16k     16384      2    0        2     1     0     1     1     0     8    1
mcl12k     12288      5    0        5     1     0     1     1     0     8    1
mcl9k      9216       8    0        8     1     0     1     1     0     8    1
mcl8k      8192      17    0       17     1     0     1     1     0     8    1
mcl4k      4096      29    0       29     2     1     1     1     0     8    1
mcl2k2     2112       1    0        1     1     1     0     1     0     8    0
mcl2k      2048   62927    0    62883    14     7     7    12     0     8    1
mtagpl      80       40    0       12     2     1     1     1     0     8    0
mbufpl     256   103081    0   102943    28    10    18    23     0     8    2
bufpl      280     4498    0      163   310     0   310   310     0     8    0
anonpl      16    55151    0    38956    69     2    67    67     0   107    0
amapchunkpl 152    2081    0     1950    12     2    10    11     0   158    4
amappl16   192     1996    0     1093    48     0    48    48     0     8    2
amappl15   184        1    0        0     1     0     1     1     0     8    0
amappl14   176       67    0       64     2     1     1     1     0     8    0
amappl13   168       29    0       28     1     0     1     1     0     8    0
amappl12   160       20    0       19     2     1     1     1     0     8    0
amappl11   152      222    0      209     1     0     1     1     0     8    0
amappl10   144       13    0        9     1     0     1     1     0     8    0
amappl9    136      383    0      379     1     0     1     1     0     8    0
amappl8    128      290    0      269     1     0     1     1     0     8    0
amappl7    120      114    0      102     1     0     1     1     0     8    0
amappl6    112      167    0      165     1     0     1     1     0     8    0
amappl5    104      298    0      288     1     0     1     1     0     8    0
amappl4     96      520    0      488     1     0     1     1     0     8    0
amappl3     88      185    0      178     1     0     1     1     0     8    0
amappl2     80     2606    0     2543     3     1     2     3     0     8    0
amappl1     72    17506    0    17097    27    18     9    20     0     8    0
amappl      80      965    0      923     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       28    0        4     1     0     1     1     0     8    0
uaddrrnd    24      435    0      419     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      435    0      419     1     0     1     1     0     8    0
vmmpekpl   168     6705    0     6677     2     0     2     2     0     8    0
vmmpepl    168    58519    0    56569   127    10   117   119     0   357   29
vmsppl     272      434    0      419     2     0     2     2     0     8    0
pdppl      4096     876    0      840     6     1     5     6     0     8    0
pvpl        32   180145    0   160968   162     0   162   162     0   265    5
pmappl     200      434    0      419     1     0     1     1     0     8    0
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      167    0       21     5     0     5     5     0     8    0

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/16 13:49 openbsd 421bfb1f03de cf914200 .config console log report ci-openbsd-main
* Struck through repros no longer work on HEAD.