NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/46282 CVS commit: src/sys/fs/msdosfs



The following reply was made to PR kern/46282; it has been noted by GNATS.

From: "Juergen Hannken-Illjes" <hannken%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/46282 CVS commit: src/sys/fs/msdosfs
Date: Mon, 9 Apr 2012 11:10:07 +0000

 Module Name:   src
 Committed By:  hannken
 Date:          Mon Apr  9 11:10:07 UTC 2012
 
 Modified Files:
        src/sys/fs/msdosfs: msdosfs_fat.c
 
 Log Message:
 pcbmap(): We cannot use bread() here as for the pagedaemon getblk()
           may fail leading to a panic in bread().
           Replace bread() with getblk() / VOP_STRATEGY() and return
           an error if getblk() fails.
 
 Fixes PR#46282: 6.0_BETA crash: msdosfs_bmap -> pcbmap -> bread -> bio_doread
 
 This is an interim solution for easy pullup.  The final solution
 is be to change bread() to not return a buffer on error.  As
 we have to change all callers of bread() this will not qualify
 for a pullup.
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.19 -r1.20 src/sys/fs/msdosfs/msdosfs_fat.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index