Page MenuHomeFreeBSD

vm: uma_core: Test that uk_free_slab isn't empty before fetching the first element
AbandonedPublic

Authored by manu on Apr 16 2018, 11:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 23 2023, 3:10 AM
Unknown Object (File)
Dec 27 2022, 11:30 AM
Subscribers

Details

Reviewers
jeff
kib
Summary

This is a direct commit to 11 this part of the code was fixed in
r327900 by jeff@

Sponsored By: Gandi.net
Reported by: Fatih Acar <fatih@gandi.net>

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sys/vm/uma_core.c
2314

Note this test. It means that there must be an item free in slabs. So there must be either a partially filled slab, or completely free slab.

sys/vm/uma_core.c
2314

Then something else is happening because I've hit this code where LIST_FIRST at line 2318 returns NULL.
Unfortunately I don't know how to reproduce this panic ...

No plan to update this now.