Re: [PATCH 0/9] drm: Annotate structs with __counted_by

2023-09-29 Thread Kees Cook
On Fri, 22 Sep 2023 10:32:05 -0700, Kees Cook wrote: > This is a batch of patches touching drm for preparing for the coming > implementation by GCC and Clang of the __counted_by attribute. Flexible > array members annotated with __counted_by can have their accesses > bounds-checked at run-time chec

Re: [RFC v2 3/4] vduse: update the vq_info in ioctl

2023-09-29 Thread Maxime Coquelin
On 9/12/23 09:39, Jason Wang wrote: On Tue, Sep 12, 2023 at 11:00 AM Cindy Lu wrote: In VDUSE_VQ_GET_INFO, the driver will sync the last_avail_idx with reconnect info, After mapping the reconnect pages to userspace The userspace App will update the reconnect_time in struct vhost_reconnect_vr

Re: [RFC v2 4/4] vduse: Add new ioctl VDUSE_GET_RECONNECT_INFO

2023-09-29 Thread Maxime Coquelin
On 9/25/23 04:57, Jason Wang wrote: On Thu, Sep 21, 2023 at 10:07 PM Cindy Lu wrote: On Mon, Sep 18, 2023 at 4:49 PM Jason Wang wrote: On Tue, Sep 12, 2023 at 11:01 AM Cindy Lu wrote: In VDUSE_GET_RECONNECT_INFO, the Userspace App can get the map size and The number of mapping memory p

Re: [RFC v2 3/4] vduse: update the vq_info in ioctl

2023-09-29 Thread Maxime Coquelin
On 9/25/23 06:15, Cindy Lu wrote: On Tue, Sep 12, 2023 at 3:39 PM Jason Wang wrote: On Tue, Sep 12, 2023 at 11:00 AM Cindy Lu wrote: In VDUSE_VQ_GET_INFO, the driver will sync the last_avail_idx with reconnect info, After mapping the reconnect pages to userspace The userspace App will upd