syzbot


multicore boot error: witness: lock_object uninitialized: ADDR

Status: fixed on 2023/10/08 16:50
Reported-by: syzbot+7b218ef53432b5d56d7d@syzkaller.appspotmail.com
Fix commit: 33aa5105d87e Revert commitid: KtmyJEoS0WWxmlZ5 --- Protect interface queues with read once and mutex.
First crash: 413d, last: 410d

Sample crash report:
witness: lock_object uninitialized: 0xffff8000001a1578

Starting stack trace...

witness_checkorder(ffff8000001a1578,9,0,ffff8000001a1578,8843e391545a8617,ffff8000001a1550) at witness_checkorder+0x137 witness_debugger sys/kern/subr_witness.c:2510 [inline]

witness_checkorder(ffff8000001a1578,9,0,ffff8000001a1578,8843e391545a8617,ffff8000001a1550) at witness_checkorder+0x137 sys/kern/subr_witness.c:777

mtx_enter(ffff8000001a1568,ffff8000001a1568,b6f8a04c8308df4,ffff8000001a1550,fff,ffff8000001a1568) at mtx_enter+0x3e sys/kern/kern_lock.c:265

ifq_set_maxlen(ffff8000001a1550,fff,ffff8000001a1050,ffff800000024c00,ffff8000001a12a8,ffff8000001a1050) at ifq_set_maxlen+0x28 sys/net/ifq.c:536

vio_attach(ffff800000024c00,ffff8000001a1000,ffff800000024c00,ffff800000024c00,810945366350a1d,ffffffff82c16430) at vio_attach+0x5b7 sys/dev/pv/if_vio.c:596

config_attach(ffff800000024c00,ffffffff82c3ebf8,ffff800000024c00,0,25fe0df650f31852,0) at config_attach+0x33a sys/kern/subr_autoconf.c:418

virtio_pci_attach(ffff80000002de00,ffff800000024c00,ffffffff8315da10,ffff80000002de00,3d9d8295a19c88f5,ffffffff82b978c0) at virtio_pci_attach+0x24d sys/dev/pci/virtio_pci.c:611

config_attach(ffff80000002de00,ffffffff82c40e88,ffffffff8315da10,ffffffff81a96f70,25fe0df65095edbf,ffff80000007b180) at config_attach+0x33a sys/kern/subr_autoconf.c:418

pci_probe_device(ffff80000002de00,80002000,0,0,eb9d916e2dc4a059,0) at pci_probe_device+0x730 sys/dev/pci/pci.c:574

pci_enumerate_bus(ffff80000002de00,0,0,ffff80000002de00,bbebbbdc1f72f01b,ffffffff82be6360) at pci_enumerate_bus+0x260 sys/dev/pci/pci.c:863

config_attach(ffff80000002b280,ffffffff82c3ed48,ffffffff8315dc60,ffffffff81c91230,25fe0df650f5871e,ffff80000002db00) at config_attach+0x33a sys/kern/subr_autoconf.c:418

acpipci_attach_bus(ffff80000002b280,ffff80000002db00,8843e391541b83e3,2,ffff80000002b280,1) at acpipci_attach_bus+0x261 sys/arch/amd64/pci/acpipci.c:226

acpipci_attach_busses(ffff80000002b280,ffff80000002b280,b840c2d0be986f6b,1,ffff80000002b280,ffffffff82c445f0) at acpipci_attach_busses+0x6a sys/arch/amd64/pci/acpipci.c:234

mainbus_attach(0,ffff80000002b280,0,0,4bee81ff6fa244bc,ffffffff82bbb0f8) at mainbus_attach+0x24e sys/arch/amd64/amd64/mainbus.c:232

config_attach(0,ffffffff82c3e878,0,0,25fe0df650a28583,0) at config_attach+0x33a sys/kern/subr_autoconf.c:418

cpu_configure(242341ff9311b00d,0,ffff800000028000,ffff80000002e000,ffffffff819e109c,ffffffff8315df00) at cpu_configure+0x3c sys/arch/amd64/amd64/autoconf.c:124

main(0,0,0,0,0,1) at main+0x401 sys/kern/init_main.c:342

end trace frame: 0x0, count: 241

End of stack trace.

Stopped at      db_enter+0x1c:  addq    $0x8,%rsp

ddb{0}> serialport: Connected to syzkaller.us-central1-b.ci-openbsd-setuid-test-2 port 1 (session ID: ab7444b5601462e4ba063c11bc0fb7724a179f85e7b69f3e3cde8af1449e426f, active connections: 1).

Crashes (108):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/08 09:09 openbsd db2ddd1af19e 5e837c76 .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/08 08:08 openbsd e822a21ff0a7 5e837c76 .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/08 07:44 openbsd e822a21ff0a7 5e837c76 .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/07 22:44 openbsd 772e31c15284 5e837c76 .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/07 15:08 openbsd 1302b329055d 5e837c76 .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/07 13:46 openbsd 09b34e9cf9c2 5e837c76 .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/07 13:46 openbsd 09b34e9cf9c2 5e837c76 .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/07 12:44 openbsd 6b6a24c48475 5e837c76 .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/07 11:05 openbsd 52154eb4e7fd 5e837c76 .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/07 00:44 openbsd fc99cf933894 5e837c76 .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 23:48 openbsd fc99cf933894 db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 17:49 openbsd fd2521f18de7 db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 16:48 openbsd f61931f9464a db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 14:13 openbsd dd81669f0978 db17ad9f .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 14:13 openbsd dd81669f0978 db17ad9f .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 13:48 openbsd dd81669f0978 db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 13:48 openbsd dd81669f0978 db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 13:48 openbsd dd81669f0978 db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 11:13 openbsd 090dc14ea16d db17ad9f .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 11:13 openbsd 090dc14ea16d db17ad9f .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 11:13 openbsd 090dc14ea16d db17ad9f .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 10:49 openbsd 090dc14ea16d db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 10:48 openbsd 090dc14ea16d db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 10:48 openbsd 090dc14ea16d db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 10:13 openbsd ba77e19b8a51 db17ad9f .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 10:12 openbsd ba77e19b8a51 db17ad9f .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 10:12 openbsd ba77e19b8a51 db17ad9f .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 09:49 openbsd ba77e19b8a51 db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 09:48 openbsd ba77e19b8a51 db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 09:48 openbsd ba77e19b8a51 db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 07:12 openbsd fbb678bed602 db17ad9f .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 07:12 openbsd fbb678bed602 db17ad9f .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 07:12 openbsd fbb678bed602 db17ad9f .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 06:48 openbsd fbb678bed602 db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 06:48 openbsd fbb678bed602 db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 06:48 openbsd fbb678bed602 db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 06:02 openbsd 1e4d45b40123 db17ad9f .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 06:01 openbsd 1e4d45b40123 db17ad9f .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 06:01 openbsd 1e4d45b40123 db17ad9f .config console log report ci-openbsd-multicore multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 05:29 openbsd 1e4d45b40123 db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 05:29 openbsd 1e4d45b40123 db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 05:29 openbsd 1e4d45b40123 db17ad9f .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 05:02 openbsd 1e4d45b40123 becbb1de .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/06 05:02 openbsd 1e4d45b40123 becbb1de .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
2023/10/05 12:46 openbsd 37a618ff0e3b b7d7ff54 .config console log report ci-openbsd-setuid multicore boot error: witness: lock_object uninitialized: ADDR
* Struck through repros no longer work on HEAD.