Bug 249859

Summary: src/stand's kernel malloc emulation can fail M_WAITOK call
Product: Base System Reporter: Warner Losh <imp>
Component: miscAssignee: Warner Losh <imp>
Status: New ---    
Severity: Affects Only Me CC: cem, emaste
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Warner Losh freebsd_committer 2020-09-24 16:46:31 UTC

    
Comment 1 Warner Losh freebsd_committer 2020-09-24 16:47:57 UTC
In theory, some malloc calls with M_WAITOK can fail because the underlying Malloc() implementation in src/stand can fail.

We should proactively detect this and fail in a helpful way, rather than waiting for the null pointer dereference.
Comment 2 Warner Losh freebsd_committer 2020-09-24 16:56:50 UTC
Note to bug busters: this is an enhancement request that may languish (though hopefully not), please check with me before starting any timeout process on it. Thanks!