On Mon, Oct 07, 2024 at 12:55:08PM +0100, Stuart Henderson wrote: > I have a bunch of machines running mostly X, mate desktop environment, > chromium. > > Occasionally there are panics while the machine is idle - I left > instructions and someone on-site managed to get some photos this time. > > uvm_fault(0xfffffd83fcb18838, 0x660, 0, 1) -> e > drm:pid95860:gen9_set_dc_state *ERROR* [drm] *ERROR* DC state mismatch (0x0 > -> 0x2) > kernel: page fault trap, code=0 > Stopped at bread_0x33: testq $0x180,0x60(%rax) > TID PID UID PRFLAGS PFLAGS CPU COMMAND > *189589 95860 35 0x18000012 0 0K Xorg > 184707 83687 0 0x14000 0x200 3 i915_modeset > 42913 60436 0 0x14000 0x200 2 i915-unordered > 472773 65237 0 0x14000 0x200 1 drmubwq > bread(... > ffs2_balloc(... > ffs_write(... > VOP_WRITE(... > vn_write(... > dofilewritev(... > sys_write(... > syscall(... > Xsyscall at Xsyscall+0x128 > end of kernel > end trace frame: 0x7c83cbbb9040, count: 6 > > I will be updating them to release this week, this one was running > > OpenBSD 7.6-beta (GENERIC.MP) #269: Mon Aug 19 19:01:12 MDT 2024 > > sh uvm and per-cpu traces in photos: > > https://junkpile.org/x-panic/IMG_1302.jpg > https://junkpile.org/x-panic/IMG_1303.jpg > https://junkpile.org/x-panic/IMG_1304.jpg > https://junkpile.org/x-panic/IMG_1305.jpg > https://junkpile.org/x-panic/IMG_1306.jpg > https://junkpile.org/x-panic/IMG_1307.jpg > > Any ideas? > > sendbug -P files below. > > dmesg: > OpenBSD 7.6-beta (GENERIC.MP) #269: Mon Aug 19 19:01:12 MDT 2024 > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
try ufs_ihash.c > 1.28? ---------------------------- revision 1.28 date: 2024/09/04 17:00:08; author: beck; state: Exp; lines: +30 -1; commitid: JZ5aAr5hLYfSiuMA; Work around vnode reuse bug resulting in a panic: vop_generic_badop Joel hit this frequently on the go builder, and this was also found by szykiller https://syzkaller.appspot.com/bug?extid=58bdde9f7a1a407514a7 https://syzkaller.appspot.com/bug?extid=5779bc64fc4fdd0a5140 This is based on a workaround originally done by visa@ and mbuhl@ but not committed or widely distributed. Realistically this should be fixed more like the previous attempt with vdoom, but my attempts to do this at the moment are colliding with finding all sources of similar races, now that kernel unlocking is exposing these previously existing bugs for now, let's put in this ugly workaround ok deraadt@ ----------------------------