From: Cyril Hrubis <chrubis@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: Linux Test Project <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH v3 4/4] cve: Add act_pedit page-cache corruption test
Date: Tue, 7 Jul 2026 16:23:05 +0200 [thread overview]
Message-ID: <ak0LyX2MrPA_IefP@yuki.lan> (raw)
In-Reply-To: <20260707-cve-2026-46331-v3-4-3f6f1d697eec@suse.com>
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().
For the rest (including the preparatory patches):
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-07-07 14:23 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 [this message]
2026-07-08 11:41 ` Petr Vorel
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=ak0LyX2MrPA_IefP@yuki.lan \
--to=chrubis@suse.cz \
--cc=andrea.cervesato@suse.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.