From mboxrd@z Thu Jan 1 00:00:00 1970 From: Colin Walters Subject: Re: [GIT] Networking Date: Thu, 20 Jan 2011 17:38:05 -0500 Message-ID: References: <20110119.180418.216749267.davem@davemloft.net> <1295559646.2613.35.camel@edumazet-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Eric Dumazet , David Miller , akpm@linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Linus Torvalds Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:52486 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752564Ab1ATWiG (ORCPT ); Thu, 20 Jan 2011 17:38:06 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Thu, Jan 20, 2011 at 5:21 PM, Linus Torvalds wrote: > On Thu, Jan 20, 2011 at 1:40 PM, Eric Dumazet wrote: >> >> Then here ask for fd=3 both POLLIN and POLLOUT : >> kernel answers : OK for POLLOUT (not POLLIN), so previous poll() call >> was OK to be blocked after all... >> >> So I'm wondering if it could be a userland bug, that triggers with >> recent kernel changes. > > As far as I can tell, that program isn't multi-threaded It is actually; see src/gs-auth-pam.c; there is some pretty scary code there; basically all of PAM is put in a thread to avoid blocking the mainloop. Whether the code is actually buggy I can't say immediately; it's certainly possible.