From patchwork Wed Jun 26 19:03:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Aring X-Patchwork-Id: 1122982 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mojatatu.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=mojatatu-com.20150623.gappssmtp.com header.i=@mojatatu-com.20150623.gappssmtp.com header.b="rC1NdcfM"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45Ysrs3Nnzz9s3Z for ; Thu, 27 Jun 2019 05:04:13 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726508AbfFZTEH (ORCPT ); Wed, 26 Jun 2019 15:04:07 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:46616 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbfFZTEG (ORCPT ); Wed, 26 Jun 2019 15:04:06 -0400 Received: by mail-io1-f66.google.com with SMTP id i10so5684913iol.13 for ; Wed, 26 Jun 2019 12:04:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=VKtnnmbioE9YmFDHEryqIRwRw2jsuw3ZA4a/XVWKC7U=; b=rC1NdcfMmIl+ogqqColFqMiS+l8nUGfYcvlXAa13Xy1r4kJPveyb2aUPFbgcXHrIHe fnlOTQfkbXvAsYAfIUKlHRzCrFh9QB5mslctXL8fCRRSQt52UBOt8RX9BDL0sKbbr/XY 9rh2ase5SwdnMFAwTn6TYFq90CtxDuflOhsEdmTg/FSgNuvlmh40wfQ963+NVzlBftsw VFJH7u3vnWQMaNLwwhay4HuwAIOFxZhjjsTWq2/feAXFQGPaEH+iVbMhkfRxkaKK2mHD wshngShWugmfJsRZ/aC0SrJwLoqk6lBCwe3lcPQcZfXUiGraqXUq/WoVm2nVuaJHmeQR xusg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=VKtnnmbioE9YmFDHEryqIRwRw2jsuw3ZA4a/XVWKC7U=; b=NfEjGWOxzRAJm+BoJR5Wgy3NC+p0VU/UjUHUrQ/EPlPh2DAA4UrBx5bfbfLVdpzBng FbjofR87l1TnkfcI6ndQgQObbbIUSSXAhS6u7iQYSIG7IrAdRU1m7EyI9z8Nhb5weEgp KCTQV3R03W4jChooIASo6HjN/6B3Oxz5wIVpJW4qg4TpTPK5JGYACzone8VbUU2oIECU 2ATRqdKfBZZDu/S8B7cTfMeXTyycl7OYdIzDBlLTqSEjx/ClUe7aW32u7cwbx+Fcm7RN LU1r6Q5K3uA7QHnEzMBotdUazmxOyK7RYoSzMPoYitDPT5MgU90WtDcC60XxQ35NFcM0 bGwQ== X-Gm-Message-State: APjAAAVDqsakWriGqTolFPxsAf7ORA712GD+IVpGWO8IeEaycUPk/Nfz Vmzt3iW92bsVdZ7DHpw2y9SLf3FIy+U= X-Google-Smtp-Source: APXvYqwHLhyYRnFygxcwd0JVmYFTKoIg5/yuAksaT+lO4F4n2L964F6S7MXiUgAT24cAQc34TulPWQ== X-Received: by 2002:a02:c7c7:: with SMTP id s7mr6803081jao.37.1561575845406; Wed, 26 Jun 2019 12:04:05 -0700 (PDT) Received: from x220t.lan ([64.26.149.125]) by smtp.gmail.com with ESMTPSA id k5sm18446041ioj.47.2019.06.26.12.04.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jun 2019 12:04:04 -0700 (PDT) From: Alexander Aring To: netdev@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, kernel@mojatatu.com, Alexander Aring Subject: [RFC iproute2 0/1] iproute2 netns mount race issue and solution? Date: Wed, 26 Jun 2019 15:03:42 -0400 Message-Id: <20190626190343.22031-1-aring@mojatatu.com> X-Mailer: git-send-email 2.11.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, We found an issue how we can react on namespaces created by iproute2. As state of the current Linux kernel there exists no way to get events on new mounts. Polling is not an option because you can miss mounts. It's an RFC to see that might people seeing the same issue here and would like to talk about possible solutions how to deal with that. I cc linux-fs here that they might can tell me a solution which maybe already exists if not this solution should be backwards compatible. I know this solution only works for iproute2 but isn't iproute2 not the standard defintion how /var/run/netns works? - Alex Alexander Aring (1): ip: netns: add mounted state file for each netns ip/ipnetns.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)