Re: [PATCH v2 1/3] accel/rocket: Validate BO handle counts on job submission

From: MoGGuU

Date: Fri Aug 28 2026 - 01:33:24 EST


Thanks, that makes sense.

The two individual checks still need to happen before
drm_gem_objects_lookup(), because its count argument is int. For the
combined count, changing bo_count in rocket_job_push() from u32 to int
makes check_add_overflow() reject sums above INT_MAX before the count is
passed to the reservation helpers.

I addressed this in v3:
https://lore.kernel.org/r/20260828050805.38548-2-Naixumogu@xxxxxxxxxxx

Regards,
MoGGuU