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)
Thu, Jan 2, 6:44 PM
Unknown Object (File)
Mon, Dec 30, 1:20 PM
Unknown Object (File)
Dec 27 2024, 12:40 AM
Unknown Object (File)
Dec 13 2024, 8:45 PM
Unknown Object (File)
Dec 1 2024, 4:59 PM
Unknown Object (File)
Nov 30 2024, 8:19 PM
Unknown Object (File)
Nov 24 2024, 10:38 PM
Unknown Object (File)
Oct 16 2024, 12:27 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