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] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 07 Feb 2008 19:37:24 +0300
From:	Pavel Emelyanov <xemul@...nvz.org>
To:	Alan Stern <stern@...land.harvard.edu>
CC:	Duncan Sands <baldrick.bulk@...e.fr>, linux-usb@...r.kernel.org,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH][USBATM]: convert heavy init dances to kthread API

Alan Stern wrote:
> On Thu, 7 Feb 2008, Pavel Emelyanov wrote:
> 
>>> Does the kthread API guarantee that the kthread is not running until you call
>> It does. That's why the race, you mentioned above is impossible.
> 
> That is wrong.  The API guarantees only that the kthread is initially 
> created in a non-running state.  It cannot guarantee that no other 
> task will wake up the kthread before the caller does.

Other tasks cannot wake this thread up since they do not
know the struct task_struct pointer.

> Alan Stern
> 
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ