syzbot


assert "(pg->pg_flags & PG_BUSY) == NUM" failed in pmap.c

Status: upstream: reported on 2024/04/17 21:34
Reported-by: syzbot+90b9aac60da3a5360280@syzkaller.appspotmail.com
First crash: 14d, last: 3d02h

Sample crash report:
panic: kernel diagnostic assertion "(pg->pg_flags & PG_BUSY) == 0" failed: file "/syzkaller/managers/main/kernel/sys/arch/amd64/amd64/pmap.c", line 1422
Starting stack trace...
panic(ffffffff8292d5c1) at panic+0x159 sys/kern/subr_prf.c:229
__assert(ffffffff828e2c3c,ffffffff8283931d,58e,ffffffff8288fd75) at __assert+0x29 sys/kern/subr_prf.c:157
pmap_destroy(fffffd806b56ab00) at pmap_destroy+0x2a4 sys/arch/amd64/amd64/pmap.c:1422
uvm_map_teardown(fffffd8069590010) at uvm_map_teardown+0x287 sys/uvm/uvm_map.c:2557
uvmspace_free(fffffd8069590010) at uvmspace_free+0x96 sys/uvm/uvm_map.c:3461
vm_teardown(ffff800031c69ab0) at vm_teardown+0x105 sys/dev/vmm/vmm.c:555
vm_terminate(ffff800031c69d50) at vm_terminate+0x121 sys/dev/vmm/vmm.c:688
vmmioctl(a00,80045604,ffff800031c69d50,1,ffff80002a6b2a68) at vmmioctl+0x291 sys/dev/vmm/vmm.c:248
VOP_IOCTL(fffffd807e3c5000,80045604,ffff800031c69d50,1,fffffd807f7d76e8,ffff80002a6b2a68) at VOP_IOCTL+0x91 sys/kern/vfs_vops.c:264
vn_ioctl(fffffd806b66ab50,80045604,ffff800031c69d50,ffff80002a6b2a68) at vn_ioctl+0xbb sys/kern/vfs_vnops.c:525
sys_ioctl(ffff80002a6b2a68,ffff800031c69f30,ffff800031c69e80) at sys_ioctl+0x4a5
syscall(ffff800031c69f30) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xaa0c8882a60, count: 244
End of stack trace.
syncing disks...20 4 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1  giving up

dump to dev 4,1 not possible
rebooting...
SeaBIOS (version 1.8.2-google)
Total RAM Size = 0x0000000080000000 = 2048 MiB
CPUs found: 2     Max CPUs supported: 2
SeaBIOS (version 1.8.2-google)
Machine UUID 0fee9609-1d66-d0cb-3385-b9d53e0469ef
found virtio-scsi at 0:3
virtio-scsi vendor='Google' product='PersistentDisk' rev='1' type=0 removable=0
virtio-scsi blksize=512 sectors=4194304 = 2048 MiB
drive 0x000f27f0: PCHS=0/0/0 translation=lba LCHS=520/128/63 s=4194304
Sending Seabios boot VM event.
Booting from Hard Disk 0...
>> OpenBSD/amd64 BOOT 3.65
boot> machine ddbcpu 0
machine: syntax error
boot> trace
|/-\|/-\|/booting hd0a:trace: -\|/open hd0a:trace: No such file or directory
 failed(2). will try /bsd
boot> machine ddbcpu 1
machine: syntax error
boot> trace

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/28 22:03 openbsd b98581f594cd 07b455f9 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main assert "(pg->pg_flags & PG_BUSY) == NUM" failed in pmap.c
2024/04/27 19:19 openbsd 22bab8566a4f 07b455f9 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main assert "(pg->pg_flags & PG_BUSY) == NUM" failed in pmap.c
2024/04/18 11:22 openbsd 3a96f17f8ee6 bd38b692 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main assert "(pg->pg_flags & PG_BUSY) == NUM" failed in pmap.c
2024/04/17 21:33 openbsd 456e8b6ad58e acc528cb .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-main assert "(pg->pg_flags & PG_BUSY) == NUM" failed in pmap.c
* Struck through repros no longer work on HEAD.