Page MenuHomeFreeBSD

clear allocated blist struct
ClosedPublic

Authored by dougm on Oct 9 2017, 9:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 31, 6:01 PM
Unknown Object (File)
Thu, Jan 30, 12:02 PM
Unknown Object (File)
Thu, Jan 23, 6:57 PM
Unknown Object (File)
Tue, Jan 21, 11:44 AM
Unknown Object (File)
Sat, Jan 18, 5:42 PM
Unknown Object (File)
Dec 28 2024, 5:28 AM
Unknown Object (File)
Dec 19 2024, 3:38 PM
Unknown Object (File)
Dec 6 2024, 9:23 PM
Subscribers

Details

Summary

The recent change to initialization of blists relied on '-1' appearing only where the code explicitly set it, but since much of the data was not initialized, '-1' appeared other places too, and led to panics. Clear the allocated data before initializing nonzero values by allocating with M_ZERO set in the last malloc argument.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dougm added a reviewer: kib.
This revision was automatically updated to reflect the committed changes.

This fixes the recurring panic on my gateway machine.