Message ID | cover.1685388545.git.peilin.ye@bytedance.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1738059vqr; Mon, 29 May 2023 13:00:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42seylOFSfYgFbiEvgofBYcAmlmEgMYVrgY2AULEjn10hNdO6EVAMui6LgyeJsR87B6Kjn X-Received: by 2002:a05:6a21:99a0:b0:10c:ef18:746e with SMTP id ve32-20020a056a2199a000b0010cef18746emr12157867pzb.58.1685390439360; Mon, 29 May 2023 13:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685390439; cv=none; d=google.com; s=arc-20160816; b=MCW/ZUfq2OZqESTEvLOjXO4gvmWBASJURWNLtB6ki4FgTLryjozrmkfKVpJgcTwx/O YJI2zsSGAUVLF7+XgzM/i2uXxwDYwvxMRnXUCKKKlEAZaJ9LIR4Dj6v5ypgYUFTKgne1 iPZxBBA/ck0zVRRmDYbzEWXhdMjydtPK+8jwhyGMIPU0uGQ1z87yhqUenkCK/qTMuroa Qt3V32+AGJntSAdIp0zgJX4IhxEEU9LbiiuS5WHevH/DngKtYqgTITNM5NJocPxfkSae Qo5c6eNxlbKcZddVwGNnum/Ubhm4uMKu/jga5j4Lpa6B0QOeM+S2yk38ymmmvXKOV0Oa b/Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=z1dUZSHVQhEtOuDH3VaKyipYbrN9drARN4zUz4dByZM=; b=oplKN8SIAl9BNKFqdaxzVsrFgQvxgrjZHSlNUZ5XgFvCHl2JFyJEfIwQCWgkb69N5/ W29qqS0KRw2g74UvmzqMl/i62WIcV0RePdAWkkbf+icZQCAuG2qLjJRebJCieST/GeHo 2/sX6SbzRy3heDDcEmX1xD7+A4U0bd32ZMzkzRO1pGMhEJlM9Aquh8VWRMqAXOl6uc2t 1wXohNqYu9zNjzKialoeFUG/tiInw4CLfAfWjk7U+FMyUB9JbKUj933M3klx+hs9n9nN yAE+qozlt7WZ6t+QdcN5rtyo9H0pyDXfxyd6/DW4R+bM59odovcNaqvel5kOgOHsO6Vf f/RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="kX0jX/Jg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v18-20020a63b952000000b00535540cc8ccsi9594735pgo.375.2023.05.29.13.00.25; Mon, 29 May 2023 13:00:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="kX0jX/Jg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229731AbjE2Twp (ORCPT <rfc822;callmefire3@gmail.com> + 99 others); Mon, 29 May 2023 15:52:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229716AbjE2Two (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 29 May 2023 15:52:44 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13A5A92; Mon, 29 May 2023 12:52:43 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id af79cd13be357-75b14216386so199715885a.0; Mon, 29 May 2023 12:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685389962; x=1687981962; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=z1dUZSHVQhEtOuDH3VaKyipYbrN9drARN4zUz4dByZM=; b=kX0jX/JgLb4DILaeytE2ajbjulyxARy8zRicxzulgBVhSAqwQ7RhYL5Xw+55c0lHn6 teTzWV00eLvwOcfdIFQhYe5IVJLbNOhFUFlMoG6TfyxdNVfMuWaXCBJcpWLlR25f4wOx 5CebWRolvb6bXsmDRAwiYbdxcpmMJoeO9BK3Zzne4V6Q0D7f2vWYMGtIzdFDwxxtPkBW JlRuWfZt8/J5a/kG+DhQRDom6EZ8JY7ST0hy0Kqn/9trgE8T685QBZi3zbS/YiYpHl1r HpZo0Yh0oXUeS+TmnI6MQh32JjEnJK0zfElFv7/wQWZtVr+OWOQMnhm/NwGnaRcLBqXP P+Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685389962; x=1687981962; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=z1dUZSHVQhEtOuDH3VaKyipYbrN9drARN4zUz4dByZM=; b=IwrRHKqG3KGspc7mcssRd53ty2rVza0NQX0V59FZHCA2+3jeS2L4mIw2MG1PxKxZWQ eYtpZF6tW6Yhj9U1MCrufYwSJQG+b8Bax3Yd2son+CLZwvYZ76FK3CGLvap2ZDXDh/bz ztuxAV5aRZ8W1CyWlu/5i6ySJ3ODh+BTqIkxqn/MDtdQdT+Hyq8zxuKz8a3PPVeWQ8KQ cmm44yN9kwlm2j67RerSvGK7pQJ5sJGLwaGkGAcQBDF4sSeX89p9Hj64noH0o1MvHt45 O+ID+4D41UQVQ1ttKxNQ8QyyIxAl1bphadiqzuoPOy0L6fbaoBh95Lj4zOb+9+vwZTXE dQNA== X-Gm-Message-State: AC+VfDy68am/ceQkpUMbmxAa8V3BCSX5QllmaItCkHQSrQHOSoUJRz1y LrguDoEAYfr4nrNw4jnyLA== X-Received: by 2002:a05:620a:4c97:b0:75b:23a0:e7be with SMTP id to23-20020a05620a4c9700b0075b23a0e7bemr8305996qkn.31.1685389962102; Mon, 29 May 2023 12:52:42 -0700 (PDT) Received: from C02FL77VMD6R.bytedance.net ([2600:1700:d860:12b0:e554:e6:7140:9e6b]) by smtp.gmail.com with ESMTPSA id a4-20020a05620a124400b0075b1c6f9628sm3583334qkl.71.2023.05.29.12.52.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 May 2023 12:52:41 -0700 (PDT) From: Peilin Ye <yepeilin.cs@gmail.com> X-Google-Original-From: Peilin Ye <peilin.ye@bytedance.com> To: Jamal Hadi Salim <jhs@mojatatu.com>, Cong Wang <xiyou.wangcong@gmail.com>, Jiri Pirko <jiri@resnulli.us>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com> Cc: Peilin Ye <peilin.ye@bytedance.com>, John Fastabend <john.fastabend@gmail.com>, Daniel Borkmann <daniel@iogearbox.net>, Vlad Buslov <vladbu@mellanox.com>, Pedro Tammela <pctammela@mojatatu.com>, Hillf Danton <hdanton@sina.com>, Zhengchao Shao <shaozhengchao@huawei.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Cong Wang <cong.wang@bytedance.com>, Peilin Ye <yepeilin.cs@gmail.com> Subject: [PATCH v6 net 0/4] net/sched: Fixes for sch_ingress and sch_clsact Date: Mon, 29 May 2023 12:52:31 -0700 Message-Id: <cover.1685388545.git.peilin.ye@bytedance.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767259965356908320?= X-GMAIL-MSGID: =?utf-8?q?1767259965356908320?= |
Series |
net/sched: Fixes for sch_ingress and sch_clsact
|
|
Message
Peilin Ye
May 29, 2023, 7:52 p.m. UTC
Link to v5: https://lore.kernel.org/r/cover.1684887977.git.peilin.ye@bytedance.com/ Link to v4: https://lore.kernel.org/r/cover.1684825171.git.peilin.ye@bytedance.com/ Link to v3 (incomplete): https://lore.kernel.org/r/cover.1684821877.git.peilin.ye@bytedance.com/ Link to v2: https://lore.kernel.org/r/cover.1684796705.git.peilin.ye@bytedance.com/ Link to v1: https://lore.kernel.org/r/cover.1683326865.git.peilin.ye@bytedance.com/ Hi all, These are v6 fixes for ingress and clsact Qdiscs, including only first 4 patches (already tested and reviewed) from v5. Patch 5 and 6 from previous versions are still under discussion and will be sent separately. Per-patch changelog omitted. Change in v6: - only include first 4 patches from previous versions Changes in v5: - for [6/6], reinitialize @q, @p (suggested by Vlad) and @tcm after the "replay:" tag - for [1,2/6], do nothing in ->destroy() if ->parent isn't ffff:fff1, as reported by Pedro Change in v3, v4: - add in-body From: tags Changes in v2: - for [1-5/6], include tags from Jamal and Pedro - for [6/6], as suggested by Vlad, replay the request if the current Qdisc has any ongoing (RTNL-unlocked) filter requests, instead of returning -EBUSY to the user - use Closes: tag as warned by checkpatch [1,2/6]: ingress and clsact Qdiscs should only be created under ffff:fff1 [3/6]: Under ffff:fff1, only create ingress and clsact Qdiscs (for now, at least) [4/6]: After creating ingress and clsact Qdiscs under ffff:fff1, do not graft them again to anywhere else (e.g. as the inner Qdisc of a TBF Qdisc) [5/6]: Prepare for [6/6], do not reuse that for-loop in qdisc_graft() for ingress and clsact Qdiscs [6/6]: Fix use-after-free [a] in mini_qdisc_pair_swap() [a] https://syzkaller.appspot.com/bug?extid=b53a9c0d1ea4ad62da8b Thanks, Peilin Ye (4): net/sched: sch_ingress: Only create under TC_H_INGRESS net/sched: sch_clsact: Only create under TC_H_CLSACT net/sched: Reserve TC_H_INGRESS (TC_H_CLSACT) for ingress (clsact) Qdiscs net/sched: Prohibit regrafting ingress or clsact Qdiscs net/sched/sch_api.c | 12 +++++++++++- net/sched/sch_ingress.c | 16 ++++++++++++++-- 2 files changed, 25 insertions(+), 3 deletions(-)
Comments
Hello: This series was applied to netdev/net.git (main) by Jakub Kicinski <kuba@kernel.org>: On Mon, 29 May 2023 12:52:31 -0700 you wrote: > Link to v5: https://lore.kernel.org/r/cover.1684887977.git.peilin.ye@bytedance.com/ > Link to v4: https://lore.kernel.org/r/cover.1684825171.git.peilin.ye@bytedance.com/ > Link to v3 (incomplete): https://lore.kernel.org/r/cover.1684821877.git.peilin.ye@bytedance.com/ > Link to v2: https://lore.kernel.org/r/cover.1684796705.git.peilin.ye@bytedance.com/ > Link to v1: https://lore.kernel.org/r/cover.1683326865.git.peilin.ye@bytedance.com/ > > Hi all, > > [...] Here is the summary with links: - [v6,net,1/4] net/sched: sch_ingress: Only create under TC_H_INGRESS https://git.kernel.org/netdev/net/c/c7cfbd115001 - [v6,net,2/4] net/sched: sch_clsact: Only create under TC_H_CLSACT https://git.kernel.org/netdev/net/c/5eeebfe6c493 - [v6,net,3/4] net/sched: Reserve TC_H_INGRESS (TC_H_CLSACT) for ingress (clsact) Qdiscs https://git.kernel.org/netdev/net/c/f85fa45d4a94 - [v6,net,4/4] net/sched: Prohibit regrafting ingress or clsact Qdiscs https://git.kernel.org/netdev/net/c/9de95df5d15b You are awesome, thank you!