*cpu0: kernel diagnostic assertion "ISSET(bp->b_flags, B_BC)" failed: file "/us
r/src/sys/kern/vfs_bio.c", line 391
>Synopsis: <synopsis of the problem (one line)>
>Category: <PR category (one line)>
>Environment:
System : OpenBSD 7.7
Details : OpenBSD 7.7-current (GENERIC.MP) #31: Fri Aug 1 21:55:55
MDT 2025
[email protected]:/usr/src/sys/arch/octeon/compile/GENERIC.MP
Architecture: OpenBSD.octeon
Machine : octeon
>Description:
I have used both a build artifacts and swap via NFS on my octeon
device when I tried to build gcc from ports. After a while I had
discovered that machine doesn't responsed to the ping. When I
connected to serial console I saw it in ddb. Here panic, traces and
ps:
ddb{0}> show panic
*cpu0: kernel diagnostic assertion "ISSET(bp->b_flags, B_BC)" failed:
file "/us
r/src/sys/kern/vfs_bio.c", line 391
ddb{0}> trace
db_enter+0x4
(c000000000008870,af146f7c17c1728e,56549e953a787ef0,b5defd06fa3795
46) ra 0xffffffff812f9b14 sp 0x9800000007b5fc10, sz 0
panic+0x194
(c000000000008870,ffffffff815bda18,ffffffff8168f16c,ffffffff8168f09
e) ra 0xffffffff812f9980 sp 0x9800000007b5fc10, sz 96
__assert+0x30
(c000000000008870,ffffffff815bda18,ffffffff8168f16c,ffffffff8168f
09e) ra 0x0 sp 0x9800000007b5fc70, sz 0
User-level: pid 65326
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
78207 508799 49249 1000 3 0x3 pmrwait genautomata
49249 423442 47905 1000 3 0x10008b sigsusp sh
27451 48666 3584 1000 3 0x100083 kqread top
47905 207178 62815 1000 3 0x83 wait gmake
62815 361801 31229 1000 3 0x10008b sigsusp sh
31229 18438 24168 1000 3 0x83 wait gmake
24168 257144 70533 1000 3 0x10008b sigsusp sh
70533 200037 56070 1000 3 0x83 wait gmake
56070 417692 14401 1000 3 0x10008b sigsusp sh
14401 7560 6845 1000 3 0x83 wait gmake
6845 465915 44917 1000 3 0x10008b sigsusp make
44917 29838 85609 1000 3 0x10008b sigsusp sh
85609 404851 3056 1000 3 0x10008b sigsusp make
84455 318412 68849 1000 3 0x100083 kqread tmux
68849 228497 45232 1000 3 0x10008b sigsusp ksh
45232 484957 16024 1000 3 0x98 kqread sshd-session
16024 395399 57577 0 3 0x92 kqread sshd-session
3584 248770 30644 1000 3 0x10008b sigsusp ksh
3056 505083 30644 1000 3 0x10008b sigsusp ksh
30644 390140 1 1000 3 0x100080 kqread tmux
54051 428099 1 0 3 0x100083 ttyin getty
9052 24005 1 0 3 0x100098 kqread cron
44369 125697 1 847 3 0x100080 kqread iperf3
421 480141 1 99 3 0x1100090 kqread sndiod
44013 131531 1 110 3 0x100090 kqread sndiod
67060 279424 15881 95 3 0x1100092 kqread smtpd
76358 74276 15881 103 3 0x1100092 kqread smtpd
52360 414615 15881 95 3 0x1100092 kqread smtpd
75624 459189 15881 95 3 0x100092 kqread smtpd
63781 338906 15881 95 3 0x1100092 kqread smtpd
19136 149047 15881 95 3 0x1100092 kqread smtpd
15881 265579 1 0 3 0x100080 kqread smtpd
57577 196998 1 0 3 0x88 kqread sshd
2377 182104 0 0 7 0x14280 nfsio
46957 373748 0 0 3 0x14280 nfsidl nfsio
75007 406972 0 0 3 0x14280 nfsidl nfsio
*65326 444963 0 0 7 0x14200 nfsio
70014 185067 1 0 3 0x100080 kqread ntpd
34861 182152 6978 83 3 0x100092 kqread ntpd
6978 57402 1 83 3 0x1100092 kqread ntpd
64155 133828 38609 73 3 0x1100090 kqread syslogd
38609 458892 1 0 3 0x100082 sbwait syslogd
83849 106737 1 0 3 0x100080 kqread resolvd
99710 39135 2070 77 3 0x100092 kqread dhcpleased
46022 315043 2070 77 3 0x100092 kqread dhcpleased
2070 307326 1 0 3 0x80 kqread dhcpleased
10241 47704 95344 115 3 0x100092 kqread slaacd
69247 222297 95344 115 3 0x100092 kqread slaacd
95344 403704 1 0 3 0x100080 kqread slaacd
78886 410943 0 0 3 0x14200 bored smr
98525 257822 0 0 3 0x40014200 idle1
70722 279842 0 0 3 0x14200 pgzero zerothread
22524 222264 0 0 3 0x14200 aiodoned aiodoned
55648 409488 0 0 3 0x14200 syncer update
10104 15906 0 0 3 0x14200 cleaner cleaner
44515 346169 0 0 3 0x14200 reaper reaper
81823 112703 0 0 3 0x14200 oom pagedaemon
46862 68588 0 0 3 0x14200 usbtsk usbtask
63322 68438 0 0 3 0x14200 usbatsk usbatsk
75851 10121 0 0 3 0x14200 bored dwc2
52693 521979 0 0 3 0x14200 bored softnet7
41594 291991 0 0 3 0x14200 bored softnet6
15632 313900 0 0 3 0x14200 bored softnet5
91156 229356 0 0 3 0x14200 bored softnet4
6861 168669 0 0 3 0x14200 bored softnet3
40099 303195 0 0 3 0x14200 bored softnet2
7751 342779 0 0 3 0x14200 bored softnet1
64022 379532 0 0 3 0x14200 bored softnet0
67299 222046 0 0 3 0x14200 bored systqmp
27492 107570 0 0 3 0x14200 bored systq
85957 257671 0 0 3 0x14200 tmoslp softclockmp
81821 123730 0 0 3 0x40014200 tmoslp softclock
23824 211074 0 0 3 0x40014200 idle0
1 61688 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}>
>How-To-Repeat:
Not sure, can guess that the next build will crash as well.
>Fix:
No idea.
dmesg:
OpenBSD 7.7-current (GENERIC.MP) #31: Fri Aug 1 21:55:55 MDT 2025
[email protected]:/usr/src/sys/arch/octeon/compile/GENERIC.MP
real mem = 536870912 (512MB)
avail mem = 520962048 (496MB)
random: good seed from bootblocks
mainbus0 at root: board 20004 rev 0.16, model CN3xxx/CN5xxx
cpu0 at mainbus0: CN50xx CPU rev 0.1 500 MHz, Software FP emulation
cpu0: cache L1-I 32KB 4 way D 16KB 64 way, L2 128KB 8 way
cpu1 at mainbus0: CN50xx CPU rev 0.1 500 MHz, Software FP emulation
cpu1: cache L1-I 32KB 4 way D 16KB 64 way, L2 128KB 8 way
clock0 at mainbus0: int 5
octcrypto0 at mainbus0
iobus0 at mainbus0
simplebus0 at iobus0: "soc"
octciu0 at simplebus0
octsmi0 at simplebus0
octpip0 at simplebus0
octgmx0 at octpip0 interface 0
cnmac0 at octgmx0: port 0 RGMII, address b4:fb:e4:83:64:36
atphy0 at cnmac0 phy 7: AR8035, rev. 2
cnmac1 at octgmx0: port 1 RGMII, address b4:fb:e4:83:64:37
atphy1 at cnmac1 phy 6: AR8035, rev. 2
cnmac2 at octgmx0: port 2 RGMII, address b4:fb:e4:83:64:38
atphy2 at cnmac2 phy 5: AR8035, rev. 2
com0 at simplebus0: ns16550a, 64 byte fifo
com0: console
dwctwo0 at iobus0 base 0x1180068000000 irq 56
usb0 at dwctwo0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Octeon DWC2 root hub" rev 2.00/1.00
addr 1
octrng0 at iobus0 base 0x1400000000000 irq 0
umass0 at uhub0 port 1 configuration 1 interface 0 " UDinfo UF2 4GB" rev
2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <, UDinfo UF2 4GB, PMAP> removable
serial.13fe420086F821804937
sd0: 3824MB, 512 bytes/sector, 7831552 sectors
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (1f20a4f764a59247.a) swap on sd0b dump on sd0b
WARNING: / was not properly unmounted
WARNING: CHECK AND RESET THE DATE!
usbdevs:
Controller /dev/usb0:
addr 01: 0000:0000 Octeon, DWC2 root hub
high speed, self powered, config 1, rev 1.00
driver: uhub0
addr 02: 13fe:4200 , UDinfo UF2 4GB
high speed, power 200 mA, config 1, rev 1.00, iSerial 070386F821804937
driver: umass0
pcidump:
acpidump:
--
wbr, Kirill