From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (mail.openvz.org [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id 9FEAE8017D for ; Fri, 6 Nov 2026 12:21:26 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6A6CK3Sk018246; Fri, 6 Nov 2026 15:20:04 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6A6CK3Sk018246 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=default; t=1793967606; bh=6m/IruoeCz7FG2krxVwXcRCJA3MO7YGrLuH9xRYBSzE=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe; b=jbiXjtxMxYdtR3u+k9wowmagHFTmxSgZvQ7C2kSUyPaiWjjtlCNwjPJUZ+JIZUbFI 4+8lsEuPjhYsnY7ycgGsahDlzqbmOnd7fBN79/H1SQQvlpvJDM2nQ9FWjCxDzd1o9J I8I4J5jE89dliF+ZXhc1MLO2fwzd3cDEtckZHYWzLIaqtxmaQRC3lsU/9kRxfeB/1/ q09OB8lJDZZFYqIFhcF1QAngAfuwZHWPxHonMeZzgGlA0HV0utJf8EUR/wMCL1qkzl nLv2aQcYsuNq1wm/gFFmzfCOs7C6YuhKxS9JXLLBV+tejIK880RwkkqXNKEIF+Ivcj B0OVgFN7wJFuw== Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6A6CK1HY018242 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Fri, 6 Nov 2026 15:20:02 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6A6CK1HY018242 Authentication-Results: mail.openvz.org; dkim=pass (2048-bit key) header.d=openvz.org header.i=@openvz.org header.b="hfkps7QZ" Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4afef353dd2so6657495e9.1 for ; Fri, 06 Nov 2026 04:20:02 -0800 (PST) X-Gm-Message-State: APuU4Z8G1bzbdXtsEYcuYAOnsYI3fRgqnLUUn0gqynM0yvRKq5xyFrpS JWX9fy/UfgGmR9Ro8Fy3JjzLArKkVEp5vcHB34FSLHDHpd0ayg7UzogED6kMnlLrhRvTOFCTH5W KQjqK6O7sMT0TlJl80K2/jGteO4HENOtnvsbNw0JUm7QHe/st933UnQ== X-Gm-Gg: AYBFou03ijPsnQWT1lx0hBwAOkPMeVdjbh7fWfalNUsktidDE5Nz1XmNVwHE7kkm9jy OEcyCAAv944ZcovhjfMRNkFdin+Ea54r3/puALrqTA3qvxzcPf8/3+RMCQPa+ul+kGYVXQhrdjw aeXKJ4EnZIXzhZw6hQAb2E0q88YZxj8lqN9ap6EeIis7uxK+AQ7mG6A+lQe+/MtSH8KlU5PLTMU JBRYHfV953sVcc5j2Ykyb1BKVyfm9HI+hglwdhvtHDptQASPGMRTnWrW680UpZTp8P/9H60WwLE aNSyFWZmqg== X-Received: by 2002:a05:600c:8114:b0:4a3:5991:719 with SMTP id 5b1f17b1804b1-4b6e0267f25mr35580105e9.31.1793967601548; Fri, 06 Nov 2026 04:20:01 -0800 (PST) X-Received: by 2002:a05:600c:8114:b0:4a3:5991:719 with SMTP id 5b1f17b1804b1-4b6e0267f25mr35579685e9.31.1793967601082; Fri, 06 Nov 2026 04:20:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1793967601; cv=none; d=google.com; s=arc-20260327; b=mkRmiWR0Li8wRTwc/PlUACXeDSCzfKdbYxX0Bq8INsyP7IvNiD23bFhqSYqCaeMvoo a1Lx/CXZ6eNMCRZVxOuCyUQfATYUrnrnJlgRuP1WTr/f1icAM3GTfnArpKdcbmNBbZVB j/xbak0OnlgQZD4j7V8KetQsD4o4tNrvxBj/RVUg5aw+lS4SltrnJnJg63jsbNZMadxX lolFZ/Zh8gAOqkRW76FNdmr2x4BouLoBIG28OPPTCTfP00mhx0i9U51entY3vzgJli3k MkrnezTdtrM9K/vprZ4qIOEXwPn0xgsBJJTj5wQ9iqQs4rYjvJw7KZLTdou4KB8MZq7U R6OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=drsjuTFJWPDvdMVblfYH97h46j4XlXbPwZ0hxQF1tr4=; fh=J2Fr6MkB+I0UBb3AJCPc7J+Oo6QJRaTb/m1bLF1FpJI=; b=jW0MlHH0MGneuseVVWOuuP6tas4dKb9QgVzcC+j5TW1HwPFn2e1WzZxWz+vBpcfJYj Ircv1rIWXInEJHEW9Ep6+PKbYGad13iK/oav3Yi7S/GnkEAUd+tLUfh7eInKL3ArGVTA 2FjpnNCf0meYutZZiycUo9NkvBw7KCiw+M8X9Ij9UrcZVTiFKNQDN0N9Eq+m8V4UNWhZ KEkjkxfXc7SRWoYM/XqRa99qOhRtpZ/VS53a0Gahj+PhCqFMoLZFCzGi07avChuC/pmB YR8XZY8/1gD3A0ChbM5/om+m54jLPgMDLoVk4J/4xwRzhhk/pJpfVz3ybVUYnuSvl2l6 ImTQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b=hfkps7QZ; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:1488:8e51:f958:9448 as permitted sender) smtp.mailfrom=den@openvz.org; dara=neutral header.i=@openvz.org Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id ffacd0b85a97d-492d8a371c7sor328235f8f.17.2026.11.06.04.20.00 for (Google Transport Security); Fri, 06 Nov 2026 04:20:00 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:1488:8e51:f958:9448 as permitted sender) client-ip=2a06:5b06:b600:300:1488:8e51:f958:9448; Authentication-Results: mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b=hfkps7QZ; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:1488:8e51:f958:9448 as permitted sender) smtp.mailfrom=den@openvz.org; dara=neutral header.i=@openvz.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=google; t=1793967600; x=1794572400; darn=openvz.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=drsjuTFJWPDvdMVblfYH97h46j4XlXbPwZ0hxQF1tr4=; b=hfkps7QZNs4uhOCbIyDac+OKoZj7nHledwFY4vWYZFRJC6UyrOjOe2b8UQVlrTsVET E3KlH87AeyK2qzSlbZ503RqCoHVKHN6KfoFO8CbDZXeZLHxVzmZv8hv00oiOP7OL9wDX Oi2FMQ2hD45mt6Z6tXLRP2NiHZrSyKVo0jd6yusMYu9yJtb3d8tz9hHZ5U52lrZsOD77 i2+tSsEt0qvovQItLvYXkBDiXL4rnjARpq7JMY2MGgmlLvOa601dNDmKmsLO6kIFM8W9 Nrvu7Y6mXmLPYLrZDeB9IR3X69CYSuwjk/NXVFPsEirJ2vfzd+rlazJU8C2/DK8sEqAg uQvA== X-Received: by 2002:a5d:5885:0:b0:48b:f92:1f67 with SMTP id ffacd0b85a97d-49275b1bb95mr4970201f8f.21.1793967600551; Fri, 06 Nov 2026 04:20:00 -0800 (PST) Received: from athena.sw.ru ([2a06:5b06:b600:300:1488:8e51:f958:9448]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-492d7bcfcbfsm3419676f8f.43.2026.11.06.04.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2026 04:20:00 -0800 (PST) From: "Denis V. Lunev" To: khorenko@virtuozzo.com Date: Fri, 6 Nov 2026 13:19:57 +0100 Message-ID: <20261106121957.3696406-1-den@openvz.org> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 X-OZ-Fwd: true Cc: Andrii Mozharovskyi , devel@openvz.org Subject: [Devel] [PATCH hci-8.1] ve/proc/net: fix tcp6 and udp6 missing from /proc/net in containers X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org From: Denis V. Lunev A container sees /proc/net/tcp and udp but gets ENOENT on tcp6 and udp6, both at /proc/net and at /proc//net. Applications that parse these tables, like the .NET startup script in JE-76965, fail although IPv6 works and ss lists the sockets over netlink. In vz7 all of tcp, tcp6, udp, udp6, udplite and udplite6 were created by tcp_proc_register() and udp_proc_register(), which used the VE helper, so one call covered every family. Upstream commit 37d849bb4294 ("ipv{4,6}/tcp: simplify procfs registration") and commit a3d2599b2446 ("ipv{4,6}/udp{,lite}: simplify proc registration") moved each family to its own proc_create_net_data() call, and the port of the VE patch converted only the IPv4 tcp and udp ones. udplite and udplite6 are hidden the same way. icmp6 did not exist in vz7 and was never converted, while its IPv4 twin icmp is visible. Register the five entries with the VE helpers. They are per-netns and their seq iterators skip sockets of other namespaces, so a container lists only its own sockets. https://virtuozzo.atlassian.net/browse/VSTOR-153793 Fixes: 68eae6367fdc ("ve/proc/net: virtualize all the network proc entries") Reported-by: Andrii Mozharovskyi Feature: procfs: virtualize /proc/net/* entries Signed-off-by: Denis V. Lunev --- net/ipv4/udplite.c | 2 +- net/ipv6/ping.c | 2 +- net/ipv6/tcp_ipv6.c | 2 +- net/ipv6/udp.c | 2 +- net/ipv6/udplite.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/net/ipv4/udplite.c b/net/ipv4/udplite.c index af37af3ab727..ee3bb356a0b5 100644 --- a/net/ipv4/udplite.c +++ b/net/ipv4/udplite.c @@ -87,7 +87,7 @@ static struct udp_seq_afinfo udplite4_seq_afinfo = { static int __net_init udplite4_proc_init_net(struct net *net) { - if (!proc_create_net_data("udplite", 0444, net->proc_net, &udp_seq_ops, + if (!proc_ve_create_net_data("udplite", 0444, net->proc_net, &udp_seq_ops, sizeof(struct udp_iter_state), &udplite4_seq_afinfo)) return -ENOMEM; return 0; diff --git a/net/ipv6/ping.c b/net/ipv6/ping.c index 88b3fcacd4f9..b052d7763b1e 100644 --- a/net/ipv6/ping.c +++ b/net/ipv6/ping.c @@ -256,7 +256,7 @@ static const struct seq_operations ping_v6_seq_ops = { static int __net_init ping_v6_proc_init_net(struct net *net) { - if (!proc_create_net("icmp6", 0444, net->proc_net, &ping_v6_seq_ops, + if (!proc_ve_create_net("icmp6", 0444, net->proc_net, &ping_v6_seq_ops, sizeof(struct ping_iter_state))) return -ENOMEM; return 0; diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 15059ba96eb7..e993c0df377b 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -2290,7 +2290,7 @@ static struct tcp_seq_afinfo tcp6_seq_afinfo = { int __net_init tcp6_proc_init(struct net *net) { - if (!proc_create_net_data("tcp6", 0444, net->proc_net, &tcp6_seq_ops, + if (!proc_ve_create_net_data("tcp6", 0444, net->proc_net, &tcp6_seq_ops, sizeof(struct tcp_iter_state), &tcp6_seq_afinfo)) return -ENOMEM; return 0; diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 1b5ae3938e3e..b2a873dbf954 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -1793,7 +1793,7 @@ static struct udp_seq_afinfo udp6_seq_afinfo = { int __net_init udp6_proc_init(struct net *net) { - if (!proc_create_net_data("udp6", 0444, net->proc_net, &udp6_seq_ops, + if (!proc_ve_create_net_data("udp6", 0444, net->proc_net, &udp6_seq_ops, sizeof(struct udp_iter_state), &udp6_seq_afinfo)) return -ENOMEM; return 0; diff --git a/net/ipv6/udplite.c b/net/ipv6/udplite.c index a60bec9b14f1..41d4b9d78988 100644 --- a/net/ipv6/udplite.c +++ b/net/ipv6/udplite.c @@ -111,7 +111,7 @@ static struct udp_seq_afinfo udplite6_seq_afinfo = { static int __net_init udplite6_proc_init_net(struct net *net) { - if (!proc_create_net_data("udplite6", 0444, net->proc_net, + if (!proc_ve_create_net_data("udplite6", 0444, net->proc_net, &udp6_seq_ops, sizeof(struct udp_iter_state), &udplite6_seq_afinfo)) return -ENOMEM; -- 2.53.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel