Page MenuHomeFreeBSD

vfs_register: prevent kernel crash
ClosedPublic

Authored by netchild on Sat, Sep 19, 10:20 AM.
Tags
None
Referenced Files
F173085685: D59839.id187213.diff
Wed, Sep 23, 11:45 AM
F173054801: D59839.id187213.diff
Wed, Sep 23, 5:22 AM
Unknown Object (File)
Mon, Sep 21, 11:22 AM
Unknown Object (File)
Mon, Sep 21, 12:12 AM
Unknown Object (File)
Sun, Sep 20, 7:28 PM
Unknown Object (File)
Sat, Sep 19, 12:06 PM
Subscribers

Details

Summary

vfs_register hashes the filesystem name and uses it for sysctl oids.
A filesystem name which hashes to 0 crashes in sysctl_register_oid().

Map 0 to 1 to prevent the kernel crash.

This can be tested with "udf2" as the filesystem name.

MFC after: 1 month
MFC to: stable/15 stable/14

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable