Page MenuHomeFreeBSD

clear allocated blist struct
ClosedPublic

Authored by dougm on Oct 9 2017, 9:59 AM.
Tags
None
Referenced Files
F150655609: D12627.diff
Fri, Apr 3, 3:36 AM
F150655588: D12627.diff
Fri, Apr 3, 3:36 AM
Unknown Object (File)
Wed, Mar 18, 10:42 AM
Unknown Object (File)
Mar 3 2026, 2:46 PM
Unknown Object (File)
Mar 2 2026, 5:47 PM
Unknown Object (File)
Jan 25 2026, 12:06 AM
Unknown Object (File)
Jan 15 2026, 10:52 PM
Unknown Object (File)
Dec 28 2025, 8:25 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.