lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20080529.034728.225207018.davem@davemloft.net>
Date:	Thu, 29 May 2008 03:47:28 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	greearb@...delatech.com
Cc:	bhutchings@...arflare.com, netdev@...r.kernel.org
Subject: Re: Question on ipmr.c locking in 2.6.25

From: Ben Greear <greearb@...delatech.com>
Date: Wed, 28 May 2008 15:06:45 -0700

> Now I wonder:  If a reader read only a small bit of the proc file,
> and then just went to sleep w/out closing or reading the rest of
> the file, would that effectively DOS a system by pinning the locks?

That's not how this works.

The in-kernel buffer used by the SEQ file infrastructure is
filled as best as possible.  Then the locks are dropped and
the copy to userspace is performed.

Since we hold locks, this also means preemption is disabled.
So there is no way for the task to go to sleep at this
time.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ