Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
44163f30
Commit
44163f30
authored
Apr 17, 2015
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lustre: rip the private symlink nesting limit out
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
626de996
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
drivers/staging/lustre/lustre/llite/symlink.c
drivers/staging/lustre/lustre/llite/symlink.c
+3
-12
No files found.
drivers/staging/lustre/lustre/llite/symlink.c
View file @
44163f30
...
...
@@ -126,18 +126,9 @@ static const char *ll_follow_link(struct dentry *dentry, void **cookie, struct n
char
*
symname
=
NULL
;
CDEBUG
(
D_VFSTRACE
,
"VFS Op
\n
"
);
/* Limit the recursive symlink depth to 5 instead of default
* 8 links when kernel has 4k stack to prevent stack overflow.
* For 8k stacks we need to limit it to 7 for local servers. */
if
(
THREAD_SIZE
<
8192
&&
current
->
link_count
>=
6
)
{
rc
=
-
ELOOP
;
}
else
if
(
THREAD_SIZE
==
8192
&&
current
->
link_count
>=
8
)
{
rc
=
-
ELOOP
;
}
else
{
ll_inode_size_lock
(
inode
);
rc
=
ll_readlink_internal
(
inode
,
&
request
,
&
symname
);
ll_inode_size_unlock
(
inode
);
}
ll_inode_size_lock
(
inode
);
rc
=
ll_readlink_internal
(
inode
,
&
request
,
&
symname
);
ll_inode_size_unlock
(
inode
);
if
(
rc
)
{
ptlrpc_req_finished
(
request
);
return
ERR_PTR
(
rc
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment