protection_fault: rtable_l2

Status: upstream: reported on 2026/10/03 20:59
Reported-by: syzbot+cf17b99f885236fa59fc@syzkaller.appspotmail.com
First crash: 6d07h, last: 6d07h

Sample crash report:
kernel: protection fault trap, code=0
Stopped at      rtable_l2+0x6b: movzbl  0(%rax,%rcx,4),%eax
ddb> 
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
the kernel did not panic
ddb> show kasan
No such command
ddb> trace
rtable_l2(0) at rtable_l2+0x6b sys/net/rtable.c:315
ifa_ifwithdstaddr(ffff80000160f160,0) at ifa_ifwithdstaddr+0xdc sys/net/if.c:1656
ifa_ifwithroute(c04,ffff80000160f160,ffff80000160f180,0) at ifa_ifwithroute+0xb5 sys/net/rtsock.c:-1
rtm_getifa(ffff80002c8b3630,0) at rtm_getifa+0x2dd sys/net/rtsock.c:-1
rtm_output(ffff80000160f100,ffff80002c8b36d8,ffff80002c8b3630,0,0) at rtm_output+0x7e4 sys/net/rtsock.c:952
route_output(fffff5006ce8fc00,ffff800010fde010) at route_output+0xa6a sys/net/rtsock.c:862
route_send(ffff800010fde010,fffff5006ce8fc00,0,0) at route_send+0xd7 sys/net/rtsock.c:322
sosend(ffff800010fde010,0,ffff80002c8b3938,0,0,0) at sosend+0x804 sys/kern/uipc_socket.c:-1
dofilewritev(ffff80002a7a0a78,3,ffff80002c8b3938,0,ffff80002c8b39e0) at dofilewritev+0x2bd sys/kern/sys_generic.c:384
sys_write(ffff80002a7a0a78,ffff80002c8b3a90,ffff80002c8b39e0) at sys_write+0xa2 sys/kern/sys_generic.c:300
syscall(ffff80002c8b3a90) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80002c8b3a90) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x77c1f8d3c870, count: -12
ddb> show registers
rdi                           0x4000    __ALIGN_SIZE+0x3000
rsi                                0
rbp               0xffff80002c8b3470
rbx               0xffff80000160f101
rdx                                0
rcx                                0
rax               0xffff00000001233f
r8                                 0
r9                                 0
r10               0x97b3ebbfcdedf04f
r11               0x85c6463640802bf8
r12               0xffff800000c55d70
r13                       0xfffffffe
r14                                0
r15                           0x4000    __ALIGN_SIZE+0x3000
rip               0xffffffff81cc4d9b    rtable_l2+0x6b
cs                               0x8
rflags                       0x10246    __ALIGN_SIZE+0xf246
rsp               0xffff80002c8b3440
ss                              0x10
rtable_l2+0x6b: movzbl  0(%rax,%rcx,4),%eax
ddb> show proc
PROC (ndp) tid=448141 pid=3910 tcnt=1 stat=onproc
    flags process=100002<EXEC,PLEDGE> proc=0
    runpri=50, usrpri=86, slppri=32, nice=20
    wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
    forw=0xffffffffffffffff, list=0xffff80002a7a0fa8,0xffffffff83a233e0
    process=0xffff80003bcd9238 user=0xffff80002c8ae000, vmspace=0xfffff5007187b018
    estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID   UID  S      PRLAGS     PFLAGS WAIT      COMMAND
* 3910  448141  83409     0  7    0x100002          0           ndp
 83409   34901  83391     0  3    0x100002       0x88 sigsusp   sh
 89318  497303  13086     0  2           0          0           syz-executor
 22864  357946  47970     0  2           0          0           syz-executor
 22864  308335  47970     0  3           0  0x4000080 fsleep    syz-executor
 96861  518884  81626    -1  2        0x10          0           syz-executor
 96861   92907  81626    -1  3        0x10  0x4000080 fsleep    syz-executor
 22125  101066  17938     0  2           0          0           syz-executor
 86896  234240   1727     0  2           0          0           syz-executor
 18982   11025  53344     0  2           0          0           syz-executor
 83391   50898  50176     0  3         0x2       0x80 wait      syz-executor
 53344  159097  50176     0  3         0x2       0x80 nanoslp   syz-executor
 13086   90707  50176     0  3         0x2       0x80 nanoslp   syz-executor
 47970  260459  50176     0  3         0x2       0x80 nanoslp   syz-executor
 81626  266819  50176     0  3         0x2       0x80 nanoslp   syz-executor
 17938  450805  50176     0  3         0x2       0x80 nanoslp   syz-executor
  1727  313865  50176     0  3         0x2       0x80 nanoslp   syz-executor
 50176   25328  44968     0  3         0x2       0x80 nanoslp   syz-executor
 44968  105122  86018     0  3    0x100002       0x88 sigsusp   ksh
 86018  167562  99445     0  3        0x10       0x88 kqread    sshd-session
 99445  458711  94744     0  3        0x12       0x80 kqread    sshd-session
  3765  342868      1     0  3    0x100003       0x80 ttyin     getty
 94744  254812      1     0  3           0       0x88 kqread    sshd
 64586  316900  60999    73  3   0x1100010       0x80 kqread    syslogd
 60999  287767      1     0  3    0x100002       0x80 sbwait    syslogd
  3374  193029      1     0  3    0x100000       0x80 kqread    resolvd
 36098  339563  36872    77  3    0x100012       0x80 kqread    dhcpleased
 44701   52746  36872    77  3    0x100012       0x80 kqread    dhcpleased
 36872    9488      1     0  3           0       0x80 kqread    dhcpleased
 50744  362384      0     0  3     0x14000      0x200 bored     smr
 61737  155931      0     0  2     0x14000      0x200           zerothread
 40907  520081      0     0  3     0x14000      0x200 aiodoned  aiodoned
 37792  237440      0     0  3     0x14000      0x200 syncer    update
  9243  497088      0     0  3     0x14000      0x200 cleaner   cleaner
 77747  132638      0     0  3     0x14000      0x200 reaper    reaper
 36253  410914      0     0  3     0x14000      0x200 pgdaemon  pagedaemon
 91362  375512      0     0  3     0x14000      0x200 bored     viomb
 58030  199160      0     0  3     0x14000 0x40000200 acpi0     acpi0
 95194  226830      0     0  3     0x14000      0x200 bored     softnet0
 59096  379983      0     0  3     0x14000      0x200 smrbar    systqmp
 36834  234000      0     0  3     0x14000      0x200 bored     systq
  8564  432966      0     0  3     0x14000 0x40000200 tmoslp    softclock
 76847  350338      0     0  3     0x14000 0x40000200           idle0
     1  226341      0     0  3         0x2       0x80 wait      init
     0       0     -1     0  3     0x10000      0x200 scheduler swapper
ddb> show all locks
No such command
ddb> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 11027  12102K   12181K 166960K     12379        0
            pcb    17     12K      12K 166960K        84        0
         rtable   226      7K       8K 166960K      1762        0
             pf    30     13K      16K 166960K       191        0
         ifaddr    38      7K       7K 166960K       229        0
        ifgroup    46      2K       2K 166960K       232        0
         sysctl     3      1K       9K 166960K         7        0
       counters    32     17K      17K 166960K        79        0
       ioctlops     0      0K       4K 166960K       136        0
            iov     0      0K      14K 166960K        12        0
          mount     1      1K       1K 166960K         1        0
            log     0      0K       0K 166960K         4        0
         vnodes  1294     81K      82K 166960K      2031        0
      UFS quota     1     32K      32K 166960K         1        0
      UFS mount     5     36K      36K 166960K         5        0
            shm     2      1K       5K 166960K         5        0
         VM map     2      1K       1K 166960K         2        0
            sem    27      1K       1K 166960K        44        0
        dirhash    12      2K       2K 166960K        12        0
           ACPI  1692    195K     286K 166960K     12470        0
      file desc    17     61K      97K 166960K      1015        0
          sigio     0      0K       0K 166960K         2        0
           proc    60     59K     100K 166960K      1770        0
        subproc    63      3K       4K 166960K       477        0
    NFS srvsock     1      0K       0K 166960K         1        0
     NFS daemon     1     16K      16K 166960K         1        0
    ip_moptions     0      0K       0K 166960K        31        0
       in_multi    88      5K       6K 166960K       596        0
    ether_multi     1      0K       0K 166960K         1        0
            mrt     1      0K       0K 166960K        20        0
    ISOFS mount     1     32K      32K 166960K         1        0
  MSDOSFS mount     1     16K      16K 166960K         1        0
           ttys    61    281K     281K 166960K        61        0
           exec     0      0K       1K 166960K      1123        0
   fusefs mount     1     32K      32K 166960K         1        0
     pfkey data     0      0K       0K 166960K         1        0
            tdb     3      0K       0K 166960K         3        0
        VM swap     8     62K      64K 166960K        10        0
       UVM amap   181    152K     168K 166960K      8338        0
       UVM aobj    74      3K       5K 166960K        75        0
     pinsyscall    39     78K      94K 166960K      3285        0
        memdesc     1      4K       4K 166960K         1        0
    crypto data     1      1K       1K 166960K         1        0
    ip6_options     0      0K       0K 166960K         7        0
            NDP    16      0K       2K 166960K       163        0
           temp    37   9107K    9246K 166960K     14432        0
         kqueue    13     20K      26K 166960K        54        0
      SYN cache     2     16K      16K 166960K         2        0
ddb> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
rtpcb      120      210    0      206     3     0     3     3     0     8    2
rtentry    136      607    0      508     4     0     4     4     0     8    0
unpcb      144      146    0      128     1     0     1     1     0     8    0
syncache   336        6    0        6     1     0     1     1     0     8    1
tcpqe       32       11    0       11     1     0     1     1     0     8    1
tcpcb      736       90    0       84     4     0     4     4     0     8    3
arp         96      108    0       92     1     0     1     1     0     8    0
ipq         40        2    0        0     1     0     1     1     0     8    0
ipqe        40        2    0        0     1     0     1     1     0     8    0
inpcb      328      514    0      503     7     0     7     7     0     8    6
ip6q        80       33    0       32     1     0     1     1     0     8    0
ip6af       40       65    0       64     1     0     1     1     0     8    0
nd6        112      159    0      138     1     0     1     1     0     8    0
pkpcb       40        1    0        1     1     0     1     1     0     8    1
kcovpl      48       53    0       46     1     0     1     1     0     8    0
ppxss      1072       1    0        1     1     0     1     1     0     8    1
pfstscr     40        2    0        2     1     0     1     1     0     8    1
pfrktable  1344       2    0        1     1     0     1     1     0     8    0
pftag       88        3    0        1     1     0     1     1     0     8    0
pfstitem    24        8    0        6     1     0     1     1     0     8    0
pfstkey    128       10    0        5     1     0     1     1     0     8    0
pfstate    384        5    0        1     1     0     1     1     0     8    0
pfrule     1360       3    0        2     1     0     1     1     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256     2474    0     2004    32     0    32    32     0     8    2
art_table   40     2475    0     2004     6     0     6     6     0     8    1
art_node    32      606    0      513     1     0     1     1     0     8    0
sysvmsgpl   40        3    0        0     1     0     1     1     0     8    0
semupl     112        2    0        2     1     0     1     1     0     8    1
semapl      72       42    0       17     1     0     1     1     0     8    0
shmpl      120       71    0        0     3     0     3     3     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     2051    0      484    98     0    98    98     0     8    0
ffsino     256     2051    0      484    98     0    98    98     0     8    0
nchpl      144     2511    0      651    69     0    69    69     0     8    0
vnodes     216     2666    0        0   149     0   149   149     0     8    0
namei      1024   13943    0    13943     3     0     3     3     0     8    3
vcpupl     3968      16    0       16     2     0     2     2     0     8    2
vmpool     808        1    0        1     1     0     1     1     0     8    1
kstatmem   264      115    0       94     2     0     2     2     0     8    0
scxspl     216    10331    0    10331     8     0     8     8     1     8    8
plimitpl   152      165    0      150     1     0     1     1     0     8    0
sigapl     424     1220    0     1178     6     0     6     6     0     8    1
knotepl    120    11223    0    11176    16     6    10    16     0     8    8
kqueuepl   184       83    0       74     1     0     1     1     0     8    0
pipepl     304      270    0      243     3     0     3     3     0     8    0
fdescpl    448     1207    0     1178     5     0     5     5     0     8    1
filepl     120     4572    0     4372    11     0    11    11     0     8    3
lockfpl    104       65    0       63     1     0     1     1     0     8    0
lockfspl    48       25    0       23     1     0     1     1     0     8    0
sessionpl  144       77    0       69     1     0     1     1     0     8    0
pgrppl      48      131    0      116     1     0     1     1     0     8    0
ucredpl    104      527    0      515     1     0     1     1     0     8    0
zombiepl   144     1178    0     1178     1     0     1     1     0     8    1
processpl  1160    1220    0     1178     4     0     4     4     0     8    0
procpl     664     1619    0     1575     6     0     6     6     0     8    2
sosppl     176        4    0        4     1     0     1     1     0     8    1
sockpl     552      874    0      841     7     0     7     7     0     8    4
mcl64k     65536      6    0        6     1     0     1     1     0     8    1
mcl16k     16384      2    0        2     1     0     1     1     0     8    1
mcl12k     12288      1    0        1     1     0     1     1     0     8    1
mcl8k      8192       4    0        4     1     0     1     1     0     8    1
mcl4k      4096    2748    0     2675    14     0    14    14     0     8    4
mcl2k2     2112       1    0        1     1     0     1     1     0     8    1
mcl2k      2048    1110    0     1109     2     0     2     2     0     8    1
mextrefs    64      267    0      267     1     0     1     1     0     8    1
mtagpl      96        4    0        4     1     0     1     1     0     8    1
mbufpl     256     9826    0     9641    17     0    17    17     0     8    4
bufpl      272     3666    0      107   238     0   238   238     0     8    0
anonpl      24   163028    0   160206    44     0    44    44     0   187   12
amapchunkpl 152   23511    0    23186    34     0    34    34     0   158   20
amappl16   200     2747    0     2730    21     9    12    14     0     8    8
amappl15   192       44    0       44     1     0     1     1     0     8    1
amappl14   184      949    0      947     1     0     1     1     0     8    0
amappl13   176      213    0      202     1     0     1     1     0     8    0
amappl12   168     1618    0     1594     2     0     2     2     0     8    0
amappl10   152       57    0       47     1     0     1     1     0     8    0
amappl9    144      271    0      271     1     0     1     1     0     8    1
amappl8    136      273    0      272     1     0     1     1     0     8    0
amappl7    128      244    0      232     1     0     1     1     0     8    0
amappl6    120      634    0      632     1     0     1     1     0     8    0
amappl5    112       89    0       82     1     0     1     1     0     8    0
amappl4    104      398    0      379     1     0     1     1     0     8    0
amappl3     96     4301    0     4235     3     0     3     3     0     8    0
amappl2     88     1144    0     1078     2     0     2     2     0     8    0
amappl1     80    16810    0    16246    13     0    13    13     0     8    1
amappl      88     6860    0     6746     5     0     5     5     0    92    1
uvmvnodes   80      104    0        0     3     0     3     3     0     8    0
dma8192    8192       1    0        1     1     0     1     1     0     8    1
dma4096    4096       1    0        1     1     0     1     1     0     8    1
dma1024    1024       2    0        1     1     0     1     1     0     8    0
dma256     256        6    0        6     1     0     1     1     0     8    1
dma128     128      253    0      253     1     0     1     1     0     8    1
dma64       64        6    0        6     1     0     1     1     0     8    1
dma32       32        7    0        7     1     0     1     1     0     8    1
dma16       16       18    0       17     1     0     1     1     0     8    0
aobjpl      72       74    0        1     2     0     2     2     0     8    0
uaddrrnd    24     1207    0     1178     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     1207    0     1178     1     0     1     1     0     8    0
vmmpekpl   168    10780    0    10737     3     0     3     3     0     8    0
vmmpepl    168    88556    0    86868    87     0    87    87     0   357   13
vmsppl     368     1206    0     1178     4     0     4     4     0     8    1
rwobjpl     40    26940    0    25954    13     0    13    13     0     8    0
pdppl      4096    2422    0     2358   136    68    68    82     0     8    4
pvpl        32   488688    0   481363   111     0   111   111     0   265   28
pmappl     216     1207    0     1179     3     0     3     3     0     8    1
extentpl    40       45    0       27     1     0     1     1     0     8    0
phpool     112      665    0       68    18     0    18    18     0     8    0
ddb> machine ddbcpu 0
No such command
ddb> trace
rtable_l2(0) at rtable_l2+0x6b sys/net/rtable.c:315
ifa_ifwithdstaddr(ffff80000160f160,0) at ifa_ifwithdstaddr+0xdc sys/net/if.c:1656
ifa_ifwithroute(c04,ffff80000160f160,ffff80000160f180,0) at ifa_ifwithroute+0xb5 sys/net/rtsock.c:-1
rtm_getifa(ffff80002c8b3630,0) at rtm_getifa+0x2dd sys/net/rtsock.c:-1
rtm_output(ffff80000160f100,ffff80002c8b36d8,ffff80002c8b3630,0,0) at rtm_output+0x7e4 sys/net/rtsock.c:952
route_output(fffff5006ce8fc00,ffff800010fde010) at route_output+0xa6a sys/net/rtsock.c:862
route_send(ffff800010fde010,fffff5006ce8fc00,0,0) at route_send+0xd7 sys/net/rtsock.c:322
sosend(ffff800010fde010,0,ffff80002c8b3938,0,0,0) at sosend+0x804 sys/kern/uipc_socket.c:-1
dofilewritev(ffff80002a7a0a78,3,ffff80002c8b3938,0,ffff80002c8b39e0) at dofilewritev+0x2bd sys/kern/sys_generic.c:384
sys_write(ffff80002a7a0a78,ffff80002c8b3a90,ffff80002c8b39e0) at sys_write+0xa2 sys/kern/sys_generic.c:300
syscall(ffff80002c8b3a90) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80002c8b3a90) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x77c1f8d3c870, count: -12
ddb> machine ddbcpu 1
No such command
ddb> trace
rtable_l2(0) at rtable_l2+0x6b sys/net/rtable.c:315
ifa_ifwithdstaddr(ffff80000160f160,0) at ifa_ifwithdstaddr+0xdc sys/net/if.c:1656
ifa_ifwithroute(c04,ffff80000160f160,ffff80000160f180,0) at ifa_ifwithroute+0xb5 sys/net/rtsock.c:-1
rtm_getifa(ffff80002c8b3630,0) at rtm_getifa+0x2dd sys/net/rtsock.c:-1
rtm_output(ffff80000160f100,ffff80002c8b36d8,ffff80002c8b3630,0,0) at rtm_output+0x7e4 sys/net/rtsock.c:952
route_output(fffff5006ce8fc00,ffff800010fde010) at route_output+0xa6a sys/net/rtsock.c:862
route_send(ffff800010fde010,fffff5006ce8fc00,0,0) at route_send+0xd7 sys/net/rtsock.c:322
sosend(ffff800010fde010,0,ffff80002c8b3938,0,0,0) at sosend+0x804 sys/kern/uipc_socket.c:-1
dofilewritev(ffff80002a7a0a78,3,ffff80002c8b3938,0,ffff80002c8b39e0) at dofilewritev+0x2bd sys/kern/sys_generic.c:384
sys_write(ffff80002a7a0a78,ffff80002c8b3a90,ffff80002c8b39e0) at sys_write+0xa2 sys/kern/sys_generic.c:300
syscall(ffff80002c8b3a90) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline]
syscall(ffff80002c8b3a90) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x77c1f8d3c870, count: -12

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/03 20:58 openbsd 27f877102cce 57bbd979 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main protection_fault: rtable_l2
* Struck through repros no longer work on HEAD.