Thread (15 messages) 15 messages, 7 authors, 2022-06-28

Re: [PATCH][next] treewide: uapi: Replace zero-length arrays with flexible-array members

From: Jason Gunthorpe <jgg@ziepe.ca>
Date: 2022-06-28 18:44:16
Also in: bpf, dm-devel, dri-devel, io-uring, kvm, linux-arm-kernel, linux-btrfs, linux-can, linux-fsdevel, linux-hardening, linux-m68k, linux-mips, linux-mmc, linux-perf-users, linux-raid, linux-rdma, linux-s390, linux-scsi, linux-sctp, linux-usb, lkml, lvs-devel, netfilter-devel, nvdimm, target-devel, virtualization

On Tue, Jun 28, 2022 at 10:54:58AM -0700, Kees Cook wrote:

 
which must also be assuming it's a header. So probably better to just
drop the driver_data field? I don't see anything using it (that I can
find) besides as a sanity-check that the field exists and is at the end
of the struct.
The field is guaranteeing alignment of the following structure. IIRC
there are a few cases that we don't have a u64 already to force this.

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help