Bug 249859 - src/stand's kernel malloc emulation can fail M_WAITOK call
Summary: src/stand's kernel malloc emulation can fail M_WAITOK call
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Warner Losh
Depends on:
Reported: 2020-09-24 16:46 UTC by Warner Losh
Modified: 2020-09-25 19:46 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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!