Repository navigation
Commit ebd09ab
vfs: ensure page symlinks are NUL-terminated
On-disk data corruption could cause a page link to have its i_size set
to PAGE_SIZE (or a multiple thereof) and its contents all non-NUL.
NUL-terminate the link name to ensure this doesn't cause further
problems for the kernel.
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Duane Griffin <duaneg@dghda.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent 0351468 commit ebd09ab
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2786 | 2786 | | |
2787 | 2787 | | |
2788 | 2788 | | |
2789 | | - | |
| 2789 | + | |
| 2790 | + | |
2790 | 2791 | | |
2791 | 2792 | | |
2792 | 2793 | | |
2793 | 2794 | | |
2794 | 2795 | | |
2795 | | - | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
2796 | 2799 | | |
2797 | 2800 | | |
2798 | 2801 | | |
| |||
0 commit comments