Commit 559e608
committed
Merge tag 'ntfs3_for_6.19' of https://github.com/Paragon-Software-Group/linux-ntfs3
Pull ntfs3 updates from Konstantin Komarov:
"New code:
- support timestamps prior to epoch
- do not overwrite uptodate pages
- disable readahead for compressed files
- setting of dummy blocksize to read boot_block when mounting
- the run_lock initialization when loading $Extend
- initialization of allocated memory before use
- support for the NTFS3_IOC_SHUTDOWN ioctl
- check for minimum alignment when performing direct I/O reads
- check for shutdown in fsync
Fixes:
- mount failure for sparse runs in run_unpack()
- use-after-free of sbi->options in cmp_fnames
- KMSAN uninit bug after failed mi_read in mi_format_new
- uninit error after buffer allocation by __getname()
- KMSAN uninit-value in ni_create_attr_list
- double free of sbi->options->nls and ownership of fc->fs_private
- incorrect vcn adjustments in attr_collapse_range()
- mode update when ACL can be reduced to mode
- memory leaks in add sub record
Changes:
- refactor code, updated terminology, spelling
- do not kmap pages in (de)compression code
- after ntfs_look_free_mft(), code that fails must put mft_inode
- default mount options for "acl" and "prealloc"
Replaced:
- use unsafe_memcpy() to avoid memcpy size warning
- ntfs_bio_pages with page cache for compressed files"
* tag 'ntfs3_for_6.19' of https://github.com/Paragon-Software-Group/linux-ntfs3: (26 commits)
fs/ntfs3: check for shutdown in fsync
fs/ntfs3: change the default mount options for "acl" and "prealloc"
fs/ntfs3: Prevent memory leaks in add sub record
fs/ntfs3: out1 also needs to put mi
fs/ntfs3: Fix spelling mistake "recommened" -> "recommended"
fs/ntfs3: update mode in xattr when ACL can be reduced to mode
fs/ntfs3: check minimum alignment for direct I/O
fs/ntfs3: implement NTFS3_IOC_SHUTDOWN ioctl
fs/ntfs3: correct attr_collapse_range when file is too fragmented
ntfs3: fix double free of sbi->options->nls and clarify ownership of fc->fs_private
fs/ntfs3: Initialize allocated memory before use
fs/ntfs3: remove ntfs_bio_pages and use page cache for compressed I/O
ntfs3: avoid memcpy size warning
fs/ntfs3: fix KMSAN uninit-value in ni_create_attr_list
ntfs3: init run lock for extend inode
ntfs: set dummy blocksize to read boot_block when mounting
fs/ntfs3: disable readahead for compressed files
ntfs3: Fix uninit buffer allocated by __getname()
ntfs3: fix uninit memory after failed mi_read in mi_format_new
ntfs3: fix use-after-free of sbi->options in cmp_fnames
...13 files changed
Lines changed: 421 additions & 331 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1457 | 1457 | | |
1458 | 1458 | | |
1459 | 1459 | | |
1460 | | - | |
1461 | 1460 | | |
1462 | 1461 | | |
1463 | 1462 | | |
| |||
1467 | 1466 | | |
1468 | 1467 | | |
1469 | 1468 | | |
1470 | | - | |
1471 | | - | |
| 1469 | + | |
1472 | 1470 | | |
1473 | 1471 | | |
1474 | 1472 | | |
| |||
1862 | 1860 | | |
1863 | 1861 | | |
1864 | 1862 | | |
1865 | | - | |
| 1863 | + | |
1866 | 1864 | | |
1867 | 1865 | | |
1868 | 1866 | | |
| |||
1925 | 1923 | | |
1926 | 1924 | | |
1927 | 1925 | | |
| 1926 | + | |
1928 | 1927 | | |
1929 | 1928 | | |
1930 | 1929 | | |
| |||
1933 | 1932 | | |
1934 | 1933 | | |
1935 | 1934 | | |
1936 | | - | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
1937 | 1939 | | |
1938 | 1940 | | |
1939 | | - | |
1940 | | - | |
1941 | | - | |
1942 | | - | |
1943 | | - | |
1944 | | - | |
1945 | | - | |
1946 | | - | |
| 1941 | + | |
1947 | 1942 | | |
1948 | | - | |
1949 | | - | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
1950 | 1948 | | |
1951 | 1949 | | |
1952 | 1950 | | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
1953 | 1957 | | |
1954 | 1958 | | |
1955 | 1959 | | |
| |||
1959 | 1963 | | |
1960 | 1964 | | |
1961 | 1965 | | |
1962 | | - | |
1963 | | - | |
| 1966 | + | |
| 1967 | + | |
1964 | 1968 | | |
1965 | | - | |
1966 | | - | |
1967 | | - | |
1968 | | - | |
1969 | | - | |
1970 | | - | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
1971 | 1973 | | |
1972 | | - | |
1973 | | - | |
1974 | | - | |
1975 | | - | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
1976 | 1980 | | |
1977 | | - | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
1978 | 1985 | | |
1979 | 1986 | | |
1980 | 1987 | | |
1981 | 1988 | | |
1982 | 1989 | | |
1983 | 1990 | | |
1984 | 1991 | | |
1985 | | - | |
| 1992 | + | |
1986 | 1993 | | |
1987 | 1994 | | |
1988 | 1995 | | |
| |||
1993 | 2000 | | |
1994 | 2001 | | |
1995 | 2002 | | |
1996 | | - | |
| 2003 | + | |
1997 | 2004 | | |
1998 | 2005 | | |
1999 | 2006 | | |
| |||
2007 | 2014 | | |
2008 | 2015 | | |
2009 | 2016 | | |
| 2017 | + | |
2010 | 2018 | | |
2011 | 2019 | | |
2012 | | - | |
2013 | | - | |
2014 | | - | |
2015 | | - | |
2016 | | - | |
2017 | | - | |
2018 | | - | |
2019 | | - | |
2020 | | - | |
2021 | | - | |
2022 | 2020 | | |
2023 | 2021 | | |
2024 | 2022 | | |
| |||
2031 | 2029 | | |
2032 | 2030 | | |
2033 | 2031 | | |
| 2032 | + | |
2034 | 2033 | | |
2035 | 2034 | | |
2036 | 2035 | | |
| |||
2048 | 2047 | | |
2049 | 2048 | | |
2050 | 2049 | | |
2051 | | - | |
| 2050 | + | |
2052 | 2051 | | |
2053 | 2052 | | |
2054 | 2053 | | |
2055 | 2054 | | |
| 2055 | + | |
2056 | 2056 | | |
2057 | 2057 | | |
2058 | 2058 | | |
| |||
2061 | 2061 | | |
2062 | 2062 | | |
2063 | 2063 | | |
2064 | | - | |
2065 | | - | |
2066 | | - | |
2067 | | - | |
2068 | 2064 | | |
2069 | 2065 | | |
2070 | 2066 | | |
| |||
2554 | 2550 | | |
2555 | 2551 | | |
2556 | 2552 | | |
2557 | | - | |
| 2553 | + | |
2558 | 2554 | | |
2559 | 2555 | | |
2560 | 2556 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
336 | | - | |
| 335 | + | |
337 | 336 | | |
338 | 337 | | |
339 | 338 | | |
| |||
0 commit comments