[LTP] [PATCH 3/3] Add test for CVE 2023-1829

Petr Vorel pvorel@suse.cz
Fri Jul 28 10:36:22 CEST 2023


Hi Martin,

> +static struct tst_test test = {
> +	.test_all = run,
> +	.setup = setup,
> +	.cleanup = cleanup,
> +	.taint_check = TST_TAINT_W | TST_TAINT_D,
> +	.needs_kconfigs = (const char *[]) {
> +		"CONFIG_VETH",
> +		"CONFIG_USER_NS=y",
> +		"CONFIG_NET_NS=y",
> +		"CONFIG_NET_SCH_HTB",
> +		"CONFIG_NET_CLS_TCINDEX",
Interesting, CONFIG_NET_CLS_TCINDEX has been removed in 8c710f75256b
(in v6.3-rc1), therefore the test is only for older kernels.

Kind regards,
Petr

> +		NULL
> +	},
> +	.save_restore = (const struct tst_path_val[]) {
> +		{"/proc/sys/user/max_user_namespaces", "1024", TST_SR_SKIP},
> +		{}
> +	},
> +	.tags = (const struct tst_tag[]) {
> +		{"linux-git", "8c710f75256b"},
> +		{"CVE", "2023-1829"},
> +		{}
> +	}
> +};


More information about the ltp mailing list