Page MenuHomeFreeBSD

vm_ksubmap_init: pass M_WAITOK to vmem_init -> uma_zalloc_arg
ClosedPublic

Authored by vangyzen on Mar 5 2022, 12:54 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 19, 10:26 PM
Unknown Object (File)
Fri, Jun 19, 6:29 PM
Unknown Object (File)
Wed, Jun 17, 12:01 PM
Unknown Object (File)
Tue, Jun 16, 1:58 PM
Unknown Object (File)
Tue, Jun 16, 1:16 PM
Unknown Object (File)
Tue, Jun 16, 2:07 AM
Unknown Object (File)
May 25 2026, 6:48 PM
Unknown Object (File)
May 21 2026, 7:31 AM
Subscribers

Details

Summary

uma_zalloc_arg expects exactly one of the two WAIT flags. A future
commit will assert this.

MFC after: 1 month
Sponsored by: Dell EMC Isilon

Test Plan

The whole kyua suite completed without a panic or a stack-dump like this (see D34452):

uma_zalloc_arg called with bad WAIT flags:
#0 0xffffffff80f72ca3 at uma_zalloc_arg+0x1a3
#1 0xffffffff80c794a0 at _bt_fill+0x100
#2 0xffffffff80c765a3 at vmem_init+0x373
#3 0xffffffff80f8010c at vm_ksubmap_init+0x13c
#4 0xffffffff810c560c at cpu_startup+0x20c
#5 0xffffffff80b91a9f at mi_startup+0x20f
#6 0xffffffff80389022 at btext+0x22

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable