On Mon, Oct 7, 2024 at 5:22 PM Danilo Krummrich <dakr@xxxxxxxxxx> wrote: > > @Miguel: Can you please fix this up when you apply the series? Of course. > Unrelated to this series, but I think there's also a "regression" against the > lint series in this file: Good catch, fixed in `rust-next` directly and added to my tests, thanks! diff --git a/mm/kasan/kasan_test_rust.rs b/mm/kasan/kasan_test_rust.rs index caa7175964ef..47bcf033dd4f 100644 --- a/mm/kasan/kasan_test_rust.rs +++ b/mm/kasan/kasan_test_rust.rs @@ -17,5 +17,6 @@ pub extern "C" fn kasan_test_rust_uaf() -> u8 { } let ptr: *mut u8 = addr_of_mut!(v[2048]); drop(v); + // SAFETY: Incorrect, on purpose. unsafe { *ptr } } Cheers, Miguel