Re: [PATCH] rust: declare cfi_encoding for lru_status

From: Kees Cook

Date: Tue Jan 06 2026 - 15:01:22 EST


On Mon, Jan 05, 2026 at 04:12:47PM +0000, Alice Ryhl wrote:
> By default bindgen will convert 'enum lru_status' into a typedef for an
> integer, but this leads to the wrong cfi type. It's supposed to be a
> type called "lru_status" rather than the underlying native integer type.

Is this a bug in bindgen?

--
Kees Cook