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
| ||
|
Date: Thu, 1 Oct 2020 23:40:51 +0100 From: Al Viro <viro@...iv.linux.org.uk> To: Eric Biggers <ebiggers@...nel.org> Cc: Christoph Hellwig <hch@....de>, Linus Torvalds <torvalds@...ux-foundation.org>, Michael Ellerman <mpe@...erman.id.au>, x86@...nel.org, Alexey Dobriyan <adobriyan@...il.com>, Luis Chamberlain <mcgrof@...nel.org>, Kees Cook <keescook@...omium.org>, linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org, linux-arch@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org Subject: Re: [PATCH 05/14] fs: don't allow kernel reads and writes without iter ops 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);
Powered by blists - more mailing lists