KASAN: invalid memory access in igmp_leavegroup

Status: fixed on 2026/08/02 07:22
Reported-by: syzbot+4a08786178b626883543@syzkaller.appspotmail.com
Fix commit: 229406285b56 Do not use dangling pointer in igmp multicast.
First crash: 54d, last: 49d

Sample crash report:
panic: Caught invalid memory access at ffff800001d98b54 size 4 op 0
Stopped at      db_enter+0x17:  popq    %rbp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 266525  74064      0           0          0    0  syz-executor
db_enter() at db_enter+0x17 sys/arch/amd64/amd64/db_interface.c:457
panic(ffffffff84635f88) at panic+0x270 sys/kern/subr_prf.c:198
__asan_load4_noabort(ffff800001d98b54) at __asan_load4_noabort+0xa3
igmp_leavegroup(ffff80000016d080,ffff800001cc8800,ffff800039f13f20) at igmp_leavegroup+0x127 sys/netinet/igmp.c:583
in_delmulti(ffff80000016d080) at in_delmulti+0x10f sys/netinet/in.c:963
ip_freemoptions(ffff80000186aa60) at ip_freemoptions+0x9f sys/netinet/ip_output.c:-1
in_pcbdetach(ffff800001d90548) at in_pcbdetach+0x187 sys/netinet/in_pcb.c:605
rip_detach(ffff8000018f65f0) at rip_detach+0x72 sys/netinet/raw_ip.c:509
soclose(ffff8000018f65f0,0) at soclose+0x10a pru_detach sys/sys/protosw.h:281 [inline]
soclose(ffff8000018f65f0,0) at soclose+0x10a sys/kern/uipc_socket.c:403
soo_close(ffff800001d83a60,ffff80003bb46d20) at soo_close+0x72 sys/kern/sys_socket.c:169
fdrop(ffff800001d83a60,ffff80003bb46d20) at fdrop+0x1c3 sys/kern/kern_descrip.c:1281
closef(ffff800001d83a60,ffff80003bb46d20) at closef+0x263 sys/kern/kern_descrip.c:1265
fdfree(ffff80003bb46d20) at fdfree+0x16d sys/kern/kern_descrip.c:1203
exit1(ffff80003bb46d20,0,0,1) at exit1+0x81e sys/kern/kern_exit.c:217
end trace frame: 0xffff800039f143f0, count: 0
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
*cpu1: Caught invalid memory access at ffff800001d98b54 size 4 op 0
ddb{1}> show kasan
KASAN: invalid read of 4 bytes at 0xffff800001d98b54 from pc 0xffffffff829dd8d7
KASAN: first bad byte at 0xffff800001d98b54 (+0); shadow 0xfc: malloc use-after-free
KASAN: 0xffff800001d98b54 is 20 bytes inside the 64-byte malloc slot [0xffff800001d98b40..0xffff800001d98b80)
KASAN: allocated at:
#0  malloc+0xda0 sys/kern/kern_malloc.c:446
#1  rti_fill+0x1ba sys/netinet/igmp.c:184
#2  igmp_joingroup+0x1de sys/netinet/igmp.c:563
#3  in_addmulti+0x667 sys/netinet/in.c:927
#4  ip_setmoptions+0x1534 sys/netinet/ip_output.c:1604
#5  sosetopt+0x19e sys/kern/uipc_socket.c:1899
#6  sys_setsockopt+0x4bd sys/kern/uipc_syscalls.c:1226
#7  syscall+0x1089 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#7  syscall+0x1089 sys/arch/amd64/amd64/trap.c:783
#8  Xsyscall+0x128
KASAN: freed at:
#0  dofree+0x632 sys/kern/kern_malloc.c:630
#1  if_setrdomain+0x2f9 sys/net/if.c:2103
#2  ifioctl+0x25ae sys/net/if.c:-1
#3  sys_ioctl+0x868 sys/kern/sys_generic.c:510
#4  syscall+0x1089 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#4  syscall+0x1089 sys/arch/amd64/amd64/trap.c:783
#5  Xsyscall+0x128
KASAN: pc: igmp_leavegroup+0x127
KASAN: call trace:
#0  __asan_load4_noabort+0x82 kasan_shadow_check sys/kern/subr_kasan.c:1014 [inline]
#0  __asan_load4_noabort+0x82 sys/kern/subr_kasan.c:1098
#1  igmp_leavegroup+0x127 sys/netinet/igmp.c:583
#2  in_delmulti+0x10f sys/netinet/in.c:963
#3  ip_freemoptions+0x9f sys/netinet/ip_output.c:-1
#4  in_pcbdetach+0x187 sys/netinet/in_pcb.c:605
#5  rip_detach+0x72 sys/netinet/raw_ip.c:509
#6  soclose+0x10a pru_detach sys/sys/protosw.h:281 [inline]
#6  soclose+0x10a sys/kern/uipc_socket.c:403
#7  soo_close+0x72 sys/kern/sys_socket.c:169
#8  fdrop+0x1c3 sys/kern/kern_descrip.c:1281
#9  closef+0x263 sys/kern/kern_descrip.c:1265
#10 fdfree+0x16d sys/kern/kern_descrip.c:1203
#11 exit1+0x81e sys/kern/kern_exit.c:217
#12 sys_exit+0x4a
#13 syscall+0x1089 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#13 syscall+0x1089 sys/arch/amd64/amd64/trap.c:783
#14 Xsyscall+0x128
KASAN: shadow of 0xffff800001d98a00..0xffff800001d98c80 (1 cell = 8 bytes):
 0xffff800001d98a00: fc 08 fc fc fc fc fc fc fc 08 fc fc fc fc fc fc
 0xffff800001d98a80: fc 08 fc fc fc fc fc fc fc 08 fc fc fc fc fc fc
>0xffff800001d98b00: fc 08 fc fc fc fc fc fc fc 08[fc]fc fc fc fc fc
 0xffff800001d98b80: fc 08 fc fc fc fc fc fc 08 08 08 08 fb fc fc fc
 0xffff800001d98c00: 08 08 08 08 fb fc fc fc fc 08 fc fc fc fc fc fc
KASAN: legend: 00 valid; 01..07 partial; fb malloc redzone; fc malloc freed; fd pool freed; fe kmem; fa global; f1..f4/f8 stack/scope
ddb{1}> trace
db_enter() at db_enter+0x17 sys/arch/amd64/amd64/db_interface.c:457
panic(ffffffff84635f88) at panic+0x270 sys/kern/subr_prf.c:198
__asan_load4_noabort(ffff800001d98b54) at __asan_load4_noabort+0xa3
igmp_leavegroup(ffff80000016d080,ffff800001cc8800,ffff800039f13f20) at igmp_leavegroup+0x127 sys/netinet/igmp.c:583
in_delmulti(ffff80000016d080) at in_delmulti+0x10f sys/netinet/in.c:963
ip_freemoptions(ffff80000186aa60) at ip_freemoptions+0x9f sys/netinet/ip_output.c:-1
in_pcbdetach(ffff800001d90548) at in_pcbdetach+0x187 sys/netinet/in_pcb.c:605
rip_detach(ffff8000018f65f0) at rip_detach+0x72 sys/netinet/raw_ip.c:509
soclose(ffff8000018f65f0,0) at soclose+0x10a pru_detach sys/sys/protosw.h:281 [inline]
soclose(ffff8000018f65f0,0) at soclose+0x10a sys/kern/uipc_socket.c:403
soo_close(ffff800001d83a60,ffff80003bb46d20) at soo_close+0x72 sys/kern/sys_socket.c:169
fdrop(ffff800001d83a60,ffff80003bb46d20) at fdrop+0x1c3 sys/kern/kern_descrip.c:1281
closef(ffff800001d83a60,ffff80003bb46d20) at closef+0x263 sys/kern/kern_descrip.c:1265
fdfree(ffff80003bb46d20) at fdfree+0x16d sys/kern/kern_descrip.c:1203
exit1(ffff80003bb46d20,0,0,1) at exit1+0x81e sys/kern/kern_exit.c:217
sys_exit(ffff80003bb46d20,ffff800039f14570,ffff800039f144e0) at sys_exit+0x4a
syscall(ffff800039f14570) at syscall+0x1089 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff800039f14570) at syscall+0x1089 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7d678f2d93f0, count: -17
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff800039f13d10
rbx               0xffff800039f13d80
rdx                                0
rcx               0xffff800028ff3ff0
rax                                0
r8                 0x101010101010101
r9                0x8080808080808080
r10               0xffff800039f13af8
r11               0xffffffff8155f360    x86_bus_space_io_read_1
r12               0xffffffff84635f88    switch.table.pfkeyv2_acquire.11+0x9d2c8
r13               0xffff800028ff4c08
r14               0xffff800028ff4e07
r15                              0x1
rip               0xffffffff83abf557    db_enter+0x17
cs                               0x8
rflags                         0x246
rsp               0xffff800039f13d10
ss                              0x10
db_enter+0x17:  popq    %rbp
ddb{1}> show proc
PROC (syz-executor) tid=151636 pid=62618 tcnt=0 stat=onproc
    flags process=1008<EXITING,SINGLEEXIT> proc=2000<WEXIT>
    runpri=32, usrpri=86, slppri=32, nice=20
    wchan=0x0, wmesg=, ps_single=0xffff80003bb46d20 scnt=-1 ecnt=1
    forw=0xffffffffffffffff, list=0xffff800045ff42b8,0xffff800045ff5258
    process=0xffff80002b2d5368 user=0xffff800039f09000, vmspace=0xffff800001c93b90
    estcpu=36, cpticks=37, pctcpu=0.0, user=0, sys=28, intr=0
ddb{1}> ps
   PID     TID   PPID   UID  S      PRLAGS     PFLAGS WAIT      COMMAND
 86094  504800  14224     0  3      0x1000     0x2000 suspend   syz-executor
 86094  183210  14224     0  2      0x1000  0x4080000           syz-executor
 86094  411319  14224     0  2      0x1000  0x4080000           syz-executor
 86094  412290  14224     0  2      0x1000  0x4080000           syz-executor
 86094   49657  14224     0  2      0x1000  0x4080000           syz-executor
 74064  266525  84245     0  7           0          0           syz-executor
 74064   20111  84245     0  3           0  0x4000080 kqread    syz-executor
 74064  183091  84245     0  2           0  0x4000000           syz-executor
 90962  474428  44907     0  2           0          0           syz-executor
 90962  237461  44907     0  2           0  0x4000000           syz-executor
 90962  138006  44907     0  2           0  0x4000000           syz-executor
 42414  241280      1     0  3         0x2       0x80 nanoslp   getty
 85123  303868  23556     0  2           0          0           syz-executor
 85123  466615  23556     0  3           0  0x4000080 fsleep    syz-executor
 85123  472156  23556     0  3           0  0x4000080 fsleep    syz-executor
 56526  222050      0     0  3     0x14000      0x200 acct      acct
 46315  419133      0     0  3     0x14000      0x280 nfsidl    nfsio
  1755   92724      0     0  3     0x14000      0x280 nfsidl    nfsio
 34945  250833      0     0  3     0x14000      0x280 nfsidl    nfsio
 13285   97048      0     0  3     0x14000      0x280 nfsidl    nfsio
  9457   19014      0     0  3     0x14000      0x280 nfsidl    nfsio
 22963  465848      0     0  3     0x14000      0x280 nfsidl    nfsio
 33928  312504      0     0  3     0x14000      0x280 nfsidl    nfsio
 13909  484383      0     0  3     0x14000      0x280 nfsidl    nfsio
 39429  329100      0     0  3     0x14000      0x280 nfsidl    nfsio
 92994  258233      0     0  3     0x14000      0x280 nfsidl    nfsio
 13351  318285      0     0  3     0x14000      0x280 nfsidl    nfsio
  9158   69421      0     0  3     0x14000      0x280 nfsidl    nfsio
 61917   84006      0     0  3     0x14000      0x280 nfsidl    nfsio
 11023  307220      0     0  3     0x14000      0x280 nfsidl    nfsio
 99502  508471      0     0  3     0x14000      0x280 nfsidl    nfsio
 26717   72851      0     0  3     0x14000      0x280 nfsidl    nfsio
 75125  367791      0     0  3     0x14000      0x280 nfsidl    nfsio
 17550  326538      0     0  3     0x14000      0x280 nfsidl    nfsio
 80816  459622      0     0  3     0x14000      0x280 nfsidl    nfsio
 27328   84676      0     0  3     0x14000      0x280 nfsidl    nfsio
 84245  157719  14192     0  3         0x2       0x80 nanoslp   syz-executor
 46540  198849  17325     0  3    0x100002       0x80 sbwait    arp
 17325  429117  12236     0  3    0x100002       0x88 sigsusp   sh
 23556     916  14192     0  3         0x2       0x80 nanoslp   syz-executor
 55736  190914  14192     0  3         0x2       0x80 wait      syz-executor
 42490  347542  14192     0  3         0x2       0x80 nanoslp   syz-executor
 95236  282273  14192     0  3         0x2       0x80 piperd    syz-executor
 12236  140214  14192     0  3         0x2       0x80 wait      syz-executor
 14224  153666  14192     0  3         0x2       0x80 nanoslp   syz-executor
 44907   67281  14192     0  2         0x2          0           syz-executor
 14192  517610      1     0  2         0x2          0           syz-executor
 87315  436403      0     0  3     0x14000      0x200 bored     smr
 89844  363221      0     0  2     0x14000      0x200           zerothread
 86205  215209      0     0  3     0x14000      0x200 aiodoned  aiodoned
 30461  332582      0     0  3     0x14000      0x200 syncer    update
  4003  446445      0     0  3     0x14000      0x200 cleaner   cleaner
 54584  452438      0     0  3     0x14000      0x200 reaper    reaper
 92399  512954      0     0  3     0x14000      0x200 pgdaemon  pagedaemon
 85977  321751      0     0  3     0x14000      0x200 bored     viomb
 42654  522374      0     0  3     0x14000 0x40000200 acpi0     acpi0
 20290   28717      0     0  3     0x14000 0x40000200           idle1
 43012   12371      0     0  3     0x14000      0x200 bored     softnet1
 76179  438778      0     0  3     0x14000      0x200 bored     softnet0
 37141  256838      0     0  3     0x14000      0x200 smrbar    systqmp
 26912  401246      0     0  3     0x14000      0x200 bored     systq
 28226    9752      0     0  3     0x14000      0x200 tmoslp    softclockmp
 37586   51288      0     0  3     0x14000 0x40000200 tmoslp    softclock
 14709  180515      0     0  3     0x14000 0x40000200           idle0
     1  153555      0     0  3         0x2       0x80 wait      init
     0       0     -1     0  3     0x10000      0x200 scheduler swapper
ddb{1}> show all locks
Process 37141 (systqmp) thread 0xffff800045ffe000 (256838)
shared rwlock systqmp r = 0 (0xffffffff84f660b8)
#0  witness_lock+0x632 stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0  witness_lock+0x632 sys/kern/subr_witness.c:1160
#1  taskq_thread+0x1ba sys/kern/kern_task.c:442
#2  proc_trampoline+0x10
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 11054  12170K   12470K 166960K     12242        0
            pcb    17     28K      30K 166960K        46        0
         rtable   209     19K      20K 166960K       383        0
             pf    37     23K      25K 166960K        56        0
         ifaddr    41     11K      12K 166960K        52        0
        ifgroup    59      2K       2K 166960K        69        0
         sysctl     1      1K      13K 166960K         5        0
       counters    72     43K      43K 166960K        78        0
       ioctlops     0      0K       4K 166960K      1501        0
            iov     0      0K      16K 166960K         9        0
          mount     1      1K       1K 166960K         1        0
            log     1      0K       0K 166960K         5        0
         vnodes  1325     85K      85K 166960K      1480        0
      UFS quota     1     36K      36K 166960K         1        0
      UFS mount     5     44K      44K 166960K         5        0
            shm     2      2K       6K 166960K         4        0
         VM map     2      1K       1K 166960K         2        0
            sem     5      0K       1K 166960K         8        0
        dirhash    12      2K       2K 166960K        12        0
           ACPI  1734    201K     292K 166960K     11964        0
      file desc    17     65K      97K 166960K       261        0
          sigio     0      0K       0K 166960K         4        0
           proc    19     46K     161K 166960K       597        0
        subproc    72      9K       9K 166960K        81        0
    NFS srvsock     1      0K       0K 166960K         1        0
     NFS daemon     1     20K      20K 166960K         1        0
    ip_moptions     2      0K       0K 166960K         8        0
       in_multi    79      5K       6K 166960K       101        0
    ether_multi     1      0K       0K 166960K         1        0
            mrt     0      0K       0K 166960K        10        0
    ISOFS mount     1     36K      36K 166960K         1        0
  MSDOSFS mount     1     20K      20K 166960K         1        0
           ttys    55    384K     384K 166960K        55        0
           exec     0      0K       2K 166960K       429        0
   fusefs mount     1     36K      36K 166960K         1        0
            tdb     3      1K       1K 166960K         3        0
        VM swap    14    124K     124K 166960K        15        0
       UVM amap   132    132K     245K 166960K      4381        0
       UVM aobj     7      4K       8K 166960K         8        0
     pinsyscall  1045   1733K    1772K 166960K      1438        0
        memdesc     1      4K       4K 166960K         1        0
    crypto data     1      1K       1K 166960K         1        0
    ip6_options     0      0K       0K 166960K         1        0
            NDP    13      0K       1K 166960K        32        0
           temp    38   9162K    9182K 166960K      7969        0
         kqueue     2      8K      52K 166960K        48        0
      SYN cache     2     16K      16K 166960K         2        0
ddb{1}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache    128       28    0        0     1     0     1     1     0     8    0
rtpcb      120       35    0       34     1     0     1     1     0     8    0
rtentry    176      118    0       25     5     0     5     5     0     8    0
unpcb      144      170    0      170     4     0     4     4     0     8    4
syncache   336        4    0        4     1     1     0     1     0     8    0
tcpcb      736       16    0       15     1     0     1     1     0     8    0
arp        136       20    0        4     1     0     1     1     0     8    0
inpcb      328      225    0      222     7     0     7     7     0     8    5
nd6        152       27    0        8     1     0     1     1     0     8    0
kcovpl      48        9    0        1     1     0     1     1     0     8    0
ppxss      1192       1    0        1     1     0     1     1     0     8    1
pffrag     232        1    0        0     1     0     1     1     0   482    0
pffrnode    88        1    0        0     1     0     1     1     0     8    0
pffrent     40        2    0        1     1     0     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
pftag       88        1    0        0     1     0     1     1     0     8    0
pfstitem    24       15    0        0     1     0     1     1     0     8    0
pfstkey    128       15    0        0     1     0     1     1     0     8    0
pfstate    448       15    0        0     2     0     2     2     0     8    0
pfrule     1360      24    0       18     2     1     1     2     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256      462    0       44    27     0    27    27     0     8    0
art_table   40      463    0       44     5     0     5     5     0     8    0
art_node    32      118    0       21     1     0     1     1     0     8    0
sysvmsgpl   40        2    0        0     1     0     1     1     0     8    0
semapl      72        4    0        1     1     0     1     1     0     8    0
shmpl      112        5    0        1     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     1771    0      300    93     0    93    93     0     8    0
ffsino     296     1771    0      300   114     0   114   114     0     8    0
nchpl      144     2136    0      428    64     0    64    64     0     8    0
vnodes     216     1950    0        0   109     0   109   109     0     8    0
namei      1024    7111    0     7111     1     0     1     1     0     8    1
percpumem   16       55    0        3     1     0     1     1     0     8    0
kstatmem   264       37    0        6     3     0     3     3     0     8    0
scxspl     216     7589    0     7589     4     3     1     3     1     8    1
plimitpl   152      105    0       95     1     0     1     1     0     8    0
sigapl     424      598    0      541     8     0     8     8     0     8    0
knotepl    120       95    0        0     3     0     3     3     0     8    0
kqueuepl   224      131    0      128     5     0     5     5     0     8    4
pipepl     344      142    0      115     3     0     3     3     0     8    0
fdescpl    528      561    0      541     3     0     3     3     0     8    0
filepl     160     2654    0     2490    15     0    15    15     0     8    3
lockfpl    104      157    0      154     1     0     1     1     0     8    0
lockfspl    48       30    0       27     1     0     1     1     0     8    0
sessionpl  144       31    0       29     1     0     1     1     0     8    0
pgrppl      48       40    0       30     1     0     1     1     0     8    0
ucredpl    104      240    0      236     1     0     1     1     0     8    0
zombiepl   144      543    0      541     1     0     1     1     0     8    0
processpl  1232     598    0      541     6     0     6     6     0     8    0
procpl     664      810    0      743     7     0     7     7     0     8    0
sosppl     176        2    0        2     1     0     1     1     0     8    1
sockpl     752      432    0      428    13     4     9    13     0     8    8
mcl8k      8192       3    0        0     1     0     1     1     0     8    0
mcl4k      4096     134    0        0    17     0    17    17     0     8    0
mcl2k      2048      25    0        0     4     0     4     4     0     8    0
mextrefs    64       27    0        0     1     0     1     1     0     8    0
mtagpl      96        3    0        0     1     0     1     1     0     8    0
mbufpl     256      269    0        0    17     0    17    17     0     8    0
bufpl      272     2556    0      109   164     0   164   164     0     8    0
anonpl      32     4540    0        0    37     0    37    37     0   222    0
amapchunkpl 152   12436    0    12102    23     0    23    23     0   158    4
amappl16   200     2055    0     2038     6     3     3     5     0     8    0
amappl15   192        5    0        5     2     2     0     1     0     8    0
amappl14   184      439    0      438     1     0     1     1     0     8    0
amappl13   176      131    0      129     1     0     1     1     0     8    0
amappl12   168      816    0      797     2     0     2     2     0     8    0
amappl11   160        9    0        9     3     2     1     1     0     8    1
amappl10   152       84    0       84     1     0     1     1     0     8    1
amappl9    144      274    0      273     1     0     1     1     0     8    0
amappl8    136      124    0      124     1     0     1     1     0     8    1
amappl7    128      163    0      160     1     0     1     1     0     8    0
amappl6    120      161    0      160     1     0     1     1     0     8    0
amappl5    112      107    0      106     1     0     1     1     0     8    0
amappl4    104      295    0      291     1     0     1     1     0     8    0
amappl3     96     2286    0     2208     4     0     4     4     0     8    1
amappl2     88      546    0      536     2     0     2     2     0     8    0
amappl1     80    10987    0    10840    16     0    16    16     0     8    6
amappl      88     3627    0     3514     5     0     5     5     0    92    0
uvmvnodes   80      104    0        0     3     0     3     3     0     8    0
dma4096    4096       2    0        2     2     1     1     1     0     8    1
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        7    0        1     1     0     1     1     0     8    0
uaddrrnd    24      561    0      541     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      561    0      541     1     0     1     1     0     8    0
vmmpekpl   168     6727    0     6690     2     0     2     2     0     8    0
vmmpepl    168    45140    0    44257    90     0    90    90     0   357   44
vmsppl     488      560    0      541     5     0     5     5     0     8    0
rwobjpl     80    16174    0    15716    25     0    25    25     0     8    1
pdppl      4096    1131    0     1082    99    24    75    89     0     8   26
pvpl        32    12257    0        0    99     0    99    99     0   265    0
pmappl     256      560    0      541     3     0     3     3     0     8    0
extentpl    40       47    0       29     1     0     1     1     0     8    0
phpool     120      440    0       28    13     0    13    13     0     8    0
ddb{1}> machine ddbcpu 0
Stopped at      x86_ipi_db+0x19:        leave
x86_ipi_db(ffffffff85066ff0) at x86_ipi_db+0x19 sys/arch/amd64/amd64/db_interface.c:412
x86_ipi_handler() at x86_ipi_handler+0x112 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27
__mp_lock(ffffffff854fd3c0) at __mp_lock+0x272 __mp_lock_spin sys/kern/kern_lock.c:142 [inline]
__mp_lock(ffffffff854fd3c0) at __mp_lock+0x272 sys/kern/kern_lock.c:173
softintr_dispatch(0) at softintr_dispatch+0x215 sys/kern/kern_softintr.c:83
dosoftint(0) at dosoftint+0x7b sys/arch/amd64/amd64/intr.c:862
Xsoftclock() at Xsoftclock+0x27
end of kernel
end trace frame: 0x7c1816818ff0, count: 8
ddb{0}> trace
x86_ipi_db(ffffffff85066ff0) at x86_ipi_db+0x19 sys/arch/amd64/amd64/db_interface.c:412
x86_ipi_handler() at x86_ipi_handler+0x112 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27
__mp_lock(ffffffff854fd3c0) at __mp_lock+0x272 __mp_lock_spin sys/kern/kern_lock.c:142 [inline]
__mp_lock(ffffffff854fd3c0) at __mp_lock+0x272 sys/kern/kern_lock.c:173
softintr_dispatch(0) at softintr_dispatch+0x215 sys/kern/kern_softintr.c:83
dosoftint(0) at dosoftint+0x7b sys/arch/amd64/amd64/intr.c:862
Xsoftclock() at Xsoftclock+0x27
end of kernel
end trace frame: 0x7c1816818ff0, count: -7
ddb{0}> machine ddbcpu 1
Stopped at      db_enter+0x17:  popq    %rbp
db_enter() at db_enter+0x17 sys/arch/amd64/amd64/db_interface.c:457
panic(ffffffff84635f88) at panic+0x270 sys/kern/subr_prf.c:198
__asan_load4_noabort(ffff800001d98b54) at __asan_load4_noabort+0xa3
igmp_leavegroup(ffff80000016d080,ffff800001cc8800,ffff800039f13f20) at igmp_leavegroup+0x127 sys/netinet/igmp.c:583
in_delmulti(ffff80000016d080) at in_delmulti+0x10f sys/netinet/in.c:963
ip_freemoptions(ffff80000186aa60) at ip_freemoptions+0x9f sys/netinet/ip_output.c:-1
in_pcbdetach(ffff800001d90548) at in_pcbdetach+0x187 sys/netinet/in_pcb.c:605
rip_detach(ffff8000018f65f0) at rip_detach+0x72 sys/netinet/raw_ip.c:509
soclose(ffff8000018f65f0,0) at soclose+0x10a pru_detach sys/sys/protosw.h:281 [inline]
soclose(ffff8000018f65f0,0) at soclose+0x10a sys/kern/uipc_socket.c:403
soo_close(ffff800001d83a60,ffff80003bb46d20) at soo_close+0x72 sys/kern/sys_socket.c:169
fdrop(ffff800001d83a60,ffff80003bb46d20) at fdrop+0x1c3 sys/kern/kern_descrip.c:1281
closef(ffff800001d83a60,ffff80003bb46d20) at closef+0x263 sys/kern/kern_descrip.c:1265
fdfree(ffff80003bb46d20) at fdfree+0x16d sys/kern/kern_descrip.c:1203
exit1(ffff80003bb46d20,0,0,1) at exit1+0x81e sys/kern/kern_exit.c:217
end trace frame: 0xffff800039f143f0, count: 0
ddb{1}> trace
db_enter() at db_enter+0x17 sys/arch/amd64/amd64/db_interface.c:457
panic(ffffffff84635f88) at panic+0x270 sys/kern/subr_prf.c:198
__asan_load4_noabort(ffff800001d98b54) at __asan_load4_noabort+0xa3
igmp_leavegroup(ffff80000016d080,ffff800001cc8800,ffff800039f13f20) at igmp_leavegroup+0x127 sys/netinet/igmp.c:583
in_delmulti(ffff80000016d080) at in_delmulti+0x10f sys/netinet/in.c:963
ip_freemoptions(ffff80000186aa60) at ip_freemoptions+0x9f sys/netinet/ip_output.c:-1
in_pcbdetach(ffff800001d90548) at in_pcbdetach+0x187 sys/netinet/in_pcb.c:605
rip_detach(ffff8000018f65f0) at rip_detach+0x72 sys/netinet/raw_ip.c:509
soclose(ffff8000018f65f0,0) at soclose+0x10a pru_detach sys/sys/protosw.h:281 [inline]
soclose(ffff8000018f65f0,0) at soclose+0x10a sys/kern/uipc_socket.c:403
soo_close(ffff800001d83a60,ffff80003bb46d20) at soo_close+0x72 sys/kern/sys_socket.c:169
fdrop(ffff800001d83a60,ffff80003bb46d20) at fdrop+0x1c3 sys/kern/kern_descrip.c:1281
closef(ffff800001d83a60,ffff80003bb46d20) at closef+0x263 sys/kern/kern_descrip.c:1265
fdfree(ffff80003bb46d20) at fdfree+0x16d sys/kern/kern_descrip.c:1203
exit1(ffff80003bb46d20,0,0,1) at exit1+0x81e sys/kern/kern_exit.c:217
sys_exit(ffff80003bb46d20,ffff800039f14570,ffff800039f144e0) at sys_exit+0x4a
syscall(ffff800039f14570) at syscall+0x1089 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff800039f14570) at syscall+0x1089 sys/arch/amd64/amd64/trap.c:783
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7d678f2d93f0, count: -17
ddb{1}> 

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/02 01:49 https://github.com/blackgnezdo/openbsd-src.git syzbot-kasan e4b8011929a1 e611ffe1 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-kasan KASAN: invalid memory access in igmp_leavegroup
2026/07/27 23:05 https://github.com/blackgnezdo/openbsd-src.git syzbot-kasan 04858f5f1e88 45ae1df4 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-kasan KASAN: invalid memory access in igmp_leavegroup
* Struck through repros no longer work on HEAD.