Re: [PATCH] compat: make block_device_operations tests grsec compatible
Christoph Böhmwalder <[email protected]> Tue, 18 Nov 2025 11:50:08 +0100
| Newsgroups | dev.linux.lists.drbd-dev |
|---|---|
| Message-ID | <[email protected]> |
Am 10.11.25 um 13:59 schrieb Mathias Krause: > The grsecurity patch enforces that instances of certain types are always > constified, with the help of a compiler plugin. One of these types is > 'struct block_device_operations'. Code that tries to modify a such-typed > object will cause compiler errors, leading to wrong results for the > kernel compatibility tests. > > Change these tests to do direct type compare tests instead of trying to > modify the object, making them compatible with grsecurity kernels. > > Signed-off-by: Mathias Krause <[email protected]> Thanks, applied: https://github.com/LINBIT/drbd/commit/376a2932bf8f44dd0a18bc70f3309f3e71e0d37d -- Christoph Böhmwalder LINBIT | Keeping the Digital World Running DRBD HA — Disaster Recovery — Software defined Storage