From mboxrd@z Thu Jan 1 00:00:00 1970 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 0B484C54EBD for ; Sat, 7 Jan 2023 00:15:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236537AbjAGAPh (ORCPT ); Fri, 6 Jan 2023 19:15:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236524AbjAGAPg (ORCPT ); Fri, 6 Jan 2023 19:15:36 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78F377FED7 for ; Fri, 6 Jan 2023 16:14:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673050488; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LhnMM7fQD+toq0uk/bI2+XqyJ3TS/+0YVHHH9iY5RqE=; b=FDWco2ejNAHskSAisOM8Zn4AXtUuuc+pNzR/bSEK1Mft0Na/Ehc37kQ2t96mgz7cM1+XZB +67qoiDqrWFm1H92vMrHOyoSSkfRXFHxsjoOpt/V5QFSghPylxDbqGBCh32kqn6w1RaYKS pEkODf4krvDUkT3Et4R89J5Tlg/IT24= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-205-aL01_gCUOvqTbUjWZhni6A-1; Fri, 06 Jan 2023 19:14:47 -0500 X-MC-Unique: aL01_gCUOvqTbUjWZhni6A-1 Received: by mail-qv1-f69.google.com with SMTP id q17-20020a056214019100b004b1d3c9f3acso1572569qvr.0 for ; Fri, 06 Jan 2023 16:14:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LhnMM7fQD+toq0uk/bI2+XqyJ3TS/+0YVHHH9iY5RqE=; b=qHo3AUY6YJZVf8kJe5O52JuBkoMRaR3fQQBxRcw89qWczqKon1ybb5rFebADUqzNba m2QqSGNSHQPPWOYWrmgYzsuTS9KUrfwpzTT22wIRj45kIBWNlKqSMP/Pi66X+1GQwaCc JVObURgLjprBRdp+BQ1vJA3B5TCig5B5+ppca6OEfXAQ23/Y23UpMbnm/GLWVvJmnQc6 3hXqMq/njfnpxZRJ2Y7FU2MHi+aqZrHmg69Ow2bbzdzQnGL8njTOz4ISk2DQCuX+y33N Cg1M0laQ5cmn6DCGlEkQHAUYx3CRRO1a5slb5rx0t9u0hEwqtiOt8cIqOeqFiIBR05Zy WdJw== X-Gm-Message-State: AFqh2krq+t83PR+wZGi6z10gAj1LAFBoFrF+vJWuKGDYZ/0DburG+En2 3fOjb7MgnT9IM6+284oh2LchycXFrVJzKD/Wm+DQA3BVnN5QSnt/OeCnMZw6MPO4AfVA3ihDkIm sXrKaj1sJob6XrZa+O7w05OfqDrsQ X-Received: by 2002:a05:622a:199e:b0:3a8:1947:3e38 with SMTP id u30-20020a05622a199e00b003a819473e38mr101090304qtc.31.1673050486531; Fri, 06 Jan 2023 16:14:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXt5pXym6h5UUuv4FRgsYP4KQoKWlKJuI0AixlVnJ08wan3o8pObcywtBAqxHWxXhiuqsfxSKA== X-Received: by 2002:a05:622a:199e:b0:3a8:1947:3e38 with SMTP id u30-20020a05622a199e00b003a819473e38mr101090274qtc.31.1673050486242; Fri, 06 Jan 2023 16:14:46 -0800 (PST) Received: from debian (2a01cb058918ce00e3192ce9ffef0fc4.ipv6.abo.wanadoo.fr. [2a01:cb05:8918:ce00:e319:2ce9:ffef:fc4]) by smtp.gmail.com with ESMTPSA id w26-20020a05620a0e9a00b006eeca296c00sm1316613qkm.104.2023.01.06.16.14.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Jan 2023 16:14:45 -0800 (PST) Date: Sat, 7 Jan 2023 01:14:41 +0100 From: Guillaume Nault To: Mirsad Goran Todorovac Cc: linux-kselftest@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: BUG: tools/testing/selftests/net/l2_tos_ttl_inherit.sh hangs when selftest restarted Message-ID: References: <924f1062-ab59-9b88-3b43-c44e73a30387@alu.unizg.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <924f1062-ab59-9b88-3b43-c44e73a30387@alu.unizg.hr> Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On Fri, Jan 06, 2023 at 02:44:11AM +0100, Mirsad Goran Todorovac wrote: > [root@pc-mtodorov linux_torvalds]# tools/testing/selftests/net/l2_tos_ttl_inherit.sh > ┌────────┬───────┬───────┬──────────────┬──────────────┬───────┬────────┐ > ├────────┼───────┼───────┼──────────────┼──────────────┼───────┼────────┤ > │ Type │ outer | inner │ tos │ ttl │ vlan │ result │ > ├────────┼───────┼───────┼──────────────┼──────────────┼───────┼────────┤ > │ gre │ 4 │ 4 │ inherit 0xc4 │ inherit 116 │ false │Cannot create namespace file "/var/run/netns/testing": File exists > RTNETLINK answers: File exists > RTNETLINK answers: File exists > RTNETLINK answers: File exists You probably have leftovers from a previous test case. In particular the "testing" network name space already exists, which prevents the script from creating it. You can delete it manually with "ip netns del testing". If this netns is there because of a previous incomplete run of l2_tos_ttl_inherit.sh, then you'll likely need to also remove the tunnel interface it created in your current netns ("ip link del tep0"). Ideally this script wouldn't touch the current netns and would clean up its environment in all cases upon exit. I have a patch almost ready that does just that.