Commit a82fbf4
committed
fs/ntfs3: reject SEEK_DATA and SEEK_HOLE past EOF early
Handle non-data/hole seeks through generic_file_llseek_size() and return
-ENXIO immediately when SEEK_DATA or SEEK_HOLE is requested at or past
EOF. Handle compressed files in such cases properly as well.
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>1 parent ecbb433 commit a82fbf4
2 files changed
Lines changed: 21 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1008 | 1008 | | |
1009 | 1009 | | |
1010 | 1010 | | |
1011 | | - | |
| 1011 | + | |
1012 | 1012 | | |
1013 | 1013 | | |
1014 | 1014 | | |
| |||
1077 | 1077 | | |
1078 | 1078 | | |
1079 | 1079 | | |
1080 | | - | |
| 1080 | + | |
1081 | 1081 | | |
1082 | 1082 | | |
1083 | 1083 | | |
| |||
1530 | 1530 | | |
1531 | 1531 | | |
1532 | 1532 | | |
1533 | | - | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
1534 | 1539 | | |
1535 | 1540 | | |
1536 | 1541 | | |
1537 | 1542 | | |
1538 | 1543 | | |
1539 | 1544 | | |
1540 | 1545 | | |
1541 | | - | |
1542 | | - | |
1543 | | - | |
1544 | 1546 | | |
1545 | 1547 | | |
1546 | 1548 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2889 | 2889 | | |
2890 | 2890 | | |
2891 | 2891 | | |
2892 | | - | |
2893 | | - | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
| 2896 | + | |
| 2897 | + | |
| 2898 | + | |
| 2899 | + | |
2894 | 2900 | | |
2895 | 2901 | | |
2896 | 2902 | | |
| |||
2904 | 2910 | | |
2905 | 2911 | | |
2906 | 2912 | | |
2907 | | - | |
2908 | | - | |
| 2913 | + | |
| 2914 | + | |
2909 | 2915 | | |
2910 | 2916 | | |
2911 | 2917 | | |
| |||
2914 | 2920 | | |
2915 | 2921 | | |
2916 | 2922 | | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
2917 | 2926 | | |
2918 | 2927 | | |
2919 | 2928 | | |
| |||
0 commit comments