Thread (58 messages) 58 messages, 11 authors, 2020-10-14

Re: [PATCH 05/14] fs: don't allow kernel reads and writes without iter ops

From: Al Viro <viro@zeniv.linux.org.uk>
Date: 2020-10-01 22:41:08
Also in: linux-arch, linux-fsdevel, lkml

On Thu, Oct 01, 2020 at 03:38:52PM -0700, Eric Biggers wrote:
 	mutex_lock(&sbi->pipe_mutex);
 	while (bytes) {
-		wr = __kernel_write(file, data, bytes, NULL);
+		wr = __kernel_write(file, data, bytes, &file->f_pos);
Better
	loff_t dummy = 0;
...
		wr = __kernel_write(file, data, bytes, &dummy);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help