Page MenuHomeFreeBSD

sys/tools: add -s options for KCFI use
Needs ReviewPublic

Authored by aokblast on Sun, Feb 23, 5:54 PM.
Tags
None
Referenced Files
F111020224: D49113.diff
Wed, Feb 26, 7:44 AM
F110951941: D49113.diff
Tue, Feb 25, 8:58 AM
F110951234: D49113.id151375.diff
Tue, Feb 25, 8:44 AM
F110950140: D49113.id.diff
Tue, Feb 25, 8:21 AM
Subscribers

Details

Reviewers
markj
brooks
Summary

The KCFI requires all function signature match.

For .m files in KCFI, it calls kobj_error_methods in default.

Which means the signature will mismatched thus the KCFI will emit trap
in kernel.

Thus we proposed a option -s for makeobjops.awk to generate the correct
signature for each missing default function.

We do not enable this feature by default because it may enlarge the
kernel size.

sys/kern: fix wrong indent

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 62597
Build 59481: arc lint + arc unit

Event Timeline

We do not enable this feature by default because it may enlarge the kernel size.

How much larger is it in practice?

sys/tools/makeobjops.awk
302

How about return kobj_error_method();?