Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1261302

Re: Resource leak in unshare

From Dmitry Vyukov <dvyukov@google.com>
Newsgroups linux.kernel
Subject Re: Resource leak in unshare
Date 2015-11-03 09:50 +0100
Message-ID <qqFrY-jV-13@gated-at.bofh.it> (permalink)
References <qql9U-4AW-21@gated-at.bofh.it> <qqsO5-JS-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Nov 2, 2015 at 8:01 PM, Eric W. Biederman <ebiederm@xmission.com> wrote:
> Dmitry Vyukov <dvyukov@google.com> writes:
>
>> Hello,
>>
>> I am hitting the following warnings on
>> bcee19f424a0d8c26ecf2607b73c690802658b29 (4.3):
>
> Do you have any trace of the earlier failures?
>
> This appears to be something caused by an earlier failure (possibly
> whatever fails to allocate memory).  Having network devices present
> but being in the generic cleanup routines is wrong.
>
> If there is no additional information can you please rerun with the
> following change applied?  That should at least report which function is
> failing, and give us a good clue where to start debugging this.


So is it all fixed now? Or it is still clear how it can happen?
Eric (Dumazet), do you see how the WARNING can fire?
I don't have any logs at the moment, but I can run fuzzer for longer
to reproduce it again if necessary.



> diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c
> index 2c2eb1b629b1..125c94af22b8 100644
> --- a/net/core/net_namespace.c
> +++ b/net/core/net_namespace.c
> @@ -292,6 +292,7 @@ out:
>         return error;
>
>  out_undo:
> +       WARN(1, "net ops->init %pF returned with %d\n", ops->init, error);
>         /* Walk through the list backwards calling the exit functions
>          * for the pernet modules whose init functions did not fail.
>          */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Resource leak in unshare Dmitry Vyukov <dvyukov@google.com> - 2015-11-02 12:10 +0100
  Re: Resource leak in unshare ebiederm@xmission.com (Eric W. Biederman) - 2015-11-02 20:20 +0100
    Re: Resource leak in unshare Eric Dumazet <eric.dumazet@gmail.com> - 2015-11-02 21:00 +0100
      Re: Resource leak in unshare Eric Dumazet <eric.dumazet@gmail.com> - 2015-11-03 01:10 +0100
        Re: Resource leak in unshare Eric Dumazet <eric.dumazet@gmail.com> - 2015-11-03 02:10 +0100
          Re: Resource leak in unshare Eric Dumazet <eric.dumazet@gmail.com> - 2015-11-03 02:20 +0100
            Re: Resource leak in unshare David Miller <davem@davemloft.net> - 2015-11-03 05:00 +0100
    Re: Resource leak in unshare Dmitry Vyukov <dvyukov@google.com> - 2015-11-03 09:50 +0100
      Re: Resource leak in unshare Eric Dumazet <eric.dumazet@gmail.com> - 2015-11-03 13:50 +0100
        Re: Resource leak in unshare Dmitry Vyukov <dvyukov@google.com> - 2015-11-03 16:50 +0100

csiph-web