From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: drm/amdkfd: convert CRIU event-private allocation to kvcalloc() Date: Thu, 04 Jun 2026 13:42:10 +1000 Message-ID: In-Reply-To: <20260601195510.639318-1-william@theesfeld.net> References: <20260601195510.639318-1-william@theesfeld.net> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Overall Series Review Subject: drm/amdkfd: convert CRIU event-private allocation to kvcalloc() Author: William Theesfeld Patches: 2 Reviewed: 2026-06-04T13:42:10.529206 --- This is a straightforward single-patch cleanup that converts an open-coded = `kvzalloc(n * sizeof(*p), ...)` to `kvcalloc(n, sizeof(*p), ...)`. The chan= ge is correct and follows a well-established kernel hardening pattern =E2= =80=94 `kvcalloc()` uses `size_mul()` internally to detect multiplication o= verflow, whereas the open-coded form is vulnerable to silent integer overfl= ow of `num_events * sizeof(*ev_privs)`. The patch is small, well-scoped, and the commit message accurately describe= s both the change and its motivation. No functional change. **Verdict: Looks good.** This is a standard mechanical hardening cleanup. --- Generated by Claude Code Patch Reviewer