Page MenuHomeFreeBSD

Remove 11.x ABI compat for kernel dump ioctls
ClosedPublic

Authored by mhorne on Apr 14 2022, 5:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 7 2024, 11:14 AM
Unknown Object (File)
Feb 12 2024, 6:06 AM
Unknown Object (File)
Jan 14 2024, 8:36 AM
Unknown Object (File)
Dec 23 2023, 1:27 AM
Unknown Object (File)
Dec 22 2023, 1:25 AM
Unknown Object (File)
Dec 20 2023, 5:44 AM
Unknown Object (File)
Nov 4 2023, 11:14 PM
Unknown Object (File)
Oct 31 2023, 2:56 PM

Details

Summary

It was marked gone_in(13), so its time has passed. There is no need to
maintain backwards compatibility with old versions of dumpon(8), the
host's (presumably up-to-date) version should be used to configure this.

Diff Detail

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

Event Timeline

These definitely can go.
(1) They aren't part of a long-term standard ABI, but a rather specialized FreeBSD tool and the kernel
(2) they don't need to work in a jail because this ioctl doesn't make sense from jail.
(3) There's no upgrade / failed-upgrade scenarios we need to worry about with this.

(4) FreeBSD 11.x is EOL

This revision is now accepted and ready to land.Apr 14 2022, 6:33 PM
sys/sys/disk.h
61

I wonder if we should leave a note here that 133 was DIOCSKERNELDUMP_FREEBSD11. I guess we're not going to run out of 'd' ioctls any time soon and someone can do some archaeology in the future if we need to reuse a number.

Oh, and 132 and 134 are also already gone. OK

(4) FreeBSD 11.x is EOL

FreeBSD 4.x is too, yet we have have COMPAT_FREEBSD_4 still. I think it's a little more nuanced though... I think it's more relevant that this is a type of interface that we generally only keep stable within a branch and that we discard compatibility for current (and within current).

I agree that the usual compatibility concerns don't really apply here, and it's worth making the dumper configuration code less hairy than it is. Plus, any users will have gotten a nice warning in the dmesg for the past year and a bit.

Yep, just suggesting that this could be removed even under a more conservative notion of backwards compatibility.

sys/sys/disk.h
61

These were my thoughts exactly. Even accidental re-use should not cause a problem assuming there is a __FreeBSD_version bump between then and now.

This revision was automatically updated to reflect the committed changes.