LinuxKPI: Add want_init_on_free to linux/mm.h

want_init_on_free returns if heap memory zeroing on free is enabled.
FreeBSD does not zeroes heap memory on free().

Sponsored by:	Serenity Cyber Security
Reviewed by:	emaste
MFC after:	1 week

(cherry picked from commit 56041ee817)
This commit is contained in:
Vladimir Kondratyev 2024-04-08 09:47:43 +03:00
parent 8ce07593a9
commit 1a045267a3

View file

@ -382,4 +382,10 @@ might_alloc(gfp_t gfp_mask __unused)
#define is_cow_mapping(flags) (false)
static inline bool
want_init_on_free(void)
{
return (false);
}
#endif /* _LINUXKPI_LINUX_MM_H_ */