syzbot


assert "mo->ro_magic == RWLOCK_OBJ_MAGIC" failed in kern_rwlock.c

Status: upstream: reported on 2024/04/16 18:28
Reported-by: syzbot+e4019ac7b3da2a301f6a@syzkaller.appspotmail.com
First crash: 57d, last: 57d

Sample crash report:
panic: kernel diagnostic assertion "mo->ro_magic == RWLOCK_OBJ_MAGIC" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_rwlock.c", line 599 rw_obj_free: lock 0xfffffd80642cec40: mo->ro_magic (0) != RWLOCK_OBJ_MAGIC (0x5aa3c85d)
Starting stack trace...
panic(ffffffff828aa047) at panic+0x16f sys/kern/subr_prf.c:229
rw_obj_free(fffffd80642cec40) at rw_obj_free+0x108 sys/kern/kern_rwlock.c:600
amap_free(fffffd806b59bcc8) at amap_free+0x92 sys/uvm/uvm_amap.c:454
amap_wipeout(fffffd806b59bcc8) at amap_wipeout+0x243 sys/uvm/uvm_amap.c:532
uvm_unmap_detach(ffff80002a154eb0,1) at uvm_unmap_detach+0x7d sys/uvm/uvm_map.c:1354
uvm_map_teardown(fffffd80775c3a68) at uvm_map_teardown+0x2f8 sys/uvm/uvm_map.c:2554
uvmspace_free(fffffd80775c3a68) at uvmspace_free+0xa6 sys/uvm/uvm_map.c:3461
reaper(ffff80002a148cd8) at reaper+0x197 sys/kern/kern_exit.c:463
end trace frame: 0x0, count: 249
End of stack trace.

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/16 18:27 openbsd 25b30cac31a3 2338035c .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore assert "mo->ro_magic == RWLOCK_OBJ_MAGIC" failed in kern_rwlock.c
* Struck through repros no longer work on HEAD.