From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anders Fugmann Subject: Re: hook function in NF_IP_LOCAL_IN does not interruptible_sleep_on? Date: Sun, 15 Sep 2002 16:05:14 +0200 Sender: netfilter-admin@lists.netfilter.org Message-ID: <3D84939A.9000005@fugmann.dhs.org> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Kim Jong Tae Cc: netfilter@lists.netfilter.org Kim Jong Tae wrote: > Hi all. > > I makes hook function, which will communicate with user process > for each packet's arrival. > First, hook function sends data to user process and user process sends > back data. I think that before receiving data from user process, hook > function must wait. hook func's wait is using interruptible_sleep_on. > When hook func call interruptible_sleep_on, system hangs!!! You are calling sleep in_interrupt. This is not allowed. You forgot to mention how you cummunicate with the userspace process. Throgh a device-node? Regards Anders Fugmann