Displaying 5 results from an estimated 5 matches for "vring_virtqueue_split".
2023 May 26
1
[PATCH] virtio_ring: validate used buffer length
...inux/spinlock.h>
#include <xen/xen.h>
+static bool force_used_validation = false;
+module_param(force_used_validation, bool, 0444);
+
#ifdef DEBUG
/* For development, we want to crash whenever the ring is screwed. */
#define BAD_RING(_vq, fmt, args...) \
@@ -105,6 +108,9 @@ struct vring_virtqueue_split {
struct vring_desc_state_split *desc_state;
struct vring_desc_extra *desc_extra;
+ /* Maximum in buffer length, NULL means no used validation */
+ u32 *buflen;
+
/* DMA address and size information */
dma_addr_t queue_dma_addr;
size_t queue_size_in_bytes;
@@ -145,6 +151,9 @@ struct vri...
2023 May 31
1
[PATCH] virtio_ring: validate used buffer length
...gt; > > > #ifdef DEBUG
> > > > > > > /* For development, we want to crash whenever the ring is screwed. */
> > > > > > > #define BAD_RING(_vq, fmt, args...) \
> > > > > > > @@ -105,6 +108,9 @@ struct vring_virtqueue_split {
> > > > > > > struct vring_desc_state_split *desc_state;
> > > > > > > struct vring_desc_extra *desc_extra;
> > > > > > >
> > > > > > > + /* Maximum in buffer length, NULL means no used validation...
2023 May 31
1
[PATCH] virtio_ring: validate used buffer length
...gt; #ifdef DEBUG
> > > > > > > > /* For development, we want to crash whenever the ring is screwed. */
> > > > > > > > #define BAD_RING(_vq, fmt, args...) \
> > > > > > > > @@ -105,6 +108,9 @@ struct vring_virtqueue_split {
> > > > > > > > struct vring_desc_state_split *desc_state;
> > > > > > > > struct vring_desc_extra *desc_extra;
> > > > > > > >
> > > > > > > > + /* Maximum in buffer length, NULL means...
2023 Jun 01
1
[PATCH] virtio_ring: validate used buffer length
...gt; #ifdef DEBUG
> > > > > > > > /* For development, we want to crash whenever the ring is screwed. */
> > > > > > > > #define BAD_RING(_vq, fmt, args...) \
> > > > > > > > @@ -105,6 +108,9 @@ struct vring_virtqueue_split {
> > > > > > > > struct vring_desc_state_split *desc_state;
> > > > > > > > struct vring_desc_extra *desc_extra;
> > > > > > > >
> > > > > > > > + /* Maximum in buffer length, NULL means...
2023 Jun 01
1
[PATCH] virtio_ring: validate used buffer length
...UG
> > > > > > > > > /* For development, we want to crash whenever the ring is screwed. */
> > > > > > > > > #define BAD_RING(_vq, fmt, args...) \
> > > > > > > > > @@ -105,6 +108,9 @@ struct vring_virtqueue_split {
> > > > > > > > > struct vring_desc_state_split *desc_state;
> > > > > > > > > struct vring_desc_extra *desc_extra;
> > > > > > > > >
> > > > > > > > > + /* Maximum in buffe...