From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752348AbdFPRKS (ORCPT ); Fri, 16 Jun 2017 13:10:18 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:33517 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750780AbdFPRKQ (ORCPT ); Fri, 16 Jun 2017 13:10:16 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: Dick Streefland Cc: linux-kernel@vger.kernel.org References: <20170616101440.GA1480@neos> Date: Fri, 16 Jun 2017 12:03:12 -0500 In-Reply-To: <20170616101440.GA1480@neos> (Dick Streefland's message of "Fri, 16 Jun 2017 12:14:41 +0200") Message-ID: <878tkrvp9r.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1dLul6-0002YI-Ke;;;mid=<878tkrvp9r.fsf@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=67.3.213.87;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX18LiugxQNC7ACJE879pLey4AX7Lts8yVkc= X-SA-Exim-Connect-IP: 67.3.213.87 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4990] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa01 1397; Body=1 Fuz1=1 Fuz2=1] * 0.5 XM_Body_Dirty_Words Contains a dirty word X-Spam-DCC: XMission; sa01 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Dick Streefland X-Spam-Relay-Country: X-Spam-Timing: total 5780 ms - load_scoreonly_sql: 0.05 (0.0%), signal_user_changed: 2.8 (0.0%), b_tie_ro: 1.90 (0.0%), parse: 1.19 (0.0%), extract_message_metadata: 60 (1.0%), get_uri_detail_list: 2.5 (0.0%), tests_pri_-1000: 39 (0.7%), tests_pri_-950: 1.98 (0.0%), tests_pri_-900: 1.58 (0.0%), tests_pri_-400: 54 (0.9%), check_bayes: 53 (0.9%), b_tokenize: 9 (0.2%), b_tok_get_all: 14 (0.2%), b_comp_prob: 3.7 (0.1%), b_tok_touch_all: 13 (0.2%), b_finish: 0.79 (0.0%), tests_pri_0: 479 (8.3%), check_dkim_signature: 0.80 (0.0%), check_dkim_adsp: 12 (0.2%), tests_pri_500: 5135 (88.8%), poll_dns_idle: 5125 (88.7%), rewrite_mail: 0.00 (0.0%) Subject: Re: autofs multi-map regression X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dick Streefland writes: > After a recent upgrade of a Ubuntu xenial machine, a particular > autofs multi-map mount setup stopped working. A simplified example is: > > :::::::::::::: > auto.master > :::::::::::::: > /net /etc/auto.net > :::::::::::::: > auto.net > :::::::::::::: > localhost / :/ /loc :/loc > > Accessing /net/localhost/loc should trigger two nested bind mounts on > /net/localhost and /net/localhost/loc, but with the new kernel, it fails > with ELOOP: > > $ ls /net/localhost/loc > ls: cannot open directory '/net/localhost/loc': Too many levels of symbolic links > > The problem is related to the upgrade of the Ubuntu xenial kernel from > 4.4.0-38.57 to 4.4.0-78.99. I bisected the regression to commit > 731ac92843877f3633325203abc942193c1e9001, which is a Ubuntu backport > of this upstream kernel commit: > > commit 1064f874abc0d05eeed8993815f584d847b72486 > Author: Eric W. Biederman > Date: Fri Jan 20 18:28:35 2017 +1300 > > mnt: Tuck mounts under others instead of creating shadow/side mounts. Interesting... Can you test this on a stock 4.11 kernel? I definitely need a little bit more information to solve this. That commit did not add any new error condidtions so I need to understand what state you are getting yourself into that is affected by this commit. Is there a chance you can post /proc/self/mountinfo from when this is happening? Eric