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
F102714323: D34450.id103516.diff
Sat, Nov 16, 6:14 AM
Unknown Object (File)
Sep 12 2024, 6:02 PM
Unknown Object (File)
Sep 12 2024, 11:34 AM
Unknown Object (File)
Sep 4 2024, 8:22 AM
Unknown Object (File)
Jun 29 2024, 9:28 PM
Unknown Object (File)
Jun 23 2024, 2:21 PM
Unknown Object (File)
May 16 2024, 12:15 AM
Unknown Object (File)
May 8 2024, 1:51 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