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>] [day] [month] [year] [list]
Date:	Tue, 12 Jul 2011 17:27:33 -0700
From:	Slava Pestov <slavapestov@...gle.com>
To:	linux-kernel@...r.kernel.org
Cc:	Michael Rubin <mrubin@...gle.com>,
	David Sharp <dhsharp@...gle.com>,
	Steven Rostedt <rostedt@...dmis.org>,
	Vaibhav Nagarnaik <vnagarnaik@...gle.com>
Subject: ftrace: trace_pipe_raw, blocking, and splice()

Hi ftrace users,

I notice that tracing_buffers_splice_read() has this comment in it
around line 3900:

/* TODO: block */

Was the original intention that reading from trace_pipe_raw with
tracing enabled should block if there is no data available, rather
than returning with end of file?

If so, I suggest adding a new trace_raw special file which behaves
like the current trace_pipe_raw (return 0 on EOF). Then we'd change
trace_pipe_raw to block on EOF.

Does this sound reasonable or is breaking APIs like this unacceptable?

Slava
--
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