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)
Sun, Jul 19, 7:33 PM
Unknown Object (File)
Sun, Jul 5, 2:35 AM
Unknown Object (File)
Sat, Jul 4, 6:29 AM
Unknown Object (File)
Fri, Jul 3, 10:08 PM
Unknown Object (File)
Fri, Jul 3, 2:01 AM
Unknown Object (File)
Tue, Jun 30, 11:01 PM
Unknown Object (File)
Tue, Jun 30, 8:24 PM
Unknown Object (File)
Mon, Jun 29, 7:31 PM
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