Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: fix 2 lowmem bugs #16770

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Linux: fix 2 lowmem bugs #16770

wants to merge 2 commits into from

Commits on Nov 15, 2024

  1. Linux: Fix zfs_prune panics

    by protecting against sb->s_shrink eviction on umount with newer kernels
    
    deactivate_locked_super calls shrinker_free and only then
    sops->kill_sb cb, resulting in UAF on umount when trying
    to reach for the shrinker functions in zpl_prune_sb of
    in-umount dataset
    
    Signed-off-by: Pavel Snajdr <[email protected]>
    snajpa committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    d928d85 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2024

  1. Linux: i_op: use .free_inode

    as per Documentation/filesystems/porting.rst:
    
    quote:
    
    **strongly recommended**
    
    take the RCU-delayed parts of ->destroy_inode() into a new method -
    ->free_inode().  If ->destroy_inode() becomes empty - all the better,
    just get rid of it.
    
    endquote.
    
    Signed-off-by: Pavel Snajdr <[email protected]>
    snajpa committed Nov 16, 2024
    Configuration menu
    Copy the full SHA
    3741752 View commit details
    Browse the repository at this point in the history