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/lease: cap object_count to avoid order > MAX_PAGE_ORDER warning Date: Wed, 27 May 2026 15:13:21 +1000 Message-ID: In-Reply-To: <20260526055359.17392-1-devnexen@gmail.com> References: <20260526055359.17392-1-devnexen@gmail.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Overall Series Review Subject: drm/lease: cap object_count to avoid order > MAX_PAGE_ORDER warning Author: David Carlier Patches: 1 Reviewed: 2026-05-27T15:13:21.349922 --- This is a single patch fixing a syzbot-reported bug where an unbounded `object_count` from userspace causes `kzalloc_objs()` to request an allocation large enough to trigger a `WARN_ON_ONCE_GFP` in the page allocator. The fix is straightforward and correct in principle: cap the count at the ioctl entry point before the allocation happens. The approach is reasonable and the placement is right. There are a couple of minor issues worth discussing. **Verdict: Acceptable with minor nits.** --- Generated by Claude Code Patch Reviewer