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, 26 Feb 2009 07:48:22 -0500 (EST)
From:	Steven Rostedt <rostedt@...dmis.org>
To:	Ingo Molnar <mingo@...e.hu>
cc:	Peter Zijlstra <peterz@...radead.org>,
	linux-kernel@...r.kernel.org,
	Andrew Morton <akpm@...ux-foundation.org>,
	Frederic Weisbecker <fweisbec@...il.com>,
	"H. Peter Anvin" <hpa@...or.com>
Subject: Re: [PATCH v2 0/5] [RFC] copy_strtok_from_user


On Thu, 26 Feb 2009, Steven Rostedt wrote:
> 
> not really. strsep stops at the first delimiter. strtok skips multiple 

I may have read the man page wrong. It does stop at the token not the 
delimiter.

Never mind :-p

-- Steve

> delimiters. I could implement the copy_strtok_from_user with a 
> copy_from_user (all of read), and then use strtok_r (reentrant version) to 
> find the next token. This would require implementing strtok_r for the 
> kernel.
> 
> Having the copy_strtok_from_user will handle the copying and the caller 
> would not need to worry about having a big enough buffer to hold 
> delimiters and tokens. The copy_strtok_from_user would copy first to an 
> internal buffer, then scan for tokens to copy into the callers buffer. 
> Then repeat until read or copy limits have been hit.
> 
> -- Steve
> 
> 
--
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