NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/56844: delete auto-modified network route crash



The following reply was made to PR port-amd64/56844; it has been noted by GNATS.

From: ocb%l25.fi@localhost
To: gnats-bugs%NetBSD.org@localhost, riastradh%NetBSD.org@localhost
Cc: ocb%l25.fi@localhost, ozaki-r%NetBSD.org@localhost
Subject: Re: kern/56844: delete auto-modified network route crash
Date: Sat,  3 Dec 2022 06:37:27 +0100 (CET)

 requested information is below.
 
 fatal breakpoint trap in supervisor mode
 [ 1082.4798295] trap type 1 code 0 rip 0xffffffff80235315 cs 0x8 rflags 0x202 cr2 0x7acf3de6a660 ilevel 0x8 rsp 0xffffa70127c1cdc8
 [ 1082.4798295] curlwp 0xffff9f35f87fd040 pid 0.2 lowest kstack 0xffffa70127c182c0
 Stopped in pid 0.2 (system) at  netbsd:breakpoint+0x5:  leave
 breakpoint() at netbsd:breakpoint+0x5
 comintr() at netbsd:comintr+0x7e0
 intr_kdtrace_wrapper() at netbsd:intr_kdtrace_wrapper+0x26
 Xhandle_ioapic_edge1() at netbsd:Xhandle_ioapic_edge1+0x75
 --- interrupt ---
 x86_stihlt() at netbsd:x86_stihlt+0x6
 acpicpu_cstate_idle() at netbsd:acpicpu_cstate_idle+0x19a
 idle_loop() at netbsd:idle_loop+0x14c
 ds          a9c0
 es          cdc8
 fs          1cc9
 gs          cdc8
 rdi         ffffffff818450a0    x86_io
 rsi         800
 rbp         ffffa70127c1cdc8
 rbx         ffffa70007dd718a
 rdx         7f
 rcx         2b
 rax         1
 r8          19985
 r9          20
 r10         0
 r11         0
 r12         ffff9f35c120c4d0
 r13         800
 r14         cc
 r15         ffff9f35c120c400
 rip         ffffffff80235315    breakpoint+0x5
 cs          8
 rflags      202
 rsp         ffffa70127c1cdc8
 ss          10
 netbsd:breakpoint+0x5:  leave
 
 
 db{0}> ps
 PID    LID S CPU     FLAGS       STRUCT LWP *               NAME WAIT
 1207  1207 3   0         0   ffff9f35f6e06600              route rtentry
 1195  1195 3   3       180   ffff9f35f679b200                 sh wait
 1187  1187 3   0       180   ffff9f35f7e4f540              login wait
 1188  1188 3   2       180   ffff9f35f7d65580               cron nanoslp
 1277  1277 3   3       180   ffff9f35f6e061c0              inetd kqueue
 954    954 3   3       180   ffff9f35f7190a00             powerd kqueue
 639    639 3   1       180   ffff9f35f7190180            syslogd kqueue
 1        1 3   2       180   ffff9f35f7b82080               init wait
 0      178 3   2       200   ffff9f35f7dba0c0            physiod physiod
 0      222 3   1       200   ffff9f35f7e4f100          pooldrain pooldrain
 0      221 3   1       200   ffff9f35f7dba940            ioflush syncer
 0      220 3   2       200   ffff9f35f7dba500           pgdaemon pgdaemon
 0      217 3   3       200   ffff9f35f7b824c0          swwreboot swwreboot
 0      216 3   1       200   ffff9f35f7bce600             npfgc0 npfgcw
 0      215 3   2       200   ffff9f35f7b658c0            rt_free rt_free
 0      214 3   2       200   ffff9f35f7b65480              unpgc unpgc
 0      213 3   1       200   ffff9f35f7b65040    key_timehandler key_timehandler
 0      212 3   3       200   ffff9f35f7b2fbc0    icmp6_wqinput/3 icmp6_wqinput
 0      211 3   2       200   ffff9f35f7b2f780    icmp6_wqinput/2 icmp6_wqinput
 0      210 3   1       200   ffff9f35f7b2f340    icmp6_wqinput/1 icmp6_wqinput
 0      209 3   0       200   ffff9f35f7bf95c0    icmp6_wqinput/0 icmp6_wqinput
 0      208 3   0       200   ffff9f35f7be4140               usb3 usbevt
 0      207 3   0       200   ffff9f35f7be49c0               usb0 usbevt
 0      206 3   2       200   ffff9f35f7be4580               usb1 usbevt
 0      205 3   1       200   ffff9f35f7eb9b80               usb2 usbevt
 0      204 3   0       200   ffff9f35f7eb9740          nd6_timer nd6_timer
 0      203 3   3       200   ffff9f35f7eb9300    carp6_wqinput/3 carp6_wqinput
 0      202 3   2       200   ffff9f35f7ee4b40    carp6_wqinput/2 carp6_wqinput
 0      201 3   1       200   ffff9f35f7ee4700    carp6_wqinput/1 carp6_wqinput
 0      200 3   0       200   ffff9f35f7ee42c0    carp6_wqinput/0 carp6_wqinput
 0      199 3   3       200   ffff9f35f7ecfb00     carp_wqinput/3 carp_wqinput
 0      198 3   2       200   ffff9f35f7ecf6c0     carp_wqinput/2 carp_wqinput
 0      197 3   1       200   ffff9f35f7ecf280     carp_wqinput/1 carp_wqinput
 0      196 3   0       200   ffff9f35f7ebaac0     carp_wqinput/0 carp_wqinput
 0      195 3   3       200   ffff9f35f7eba680     icmp_wqinput/3 icmp_wqinput
 0      194 3   2       200   ffff9f35f7eba240     icmp_wqinput/2 icmp_wqinput
 0      193 3   1       200   ffff9f35f7ba5a80     icmp_wqinput/1 icmp_wqinput
 0      192 3   0       200   ffff9f35f7bf9180     icmp_wqinput/0 icmp_wqinput
 0      185 3   2       200   ffff9f35f7ba5640          atapibus0 sccomp
 0       31 3   3       200   ffff9f35f7ba5200           rt_timer rt_timer
 0       63 3   1       200   ffff9f35f7bcea40        vmem_rehash vmem_rehash
 0      117 3   0       200   ffff9f35c1392980          entbutler entropy
 0      116 3   0       200   ffff9f35c1392540              viomb balloon
 0      115 3   2       200   ffff9f35c1392100         usbtask-dr usbtsk
 0      114 3   1       200   ffff9f35c12ab940         usbtask-hc usbtsk
 0      113 3   3       200   ffff9f35c12ab500           wm0Reset wm0Reset
 0      112 3   3       200   ffff9f35c12ab0c0          wm0TxRx/3 wm0TxRx
 0      111 3   2       200   ffff9f35c13d6900          wm0TxRx/2 wm0TxRx
 0      110 3   1       200   ffff9f35c13d64c0          wm0TxRx/1 wm0TxRx
 0      109 3   0       200   ffff9f35c13d6080          wm0TxRx/0 wm0TxRx
 0      108 3   0       200   ffff9f35c12d08c0            atabus1 atath
 0      107 3   0       200   ffff9f35c12d0480            atabus0 atath
 0      106 3   0       200   ffff9f35c12d0040               pms0 pmsreset
 0      105 3   3       200   ffff9f35c1126bc0            xcall/3 xcall
 0      104 1   3       200   ffff9f35c1126780          softser/3
 0      103 1   3       200   ffff9f35c1126340          softclk/3
 0      102 1   3       200   ffff9f35c1149b80          softbio/3
 0      101 1   3       200   ffff9f35c1149740          softnet/3
 0    > 100 1   3       201   ffff9f35c1149300             idle/3
 0       99 3   2       200   ffff9f35c1069b40            xcall/2 xcall
 0       98 1   2       200   ffff9f35c1069700          softser/2
 0       97 3   2       200   ffff9f35c10692c0          softclk/2 tstile
 0       96 1   2       200   ffff9f35c108cb00          softbio/2
 0       30 1   2       200   ffff9f35c108c6c0          softnet/2
 0    >  29 1   2       201   ffff9f35c108c280             idle/2
 0       28 3   1       200   ffff9f35c0fadac0            xcall/1 xcall
 0       27 1   1       200   ffff9f35c0fad680          softser/1
 0       26 1   1       200   ffff9f35c0fad240          softclk/1
 0       25 1   1       200   ffff9f35c0f9da80          softbio/1
 0       24 1   1       200   ffff9f35c0f9d640          softnet/1
 0    >  23 1   1       201   ffff9f35c0f9d200             idle/1
 0       22 3   0       200   ffff9f35f7f3aa40           lnxsyswq lnxsyswq
 0       21 3   0       200   ffff9f35f7f3a600           lnxubdwq lnxubdwq
 0       20 3   0       200   ffff9f35f7f3a1c0           lnxpwrwq lnxpwrwq
 0       19 3   0       200   ffff9f35f7f4fa00           lnxlngwq lnxlngwq
 0       18 3   0       200   ffff9f35f7f4f5c0           lnxhipwq lnxhipwq
 0       17 3   0       200   ffff9f35f7f4f180           lnxrcugc lnxrcugc
 0       16 3   0       200   ffff9f35f7f629c0             sysmon smtaskq
 0       15 3   0       200   ffff9f35f7f62580         pmfsuspend pmfsuspend
 0       14 3   0       200   ffff9f35f7f62140           pmfevent pmfevent
 0       13 3   0       200   ffff9f35f7f77980         sopendfree sopendfr
 0       12 3   2       200   ffff9f35f7f77540             ifwdog ifwdog
 0       11 3   1       200   ffff9f35f7f77100            iflnkst iflnkst
 0       10 3   3       200   ffff9f35f87a2940           nfssilly nfssilly
 0        9 3   0       200   ffff9f35f87a2500             vdrain vdrain
 0        8 3   0       200   ffff9f35f87a20c0          modunload mod_unld
 0        7 3   0       200   ffff9f35f87d3900            xcall/0 xcall
 0        6 1   0       200   ffff9f35f87d34c0          softser/0
 0        5 3   0       200   ffff9f35f87d3080          softclk/0 tstile
 0        4 1   0       200   ffff9f35f87fd8c0          softbio/0
 0        3 1   0       200   ffff9f35f87fd480          softnet/0
 0    >   2 1   0       201   ffff9f35f87fd040             idle/0
 0        0 3   1       200   ffffffff8188a6c0            swapper uvm
 
 
 
 db{0}> ps/w
 PID   LID          COMMAND     EMUL  PRI WAIT-MSG    WAIT-CHANNEL
 1207  1207            route   netbsd   43 rtentry      ffff9f35f7c26298
 1195  1195               sh   netbsd   43 wait         ffff9f35f67c5b98
 1187  1187            login   netbsd   43 wait         ffff9f35f7b7a3d8
 1188  1188             cron   netbsd   43 nanoslp      ffff9f35f7d65580
 1277  1277            inetd   netbsd   43 kqueue       ffff9f35f7c0cfa0
 954    954           powerd   netbsd   43 kqueue       ffff9f35c117a460
 639    639          syslogd   netbsd   43 kqueue       ffff9f35c11fd220
 1        1             init   netbsd   43 wait         ffff9f35f7b7a058
 0      178           system   netbsd  123 physiod      ffff9f35f768c848
 0      222           system   netbsd  125 pooldrain    ffffffff8190f900
 0      221           system   netbsd  124 syncer       ffff9f35f7dba940
 0      220           system   netbsd  126 pgdaemon     ffffffff8190d4c8
 0      217           system   netbsd   43 swwreboot    ffff9f35c142b1c8
 0      216           system   netbsd   96 npfgcw       ffff9f35c11fca08
 0      215           system   netbsd  222 rt_free      ffff9f35f79c1d88
 0      214           system   netbsd   96 unpgc        ffffffff81980a30
 0      213           system   netbsd  222 key_timehandler ffff9f35f79c1c48
 0      212           system   netbsd  222 icmp6_wqinput ffff9f35f79c3f08
 0      211           system   netbsd  222 icmp6_wqinput ffff9f35f79c3ec8
 0      210           system   netbsd  222 icmp6_wqinput ffff9f35f79c3e88
 0      209           system   netbsd  222 icmp6_wqinput ffff9f35f79c3e48
 0      208           system   netbsd   96 usbevt       ffff9f35c127e4b8
 0      207           system   netbsd   96 usbevt       ffffa70007de2478
 0      206           system   netbsd   96 usbevt       ffffa70007de4478
 0      205           system   netbsd   96 usbevt       ffffa70007de6478
 0      204           system   netbsd  222 nd6_timer    ffff9f35f79c19c8
 0      203           system   netbsd  222 carp6_wqinput ffff9f35f7edd508
 0      202           system   netbsd  222 carp6_wqinput ffff9f35f7edd4c8
 0      201           system   netbsd  222 carp6_wqinput ffff9f35f7edd488
 0      200           system   netbsd  222 carp6_wqinput ffff9f35f7edd448
 0      199           system   netbsd  222 carp_wqinput ffff9f35f7edd108
 0      198           system   netbsd  222 carp_wqinput ffff9f35f7edd0c8
 0      197           system   netbsd  222 carp_wqinput ffff9f35f7edd088
 0      196           system   netbsd  222 carp_wqinput ffff9f35f7edd048
 0      195           system   netbsd  222 icmp_wqinput ffff9f35f7f7cd08
 0      194           system   netbsd  222 icmp_wqinput ffff9f35f7f7ccc8
 0      193           system   netbsd  222 icmp_wqinput ffff9f35f7f7cc88
 0      192           system   netbsd  222 icmp_wqinput ffff9f35f7f7cc48
 0      185           system   netbsd   96 sccomp       ffffa70007dd88f8
 0       31           system   netbsd  222 rt_timer     ffff9f35f79c1888
 0       63           system   netbsd  125 vmem_rehash  ffff9f35f79c14c8
 0      117           system   netbsd   43 entropy      ffffffff818b1d28
 0      116           system   netbsd    0 balloon      ffff9f35c1366608
 0      115           system   netbsd   96 usbtsk       ffffffff818d52d8
 0      114           system   netbsd   96 usbtsk       ffffffff818d5298
 0      113           system   netbsd  222 wm0Reset     ffff9f35c10f7988
 0      112           system   netbsd  222 wm0TxRx      ffff9f35f7f7c908
 0      111           system   netbsd  222 wm0TxRx      ffff9f35f7f7c8c8
 0      110           system   netbsd  222 wm0TxRx      ffff9f35f7f7c888
 0      109           system   netbsd  222 wm0TxRx      ffff9f35f7f7c848
 0      108           system   netbsd   96 atath        ffffa70007dd8938
 0      107           system   netbsd   96 atath        ffffa70007dd83c0
 0      106           system   netbsd   96 pmsreset     ffff9f35c121fc94
 0      105           system   netbsd  127 xcall        ffffa70127db9010
 0      104           system   netbsd  223              0
 0      103           system   netbsd  220              0
 0      102           system   netbsd  221              0
 0      101           system   netbsd  222              0
 0    > 100           system   netbsd    0              0
 0       99           system   netbsd  127 xcall        ffffa70127d7c010
 0       98           system   netbsd  223              0
 0       97           system   netbsd  220 tstile       ffff9f35f8a6f080
 0       96           system   netbsd  221              0
 0       30           system   netbsd  222              0
 0    >  29           system   netbsd    0              0
 0       28           system   netbsd  127 xcall        ffffa70127acc010
 0       27           system   netbsd  223              0
 0       26           system   netbsd  220              0
 0       25           system   netbsd  221              0
 0       24           system   netbsd  222              0
 0    >  23           system   netbsd    0              0
 0       22           system   netbsd   43 lnxsyswq     ffff9f35f8a5ec08
 0       21           system   netbsd   43 lnxubdwq     ffff9f35f8a5eb08
 0       20           system   netbsd   43 lnxpwrwq     ffff9f35f8a5ea08
 0       19           system   netbsd   43 lnxlngwq     ffff9f35f8a5e908
 0       18           system   netbsd   43 lnxhipwq     ffff9f35f8a5e808
 0       17           system   netbsd   43 lnxrcugc     ffffffff818b0308
 0       16           system   netbsd   96 smtaskq      ffffffff818f5f60
 0       15           system   netbsd   43 pmfsuspend   ffff9f35f8812808
 0       14           system   netbsd   43 pmfevent     ffff9f35f88126c8
 0       13           system   netbsd   96 sopendfr     ffffffff819809b0
 0       12           system   netbsd  222 ifwdog       ffff9f35f8812588
 0       11           system   netbsd  222 iflnkst      ffff9f35f8812448
 0       10           system   netbsd   43 nfssilly     ffff9f35f8812308
 0        9           system   netbsd  125 vdrain       ffffffff81981bb0
 0        8           system   netbsd  125 mod_unld     ffffffff81973830
 0        7           system   netbsd  127 xcall        ffffffff8183bcd0
 0        6           system   netbsd  223              0
 0        5           system   netbsd  220 tstile       ffff9f35f8a6f080
 0        4           system   netbsd  221              0
 0        3           system   netbsd  222              0
 0    >   2           system   netbsd    0              0
 0        0           system   netbsd  125 uvm          ffffffff8188a6c0
 
 
 db{0}> bt/a ffff9f35f6e06600
 trace: pid 1207 lid 1207 at 0xffffa70138749af0
 sleepq_block() at netbsd:sleepq_block+0x13a
 cv_wait() at netbsd:cv_wait+0x49
 _rt_free() at netbsd:_rt_free+0x44
 route_output() at netbsd:route_output+0x4c0
 route_send_wrapper() at netbsd:route_send_wrapper+0x6d
 sosend() at netbsd:sosend+0x944
 soo_write() at netbsd:soo_write+0x2f
 dofilewrite() at netbsd:dofilewrite+0x80
 sys_write() at netbsd:sys_write+0x49
 syscall() at netbsd:syscall+0x196
 --- syscall (number 4) ---
 netbsd:syscall+0x196:
 
 
 db{0}> bt/a ffff9f35c10692c0
 trace: pid 0 lid 97 at 0xffffa70127da6e60
 sleepq_block() at netbsd:sleepq_block+0x13a
 turnstile_block() at netbsd:turnstile_block+0x3b8
 mutex_vector_enter() at netbsd:mutex_vector_enter+0x12b
 tcp_slowtimo() at netbsd:tcp_slowtimo+0x10
 callout_softclock() at netbsd:callout_softclock+0xd2
 softint_dispatch() at netbsd:softint_dispatch+0x10b
 DDB lost frame for netbsd:Xsoftintr+0x4c, trying 0xffffa70127da70f0
 Xsoftintr() at netbsd:Xsoftintr+0x4c
 --- interrupt ---
 0:
 
 
 db{0}> bt/a ffff9f35f87d3080
 trace: pid 0 lid 5 at 0xffffa70127c7ae40
 sleepq_block() at netbsd:sleepq_block+0x13a
 turnstile_block() at netbsd:turnstile_block+0x3b8
 mutex_vector_enter() at netbsd:mutex_vector_enter+0x12b
 ip_slowtimo() at netbsd:ip_slowtimo+0x10
 pfslowtimo() at netbsd:pfslowtimo+0x34
 callout_softclock() at netbsd:callout_softclock+0xd2
 softint_dispatch() at netbsd:softint_dispatch+0x10b
 DDB lost frame for netbsd:Xsoftintr+0x4c, trying 0xffffa70127c7b0f0
 Xsoftintr() at netbsd:Xsoftintr+0x4c
 --- interrupt ---
 0:
 
 
 db{0}> x/Lx ffff9f35f8a6f080
 ffff9f35c10692c0:       ffff9f35f679ba82
 
 db{0}> bt/a ffff9f35f679ba80
 trace: pid 1214 lid 1214 at 0xffffa70138749af0
 sleepq_block() at netbsd:sleepq_block+0x13a
 cv_wait() at netbsd:cv_wait+0x49
 _rt_free() at netbsd:_rt_free+0x44
 route_output() at netbsd:route_output+0x4c0
 route_send_wrapper() at netbsd:route_send_wrapper+0x6d
 sosend() at netbsd:sosend+0x944
 soo_write() at netbsd:soo_write+0x2f
 dofilewrite() at netbsd:dofilewrite+0x80
 sys_write() at netbsd:sys_write+0x49
 syscall() at netbsd:syscall+0x196
 --- syscall (number 4) ---
 netbsd:syscall+0x196:
 
 
 db{0}> show routes
 rtentry=0xffff9f35f7c262c8 flags=0x803 refcnt=0 use=936 expire=0
  key=[16,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
  mask=[]
  gw=[16,2,0,0,192,168,88,2,0,0,0,0,0,0,0,0]
  ifp=0xffffa70007de0060 (wm0) ifa=0xffff9f35f76a4c88
   ifa_addr=[16,2,0,0,192,168,88,56,0,0,0,0,0,0,0,0]
   ifa_dsta=[16,2,0,0,192,168,88,255,0,0,0,0,0,0,0,0]
   ifa_mask=[7,2,0,0,255,255,255]
   flags=0x101,refcnt=6,metric=0
  gwroute=0x0 llinfo=0x0
 rtentry=0xffff9f35f708b7b8 flags=0x80b refcnt=0 use=0 expire=0
  key=[16,2,0,0,127,0,0,0,0,0,0,0,0,0,0,0]
  mask=[5,255,255,255,255]
  gw=[16,2,0,0,127,0,0,1,0,0,0,0,0,0,0,0]
  ifp=0xffff9f35f7db60c0 (lo0) ifa=0xffff9f35f71b0048
   ifa_addr=[16,2,0,0,127,0,0,1,0,0,0,0,0,0,0,0]
   ifa_dsta=[16,2,0,0,127,0,0,1,0,0,0,0,0,0,0,0]
   ifa_mask=[5,2,0,0,255]
   flags=0x0,refcnt=4,metric=0
  gwroute=0x0 llinfo=0x0
 rtentry=0xffff9f35f708b038 flags=0x40005 refcnt=0 use=0 expire=0
  key=[16,2,0,0,127,0,0,1,0,0,0,0,0,0,0,0]
  mask=[NULL] gw=[11,18,2,0,24,3,0,0,108,111,48]
  ifp=0xffff9f35f7db60c0 (lo0) ifa=0xffff9f35f71b0048
   ifa_addr=[16,2,0,0,127,0,0,1,0,0,0,0,0,0,0,0]
   ifa_dsta=[16,2,0,0,127,0,0,1,0,0,0,0,0,0,0,0]
   ifa_mask=[5,2,0,0,255]
   flags=0x0,refcnt=4,metric=0
  gwroute=0x0 llinfo=0x0
 rtentry=0xffff9f35f7c26048 flags=0x101 refcnt=0 use=933 expire=0
  key=[16,2,0,0,192,168,88,0,0,0,0,0,0,0,0,0]
  mask=[7,255,255,255,255,255,255]
  gw=[17,18,1,0,6,0,0,0,0,0,0,0,0,0,0,0,0]
  ifp=0xffffa70007de0060 (wm0) ifa=0xffff9f35f76a4c88
   ifa_addr=[16,2,0,0,192,168,88,56,0,0,0,0,0,0,0,0]
   ifa_dsta=[16,2,0,0,192,168,88,255,0,0,0,0,0,0,0,0]
   ifa_mask=[7,2,0,0,255,255,255]
   flags=0x101,refcnt=6,metric=0
  gwroute=0x0 llinfo=0x0
 rtentry=0xffff9f35f78a0e00 flags=0x40005 refcnt=0 use=0 expire=0
  key=[16,2,0,0,192,168,88,56,0,0,0,0,0,0,0,0]
  mask=[NULL] gw=[17,18,1,0,6,0,0,0,0,0,0,0,0,0,0,0,0]
  ifp=0xffff9f35f7db60c0 (lo0) ifa=0xffff9f35f76a4c88
   ifa_addr=[16,2,0,0,192,168,88,56,0,0,0,0,0,0,0,0]
   ifa_dsta=[16,2,0,0,192,168,88,255,0,0,0,0,0,0,0,0]
   ifa_mask=[7,2,0,0,255,255,255]
   flags=0x101,refcnt=6,metric=0
  gwroute=0x0 llinfo=0x0
 



Home | Main Index | Thread Index | Old Index