gcc-14 Wflex-array-member-not-at-end may-be-ub in struct pthread
Andreas K. Huettel
dilfridge@gentoo.org
Wed Jul 19 18:36:46 GMT 2023
Am Mittwoch, 19. Juli 2023, 16:17:50 CEST schrieb Adhemerval Zanella Netto:
> >>
> >> this happens because:
> >>
> >> #ifdef __has_include
> >> # if __has_include ("linux/rseq.h")
> >> # define __GLIBC_HAVE_KERNEL_RSEQ --> that is defined
> >> # endif
> >>
> >>
> >>> Perhaps you tried to nest 'struct pthread' inside another struct? If so,
> >>> the C standard doesn't allow that but the attached untested patch should
> >>> be a trivial fix.
> >>>
> >>
> >> Your patch does indeed silence this particular warning, thanks.
> >>
> >
> > I suggest you add this patch to the release queue. because as far as I can
> > tell, It is UB when the kernel headers are present on the system.
>
> The flexible array on rseq was added on linux 6.3, should we treat this as
> release blocker?
>
Yes IMHO (unless someone convinces me otherwise).
--
Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer
(council, toolchain, base-system, perl, libreoffice)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 981 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20230719/ea5e959e/attachment.sig>
More information about the Libc-alpha
mailing list