From: ebiederm@xmission.com (Eric W. Biederman)
To: Arnd Bergmann <arnd@arndb.de>
Cc: David Ahern <dsahern@gmail.com>,
Randy Dunlap <rdunlap@infradead.org>,
Matteo Croce <mcroce@redhat.com>,
David Miller <davem@davemloft.net>,
netdev <netdev@vger.kernel.org>,
Linux Next Mailing List <linux-next@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
LKML <linux-kernel@vger.kernel.org>,
Linux FS-devel Mailing List <linux-fsdevel@vger.kernel.org>
Subject: Re: [PATCH net] mpls: fix af_mpls dependencies
Date: Fri, 14 Jun 2019 09:54:55 -0500 [thread overview]
Message-ID: <87r27wrzcw.fsf@xmission.com> (raw)
In-Reply-To: <CAK8P3a0w3K1O23616g3Nz4XQdgw-xHDPWSQ+Rb_O3VAy-3FnQg@mail.gmail.com> (Arnd Bergmann's message of "Fri, 14 Jun 2019 16:26:14 +0200")
Arnd Bergmann <arnd@arndb.de> writes:
> On Fri, Jun 14, 2019 at 4:07 PM David Ahern <dsahern@gmail.com> wrote:
>> On 6/14/19 8:01 AM, Arnd Bergmann wrote:
>> > On Wed, Jun 12, 2019 at 9:41 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>> >> On 6/11/19 5:08 PM, Matteo Croce wrote:
>> >
>> > It clearly shouldn't select PROC_SYSCTL, but I think it should not
>> > have a 'depends on' statement either. I think the correct fix for the
>> > original problem would have been something like
>> >
>> > --- a/net/mpls/af_mpls.c
>> > +++ b/net/mpls/af_mpls.c
>> > @@ -2659,6 +2659,9 @@ static int mpls_net_init(struct net *net)
>> > net->mpls.ip_ttl_propagate = 1;
>> > net->mpls.default_ttl = 255;
>> >
>> > + if (!IS_ENABLED(CONFIG_PROC_SYSCTL))
>> > + return 0;
>> > +
>> > table = kmemdup(mpls_table, sizeof(mpls_table), GFP_KERNEL);
>> > if (table == NULL)
>> > return -ENOMEM;
>> >
>>
>> Without sysctl, the entire mpls_router code is disabled. So if sysctl is
>> not enabled there is no point in building this file.
>
> Ok, I see.
>
> There are a couple of other drivers that use 'depends on SYSCTL',
> which may be the right thing to do here. In theory, one can still
> build a kernel with CONFIG_SYSCTRL_SYSCALL=y and no
> procfs.
Which reminds me. I really need to write the patch to remove
CONFIG_SYSCTL_SYSCALL.
Unless I have missed something we have finally reached default off in
all of the distributions so no one should care.
Eric
next prev parent reply other threads:[~2019-06-14 14:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-08 12:50 [PATCH net] mpls: fix af_mpls dependencies Matteo Croce
2019-06-10 2:57 ` David Miller
2019-06-11 23:06 ` Randy Dunlap
2019-06-12 0:08 ` Matteo Croce
2019-06-12 2:39 ` Randy Dunlap
2019-06-14 14:01 ` Arnd Bergmann
2019-06-14 14:07 ` David Ahern
2019-06-14 14:26 ` Arnd Bergmann
2019-06-14 14:54 ` Eric W. Biederman [this message]
2019-06-14 15:10 ` Randy Dunlap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r27wrzcw.fsf@xmission.com \
--to=ebiederm@xmission.com \
--cc=akpm@linux-foundation.org \
--cc=arnd@arndb.de \
--cc=davem@davemloft.net \
--cc=dsahern@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=mcroce@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=rdunlap@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.