From: Petr Vorel <pvorel@suse.cz>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: Linux Test Project <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH v3 4/4] cve: Add act_pedit page-cache corruption test
Date: Wed, 8 Jul 2026 13:41:06 +0200 [thread overview]
Message-ID: <20260708114106.GA812068@pevik> (raw)
In-Reply-To: <ak0LyX2MrPA_IefP@yuki.lan>
> Hi!
> > +static void run(void)
> > +{
> > + struct sockaddr_in addr;
> > + uint8_t readback[DATA_SIZE];
> > + off_t off = 0;
> > + int wr_fd;
> > +
> > + wr_fd = SAFE_OPEN(TESTFILE, O_WRONLY | O_CREAT, 0444);
> > + SAFE_WRITE(SAFE_WRITE_ALL, wr_fd, original, DATA_SIZE);
> > + SAFE_CLOSE(wr_fd);
> > +
> > + file_fd = SAFE_OPEN(TESTFILE, O_RDONLY);
> > +
> > + /*
> > + * Clean-slate clsact qdisc so no filter is active during the
> > + * TCP handshake (the IHL-inflating key would corrupt SYN/ACK).
> > + */
> > + tst_netdev_remove_qdisc(__FILE__, __LINE__, 0,
> > + "lo", AF_UNSPEC, TC_H_CLSACT,
> > + TC_H_MAKE(TC_H_CLSACT, 0), "clsact");
> This is a bit ugly. I guess that we need to add a variant for the macro
> that would set the strict to 0 into tst_netdevice.h possibly NETDEV_MAY_REMOVE_QDISC().
+1
BTW here I get error on all VMs I tested (wide range of kernel old and new and
different distros):
> /* Arm the pedit filter AFTER the handshake completes */
> NETDEV_ADD_TRAFFIC_FILTER("lo",
> TC_H_MAKE(TC_H_CLSACT, TC_H_MIN_EGRESS),
> 0, ETH_P_ALL, 1, "matchall",
> filter_config);
cve-2026-46331.c:198: TBROK: Failed to modify traffic filter: EINVAL
Leading to modify_address() in lib/tst_netdevice.c
ret = tst_netlink_send_validate(file, lineno, ctx);
tst_netlink_destroy_context(file, lineno, ctx);
if (strict && !ret) {
tst_brk_(file, lineno, TBROK,
"Failed to modify %s network address: %s", ifname,
tst_strerrno(tst_netlink_errno));
}
Any idea what's wrong?
Kind regards,
Petr
> For the rest (including the preparatory patches):
> Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-07-08 11:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-07 13:42 [LTP] [PATCH v3 0/4] Reproducer for cve-2026-46331 Andrea Cervesato
2026-07-07 13:42 ` [LTP] [PATCH v3 1/4] lapi: Add pkt_cls.h fallback Andrea Cervesato
2026-07-07 14:28 ` [LTP] " linuxtestproject.agent
2026-07-07 14:53 ` Cyril Hrubis
2026-07-08 11:48 ` [LTP] [PATCH v3 1/4] " Petr Vorel
2026-07-07 13:42 ` [LTP] [PATCH v3 2/4] lapi: Add pkt_sched.h fallback Andrea Cervesato
2026-07-08 13:31 ` Petr Vorel
2026-07-07 13:42 ` [LTP] [PATCH v3 3/4] lapi: Add tc_pedit.h fallback Andrea Cervesato
2026-07-07 13:42 ` [LTP] [PATCH v3 4/4] cve: Add act_pedit page-cache corruption test Andrea Cervesato
2026-07-07 14:23 ` Cyril Hrubis
2026-07-08 11:41 ` Petr Vorel [this message]
2026-07-13 12:34 ` Andrea Cervesato via ltp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260708114106.GA812068@pevik \
--to=pvorel@suse.cz \
--cc=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox