From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: block: rnull: use `LocalModule` for `THIS_MODULE` Date: Mon, 25 May 2026 20:45:44 +1000 Message-ID: In-Reply-To: <20260521-fix-fops-owner-v2-7-fd99079c5a04@linux.dev> References: <20260521-fix-fops-owner-v2-0-fd99079c5a04@linux.dev> <20260521-fix-fops-owner-v2-7-fd99079c5a04@linux.dev> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Patch Review Updates `drivers/block/rnull/configfs.rs` to replace: ```rust use super::{ NullBlkDevice, THIS_MODULE, }; ``` with: ```rust use super::NullBlkDevice; use crate::LocalModule; ``` **Observations:** 1. This is a straightforward mechanical update. The old `THIS_MODULE` import from the parent module is replaced by importing `LocalModule` from the crate root, which then gets used via the `configfs_attrs!` macro expansion (patched in patch 6). 2. The `LocalModule` import is needed because `configfs_attrs!` now refers to `LocalModule` by name. **No issues found.** --- **Summary:** This is a clean, well-structured 7-patch series fixing a real use-after-free vulnerability in Rust kernel drivers. The design choice of threading `THIS_MODULE` through the type system via `ModuleMetadata` + `#[vtable]` auto-injection is sound and minimizes per-driver boilerplate. No correctness issues identified. The series is ready to merge pending the prerequisite patches it depends on. --- Generated by Claude Code Patch Reviewer