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: Sun, 27 Apr 2008 04:24:10 +0200
From: Denys Vlasenko <vda.linux@...glemail.com>
To: David Chinner <dgc@....com>, Al Viro <viro@...iv.linux.org.uk>
Cc: xfs@....sgi.com, Eric Sandeen <sandeen@...deen.net>,
Adrian Bunk <bunk@...nel.org>, linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org
Subject: [PATCH] vfs: reduce stack usage in write_cache_pages()
Hi Al, David,
vfs function write_cache_pages() appears on the xfs
writeout path. It's *the* path which causes 4k stack
overflows on i386 with xfs.
This function uses ~100 bytes of stack on 32-bit i386.
This patch transforms it a little so that it uses
a bit less stack - minus 8 bytes to be precise.
This isn't much, but it helps not only xfs,
but all filesystems.
Only compile tested.
Signed-off-by: Denys Vlasenko <vda.linux@...glemail.com>
--
vda
View attachment "stk3.diff" of type "text/x-diff" (2736 bytes)
Powered by blists - more mailing lists