diff options
author | davide <davide@FreeBSD.org> | 2012-10-31 03:34:07 +0000 |
---|---|---|
committer | davide <davide@FreeBSD.org> | 2012-10-31 03:34:07 +0000 |
commit | 793cdde76e978e65ad5e743e35dbe3a92b381e90 (patch) | |
tree | 0c92e4f2f9c4d973dcd0bbeb244ef685f1342ee1 /sys/fs/smbfs/smbfs_subr.h | |
parent | a7cdc19e4b4ea767e597c3017133326b0697bd0d (diff) | |
download | FreeBSD-src-793cdde76e978e65ad5e743e35dbe3a92b381e90.zip FreeBSD-src-793cdde76e978e65ad5e743e35dbe3a92b381e90.tar.gz |
Fix panic due to page faults while in kernel mode, under conditions of
VM pressure. The reason is that in some codepaths pointers to stack
variables were passed from one thread to another.
In collaboration with: pho
Reported by: pho's stress2 suite
Sponsored by: iXsystems inc.
Diffstat (limited to 'sys/fs/smbfs/smbfs_subr.h')
-rw-r--r-- | sys/fs/smbfs/smbfs_subr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/fs/smbfs/smbfs_subr.h b/sys/fs/smbfs/smbfs_subr.h index 1511290..0900f09 100644 --- a/sys/fs/smbfs/smbfs_subr.h +++ b/sys/fs/smbfs/smbfs_subr.h @@ -30,6 +30,7 @@ #ifdef MALLOC_DECLARE MALLOC_DECLARE(M_SMBFSDATA); +MALLOC_DECLARE(M_SMBFSCRED); #endif #define SMBFSERR(format, args...) printf("%s: "format, __func__ ,## args) @@ -178,4 +179,6 @@ void smb_time_unix2dos(struct timespec *tsp, int tzoff, u_int16_t *ddp, u_int16_t *dtp, u_int8_t *dhp); void smb_dos2unixtime (u_int dd, u_int dt, u_int dh, int tzoff, struct timespec *tsp); +void *smbfs_malloc_scred(void); +void smbfs_free_scred(void *); #endif /* !_FS_SMBFS_SMBFS_SUBR_H_ */ |