Re: [PATCH v3 2/2] drm/tyr: safely write GpuInfo to userspace

From: Danilo Krummrich

Date: Sat Sep 26 2026 - 12:49:04 EST


On Sat Sep 26, 2026 at 2:26 AM CEST, Deborah Brouwer wrote:
> @@ -54,7 +54,7 @@ pub(crate) fn dev_query(
> )
> .writer();
>
> - writer.write(&reg_data.gpu_info)?;
> + writer.write_slice(reg_data.gpu_info.as_bytes())?;

I think we eventually want write() to require T: IntoBytes + Immutable, so I'm
not sure there is much value going back and forth with this.