Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4589C433F5 for ; Thu, 17 Feb 2022 05:37:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234340AbiBQFhb (ORCPT ); Thu, 17 Feb 2022 00:37:31 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:59244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234096AbiBQFha (ORCPT ); Thu, 17 Feb 2022 00:37:30 -0500 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAA1615A217 for ; Wed, 16 Feb 2022 21:37:14 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=alibuda@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0V4geXlV_1645076231; Received: from 30.225.28.194(mailfrom:alibuda@linux.alibaba.com fp:SMTPD_---0V4geXlV_1645076231) by smtp.aliyun-inc.com(127.0.0.1); Thu, 17 Feb 2022 13:37:11 +0800 Message-ID: Date: Thu, 17 Feb 2022 13:37:11 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [RFC PATCH net] vrf: fix incorrect dereferencing of skb->cb To: David Ahern Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org References: <1644844229-54977-1-git-send-email-alibuda@linux.alibaba.com> <4383fcc3-f7de-8eb3-6746-2f271578a9e0@kernel.org> From: "D. Wythe" In-Reply-To: <4383fcc3-f7de-8eb3-6746-2f271578a9e0@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 在 2022/2/17 上午11:50, David Ahern 写道: > The packet is recirculated through the VRF device so the cb data should > be overwritten. The VRF driver does another route lookup within the VRF. > Address selection should only consider addresses in the domain. > Something is off in that logic for VRF route leaking. I looked into a > bit when Michael posted the tests, but never came back to it. Got your point, this patch is not really appropriate considering that. Another way to complete the test may be to modify the IP address of vrf blue in test script,the default local loopback address is the reason for this failure. What do you think ? Thanks for you comments. Best Wishes.