[RFC PATCH] pile stack and mempool driver (resend)
Morten Brørup
mb at smartsharesystems.com
Sun Aug 2 08:38:57 CEST 2026
> From: Stephen Hemminger [mailto:stephen at networkplumber.org]
> Sent: Saturday, 1 August 2026 17.00
>
> On Sat, 1 Aug 2026 06:53:58 +0000
> Morten Brørup <mb at smartsharesystems.com> wrote:
>
> > +__rte_diagnostic_push
> > +#pragma GCC diagnostic ignored "-Warray-bounds"
> > +#pragma GCC diagnostic ignored "-Wstringop-overread"
>
> Ugh, no please don't fight the compiler.
>
> > + if (!(s->flags & RTE_STACK_F_PILE)) {
> > + ret = rte_stack_push(s, obj_table, 2 * STACK_SIZE);
> > + if (ret != 0) {
> > + printf("[%s():%u] Excess objects push succeeded\n",
> > + __func__, __LINE__);
> > + goto fail_test;
> > + }
> > }
Yeah. It's also difficult to sneak those pragmas through the CI.
I'll try to rework the test case instead, so the compiler cannot see that we're overflowing the stack.
More information about the dev
mailing list