Page MenuHomeFreeBSD

ksiginfo_alloc: pass M_WAITOK or M_NOWAIT to uma_zalloc
ClosedPublic

Authored by vangyzen on Mar 5 2022, 12:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 30, 5:14 AM
Unknown Object (File)
Jan 15 2024, 9:43 PM
Unknown Object (File)
Jan 14 2024, 8:03 AM
Unknown Object (File)
Dec 20 2023, 3:34 AM
Unknown Object (File)
Dec 17 2023, 4:14 AM
Unknown Object (File)
Sep 24 2023, 9:40 AM
Unknown Object (File)
Sep 24 2023, 9:38 AM
Unknown Object (File)
Sep 24 2023, 9:29 AM
Subscribers

Details

Summary

It expects exactly one of those 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 0xffffffff80c207c6 at proc_linkup+0x26
#2 0xffffffff80bc0378 at fork1+0x408
#3 0xffffffff80bcf196 at kproc_create+0x96
#4 0xffffffff80bcf0dd at kproc_start+0x2d
#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