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


Groups > linux.kernel > #1542016

Re: usb/gadget: warning in ep_write_iter/__alloc_pages_nodemask

From Michal Hocko <mhocko@kernel.org>
Newsgroups linux.kernel
Subject Re: usb/gadget: warning in ep_write_iter/__alloc_pages_nodemask
Date 2016-12-14 17:20 +0100
Message-ID <sOkrD-9J-7@gated-at.bofh.it> (permalink)
References <sOdTc-4EN-23@gated-at.bofh.it> <sOkrD-9J-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed 14-12-16 11:13:11, Alan Stern wrote:
> On Wed, 14 Dec 2016, Michal Hocko wrote:
> 
> > On Tue 13-12-16 08:33:34, Alan Stern wrote:
> > > On Tue, 13 Dec 2016, Michal Hocko wrote:
[...]
> > > > Well, my point was that it is not really hard to imagine to deplete
> > > > larger contiguous memory blocks (say PAGE_ALLOC_COSTLY_ORDER). Those are
> > > > still causing the OOM killer and chances are that a controlled flood of
> > > > these requests could completely DoS the system.
> > > 
> > > Putting a limit on the total size of a single transfer would prevent 
> > > this.
> > 
> > Dunno, putting a limit to the user visible interface sounds wrong to me.
> 
> In practice, I think the data transfer sizes tend to be not very large.  
> But I could be wrong about that.

That is one part the other is whether a malicious user can abuse this to
DoS the kernel which is the point I am trying to make here. Depleting
non-costly high orders can be quite dangerious so allowing a free ticket
to them to arbitrary user in an arbitrary amount is definitely not good.
-- 
Michal Hocko
SUSE Labs

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


Thread

usb/gadget: warning in ep_write_iter/__alloc_pages_nodemask Andrey Konovalov <andreyknvl@google.com> - 2016-12-12 21:40 +0100
  Re: usb/gadget: warning in ep_write_iter/__alloc_pages_nodemask Andrey Konovalov <andreyknvl@google.com> - 2016-12-12 21:40 +0100
    Re: usb/gadget: warning in ep_write_iter/__alloc_pages_nodemask Alan Stern <stern@rowland.harvard.edu> - 2016-12-12 22:10 +0100
    Re: usb/gadget: warning in ep_write_iter/__alloc_pages_nodemask Michal Hocko <mhocko@kernel.org> - 2016-12-12 22:10 +0100
      Re: usb/gadget: warning in ep_write_iter/__alloc_pages_nodemask Alan Stern <stern@rowland.harvard.edu> - 2016-12-12 22:20 +0100
        Re: usb/gadget: warning in ep_write_iter/__alloc_pages_nodemask Michal Hocko <mhocko@kernel.org> - 2016-12-13 09:10 +0100
          Re: usb/gadget: warning in ep_write_iter/__alloc_pages_nodemask Alan Stern <stern@rowland.harvard.edu> - 2016-12-13 14:40 +0100
            Re: usb/gadget: warning in ep_write_iter/__alloc_pages_nodemask Michal Hocko <mhocko@kernel.org> - 2016-12-14 10:20 +0100
              Re: usb/gadget: warning in ep_write_iter/__alloc_pages_nodemask Michal Hocko <mhocko@kernel.org> - 2016-12-14 17:20 +0100
              Re: usb/gadget: warning in ep_write_iter/__alloc_pages_nodemask Alan Stern <stern@rowland.harvard.edu> - 2016-12-14 17:50 +0100

csiph-web