mirror_zfs/module/spl
Brian Behlendorf 82a358d9c0 Update vn_set_pwd() to allow user|kernal address for filename
During module init spl_setup()->The vn_set_pwd("/") was failing
with -EFAULT because user_path_dir() and __user_walk() both
expect 'filename' to be a user space address and it's not in
this case.  To handle this the data segment size is increased
to to ensure strncpy_from_user() does not fail with -EFAULT.

Additionally, I've added a printk() warning to catch this and
log it to the console if it ever reoccurs.  I thought everything
was working properly here because there consequences of this
failing are subtle and usually non-critical.
2010-04-22 12:53:58 -07:00
..
.gitignore sun-misc-gitignore 2010-01-08 09:37:54 -08:00
Makefile.in Add basic credential support and splat tests. 2009-07-27 17:18:59 -07:00
spl-atomic.c Use Linux atomic primitives by default. 2009-10-30 10:55:25 -07:00
spl-condvar.c Rename modules to module and update references 2009-01-15 10:44:54 -08:00
spl-cred.c Remove get/put_task_struct as they are not available for SLES11 2009-07-28 15:04:21 -07:00
spl-debug.c Rebase cmn_err on vcmn_err and don't warn about missing \n 2009-10-27 16:13:35 -07:00
spl-err.c sun-fix-whitespace 2010-01-08 09:37:54 -08:00
spl-generic.c Update vn_set_pwd() to allow user|kernal address for filename 2010-04-22 12:53:58 -07:00
spl-kmem.c Reduce max kmem based slab size 2010-03-18 13:39:51 -07:00
spl-kobj.c Rename modules to module and update references 2009-01-15 10:44:54 -08:00
spl-kstat.c Autoconf --enable-debug-* cleanup 2009-10-30 13:58:51 -07:00
spl-module.c Positive Solaris ioctl return codes need to be negated for use by libc 2009-07-23 16:14:52 -07:00
spl-mutex.c Reimplement mutexs for Linux lock profiling/analysis 2009-09-25 14:47:01 -07:00
spl-proc.c Linux 2.6.32 compat, proc_handler() API change 2010-03-04 12:14:56 -08:00
spl-rwlock.c Update rwlocks to track owner to ensure correct semantics 2009-09-25 14:14:35 -07:00
spl-taskq.c Optimize lowest outstanding taskqid calculation in taskq_lowest_id() 2010-01-04 15:52:26 -08:00
spl-thread.c Rename modules to module and update references 2009-01-15 10:44:54 -08:00
spl-time.c Prevent integer overflow after ~164 days of uptime. 2009-07-14 15:23:25 -07:00
spl-vnode.c Update vn_set_pwd() to allow user|kernal address for filename 2010-04-22 12:53:58 -07:00
spl-xdr.c Minor bug fix in XDR code introduced in last minute change before landing. 2009-03-11 16:27:35 -07:00