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 BE766803F6 for ; Tue, 10 Nov 2026 16:32:52 +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 6AAGVZRM016205; Tue, 10 Nov 2026 19:31:36 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AAGVZRM016205 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=default; t=1794328299; bh=4M3ZvEsENw3ENU8B/vJoIB6eBmjm5AvX45mONP5qw5Y=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe; b=Lsa8rSpbXNzcToVlODxiBBhUFQhvFM2ye2LK7h/YeQrXhczOzUhDF5IYkG0Xkznio 2yQ5KnO/38khXasGk9padhRDZSjVNF2RwkU7BHWgskGZh6o6ExWHeIguA2fF+PvmVa Qv2Sm0w10jKD4a6+/2w/2gCrwTRwIcRe0HWgYk0vzXW9UVTFCkbJCo2LNnIfMIL5v/ yyQdBwmZXmrcaL0fOSHo7tyJAJzH4//R1vD2QPOpnNs8vrnAgVxako7BPxeoS0ABR6 FuJpf5NEGMjCH65xCI/kbMhLo4f7ajq7h12E+KyJHEYwEcp3wtkskg7DoW4BPu1Wha 9siKHw4wxz4Gw== Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AAGVYFX016197 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Tue, 10 Nov 2026 19:31:34 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AAGVYFX016197 Authentication-Results: mail.openvz.org; dkim=pass (2048-bit key) header.d=openvz.org header.i=@openvz.org header.b="Kt5BSXKS" Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-49090fde23aso1867435f8f.2 for ; Tue, 10 Nov 2026 08:31:34 -0800 (PST) X-Gm-Message-State: APuU4Z9+0mhoe5fs/B4Qk9GK+zVkUXPy5fllMh2TnjocxYSaLMHIFavA kzh5e1YBgeaSr8lvz6EYVEjsvlEwzTz5XOj1Egai2ZndvCTDDZKgirborAM2XpxCgRmwYP6widg XmqX3SKS1g++/5uOITJzN4GUEeBLHDKe54lvrCY5rCX63Nur7j7xKeA== X-Gm-Gg: AYBFou2GKOyQqmUDR9YkBPQN6JqL8ZHrXOPXsxan4rfKB91MjPzjHfFcEq3digAj3eE sw3Lu+zQTsj7TAySuCEqutskHhf3U9hdvnADMLjRI7WUT4dicLPG+oI3CAbl601eUj4pw4abibd z1Uhr2XMbVz7VjEhFlPTEjP08pfFCms8Yif+XskbrxWPLEUkmydENVF6ChrH9TMowUW1zhKUpEh viFdEYM6bpanLTMpngk2eeOk6FednX39lHtdsHrzsbQDyqg2n6tEhJmsmTCfQ+gkUJ8atcDrTlB PFJvLM39Lg== X-Received: by 2002:a05:600c:8b13:b0:4a2:1a:a129 with SMTP id 5b1f17b1804b1-4ba02358eecmr57199695e9.35.1794328293640; Tue, 10 Nov 2026 08:31:33 -0800 (PST) X-Received: by 2002:a05:600c:8b13:b0:4a2:1a:a129 with SMTP id 5b1f17b1804b1-4ba02358eecmr57199145e9.35.1794328293261; Tue, 10 Nov 2026 08:31:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1794328293; cv=none; d=google.com; s=arc-20260327; b=TmaTUVxvcXqRtj1UjNuiqL0SzWIxpnSMF2ELcDEHTnR0JSpMrtJ6cs2wMDrNkYDWor X8XEtDsh/j1bTqS3kVwbdUr14spNGGDNrm1uV2yG0BBV/rcQbeTGKA2shJnKEBU5jdLN T5NOzw6ERMo+tKuEAhMMpW+//agz2IF8iGvzrD6T477FUmfGiVkmkyEpjoraIKtCMai7 IBsXsqldGoQcgmUREf+pqCTUm2E5DeAGyxiMoASGF0SGb8dK8e9V77oC3dq5kCc+MBOb 4XtFYz9GUexvLMstSMSInmyGEIqW9rAVp0vwrZpSEnMMRWpKRxvPPTzlUBrhyIawmVp2 Fy0A== 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=yxiUeEffWaWcSpsZLuenbsWf+Mpx9aeWXPklyWfBVHo=; fh=ozrYJQ1t3QIP6s65KBq5xgJxiFM2qf+5wwn3ABTusyU=; b=IUEi3WKBymopTg31sxgxL4TnHiieO3o241zZ+8W63TXiBnEAaadH9E551nunESmN6I q7RJt0a3TImiWgbYa3XPzVExS9EV/V/qJzVlVhMyKk4VTksa80xgmXU4hx2cWudgWq0i 1eLyJXCS6hsYnu8PiC+ZJT5HJp1O5QQLaJBtZ2MM7lADGsCOENOPqsqtbwNRT/sbAgaX holQCrof3i78cPKqQJswDqLNi3yk/uaPnHw8Lz4JZrBZtTP8HQY10VqqWTWog9zXV5sz GyE2DYpYi7+v7tUTGRWfSXkPwFeLh6GONi2n7NcfF5R1ufid8/rqO4B19FyCACxZv6PG cMCw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b=Kt5BSXKS; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:4f78:6441:d0f1:22af 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 5b1f17b1804b1-4ba01ff7ba6sor6943185e9.11.2026.11.10.08.31.33 for (Google Transport Security); Tue, 10 Nov 2026 08:31:33 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:4f78:6441:d0f1:22af as permitted sender) client-ip=2a06:5b06:b600:300:4f78:6441:d0f1:22af; Authentication-Results: mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b=Kt5BSXKS; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:4f78:6441:d0f1:22af 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=1794328293; x=1794933093; 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=yxiUeEffWaWcSpsZLuenbsWf+Mpx9aeWXPklyWfBVHo=; b=Kt5BSXKSZM9gSzHq+oNJI3h2dyVR4D2Dj4kvB0AzCQwCDd0SBpWGssKNFp+Fjj+KYh 5Q4QE5WoTrotuNF6iFW7fyLX0Z6UNoskNrMSOnM3hoFIuyiex+pIl1YL51UXh+0xgBVI Y/kGjza0eesjdBKCwzpuqssGpd4JH0RwR4lBjNBVwyfYUXrHGPek8T7CwRo8IhYOqtuQ uxfIaB58MRp0HGKixmtTDis5npbhjkRwIIPrikr1v0i3Y+0rRJRhzIxEZaKdilfebvJm yrUxGiCgtohT0Ys661M+QZkP6kYWtPaZeCDlXjkFr3GXY8qP/J1X1aAEU9yY3dCwqjkA y1Og== X-Received: by 2002:a05:600c:1f87:b0:4a2:a9:ed87 with SMTP id 5b1f17b1804b1-4ba023485ffmr53835715e9.19.1794328292755; Tue, 10 Nov 2026 08:31:32 -0800 (PST) Received: from athena.sw.ru ([2a06:5b06:b600:300:4f78:6441:d0f1:22af]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4ba01fdac9csm108580235e9.0.2026.11.10.08.31.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2026 08:31:32 -0800 (PST) From: "Denis V. Lunev" To: khorenko@virtuozzo.com Date: Tue, 10 Nov 2026 17:31:24 +0100 Message-ID: <20261110163130.2776687-1-den@openvz.org> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.1 0/6] net/ipv6: fix host panics on tunnels moved into a CT 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 The host can move an ip6tnl, sit or vti6 tunnel into a container whose VE lacks the tunnel feature, or into any container for vti6. The driver frees its pernet struct in such a netns, and the dellink, changelink and ioctl handlers that look it up through dev_net(dev) dereference NULL: container root deleting or reconfiguring the tunnel, the container stop and a module unload all panic the node. "net/ip6_gre: fix a host panic deleting ip6gre moved into a CT without ipgre" fixes the same in ip6_gre. Patches 1 and 2 take the pernet struct from t->net in ip6_tunnel and sit. Patches 3-5 backport the mainline vti6 fixes for moved tunnels, patch 6 is the vz-only rest for vti6. On stock 22.19 ip link del, ip link change and SIOCGETTUNNEL in the CT and vzctl stop panic the node on a moved tunnel. With the series they and rmmod of the modules pass, and ip6_vti0 can no longer leave the host netns. https://virtuozzo.atlassian.net/browse/VSTOR-154346 https://virtuozzo.atlassian.net/browse/VSTOR-154347 https://virtuozzo.atlassian.net/browse/VSTOR-154348 Denis V. Lunev (3): net/ip6_tunnel: fix a host panic deleting ip6tnl moved into a CT without ipip net/sit: fix a host panic deleting sit moved into a CT without sit net/ip6_vti: fix host panics on a vti6 tunnel moved into a CT Eric Dumazet (1): ms/ip6_vti: set netns_immutable on the fallback device. Kuniyuki Iwashima (1): ms/ip6: vti: Use ip6_tnl.net in vti6_changelink(). Maoyi Xie (1): ms/ip6: vti: Use ip6_tnl.net in vti6_siocdevprivate(). net/ipv6/ip6_tunnel.c | 4 ++-- net/ipv6/ip6_vti.c | 29 +++++++++++++++++++---------- net/ipv6/sit.c | 4 ++-- 3 files changed, 23 insertions(+), 14 deletions(-) -- 2.53.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel