]> git.baikalelectronics.ru Git - kernel.git/commit
bail out with ELOOP earlier in do_link loop
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 24 Dec 2009 07:27:30 +0000 (02:27 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 5 Mar 2010 14:01:22 +0000 (09:01 -0500)
commit93b239911256576b683db5d8fa2ade809bc640f5
treeb9065b274d8f00639af43bbb8e4eaabcda5b559d
parentee693bdb18147471f638244f78e25547350b54ed
bail out with ELOOP earlier in do_link loop

If we'd passed through 32 trailing symlinks already, there's
no sense following the 33rd - we'll bail out anyway.  Better
bugger off earlier.

It *does* change behaviour, after a fashion - if the 33rd happens
to be a procfs-style symlink, original code *would* allow it.
This one will not.  Cry me a river if that hurts you.  Please, do.
And post a video of that, while you are at it.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c