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

Fixed a NULL pointer dereference bug in zfs_preumount #639

Closed
wants to merge 1 commit into from

Commits on Apr 5, 2012

  1. Fixed a NULL pointer dereference bug in zfs_preumount

    When zpl_fill_super -> zfs_domount fails (e.g. because the dataset
    was destroyed before it could be successfully mounted) the subsequent
    call to zpl_kill_sb -> zfs_preumount would derefence a NULL pointer.
    
    This bug can be reproduced using this shell script:
    
     #!/bin/sh
     (
     while true; do
     	zfs create -o mountpoint=legacz tank/bar
     	zfs destroy tank/bar
     done
     ) &
    
     (
     while true; do
     	mount -t zfs tank/bar /mnt
     	umount /mnt
     done
     ) &
    gunnarbeutner committed Apr 5, 2012
    Copy the full SHA
    973ed42 View commit details
    Browse the repository at this point in the history