Page MenuHomeFreeBSD

clear allocated blist struct
ClosedPublic

Authored by dougm on Oct 9 2017, 9:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 8, 11:05 PM
Unknown Object (File)
Sun, Sep 28, 3:33 AM
Unknown Object (File)
Sep 7 2025, 9:49 PM
Unknown Object (File)
Sep 4 2025, 12:08 AM
Unknown Object (File)
Aug 27 2025, 2:40 AM
Unknown Object (File)
Aug 18 2025, 10:05 AM
Unknown Object (File)
Aug 11 2025, 4:41 AM
Unknown Object (File)
Aug 3 2025, 8:31 AM
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.