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 0D2D5C5479D for ; Sat, 7 Jan 2023 00:15:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236510AbjAGAPa (ORCPT ); Fri, 6 Jan 2023 19:15:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230269AbjAGAP3 (ORCPT ); Fri, 6 Jan 2023 19:15:29 -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 200DC73E24 for ; Fri, 6 Jan 2023 16:14:48 -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-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-287-XdUVBqBQOQSxOmDmAUjAOw-1; Fri, 06 Jan 2023 19:14:47 -0500 X-MC-Unique: XdUVBqBQOQSxOmDmAUjAOw-1 Received: by mail-qv1-f70.google.com with SMTP id nl19-20020a056214369300b00532164b6c30so1537343qvb.15 for ; Fri, 06 Jan 2023 16:14:47 -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=LWVbc6B3pkEFD7XyoQ3m79gDg6J2PaxXcuzKO1Bq/d5GtOLWDk3so20u4w9RlhrCd2 Nj8xwa0hruvWmm2D5j1KlhbxKYcAoKT3jzotdKgmBgwUVNsmlnyRro79dz05jaxDPkP6 D4MW9lHm9AZXQYIP2PKJ0La6xtk6bqXsvJKMMnU5ENxXugaieGD6bfmLNBLeUQQQd6Kq 3VsMfOWuyEIQW7UO3ypgpMnelrY0Ewkq6jrihteNh8BX5CtNr2Za8Llo9+Y/yb1t7UpM JYmP+hyPFNvkztqWGuoI9DjA3UuBnb14xbEL5zcr7VqsEP7w3YTDXYkrxJK0cwTs5nCw NwpA== X-Gm-Message-State: AFqh2kpWGKviBML+IQtNvj9kOj6gfGKhcs/UaAr7udbgsDS9lWqTaDej PgsVO6zMWVbQjIXtDMNNZp8VM+jsmjOU9FV0du7hCmbJc4lxngjkauK8Ju4hkDwxv3x8eD3LhfE Rcafyj5ApylVFFNza X-Received: by 2002:a05:622a:199e:b0:3a8:1947:3e38 with SMTP id u30-20020a05622a199e00b003a819473e38mr101090303qtc.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: netdev@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.