NetBSD Problem Report #55431

From woods@future.weird.com  Sun Jun 28 21:44:33 2020
Return-Path: <woods@future.weird.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 3FAB71A9217
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 28 Jun 2020 21:44:33 +0000 (UTC)
Message-Id: <20200628214427.8862158048@future.weird.com>
Date: Sun, 28 Jun 2020 14:44:27 -0700 (PDT)
From: "Greg A. Woods" <woods@planix.ca>
Reply-To: "Greg A. Woods" <woods@planix.ca>
To: gnats-bugs@NetBSD.org
Subject: panic: kernel diagnostic assertion "xbdreq->req_bp == NULL" failed: file "/more/work/woods/m-NetBSD-current/sys/arch/xen/xen/xbd_xenbus.c", line 819
X-Send-Pr-Version: 3.95

>Number:         55431
>Category:       port-xen
>Synopsis:       panic: kernel diagnostic assertion "xbdreq->req_bp == NULL" failed: file "/more/work/woods/m-NetBSD-current/sys/arch/xen/xen/xbd_xenbus.c", line 819
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    jdolecek
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 28 21:45:00 +0000 2020
>Closed-Date:    Fri Jul 17 11:24:56 +0000 2020
>Last-Modified:  Fri Jul 17 11:24:56 +0000 2020
>Originator:     Greg A. Woods
>Release:        NetBSD-current 9.99.64 (2020-05-31T04:16:33Z)
>Organization:
Planix, Inc.; Kelowna, BC; Canada
>Environment:
System: NetBSD future 9.99.64 NetBSD 9.99.64 (XEN3_DOMU) #19: Thu Jun 25 17:43:06 PDT 2020 woods@future:/build/woods/future/current-amd64-amd64-obj/more/work/woods/m-NetBSD-current/sys/arch/amd64/compile/XEN3_DOMU amd64
Architecture: x86_64
Machine: amd64
Source-Date: 2020-05-31T04:16:33Z
>Description:

	This crash occurred during the first run of /etc/daily since the
	upgrade to my most recent build of -current, apparently while
	/etc/security was doing the pkg vulnerabilities audit or check.

	The machine had done some package building (via
	pkg_rolling-replace -D MAKE_JOBS=8) on the previous day, as well
	as running a couple of emacs processes, xterms, etc.

	I've had another VM running a XEN3PAE_DOMU (i386) kernel and
	build from the same sources, on the same dom0 host, for 20 days
	now, i.e. "running" (but not doing anything but cron jobs), as
	it has fewer virtual devices, only two CPUs and one XBD disk, no
	packages installed, and no NFS mounts -- it's just a test install.

	According to the commit log for the relevant KASSERT() this may
	be somehow related to PR port-xen/53506.

	Unfortunately it refused to write a crash dump.  (Can Xen DOMU
	even write core dumps yet?)

	Here's the console and ddb output, including the reboot dmesg:

[ 44375.6522938] panic: kernel diagnostic assertion "xbdreq->req_bp == NULL" failed: file "/more/work/woods/m-NetBSD-current/sys/arch/xen/xen/xbd_xenbus.c", line 819 
[ 44375.6522938] cpu0: Begin traceback...
[ 44375.6522938] vpanic() at netbsd:vpanic+0x146
[ 44375.6522938] kern_assert() at netbsd:kern_assert+0x48
[ 44375.6522938] xbd_handler() at netbsd:xbd_handler+0x40c
[ 44375.6522938] Xresume_xenevSIR_XENIPL_VM() at netbsd:Xresume_xenevSIR_XENIPL_VM+0x49
[ 44375.6522938] --- interrupt ---
[ 44375.6522938] Xspllower() at netbsd:Xspllower+0xe
[ 44375.6522938] uvm_pagermapout() at netbsd:uvm_pagermapout+0x1d
[ 44375.6522938] uvm_aio_aiodone() at netbsd:uvm_aio_aiodone+0x8d
[ 44375.6522938] biointr() at netbsd:biointr+0x7d
[ 44375.6522938] softint_dispatch() at netbsd:softint_dispatch+0x103
[ 44375.6522938] DDB lost frame for netbsd:Xsoftintr+0x5b, trying 0xffffcd017c909ff0
[ 44375.6522938] Xsoftintr() at netbsd:Xsoftintr+0x5b
[ 44375.6522938] --- interrupt ---
[ 44375.6522938] 0:
[ 44375.6522938] cpu0: End traceback...
[ 44375.6522938] fatal breakpoint trap in supervisor mode
[ 44375.6522938] trap type 1 code 0 rip 0xffffffff8022d87d cs 0xe030 rflags 0x202 cr2 0xffffcd018bb01000 ilevel 0x8 rsp 0xffffcd017c909b98
[ 44375.6522938] curlwp 0xffffcd000f1ff8c0 pid 0.4 lowest kstack 0xffffcd017c9052c0
Stopped in pid 0.4 (system) at  netbsd:breakpoint+0x5:  leave
breakpoint() at netbsd:breakpoint+0x5
vpanic() at netbsd:vpanic+0x146
kern_assert() at netbsd:kern_assert+0x48
xbd_handler() at netbsd:xbd_handler+0x40c
Xresume_xenevSIR_XENIPL_VM() at netbsd:Xresume_xenevSIR_XENIPL_VM+0x49
--- interrupt ---
Xspllower() at netbsd:Xspllower+0xe
uvm_pagermapout() at netbsd:uvm_pagermapout+0x1d
uvm_aio_aiodone() at netbsd:uvm_aio_aiodone+0x8d
biointr() at netbsd:biointr+0x7d
softint_dispatch() at netbsd:softint_dispatch+0x103
DDB lost frame for netbsd:Xsoftintr+0x5b, trying 0xffffcd017c909ff0
Xsoftintr() at netbsd:Xsoftintr+0x5b
--- interrupt ---
0:
ds          9b58
es          9b98
fs          10
gs          1e65
rdi         6
rsi         ffffcd017c909944
rbp         ffffcd017c909b98
rbx         104
rdx         2
rcx         27dc
rax         1
r8          4c96
r9          63883a
r10         75
r11         0
r12         ffffffff8059f728    ostype+0x160
r13         ffffcd017c909be0
r14         1b
r15         ffffcd018e1d6000
rip         ffffffff8022d87d    breakpoint+0x5
cs          e030
rflags      202
rsp         ffffcd017c909b98
ss          e02b
netbsd:breakpoint+0x5:  leave
db{0}> ps
PID    LID S CPU     FLAGS       STRUCT LWP *               NAME WAIT
18649>18649 7   5     40000   ffffcd0022af3540          pkg_admin
14984 14984 3   7        80   ffffcd0022a7e4c0                 sh wait
15357 15357 3   7        80   ffffcd002368b2c0           postdrop netio
14493 14493 3   0        80   ffffcd00247cbb40           sendmail pipe_rd
11479 11479 3   7        80   ffffcd002380c080                tee pipe_rd
12120 12120 3   6        80   ffffcd0022e164c0                 sh wait
15767 15767 3   3        80   ffffcd0022c026c0                 sh wait
20473 20473 3   1        80   ffffcd0013d944c0               cron pipe_rd
20273 20273 3   4        80   ffffcd0012156a00             pickup kqueue
16313 16313 3   1        80   ffffcd00144b0540               tail kqueue
9633  9633 3   7        80   ffffcd00239a49c0               tail kqueue
10471 10471 3   1        80   ffffcd0022af3980               tail kqueue
14746 14746 3   3        80   ffffcd0022f5c580               tail kqueue
13717 13717 3   1        80   ffffcd0022ca6340               tail kqueue
23942 23942 3   5        80   ffffcd0022f7d5c0               tail kqueue
3236  3236 3   2        80   ffffcd0014801b00               tail kqueue
3106  3106 3   7        80   ffffcd0014801280             ispell pipe_rd
1059  1059 3   5        80   ffffcd0011bf7bc0             ispell pipe_rd
11567 11567 3   7        80   ffffcd00121b1640                ksh ttyraw
12087 12087 3   4        80   ffffcd00121b1a80               sshd select
12321 12321 3   2        80   ffffcd00108c99c0               sshd poll
388    501 3   5   1000080   ffffcd0011d74100              emacs poll
388    388 3   5        80   ffffcd0012156180              emacs select
386    386 3   7        80   ffffcd00130b9240               rshd poll
10293 12204 3   0   1000080   ffffcd0011c474c0              emacs poll
10293 10293 3   7        80   ffffcd0011b1f6c0              emacs select
8539  8539 3   7        80   ffffcd0012176a40               rshd poll
7892  7892 3   6        80   ffffcd00121b1200                ksh ttyraw
8374  8374 3   6        80   ffffcd0012176600                ksh pause
7290  7290 3   5        80   ffffcd00121565c0              xterm select
7254  7254 3   4        80   ffffcd00121761c0               rshd poll
6140  6140 3   4        80   ffffcd0011c2b8c0                ksh pause
5072  5072 3   2        c0   ffffcd001078a0c0              xterm select
4957  4957 3   2        80   ffffcd00120fa9c0               rshd poll
4272  4272 3   6        80   ffffcd00120fa140              xload poll
2079  2079 3   1        80   ffffcd00120fa580               rshd poll
3323  3323 3   1        80   ffffcd0011b62b80                ksh ttyraw
474    474 3   6        c0   ffffcd0011d74980              xterm select
2685  2685 3   7        80   ffffcd0011d74540               rshd poll
2111  2111 3   7        c0   ffffcd00102f5200              getty ttyraw
2135  2135 3   0        80   ffffcd0011c47900               cron nanoslp
2080  2080 3   6        80   ffffcd0010b431c0              inetd kqueue
1969  1969 3   7        80   ffffcd0011c47080               qmgr kqueue
1448  1448 3   3        80   ffffcd0011b62740             master kqueue
1323  1323 3   4        80   ffffcd0011c2b040               sshd select
1203  1203 3   5        80   ffffcd0010b43600              rwhod poll
1190  1190 3   7        80   ffffcd0011bf7340             powerd kqueue
1244  1244 3   4        80   ffffcd00108c9580               ntpd pause
826    826 3   2        80   ffffcd0011b62300          rpc.lockd select
820    820 3   5        80   ffffcd0011b17ac0          rpc.statd select
853    805 3   2        80   ffffcd0011b2ab40              slave nfsd
853    862 3   1        80   ffffcd0011b2a700              slave nfsd
853    828 3   1        80   ffffcd0011b2a2c0              slave nfsd
853    857 3   7        80   ffffcd0011b1fb00              slave nfsd
853    853 3   3        80   ffffcd0010705900             master poll
827    827 3   5        80   ffffcd00108d7180             mountd select
548    548 3   7        80   ffffcd00107054c0            rpcbind poll
429    429 3   7        80   ffffcd00108d7a00            syslogd kqueue
419    419 3   0        80   ffffcd00107d2980              mdnsd select
1        1 3   4        80   ffffcd00104f3340               init wait
0     15010 5   3       240   ffffcd0022ed2540           (zombie)
0      639 3   4       200   ffffcd00110b2200              nfsio nfsiod
0      569 3   2       200   ffffcd0010b43a40              nfsio nfsiod
0      766 3   6       200   ffffcd00102f41c0              nfsio nfsiod
0      568 3   1       200   ffffcd00102f4a40              nfsio nfsiod
0      169 3   5       200   ffffcd0010703480            physiod physiod
0      211 3   4       200   ffffcd0010703040          pooldrain pooldrain
0      210 3   6       240   ffffcd0010705080            ioflush xbdsync
0      209 3   3       200   ffffcd00107038c0           pgdaemon pgdaemon
0      206 3   3       200   ffffcd00102e15c0          swwreboot swwreboot
0      205 3   2       200   ffffcd00104f3bc0        xen_balloon xen_balloon
0      204 3   3       200   ffffcd00104f3780             npfgc0 npfgcw
0      203 3   7       200   ffffcd001030cb80            rt_free rt_free
0      202 3   6       240   ffffcd001030c740              unpgc unpgc
0      201 3   7       200   ffffcd001030c300     icmp_wqinput/7 icmp_wqinput
0      200 3   6       200   ffffcd001030bb40     icmp_wqinput/6 icmp_wqinput
0      199 3   5       200   ffffcd001030b700     icmp_wqinput/5 icmp_wqinput
0      198 3   4       200   ffffcd001030b2c0     icmp_wqinput/4 icmp_wqinput
0      197 3   3       200   ffffcd001030ab00     icmp_wqinput/3 icmp_wqinput
0      196 3   2       200   ffffcd001030a6c0     icmp_wqinput/2 icmp_wqinput
0      195 3   1       200   ffffcd001030a280     icmp_wqinput/1 icmp_wqinput
0      194 3   0       200   ffffcd00102f8ac0     icmp_wqinput/0 icmp_wqinput
0      193 3   4       200   ffffcd00102f8680           rt_timer rt_timer
0      192 3   3       200   ffffcd00102f8240        vmem_rehash vmem_rehash
0       95 3   7       200   ffffcd00102f5a80          entbutler entropy
0      190 3   6       200   ffffcd00102f5640             xenbus xsio
0      189 3   1       200   ffffcd00102f4600           xenwatch evtsq
0      121 3   7       200   ffffcd00102e1180            xcall/7 xcall
0      120 1   7       200   ffffcd00102e09c0          softser/7
0      119 1   7       200   ffffcd00102e0580          softclk/7
0      118 1   7       200   ffffcd00102e0140          softbio/7
0      117 1   7       200   ffffcd00102dd980          softnet/7
0    > 116 1   7       201   ffffcd00102dd540             idle/7
0      115 3   6       200   ffffcd00102dd100            xcall/6 xcall
0      114 1   6       200   ffffcd00102dc940          softser/6
0      113 1   6       200   ffffcd00102dc500          softclk/6
0      112 1   6       200   ffffcd00102dc0c0          softbio/6
0      111 1   6       200   ffffcd000f548900          softnet/6
0    > 110 1   6       201   ffffcd000f5484c0             idle/6
0      109 3   5       200   ffffcd000f548080            xcall/5 xcall
0      108 1   5       200   ffffcd000f5478c0          softser/5
0      107 1   5       200   ffffcd000f547480          softclk/5
0      106 1   5       200   ffffcd000f547040          softbio/5
0      105 1   5       200   ffffcd000f541bc0          softnet/5
0      104 1   5       201   ffffcd000f541780             idle/5
0      103 3   4       200   ffffcd000f541340            xcall/4 xcall
0      102 1   4       200   ffffcd000f540b80          softser/4
0      101 1   4       200   ffffcd000f540740          softclk/4
0      100 1   4       200   ffffcd000f540300          softbio/4
0       99 1   4       200   ffffcd000f53cb40          softnet/4
0    >  98 1   4       201   ffffcd000f53c700             idle/4
0       97 3   3       200   ffffcd000f53c2c0            xcall/3 xcall
0       96 1   3       200   ffffcd000f53ab00          softser/3
0       30 1   3       200   ffffcd000f53a6c0          softclk/3
0       29 1   3       200   ffffcd000f53a280          softbio/3
0       28 1   3       200   ffffcd000f537ac0          softnet/3
0    >  27 1   3       201   ffffcd000f537680             idle/3
0       26 3   2       200   ffffcd000f537240            xcall/2 xcall
0       25 1   2       200   ffffcd000f536a80          softser/2
0       24 1   2       200   ffffcd000f536640          softclk/2
0       23 1   2       200   ffffcd000f536200          softbio/2
0       22 1   2       200   ffffcd000f533a40          softnet/2
0    >  21 1   2       201   ffffcd000f533600             idle/2
0       20 3   1       200   ffffcd000f5331c0            xcall/1 xcall
0       19 1   1       200   ffffcd000f532a00          softser/1
0       18 1   1       200   ffffcd000f5325c0          softclk/1
0       17 1   1       200   ffffcd000f532180          softbio/1
0       16 1   1       200   ffffcd000f51c9c0          softnet/1
0    >  15 1   1       201   ffffcd000f51c580             idle/1
0       14 3   0       200   ffffcd000f51c140         pmfsuspend pmfsuspend
0       13 3   0       200   ffffcd000f519980           pmfevent pmfevent
0       12 3   0       200   ffffcd000f519540         sopendfree sopendfr
0       11 3   1       200   ffffcd000f519100            iflnkst iflnkst
0       10 3   0       200   ffffcd000f50e940           nfssilly nfssilly
0        9 3   0       240   ffffcd000f50e500             vdrain vdrain
0        8 3   0       200   ffffcd000f50e0c0          modunload mod_unld
0        7 3   0       200   ffffcd000f201900            xcall/0 xcall
0        6 1   0       200   ffffcd000f2014c0          softser/0
0        5 1   0       200   ffffcd000f201080          softclk/0
0    >   4 7   0       200   ffffcd000f1ff8c0          softbio/0
0        3 1   0       200   ffffcd000f1ff480          softnet/0
0    >   2 1   0       201   ffffcd000f1ff040             idle/0
0        0 3   1       200   ffffffff8067c280            swapper uvm
db{0}> show all locks
Sorry, kernel not built with the LOCKDEBUG option.
db{0}> show event
evcnt type 0: bus_dma loads = 1140067
evcnt type 0: pdpolicy reactanon = 221755
evcnt type 0: pdpolicy reactexec = 62401
evcnt type 0: vmcmd kills = 1310364
evcnt type 0: vmcmd extends = 21
evcnt type 0: vmcmd calls = 4462220
evcnt type 0: entropy notify = 2
evcnt type 0: entropy request = 42
evcnt type 0: entropy extract fail = 42
evcnt type 0: entropy consolidate = 2
evcnt type 0: entropy partial = 1
evcnt type 0: pserialize exclusive access = 99
evcnt type 0: vmem static_bt_inuse = 197
evcnt type 0: vmem static_bt_count = 200
evcnt type 1: TLB shootdown = 6011928
evcnt type 0: cpu0 cprng_strong reseed = 3
evcnt type 0: cpu0 cprng_strong reseed = 3
evcnt type 0: softint net/0 = 1846711
evcnt type 0: softint net block/0 = 513
evcnt type 0: softint bio/0 = 817478
evcnt type 0: softint bio block/0 = 2874
evcnt type 0: softint clk/0 = 1532903
evcnt type 0: softint clk block/0 = 1
evcnt type 0: softint ser/0 = 63983
evcnt type 0: callout late/0 = 69
evcnt type 0: callout wait/0 = 1
evcnt type 0: crosscall unicast = 16
evcnt type 0: crosscall broadcast = 547
evcnt type 0: nfs timer = 362239
evcnt type 0: nfs timer start = 191112
evcnt type 0: nfs timer stop = 190237
evcnt type 0: vcpu0 xcall IPI = 497
evcnt type 0: vcpu0 generic IPI = 216
evcnt type 0: vcpu0 AST IPI = 240082
evcnt type 0: vcpu0 kpreempt IPI = 72
evcnt type 1: vcpu0 xenev0 chan 4 = 240867
evcnt type 0: cpu1 cprng_strong reseed = 3
evcnt type 0: cpu1 cprng_strong reseed = 2
evcnt type 0: softint net/1 = 470
evcnt type 0: softint clk/1 = 121020
evcnt type 0: softint ser/1 = 100
evcnt type 0: callout late/1 = 5
evcnt type 0: vcpu1 DDB IPI = 1
evcnt type 0: vcpu1 xcall IPI = 548
evcnt type 0: vcpu1 AST IPI = 531431
evcnt type 0: cpu2 cprng_strong reseed = 3
evcnt type 0: cpu2 cprng_strong reseed = 2
evcnt type 0: softint net/2 = 470
evcnt type 0: softint clk/2 = 270211
evcnt type 0: softint ser/2 = 100
evcnt type 0: callout late/2 = 5
evcnt type 0: vcpu2 DDB IPI = 1
evcnt type 0: vcpu2 xcall IPI = 530
evcnt type 0: vcpu2 AST IPI = 571521
evcnt type 0: vcpu2 kpreempt IPI = 1
evcnt type 0: cpu3 cprng_strong reseed = 3
evcnt type 0: cpu3 cprng_strong reseed = 2
evcnt type 0: softint net/3 = 470
evcnt type 0: softint clk/3 = 201776
evcnt type 0: softint ser/3 = 100
evcnt type 0: callout late/3 = 9
evcnt type 0: vcpu3 DDB IPI = 1
evcnt type 0: vcpu3 xcall IPI = 555
evcnt type 0: vcpu3 AST IPI = 554693
evcnt type 0: cpu4 cprng_strong reseed = 3
evcnt type 0: cpu4 cprng_strong reseed = 2
evcnt type 0: softint net/4 = 470
evcnt type 0: softint clk/4 = 357623
evcnt type 0: softint clk block/4 = 1
evcnt type 0: softint ser/4 = 100
evcnt type 0: callout late/4 = 4
evcnt type 0: vcpu4 DDB IPI = 1
evcnt type 0: vcpu4 xcall IPI = 244
evcnt type 0: vcpu4 AST IPI = 482095
evcnt type 0: vcpu4 kpreempt IPI = 2
evcnt type 0: cpu5 cprng_strong reseed = 3
evcnt type 0: cpu5 cprng_strong reseed = 2
evcnt type 0: softint net/5 = 470
evcnt type 0: softint clk/5 = 331118
evcnt type 0: softint ser/5 = 100
evcnt type 0: callout late/5 = 11
evcnt type 0: vcpu5 DDB IPI = 1
evcnt type 0: vcpu5 xcall IPI = 502
evcnt type 0: vcpu5 AST IPI = 499672
evcnt type 0: cpu6 cprng_strong reseed = 3
evcnt type 0: cpu6 cprng_strong reseed = 2
evcnt type 0: softint net/6 = 470
evcnt type 0: softint clk/6 = 144241
evcnt type 0: softint ser/6 = 100
evcnt type 0: callout late/6 = 9
evcnt type 0: vcpu6 DDB IPI = 1
evcnt type 0: vcpu6 xcall IPI = 555
evcnt type 0: vcpu6 AST IPI = 493162
evcnt type 0: vcpu6 kpreempt IPI = 2
evcnt type 0: cpu7 cprng_strong reseed = 3
evcnt type 0: cpu7 cprng_strong reseed = 2
evcnt type 0: softint net/7 = 470
evcnt type 0: softint clk/7 = 178677
evcnt type 0: softint clk block/7 = 1
evcnt type 0: softint ser/7 = 100
evcnt type 0: callout late/7 = 12
evcnt type 0: vcpu7 DDB IPI = 1
evcnt type 0: vcpu7 xcall IPI = 545
evcnt type 0: vcpu7 AST IPI = 484958
evcnt type 1: vcpu0 xenev0 chan 2 = 174
evcnt type 0: cpu0 cprng_fast reseed = 2
evcnt type 0: cpu1 cprng_fast reseed = 2
evcnt type 0: cpu2 cprng_fast reseed = 2
evcnt type 0: cpu3 cprng_fast reseed = 2
evcnt type 0: cpu4 cprng_fast reseed = 2
evcnt type 0: cpu5 cprng_fast reseed = 2
evcnt type 0: cpu6 cprng_fast reseed = 2
evcnt type 0: cpu7 cprng_fast reseed = 2
evcnt type 1: vcpu0 missed hardclock = 1362
evcnt type 1: vcpu0 xenev0 chan 5 = 44370296
evcnt type 0: kpreempt defer: critical section = 440
evcnt type 0: kpreempt defer: kernel_lock = 109
evcnt type 0: kpreempt immediate = 5036
evcnt type 1: vcpu1 xenev0 chan 6 = 532021
evcnt type 1: vcpu1 missed hardclock = 1135
evcnt type 1: vcpu1 xenev0 chan 7 = 44370114
evcnt type 1: vcpu2 xenev0 chan 8 = 572110
evcnt type 1: vcpu2 missed hardclock = 1846
evcnt type 1: vcpu2 xenev0 chan 9 = 44369404
evcnt type 1: vcpu3 xenev0 chan 10 = 555275
evcnt type 1: vcpu3 missed hardclock = 1891
evcnt type 1: vcpu3 xenev0 chan 11 = 44369355
evcnt type 1: vcpu4 xenev0 chan 12 = 482440
evcnt type 1: vcpu4 missed hardclock = 1877
evcnt type 1: vcpu4 xenev0 chan 13 = 44369370
evcnt type 1: vcpu5 xenev0 chan 14 = 500210
evcnt type 1: vcpu5 missed hardclock = 1945
evcnt type 1: vcpu5 xenev0 chan 15 = 44369302
evcnt type 1: vcpu6 xenev0 chan 16 = 493735
evcnt type 1: vcpu6 missed hardclock = 2152
evcnt type 1: vcpu6 xenev0 chan 17 = 44369094
evcnt type 1: vcpu7 xenev0 chan 18 = 485554
evcnt type 1: vcpu7 missed hardclock = 2067
evcnt type 1: vcpu7 xenev0 chan 19 = 44369180
evcnt type 1: vcpu0 xenev0 chan 1 = 511
evcnt type 0: cpu0 entropy softint = 64038
evcnt type 0: xbd0 queue full = 2009
evcnt type 1: vcpu0 xenev0 chan 20 = 60123
evcnt type 1: vcpu0 xenev0 chan 21 = 20
evcnt type 0: xbd2 queue full = 7769
evcnt type 1: vcpu0 xenev0 chan 22 = 35691
evcnt type 0: xbd3 queue full = 5545
evcnt type 1: vcpu0 xenev0 chan 23 = 504748
evcnt type 0: xbd4 queue full = 81000
evcnt type 1: vcpu0 xenev0 chan 24 = 339228
evcnt type 1: vcpu0 xenev0 chan 25 = 3670172
evcnt type 0: wapbl fsid 0x8e00/0x78b commit = 1238
evcnt type 0: wapbl fsid 0x8e00/0x78b journal write total = 32597
evcnt type 0: wapbl fsid 0x8e00/0x78b journal write finished async = 18798
evcnt type 0: wapbl fsid 0x8e00/0x78b metadata async write = 22981
evcnt type 0: wapbl fsid 0x8e00/0x78b cache flush = 2476
evcnt type 0: wapbl fsid 0x8e20/0x78b commit = 2007
evcnt type 0: wapbl fsid 0x8e20/0x78b journal write total = 27385
evcnt type 0: wapbl fsid 0x8e20/0x78b journal write finished async = 14973
evcnt type 0: wapbl fsid 0x8e20/0x78b metadata async write = 17097
evcnt type 0: wapbl fsid 0x8e20/0x78b cache flush = 4014
evcnt type 0: wapbl fsid 0x8e30/0x78b commit = 766
evcnt type 0: wapbl fsid 0x8e30/0x78b journal write total = 17240
evcnt type 0: wapbl fsid 0x8e30/0x78b journal write finished async = 9714
evcnt type 0: wapbl fsid 0x8e30/0x78b metadata async write = 11795
evcnt type 0: wapbl fsid 0x8e30/0x78b cache flush = 1533
evcnt type 0: wapbl fsid 0x8e40/0x78b commit = 758
evcnt type 0: wapbl fsid 0x8e40/0x78b journal write total = 23026
evcnt type 0: wapbl fsid 0x8e40/0x78b journal write finished async = 14234
evcnt type 0: wapbl fsid 0x8e40/0x78b metadata async write = 16320
evcnt type 0: wapbl fsid 0x8e40/0x78b cache flush = 1516
db{0}> sync

[ 44375.6522938] dumping to dev 142,16 (offset=33554431, size=0): not possible
[ 44375.6522938] rebooting...
[   1.0000000] pool redzone disabled for 'pvpage'
[   1.0000000] pool redzone disabled for 'kmem-04096'
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[   1.0000000]     2018, 2019, 2020 The NetBSD Foundation, Inc.  All rights reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All rights reserved.

[   1.0000000] NetBSD 9.99.64 (XEN3_DOMU) #19: Thu Jun 25 17:43:06 PDT 2020
[   1.0000000] 	woods@future:/build/woods/future/current-amd64-amd64-obj/more/work/woods/m-NetBSD-current/sys/arch/amd64/compile/XEN3_DOMU
[   1.0000000] total memory = 8000 MB
[   1.0000000] avail memory = 7721 MB
[   1.0000000] pool redzone disabled for 'buf64k'
[   1.0000000] entropy: no seed from bootloader
[   1.0000000] timecounter: Timecounters tick every 1.000 msec
[   1.0000000] running cgd selftest aes-xts-256 aes-xts-512 done
[   1.0000000] mainbus0 (root)
[   1.0000000] hypervisor0 at mainbus0: Xen version 4.11.1nb2
[   1.0000000] hypervisor0: features:  mmu_pt_update_preserve_ad highmem_assist gnttab_map_avail_bits
[   1.0000000] VIRQ_DEBUG interrupt using event channel 3
[   1.0000000] vcpu0 at hypervisor0
[   1.0000000] vcpu0: Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz, id 0x10676
[   1.0000000] vcpu0: node 0, package 0, core 0, smt 0
[   1.0000000] vcpu1 at hypervisor0
[   1.0000000] vcpu1: Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz, id 0x10676
[   1.0000000] vcpu1: node 0, package 0, core 0, smt 0
[   1.0000000] vcpu2 at hypervisor0
[   1.0000000] vcpu2: Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz, id 0x10676
[   1.0000000] vcpu2: node 0, package 0, core 0, smt 0
[   1.0000000] vcpu3 at hypervisor0
[   1.0000000] vcpu3: Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz, id 0x10676
[   1.0000000] vcpu3: node 0, package 0, core 0, smt 0
[   1.0000000] vcpu4 at hypervisor0
[   1.0000000] vcpu4: Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz, id 0x10676
[   1.0000000] vcpu4: node 0, package 0, core 0, smt 0
[   1.0000000] vcpu5 at hypervisor0
[   1.0000000] vcpu5: Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz, id 0x10676
[   1.0000000] vcpu5: node 0, package 0, core 0, smt 0
[   1.0000000] vcpu6 at hypervisor0
[   1.0000000] vcpu6: Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz, id 0x10676
[   1.0000000] vcpu6: node 0, package 0, core 0, smt 0
[   1.0000000] vcpu7 at hypervisor0
[   1.0000000] vcpu7: Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz, id 0x10676
[   1.0000000] vcpu7: node 0, package 0, core 0, smt 0
[   1.0000000] xenbus0 at hypervisor0: Xen Virtual Bus Interface
[   1.0000000] xencons0 at hypervisor0: Xen Virtual Console Driver
[   1.0000000] xencons0: console major 143, unit 0
[   1.0000000] xencons0: using event channel 2
[   1.0000000] entropy: WARNING: extracting entropy too early
[   1.0000000] timecounter: Timecounter "clockinterrupt" frequency 1000 Hz quality 0
[   1.0000030] timecounter: Timecounter "xen_system_time" frequency 1000000000 Hz quality 10000
[   1.0000030] Xen vcpu0 clock: using event channel 5
[   1.3161101] Xen vcpu1 clock: using event channel 7
[   1.3161101] Xen vcpu2 clock: using event channel 9
[   1.3161101] Xen vcpu3 clock: using event channel 11
[   1.3161101] Xen vcpu4 clock: using event channel 13
[   1.3161101] Xen vcpu5 clock: using event channel 15
[   1.3172157] Xen vcpu6 clock: using event channel 17
[   1.3172157] Xen vcpu7 clock: using event channel 19
[   1.8041345] xenbus0: using event channel 1
[   1.8081131] xenbus0: can't get state for device/suspend/event-channel (2)
[   1.8181123] xbd0 at xenbus0 id 0: Xen Virtual Block Device Interface
[   1.8181123] xbd0: using event channel 20
[   1.8291322] xbd1 at xenbus0 id 1: Xen Virtual Block Device Interface
[   1.8311166] xbd1: using event channel 21
[   1.8311166] xbd0: 21504 MB, 512 bytes/sect x 44040192 sectors
[   1.8311166] xbd0: backend features 0x1<CACHE-FLUSH>
[   1.8401195] xbd2 at xenbus0 id 2: Xen Virtual Block Device Interface
[   1.8411333] xbd2: using event channel 22
[   1.8501225] xbd3 at xenbus0 id 3: Xen Virtual Block Device Interface
[   1.8511248] xbd3: using event channel 23
[   1.8511248] xbd1: 16384 MB, 512 bytes/sect x 33554432 sectors
[   1.8511248] xbd1: backend features 0x1<CACHE-FLUSH>
[   1.8611195] xbd4 at xenbus0 id 4: Xen Virtual Block Device Interface
[   1.8621142] xbd4: using event channel 24
[   1.8701289] xennet0 at xenbus0 id 0: Xen Virtual Network Interface
[   1.8701289] xennet0: backend features 0x4<RX-COPY>
[   1.8701289] pool redzone disabled for 'xnfrx'
[   1.8711150] xennet0: MAC address 00:16:3e:5c:29:c3
[   1.8711150] xennet0: using event channel 25
[   1.8741285] balloon0 at xenbus0 id 0: Xen Balloon driver
[   1.8751151] balloon0: current reservation: 8192000 KiB
[   1.8771191] xbd2: 4096 MB, 512 bytes/sect x 8388608 sectors
[   1.8771191] xbd2: backend features 0x1<CACHE-FLUSH>
[   1.8951152] xbd3: 20480 MB, 512 bytes/sect x 41943040 sectors
[   1.8951152] xbd3: backend features 0x1<CACHE-FLUSH>
[   1.9121181] xbd4: 250 GB, 512 bytes/sect x 524288000 sectors
[   1.9121181] xbd4: backend features 0x1<CACHE-FLUSH>
[   1.9291154] crypto: assign driver 0, flags 2
[   1.9291154] crypto: driver 0 registers alg 1 flags 0 maxoplen 0
[   1.9291154] crypto: driver 0 registers alg 2 flags 0 maxoplen 0
[   1.9291154] crypto: driver 0 registers alg 3 flags 0 maxoplen 0
[   1.9291154] crypto: driver 0 registers alg 4 flags 0 maxoplen 0
[   1.9291154] crypto: driver 0 registers alg 5 flags 0 maxoplen 0
[   1.9291154] crypto: driver 0 registers alg 26 flags 0 maxoplen 0
[   1.9291154] crypto: driver 0 registers alg 27 flags 0 maxoplen 0
[   1.9291154] crypto: driver 0 registers alg 29 flags 0 maxoplen 0
[   1.9291154] crypto: driver 0 registers alg 33 flags 0 maxoplen 0
[   1.9291154] crypto: driver 0 registers alg 17 flags 0 maxoplen 0
[   1.9291154] crypto: driver 0 registers alg 6 flags 0 maxoplen 0
[   1.9291154] crypto: driver 0 registers alg 19 flags 0 maxoplen 0
[   2.0154971] crypto: driver 0 registers alg 7 flags 0 maxoplen 0
[   2.0154971] crypto: driver 0 registers alg 20 flags 0 maxoplen 0
[   2.0154971] crypto: driver 0 registers alg 15 flags 0 maxoplen 0
[   2.0154971] crypto: driver 0 registers alg 24 flags 0 maxoplen 0
[   2.0154971] crypto: driver 0 registers alg 25 flags 0 maxoplen 0
[   2.0154971] crypto: driver 0 registers alg 8 flags 0 maxoplen 0
[   2.0154971] crypto: driver 0 registers alg 21 flags 0 maxoplen 0
[   2.0154971] crypto: driver 0 registers alg 16 flags 0 maxoplen 0
[   2.0154971] crypto: driver 0 registers alg 9 flags 0 maxoplen 0
[   2.0154971] crypto: driver 0 registers alg 10 flags 0 maxoplen 0
[   2.0154971] crypto: driver 0 registers alg 13 flags 0 maxoplen 0
[   2.0154971] crypto: driver 0 registers alg 14 flags 0 maxoplen 0
[   2.0161495] crypto: driver 0 registers alg 28 flags 0 maxoplen 0
[   2.0161495] crypto: driver 0 registers alg 30 flags 0 maxoplen 0
[   2.0161495] crypto: driver 0 registers alg 31 flags 0 maxoplen 0
[   2.0161495] crypto: driver 0 registers alg 32 flags 0 maxoplen 0
[   2.0161495] crypto: driver 0 registers alg 11 flags 0 maxoplen 0
[   2.0161495] crypto: driver 0 registers alg 18 flags 0 maxoplen 0
[   2.0161495] crypto: driver 0 registers alg 23 flags 0 maxoplen 0
[   2.0161495] crypto: driver 0 registers alg 22 flags 0 maxoplen 0
[   2.0161495] swwdog0: software watchdog initialized
[   2.0161495] WARNING: 1 error while detecting hardware; check system log.
[   2.0161495] boot device: xbd0
[   2.0171139] root on xbd0a dumps on xbd0b
[   2.0331176] /: replaying log to memory
[   2.0361191] xenbus0: can't get state for device/suspend/event-channel (2)
[   2.0381191] root file system type: ffs
[   2.0391188] balloon0: current reservation: 2048000 pages => target: 2048000 pages
[   2.0401191] kern.module.path=/stand/amd64-xen/9.99.64/modules
[   2.0441189] xenbus0: can't get state for device/suspend/event-channel (2)
Type a quit character (usually ^\) to abort multi-user startup.
Sun Jun 28 12:46:09 PDT 2020
Starting root file system check:
/dev/rxbd0a: file system is journaled; not checking
[   3.4731192] /: replaying log to disk
[   3.6841140] Your machine does not initialize mem_clusters; sparse_dumps disabled
swapctl: setting dump device to /dev/xbd1a
swapctl: adding /dev/xbd1a as swap device at priority 0
Starting file system checks:
/dev/rxbd2a: file system is journaled; not checking
/dev/rxbd3a: file system is journaled; not checking
/dev/rxbd4a: file system is journaled; not checking
exec: mount_ffs -o log /dev/xbd2a /var
[   3.8671155] /var: replaying log to disk
exec: mount_ffs -o log /dev/xbd2a /var
/dev/xbd2a on /var type ffs (log, local, fsid: 0x8e20/0x78b, reads: sync 1 async 0, writes: sync 0 async 0)
[   4.3961152] entropy: WARNING: consolidating less than full entropy
Loaded entropy from /etc/entropy-file.
Setting tty flags.
Setting sysctl variables:
ddb.onpanic: 2 -> 2
ddb.fromconsole: 1 -> 1
ddb.tee_msgbuf: 0 -> 1
ddb.maxwidth: 80 -> 0
ddb.lines: 2147483647 -> 0
kern.coredump.setid.dump: 0 -> 1
kern.coredump.setid.path: /var/crash/%n.core -> /var/crash/%u-%n-%p.core
kern.logsigexit: 0 -> 1
kern.sbmax: 262144 -> 5242880
kern.mbuf.mcllowat: 8 -> 32
net.inet.ip.subnetsarelocal: 1 -> 0
net.inet.tcp.mssdflt: 536 -> 1460
net.inet.tcp.sendspace: 32768 -> 262144
net.inet.tcp.recvspace: 32768 -> 262144
net.inet.udp.sendspace: 9216 -> 131072
net.inet.udp.recvspace: 41600 -> 131072
net.inet.ip.redirect: 1 -> 1
net.inet.ip.forwsrcrt: 0 -> 0
net.inet.ip.allowsrcrt: 0 -> 0
net.inet.ip.directed-broadcast: 0 -> 0
net.inet.tcp.mss_ifmtu: 0 -> 1
net.inet.icmp.maskrepl: 0 -> 1
net.inet.ip.mtudisc: 1 -> 1
vm.filemin: 10 -> 5
vm.anonmin: 10 -> 40
vm.anonmax: 80 -> 80
vm.execmin: 5 -> 20
vm.execmax: 30 -> 40
Starting network.
Hostname: future
NIS domainname: .local
Configuring network interfaces: xennet0.
Adding interface aliases:.
add net default: gateway 10.0.1.1
Waiting for duplicate address detection to finish...
/etc/rc: xendomname: WARNING: $xendomname is not set properly in /etc/rc.conf - see rc.conf(5).
Starting mdnsd.
mDNSResponder: mDNSResponder (Engineering Build) starting
Building databases: dev, utmp, utmpx.
/etc/rc: syslogd: WARNING: $rbldnsd is not set properly in /etc/rc.conf - see rc.conf(5).
Starting syslogd.
Starting rpcbind.
Jun 28 12:46:21 future rpcbind: Cannot get information for `udp6'
Jun 28 12:46:21 future rpcbind: Cannot get information for `tcp6'
rpcbind: Cannot stat `/var/run/rpcbind.file': No such file or directory
rpcbind: Will start from scratch
Mounting all file systems...
[  14.3651153] /usr/pkg: replaying log to disk
[  15.2451158] /build: replaying log to disk
Clearing temporary files.
Updating fontconfig cache: done.
Checking quotas: done.
Starting mountd.
Starting nfsd.
nfsd: Old -tu options detected; enabling both udp and tcp.
nfsd: This is the default behavior now and you can remove
nfsd: all options.
Jun 28 12:46:31 future nfsd[683]: getaddrinfo udp6: ai_family not supported
Jun 28 12:46:31 future nfsd[683]: getaddrinfo tcp6: ai_family not supported
Starting statd.
Starting lockd.
Checking for core dump...
savecore: no core dump
/etc/rc: rbldnsd: WARNING: $rbldnsd is not set properly in /etc/rc.conf - see rc.conf(5).
Setting securelevel: kern.securelevel: 0 -> 1
swapctl: setting dump device to /dev/xbd1a
/etc/rc: swap2: INFO: total: 33554432 blocks allocated, 0 blocks used, 33554432 blocks available
Starting virecover.
/etc/rc: arpwatch: WARNING: $arpwatch is not set properly in /etc/rc.conf - see rc.conf(5).
Starting local daemons:.
Updating motd.
Starting ntpd.
Starting powerd.
Starting rwhod.
/etc/rc: whosond: WARNING: $whosond is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: upsdriver: WARNING: $upsdriver is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: upsd: WARNING: $upsd is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: upsmon: WARNING: $upsmon is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: upslog: WARNING: $upslog is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: tits: WARNING: $tits is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: svnserve: WARNING: $svnserve is not set properly in /etc/rc.conf - see rc.conf(5).
Starting sshd.
/etc/rc: snmptrapd: WARNING: $snmptrapd is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: snmpd: WARNING: $snmpd is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: smartd: WARNING: $smartd is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: slapd: WARNING: $slapd is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: silcd: WARNING: $silcd is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: saslauthd: WARNING: $saslauthd is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: rsyncd: WARNING: $rsyncd is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: rplayd: WARNING: $rplayd is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: radiusd: WARNING: $radiusd is not set properly in /etc/rc.conf - see rc.conf(5).
Starting postfix.
/etc/rc: pgsql: WARNING: $pgsql is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: openvpn: WARNING: $openvpn is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: nasd: WARNING: $nasd is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: mailman: WARNING: $mailman is not set properly in /etc/rc.conf - see rc.conf(5).
Starting inetd.
/etc/rc: dbus: WARNING: $dbus is not set properly in /etc/rc.conf - see rc.conf(5).
Starting cron.
/etc/rc: conserver: WARNING: $conserver8 is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: avahidaemon: WARNING: $avahidaemon is not set properly in /etc/rc.conf - see rc.conf(5).
/etc/rc: apache: WARNING: $apache is not set properly in /etc/rc.conf - see rc.conf(5).
Sun Jun 28 12:46:37 PDT 2020

NetBSD/amd64-9.99.64 (future) [constty]

Current local time is 12:46PM on Sunday, 28 June 2020

login: 



>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-xen-maintainer->jdolecek
Responsible-Changed-By: jdolecek@NetBSD.org
Responsible-Changed-When: Sun, 28 Jun 2020 22:31:21 +0000
Responsible-Changed-Why:
I'm working on xbd(4)


State-Changed-From-To: open->analyzed
State-Changed-By: jdolecek@NetBSD.org
State-Changed-When: Sun, 28 Jun 2020 22:31:21 +0000
State-Changed-Why:
According to backtrace this happens while swapping. I did not test this
path, so I'll check it.


State-Changed-From-To: analyzed->open
State-Changed-By: jdolecek@NetBSD.org
State-Changed-When: Mon, 29 Jun 2020 11:11:02 +0000
State-Changed-Why:
Err, xbd(4) can't do swap :D So it's something else.


From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@netbsd.org
Cc: jdolecek@netbsd.org, netbsd-bugs@netbsd.org, gnats-admin@netbsd.org,
        "Greg A. Woods" <woods@planix.ca>
Subject: Re: port-xen/55431 (panic: kernel diagnostic assertion
 "xbdreq->req_bp == NULL" failed: file
 "/more/work/woods/m-NetBSD-current/sys/arch/xen/xen/xbd_xenbus.c", line 819)
Date: Mon, 29 Jun 2020 14:02:13 +0200

 On Mon, Jun 29, 2020 at 11:11:03AM +0000, jdolecek@NetBSD.org wrote:
 > Synopsis: panic: kernel diagnostic assertion "xbdreq->req_bp == NULL" failed: file "/more/work/woods/m-NetBSD-current/sys/arch/xen/xen/xbd_xenbus.c", line 819
 > 
 > State-Changed-From-To: analyzed->open
 > State-Changed-By: jdolecek@NetBSD.org
 > State-Changed-When: Mon, 29 Jun 2020 11:11:02 +0000
 > State-Changed-Why:
 > Err, xbd(4) can't do swap :D So it's something else.

 Why are you saying it can't do swap ? Of course a domU can swap to xbd

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

From: =?UTF-8?B?SmFyb23DrXIgRG9sZcSNZWs=?= <jaromir.dolecek@gmail.com>
To: Manuel Bouyer <bouyer@antioche.eu.org>
Cc: "gnats-bugs@NetBSD.org" <gnats-bugs@netbsd.org>
Subject: Re: port-xen/55431 (panic: kernel diagnostic assertion
 "xbdreq->req_bp == NULL" failed: file "/more/work/woods/m-NetBSD-current/sys/arch/xen/xen/xbd_xenbus.c",
 line 819)
Date: Mon, 29 Jun 2020 14:23:27 +0200

 Right - it can't write kernel crash dumps, which is not the same thing.

 Le lun. 29 juin 2020 =C3=A0 14:02, Manuel Bouyer <bouyer@antioche.eu.org> a=
  =C3=A9crit :
 >
 > On Mon, Jun 29, 2020 at 11:11:03AM +0000, jdolecek@NetBSD.org wrote:
 > > Synopsis: panic: kernel diagnostic assertion "xbdreq->req_bp =3D=3D NUL=
 L" failed: file "/more/work/woods/m-NetBSD-current/sys/arch/xen/xen/xbd_xen=
 bus.c", line 819
 > >
 > > State-Changed-From-To: analyzed->open
 > > State-Changed-By: jdolecek@NetBSD.org
 > > State-Changed-When: Mon, 29 Jun 2020 11:11:02 +0000
 > > State-Changed-Why:
 > > Err, xbd(4) can't do swap :D So it's something else.
 >
 > Why are you saying it can't do swap ? Of course a domU can swap to xbd
 >
 > --
 > Manuel Bouyer <bouyer@antioche.eu.org>
 >      NetBSD: 26 ans d'experience feront toujours la difference
 > --

State-Changed-From-To: open->feedback
State-Changed-By: jdolecek@NetBSD.org
State-Changed-When: Mon, 29 Jun 2020 21:48:25 +0000
State-Changed-Why:
Should be fixed in rev.1.128 of sys/arch/xen/xen/xbd_xenbus.c, can
you please confirm?


From: "Jaromir Dolecek" <jdolecek@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55431 CVS commit: src/sys/arch/xen/xen
Date: Mon, 29 Jun 2020 21:45:50 +0000

 Module Name:	src
 Committed By:	jdolecek
 Date:		Mon Jun 29 21:45:50 UTC 2020

 Modified Files:
 	src/sys/arch/xen/xen: xbd_xenbus.c

 Log Message:
 when using two linked requests for I/O (i.e. when backend doesn't support
 INDIRECT segments), make sure to clear req_bp for both of them

 fixes a misfired assertion in BLKIF_OP_FLUSH_DISKCACHE - PR port-xen/55431


 To generate a diff of this commit:
 cvs rdiff -u -r1.127 -r1.128 src/sys/arch/xen/xen/xbd_xenbus.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Greg A. Woods" <woods@planix.ca>
To: NetBSD GNATS <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: port-xen/55431 (panic: kernel diagnostic assertion "xbdreq->req_bp == NULL" failed: file "/more/work/woods/m-NetBSD-current/sys/arch/xen/xen/xbd_xenbus.c", line 819)
Date: Tue, 30 Jun 2020 13:56:20 -0700

 At Mon, 29 Jun 2020 21:48:25 +0000 (UTC), jdolecek@NetBSD.org wrote:
 Subject: Re: port-xen/55431 (panic: kernel diagnostic assertion "xbdreq->re=
 q_bp =3D=3D NULL" failed: file "/more/work/woods/m-NetBSD-current/sys/arch/=
 xen/xen/xbd_xenbus.c", line 819)
 >=20
 > Synopsis: panic: kernel diagnostic assertion "xbdreq->req_bp =3D=3D NULL"=
  failed: file "/more/work/woods/m-NetBSD-current/sys/arch/xen/xen/xbd_xenbu=
 s.c", line 819
 >=20
 > State-Changed-From-To: open->feedback
 > State-Changed-By: jdolecek@NetBSD.org
 > State-Changed-When: Mon, 29 Jun 2020 21:48:25 +0000
 > State-Changed-Why:
 > Should be fixed in rev.1.128 of sys/arch/xen/xen/xbd_xenbus.c, can
 > you please confirm?

 I've lost a disk on the machine I was testing this on and I am still in
 the middle of rebuilding it, but I'll let you know as soon as it is
 running again.

 --=20
 					Greg A. Woods <gwoods@acm.org>

 Kelowna, BC     +1 250 762-7675           RoboHack <woods@robohack.ca>
 Planix, Inc. <woods@planix.com>     Avoncote Farms <woods@avoncote.ca>

State-Changed-From-To: feedback->closed
State-Changed-By: jdolecek@NetBSD.org
State-Changed-When: Fri, 17 Jul 2020 11:24:56 +0000
State-Changed-Why:
Should be fixed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.