Re: Build infrastructure for storing NTLM creds in kernel keyring

2010-06-25 Thread Jeff Layton
in, then it will be able to happen any time a new user enters the mount. The code needs to be written with that in mind. Let me know if you have other questions... Cheers, -- Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message

Re: [RFC][PATCH 06/10] cifs: define inode-level cache object and register them

2010-06-25 Thread Jeff Layton
On Fri, 25 Jun 2010 22:46:38 +0100 David Howells dhowe...@redhat.com wrote: Jeff Layton jlay...@samba.org wrote: Looks like it mostly uses the ctime. IMO, the mtime would be a better choice since it changes less frequently, but I don't guess that it matters very much. I'd've thought

Re: [PATCH 2/3] cifs: use CreationTime like an i_generation field

2010-06-28 Thread Jeff Layton
On Mon, 28 Jun 2010 18:56:09 +0530 Suresh Jayaraman sjayara...@suse.de wrote: On 06/28/2010 04:40 PM, Jeff Layton wrote: Reduce false inode collisions by using the CreationTime like an i_generation field. This way, even if the server ends up reusing a uniqueid after a delete/create cycle

Re: Adjustable timeout

2010-07-13 Thread Jeff Layton
On Tue, 13 Jul 2010 08:21:51 -0400 Jeff Layton jlay...@samba.org wrote: On Tue, 13 Jul 2010 12:48:10 +0200 Ladislav Michl ladislav.mi...@seznam.cz wrote: Hello, I'm using network storage for voicemail recording, which works pretty well on responsive servers. However in case of server

Re: Adjustable timeout

2010-07-13 Thread Jeff Layton
sort of keepalive. A normal TCP keepalive might be ok, or we could consider doing SMB pings for this. That should make sure that we notice state changes in a timely fashion and should also help prevent disconnection on low-traffic sockets. Thoughts? -- Jeff Layton jlay...@samba.org

Re: [PATCH 6/6] cifs: add separate cred_uid field to sesInfo

2010-07-18 Thread Jeff Layton
On Thu, 15 Jul 2010 17:19:36 -0400 Jeff Layton jlay...@redhat.com wrote: On Thu, 15 Jul 2010 15:24:46 -0500 Steve French smfre...@gmail.com wrote: I merged the first 5 of this series, but wanted to understand what behavior this changes first (it is probably ok). With current userspace

Re: [PATCH 10/15] fs: cifs: check kmalloc() result

2010-07-19 Thread Jeff Layton
; + break; + } + for (i = 0; (i num_to_fill) (rc == 0); i++) { if (current_entry == NULL) { /* evaluate whether this case is an error */ Looks good to me too. Acked-by: Jeff Layton jlay...@redhat.com

Re: panic at umount in fscache code

2010-07-23 Thread Jeff Layton
On Fri, 23 Jul 2010 20:56:05 +0530 Suresh Jayaraman sjayara...@suse.de wrote: On 07/23/2010 07:22 PM, Jeff Layton wrote: I built a kernel based on Steve's tree, enabled the fscache option and got the following panic at umount. I didn't mount with -o fsc or anything. I have some other

Re: [PATCH 6/6] cifs: add separate cred_uid field to sesInfo

2010-07-23 Thread Jeff Layton
you in a week or so on this. Any more progress on merging these patches? -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 6/6] cifs: add separate cred_uid field to sesInfo

2010-07-23 Thread Jeff Layton
On Sun, 18 Jul 2010 07:18:19 -0400 Jeff Layton jlay...@redhat.com wrote: On Thu, 15 Jul 2010 17:19:36 -0400 Jeff Layton jlay...@redhat.com wrote: On Thu, 15 Jul 2010 15:24:46 -0500 Steve French smfre...@gmail.com wrote: I merged the first 5 of this series, but wanted to understand

[PATCH 2/2] cifs: ignore the mand, nomand and _netdev mount options

2010-07-26 Thread Jeff Layton
These are all handled by the userspace mount programs, but older versions of mount.cifs also handed them off to the kernel. Ignore them. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/connect.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/fs/cifs

[PATCH] mount.cifs: ignore the _netdev mount option

2010-07-26 Thread Jeff Layton
-by: Jeff Layton jlay...@samba.org --- mount.cifs.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/mount.cifs.c b/mount.cifs.c index 1ca9507..89b728c 100644 --- a/mount.cifs.c +++ b/mount.cifs.c @@ -133,6 +133,7 @@ * Values for parsing command line options. */ #define

[PATCH] cifs.upcall: require a uid= or creduid= parm

2010-07-26 Thread Jeff Layton
Even though all known kernels send the uid= parm to userspace, cifs.upcall doesn't technically require it. It should though. If one wasn't sent for some reason, then the setuid wouldn't occur. Error out if there is no uid= or creduid= parm. Signed-off-by: Jeff Layton jlay...@samba.org

[PATCH] mount.cifs: handle the mand and nomand mount options

2010-07-26 Thread Jeff Layton
These are filesystem-independent mount options that get passed to mount.cifs too. Handle them appropriately by enabling and disabling MS_MANDLOCK and not handing them off to the kernel. Signed-off-by: Jeff Layton jlay...@samba.org --- mount.cifs.c | 12 1 files changed, 12

[PATCH] cifs: fsc should not default to on

2010-07-26 Thread Jeff Layton
I'm not sure why this was merged with this flag hardcoded on, but it seems quite dangerous. Turn it off. Also, mount.cifs hands unrecognized options off to the kernel so there should be no need for changes there in order to support this. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs

[PATCH] mount.cifs: handle the mand and nomand mount options (try #2)

2010-07-27 Thread Jeff Layton
by default. This also matches up better with the way that mand is set in the mtab. Signed-off-by: Jeff Layton jlay...@samba.org --- mount.cifs.c | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/mount.cifs.c b/mount.cifs.c index 27d267c..5a05caa 100644

Re: [PATCH] cifs: document 'fsc' mount option

2010-07-27 Thread Jeff Layton
for the mount. Note that this parameter must be specified before the -o. For example:/paraparamount -t cifs //server/share /mnt --verbose -o user=username/para/listitem -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body

Re: [PATCH] cifs: document 'fsc' mount option

2010-07-27 Thread Jeff Layton
On Tue, 27 Jul 2010 10:13:14 -0500 Steve French smfre...@gmail.com wrote: Yes - I agree with Jeff, need to add the mention of the config option and perhaps how to tell if fsc feature is available in kernel. How would one tell? :) On Tue, Jul 27, 2010 at 9:33 AM, Jeff Layton jlay

Re: [PATCH] cifs: document 'fsc' mount option

2010-07-27 Thread Jeff Layton
a /proc/fs/cifs/features file that would display this info? For instance: $ cat /proc/fs/cifs/features dfs spnego fsc ...or something like that? -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord

Re: [PATCH] cifs: document 'fsc' mount option

2010-07-27 Thread Jeff Layton
-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html merged -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More

Re: [PATCH] cifs.upcall: require a uid= or creduid= parm

2010-07-27 Thread Jeff Layton
On Mon, 26 Jul 2010 13:05:28 -0400 Jeff Layton jlay...@samba.org wrote: Even though all known kernels send the uid= parm to userspace, cifs.upcall doesn't technically require it. It should though. If one wasn't sent for some reason, then the setuid wouldn't occur. Error out if there is no uid

Re: [PATCH] cifs: add 'fsc' mount option to the usage help text

2010-07-27 Thread Jeff Layton
at http://vger.kernel.org/majordomo-info.html merged -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] mount.cifs: handle the mand and nomand mount options

2010-07-27 Thread Jeff Layton
On Mon, 26 Jul 2010 13:05:29 -0400 Jeff Layton jlay...@samba.org wrote: These are filesystem-independent mount options that get passed to mount.cifs too. Handle them appropriately by enabling and disabling MS_MANDLOCK and not handing them off to the kernel. Signed-off-by: Jeff Layton jlay

Re: [PATCH] mount.cifs: document 'fsc' mount option

2010-07-27 Thread Jeff Layton
the original patch, so I've merged this one as a delta on top of that. Thanks, -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

[PATCH 0/4] cifs-utils: add -Wextra to CFLAGS and fix up warnings

2010-07-27 Thread Jeff Layton
This patchset adds the -Wextra flag to CFLAGS and fixes up some of the warnings that that generates. There are still some others that I'm not sure how best to fix yet. Jeff Layton (4): automake: add -Wextra to CFLAGS mtab: add __attribute__((unused)) to unused variables cifs.upcall: swap

[PATCH 1/4] automake: add -Wextra to CFLAGS

2010-07-27 Thread Jeff Layton
...for extra warning goodness. Signed-off-by: Jeff Layton jlay...@samba.org --- Makefile.am |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile.am b/Makefile.am index 1cf7d23..c53c9ec 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -AM_CFLAGS = -Wall

[PATCH 2/4] mtab: add __attribute__((unused)) to unused variables

2010-07-27 Thread Jeff Layton
...to silence -Wextra warnings. Signed-off-by: Jeff Layton jlay...@samba.org --- mtab.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mtab.c b/mtab.c index 70789bc..de1aabd 100644 --- a/mtab.c +++ b/mtab.c @@ -51,12 +51,12 @@ static int lockfile_fd = -1; static int

[PATCH 4/4] data_blob: change for loop indices to a unsigned int

2010-07-27 Thread Jeff Layton
integer expressions Signed-off-by: Jeff Layton jlay...@samba.org --- data_blob.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data_blob.c b/data_blob.c index 2384661..16c78ce 100644 --- a/data_blob.c +++ b/data_blob.c @@ -141,7 +141,7 @@ print the data_blob as hex string

[PATCH 3/4] cifs.upcall: swap c99 initializers for memset calls

2010-07-27 Thread Jeff Layton
: (near initialization for ‘arg.ver’) ...this is probably just gcc being balky, but we can silence the warning. It may also be a micro optimization in an error condition if we delay zeroing out the struct until it's needed. Signed-off-by: Jeff Layton jlay...@samba.org --- cifs.upcall.c |8

Re: What are the uid=0 and gid=0 doing?

2010-07-29 Thread Jeff Layton
are the uid and the gid not set to this value? The real uid/gid of the user doing the mounting is 0. You can of course override those values with whatever you wish if you're root. -- Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body

Re: [RFC][PATCH 1/2] cifs: show enabled features in /proc

2010-07-30 Thread Jeff Layton
line near the beginning of /proc/fs/cifs/DebugData. Maybe: Features: dfs spnego fsc People often provide that info already when reporting bugs. We wouldn't need to ask for anything new that way. Thoughts? -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH 1/2] cifs: show features compiled in as part of DebugData

2010-07-30 Thread Jeff Layton
a definitive way to tell what features are currently enabled in the running kernel. This could also help debugging. Signed-off-by: Suresh Jayaraman sjayara...@suse.de Cc: Jeff Layton jlay...@redhat.com --- fs/cifs/cifs_debug.c | 26 ++ 1 files changed, 26 insertions

Re: Archive

2010-07-30 Thread Jeff Layton
over, I sent mail to marc.info too but they never replied or picked up the list. I just resent them a mail, so hopefully they'll fix their archive soon. -- Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord

Re: [PATCH 02/18] xstat: Add a pair of system calls to make extended file stats available [ver #6]

2010-08-01 Thread Jeff Layton
need to have the same data accessible by multiple users using their own credentials then you need multiple mounts. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PATCH 02/18] xstat: Add a pair of system calls to make extended file stats available [ver #6]

2010-08-01 Thread Jeff Layton
to that as well. Ditto for the other fields under discussion (i_generation and the like). -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

Re: [PATCH 02/18] xstat: Add a pair of system calls to make extended file stats available [ver #6]

2010-08-02 Thread Jeff Layton
here? We also have to consider that this may eventually be settable by via networked filesystem interfaces. If the client and server don't have synchronized clocks you may end up with the client getting an error back in some cases if you don't allow it. -- Jeff Layton jlay...@redhat.com

Re: Problems with CVS on CIFS since kernel 2.6.30

2010-08-02 Thread Jeff Layton
. -- Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: 2.6.36 merge plans

2010-08-02 Thread Jeff Layton
On Fri, 23 Jul 2010 17:19:29 -0500 Steve French smfre...@gmail.com wrote: On Thu, Jul 1, 2010 at 6:52 PM, Jeff Layton jlay...@redhat.com wrote: On Thu, 1 Jul 2010 16:55:58 -0500 Steve French smfre...@gmail.com wrote: For   cifs: use CreationTime like an i_generation field Seems like

Re: Problems with CVS on CIFS since kernel 2.6.30

2010-08-03 Thread Jeff Layton
. What's going wrong with it? Once you understand that, then we can look at what's happening in the kernel. -- Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: Build infrastructure for storing NTLM creds in kernel keyring

2010-08-04 Thread Jeff Layton
on key\n); ...would it be safer to attempt to remove the key if we can't set perms on it? That's all I've got time to review at the moment. Have you made any progress with the kernel piece for this? Nice work so far! -- Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send

[PATCH 2/3] cifs: consolidate error handling in several functions

2010-08-05 Thread Jeff Layton
link container. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/dir.c | 14 +++--- fs/cifs/file.c |3 +-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index f8d02f0..90d1f53 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c

[PATCH 0/3] cifs: error handling cleanups

2010-08-05 Thread Jeff Layton
: http://git.kernel.org/?p=linux/kernel/git/jlayton/linux.git;a=shortlog;h=refs/heads/cifs-2.6.36 Jeff Layton (3): cifs: clean up error handling in cifs_mknod cifs: consolidate error handling in several functions cifs: eliminate redundant xdev check in cifs_rename fs/cifs/dir.c | 167

[PATCH 3/3] cifs: eliminate redundant xdev check in cifs_rename

2010-08-05 Thread Jeff Layton
The VFS always checks that the source and target of a rename are on the same vfsmount, and hence have the same superblock. So, this check is redundant. Remove it and simplify the error handling. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/inode.c | 30

[PATCH 1/3] cifs: clean up error handling in cifs_mknod

2010-08-05 Thread Jeff Layton
Get rid of some nesting and add a label we can goto on error. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/dir.c | 153 - 1 files changed, 76 insertions(+), 77 deletions(-) diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index

Re: Build infrastructure for storing NTLM creds in kernel keyring

2010-08-05 Thread Jeff Layton
on a single character. That memcmp is going to walk off the end of add. Depending on how the memory is allocated, it could segfault. Patched. I pulled down your latest code and it doesn't appear to be patched. Am I missing something? -- Jeff Layton jlay...@samba.org -- To unsubscribe from

Re: Problems with writing to CIFS share on RHEL5U2

2010-08-17 Thread Jeff Layton
understanding what's happening on the wire. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] cifs: fix NULL pointer dereference in cifs_find_smb_ses

2010-08-18 Thread Jeff Layton
cifs_find_smb_ses assumes that the vol-password field is a valid pointer, but that's only the case if a password was passed in via the options string. It's possible that one won't be if there is no mount helper on the box. Reported-by: diabel gacek-2...@wp.pl Signed-off-by: Jeff Layton jlay

Re: [PATCH 1/2] cifs: correction of unicode header files

2010-08-19 Thread Jeff Layton
On Fri, 20 Aug 2010 00:27:12 +0400 Igor Druzhinin jaxbr...@gmail.com wrote: This patch corrects a problem of compilation errors at removal of UNIUPR_NOLOWER definition and adds include guards to cifs_unicode.h. Signed-off-by: Igor Druzhinin jaxbr...@gmail.com Acked-by: Jeff Layton jlay

Re: [PATCH] cifs-utils: infrastructure for stashing passwords in keyring

2010-08-19 Thread Jeff Layton
CIFS VFS (virtual filesystem) client + * Copyright (C) 2010 Jeff Layton (jlay...@samba.org) + * Copyright (C) 2010 Igor Druzhinin (jaxbr...@gmail.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License

Re: [PATCH 1/2] cifs-utils: moving resolve_host into separate file

2010-08-20 Thread Jeff Layton
start considering building it by default (i.e. make the default enable instead of disable). We also need to have a hard look at how to sync this work up with the multiuser mount work. That's not something we need to worry about until the multiuser mount code for krb5 goes in. Cheers, -- Jeff Layton

[PATCH 00/15] cifs: multiuser mount overhaul (try #3)

2010-08-20 Thread Jeff Layton
if there are no objections. There will be merge conflicts between this and Metze's mfsymlink work. We'll just need to determine which one goes in first to know who needs to rebase to what. Jeff Layton (15): cifs: eliminate redundant xdev check in cifs_rename cifs: add tcon field to cifsFileInfo

[PATCH 11/15] cifs: have find_readable/writable_file filter by fsuid

2010-08-20 Thread Jeff Layton
When we implement multiuser mounts, we'll need to filter filehandles by fsuid. Add a flag for multiuser mounts and code to filter by fsuid when it's set. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/cifs_fs_sb.h |3 ++- fs/cifs/cifsacl.c|4 ++-- fs/cifs/cifsproto.h

[PATCH 02/15] cifs: add tcon field to cifsFileInfo struct

2010-08-20 Thread Jeff Layton
Eventually, we'll have more than one tcon per superblock. At that point, we'll need to know which one is associated with a particular fid. For now, this is just set from the cifs_sb-tcon pointer, but eventually the caller of cifs_new_fileinfo will pass a tcon pointer in. Signed-off-by: Jeff

[PATCH 10/15] cifs: have cifsFileInfo hold a reference to a tlink rather than tcon pointer

2010-08-20 Thread Jeff Layton
cifsFileInfo needs a pointer to a tcon, but it doesn't currently hold a reference to it. Change it to keep a pointer to a tcon_link instead and hold a reference to it. That will keep the tcon from being freed until the file is closed. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs

[PATCH 07/15] cifs: add cifs_sb_master_tcon and convert some callers to use it

2010-08-20 Thread Jeff Layton
and go ahead and switch the appropriate places to use it. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/cifsfs.c |6 +++--- fs/cifs/cifsglob.h |7 +++ fs/cifs/connect.c |4 ++-- fs/cifs/dir.c | 10 +- fs/cifs/fscache.c | 12 ++-- fs/cifs

[PATCH 04/15] cifs: fix handling of signing with writepages

2010-08-20 Thread Jeff Layton
anyway, so maybe a NULL open_file here ought to be a BUG()? Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/file.c | 82 +++ 1 files changed, 40 insertions(+), 42 deletions(-) diff --git a/fs/cifs/file.c b/fs/cifs/file.c index

[PATCH 06/15] cifs: temporarily rename cifs_sb-tcon to ptcon to catch stragglers

2010-08-20 Thread Jeff Layton
Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/cifs_fs_sb.h |2 +- fs/cifs/cifsglob.h |2 +- fs/cifs/connect.c|4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/cifs/cifs_fs_sb.h b/fs/cifs/cifs_fs_sb.h index 9e77145..6302a06 100644 --- a/fs

[PATCH 15/15] cifs: add multiuser mount option

2010-08-20 Thread Jeff Layton
to allow per-user credential stashing in some form. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/connect.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index da861c1..3ea93f9 100644 --- a/fs/cifs/connect.c

Re: monotonic time for mount.cifs timeouts

2010-08-24 Thread Jeff Layton
): CLOCK_MONOTONIC Clock that cannot be set and represents monotonic time since some unspecified starting point. ...so by preferring CLOCK_MONOTONIC, the mtab locking code isn't affected by clock jumps or skew. Bjorn, is this correct? -- Jeff Layton jlay...@samba.org

Re: monotonic time for mount.cifs timeouts

2010-08-24 Thread Jeff Layton
On Tue, 24 Aug 2010 14:22:48 -0400 Jeff Layton jlay...@samba.org wrote: On Tue, 24 Aug 2010 13:07:55 -0500 Steve French smfre...@gmail.com wrote: Any pointers to background on gettimeofday vs clock_gettime(CLOCK_MONOTONIC) and why the latter is better? IIUC, the reason

Re: monotonic time for mount.cifs timeouts

2010-08-24 Thread Jeff Layton
On Tue, 24 Aug 2010 22:08:09 +0200 Björn JACKE b...@sernet.de wrote: On 2010-08-24 at 14:34 -0400 Jeff Layton sent off: Any pointers to background on gettimeofday vs clock_gettime(CLOCK_MONOTONIC) and why the latter is better? IIUC, the reason for this is that gettimeofday

Re: [PATCH 01/15] cifs: eliminate redundant xdev check in cifs_rename

2010-08-25 Thread Jeff Layton
On Wed, 25 Aug 2010 11:34:07 -0500 Steve French smfre...@gmail.com wrote: On Fri, Aug 20, 2010 at 2:31 PM, Jeff Layton jlay...@redhat.com wrote: The VFS always checks that the source and target of a rename are on the same vfsmount, and hence have the same superblock. So, this check

Re: Cannot allocate memory error on mount

2010-08-26 Thread Jeff Layton
allocation error when the inode is NULL which is not the case if CIFSSMBQPathInfo() fails and returns an error. Fix this by propagating the actual error code back. Cc: Jeff Layton jlay...@redhat.com Signed-off-by: Suresh Jayaraman sjayara...@suse.de --- fs/cifs/inode.c |2 +- 1 files

Re: [cifs bindaddr v2] cifs: Allow binding to local IP address.

2010-08-26 Thread Jeff Layton
to be modified to make sure that the address families between the two match. What happens if someone specifies and IPv4 bindaddr, and the host in the UNC resolves to an IPv6 address? -- Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body

Re: [cifs bindaddr v2] cifs: Allow binding to local IP address.

2010-08-27 Thread Jeff Layton
:54 AM, Jeff Layton wrote: Also, I think bindaddr might not be the best name for the option. How about sourceaddr or srcaddr? Sounds reasonable. It doesn't matter to me. Please tell me which one you want me to use and I'll work on re-spinning this patch with ipv6 support

[PATCH] cifs: revert needless change in decode_negTokenInit

2010-08-30 Thread Jeff Layton
, there's no reason to keep comparing it. Cc: Shirish Pargaonkar shirishpargaon...@gmail.com Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/asn1.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/cifs/asn1.c b/fs/cifs/asn1.c index 21f0fbd..cfd1ce3 100644

cifs: panic in crypto_shash_init

2010-08-30 Thread Jeff Layton
[8112d4d1] deactivate_super+0x3a/0x3e [81142050] mntput_no_expire+0xa7/0xd3 [81142b91] sys_umount+0x2cf/0x301 [81133787] ? path_put+0x22/0x27 [81009cb2] system_call_fastpath+0x16/0x1b -- Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line

Re: [cifs] cifs: Allow binding to local IP address.

2010-08-31 Thread Jeff Layton
On Tue, 31 Aug 2010 09:44:39 -0700 Ben Greear gree...@candelatech.com wrote: On 08/31/2010 07:06 AM, Jeff Layton wrote: On Mon, 30 Aug 2010 22:40:22 -0700 Ben Greeargree...@candelatech.com wrote: When using multi-homed machines, it's nice to be able to specify the local IP to use

Re: password visible in 'mount' output?

2010-08-31 Thread Jeff Layton
the password in /etc/mtab though. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [cifs bindaddr v3] cifs: Allow binding to local IP address.

2010-09-01 Thread Jeff Layton
fail the ipv[4,6]_connect if the socket can't be bound? /* user overrode default port */ if (server-addr.sockAddr6.sin6_port) { rc = socket-ops-connect(socket, -- Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line unsubscribe linux-cifs

[PATCH 1/6] Revert [CIFS] CIFS requires CRYPTO, not just CRYPTO_MD5 selected in Kconfig

2010-09-01 Thread Jeff Layton
This reverts commit 8ef1b8351d2dce758f24c8e0321f62cc36d90818. --- fs/cifs/Kconfig |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/fs/cifs/Kconfig b/fs/cifs/Kconfig index 0ed2139..0da1deb 100644 --- a/fs/cifs/Kconfig +++ b/fs/cifs/Kconfig @@ -2,7 +2,6 @@ config CIFS

[PATCH 5/6] Revert missing changes during ntlmv2/ntlmssp auth and sign

2010-09-01 Thread Jeff Layton
This reverts commit 3ec6bbcdb4e85403f2c5958876ca9492afdf4031. --- fs/cifs/cifsencrypt.c |2 -- fs/cifs/sess.c| 13 + 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/fs/cifs/cifsencrypt.c b/fs/cifs/cifsencrypt.c index eef78c2..051d000 100644 ---

[PATCH 4/6] Revert Eliminate sparse warning - bad constant expression

2010-09-01 Thread Jeff Layton
This reverts commit 2d20ca835867d93ead6ce61780d883a4b128106d. --- fs/cifs/cifsencrypt.c | 193 ++--- fs/cifs/cifsglob.h|7 -- 2 files changed, 72 insertions(+), 128 deletions(-) diff --git a/fs/cifs/cifsencrypt.c b/fs/cifs/cifsencrypt.c index

Re: [cifs srcaddr-v4] cifs: Allow binding to local IP address.

2010-09-02 Thread Jeff Layton
On Wed, 01 Sep 2010 22:07:29 -0700 Ben Greear gree...@candelatech.com wrote: On 09/01/2010 05:38 PM, Jeff Layton wrote: No warning, it always returns something since the default case catches all others. If I did put the return at the end, then the compiler wouldn't catch a case where I

[PATCH 0/3] cifs: stop cifsd from exiting prematurely

2010-09-03 Thread Jeff Layton
. With it, cifsd should only exit when the last reference to it is put. Exiting from the loop early is a serious error that's likely to cause an oops. I think we ought to consider this patchset for 2.6.36 and maybe for stable. Thoughts? Jeff Layton (3): cifs: prevent cifsd from exiting

[PATCH 2/3] cifs: eliminate some more premature cifsd exits

2010-09-03 Thread Jeff Layton
CIFSSMBNegotiate return -EAGAIN, and then the caller can retry the whole thing on a newly reconnected socket. If that fails again in the same way, the caller of cifs_get_smb_ses should tear down the TCP_Server_Info struct. Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/connect.c | 41

Re: 2.6.36-rc3 NULL pointer dereference crypto_destroy_tfm+0x50/0x70

2010-09-05 Thread Jeff Layton
until they can be reviewed. -- Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] remove unused function CalcNTLMv2_partial_mac_key

2010-09-07 Thread Jeff Layton
*password, const char *cryptkey, bool encrypt, char *lnm_session_key) What about the declaration in cifsproto.h? Other than that...strong ACK here. We should get rid of as much unused bloat as possible. -- Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send

Re: [PATCH] do not assume kerberos as default auth mech

2010-09-07 Thread Jeff Layton
= ~CAP_EXTENDED_SECURITY; Reviewed-by: Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] define, declare, and use crypto sync hash structures

2010-09-07 Thread Jeff Layton
; } /* thread spawned, put it on the list */ @@ -1644,6 +1651,9 @@ cifs_get_tcp_session(struct smb_vol *volume_info) return tcp_ses; +out_err2: + cifs_crypto_shash_release(tcp_ses); + out_err: if (tcp_ses) { if (!IS_ERR(tcp_ses-hostname)) -- Jeff

Re: [PATCH] extract or create av pair blob and free it - during first session setup

2010-09-07 Thread Jeff Layton
going to happen if find_domain_name fails and the session setup call proceeds? memcpy(bcc_ptr, (char *)v2_sess_key, sizeof(struct ntlmv2_resp)); bcc_ptr += sizeof(struct ntlmv2_resp); -- Jeff Layton jlay...@samba.org -- To unsubscribe from

Re: [PATCH] remove unused function CalcNTLMv2_partial_mac_key

2010-09-07 Thread Jeff Layton
On Tue, 7 Sep 2010 07:12:48 -0500 Shirish Pargaonkar shirishpargaon...@gmail.com wrote: This gets removed in one of the patches. Why do it there and not here? What's the point of a function prototype in a header with no function to back it up? On Tue, Sep 7, 2010 at 6:17 AM, Jeff Layton

Re: [PATCH] ntlmv2 within ntlmssp authenticate

2010-09-07 Thread Jeff Layton
, midQ-sequence_number+1); if (rc) { cERROR(1, Unexpected SMB signature); -- Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PATCH] generate secondary session key and ciphertext and send it if signing enabled

2010-09-07 Thread Jeff Layton
limited knowledge of the kernel crypto routines. -- Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] extract or create av pair blob and free it - during first session setup

2010-09-07 Thread Jeff Layton
On Tue, 7 Sep 2010 07:52:09 -0500 Shirish Pargaonkar shirishpargaon...@gmail.com wrote: On Tue, Sep 7, 2010 at 6:56 AM, Jeff Layton jlay...@samba.org wrote: On Mon,  6 Sep 2010 22:34:57 -0500 shirishpargaon...@gmail.com wrote: From: Shirish Pargaonkar shirishpargaon...@gmail.com

Re: CIFS data coherency problem

2010-09-08 Thread Jeff Layton
in sending the patches however. Doing so gives us a starting point for discussing the change. If you're not sure about them, just declare them an RFC. -- Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord

Re: CIFS data coherency problem

2010-09-08 Thread Jeff Layton
On Wed, 8 Sep 2010 06:32:24 -0400 Jeff Layton jlay...@samba.org wrote: On Wed, 8 Sep 2010 10:49:13 +0400 Pavel Shilovsky piastr...@gmail.com wrote: Hello! I faced with a problem of the wrong cifs cache behavior while adapting CIFS VFS client for working with the application which

Re: [PATCH 7/8 Rev2] ntlmv2/ntlmssp generate secondary session key and ciphertext and send it if signing enabled

2010-09-08 Thread Jeff Layton
{ + sec_blob-SessionKey.BufferOffset = cpu_to_le32(tmp - pbuffer); + sec_blob-SessionKey.Length = 0; + sec_blob-SessionKey.MaximumLength = 0; + } setup_ntlmv2_ret: return tmp - pbuffer; -- Jeff Layton jlay...@poochiereds.net -- To unsubscribe

Re: [PATCH 2/8] ntlmv2/ntlmssp remove-unused-function CalcNTLMv2_partial_mac_key

2010-09-08 Thread Jeff Layton
*); For the record, I'd be ok with this patch going into 2.6.36. Reviewed-by: Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 4/8] ntlmv2/ntlmssp define, declare, and use crypto hash functions

2010-09-08 Thread Jeff Layton
. Acked-by: Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: CIFS data coherency problem

2010-09-12 Thread Jeff Layton
On Sun, 12 Sep 2010 18:55:05 +0400 Pavel Shilovsky piastr...@gmail.com wrote: 2010/9/12 Jeff Layton jlay...@samba.org: We can write a data in write_end call all the time when we don't have an oplock for writing. If we get an error we simply returned it in from write_end and an application

Re: CIFS data coherency problem

2010-09-12 Thread Jeff Layton
On Sun, 12 Sep 2010 20:16:21 +0400 Pavel Shilovsky piastr...@gmail.com wrote: 2010/9/12 Jeff Layton jlay...@samba.org: This should probably be a set of patches that outlines each change. There are 3, AFAICT: Ok, no problem with this, I will post it soon. 1) it bypasses the cache

Re: [PATCH -v3 3/4 cifs] NTLMv2/NTLMSSP define crypto hash functions and create and send keys needed for key exchange

2010-09-14 Thread Jeff Layton
; } - iov[1].iov_base = pSMB-req.SecurityBlob[0]; /* unicode strings must be word aligned */ if ((iov[0].iov_len + iov[1].iov_len) % 2) { *bcc_ptr = 0; -- Jeff Layton jlay...@redhat.com -- To unsubscribe

Re: [PATCH] cifs: fix potential double put of TCP session reference

2010-09-14 Thread Jeff Layton
On Tue, 14 Sep 2010 15:18:32 +0530 Suresh Jayaraman sjayara...@suse.de wrote: On 09/13/2010 11:32 PM, Jeff Layton wrote: cifs_get_smb_ses must be called on a server pointer on which it holds an active reference. It first does a search for an existing SMB session. If it finds one, it'll put

Re: [PATCH -v3 3/4 cifs] NTLMv2/NTLMSSP define crypto hash functions and create and send keys needed for key exchange

2010-09-14 Thread Jeff Layton
though, that's really messy and unclear. I think it would be best to free it in this function before you exit that block. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo

Re: [PATCH] cifs: fix potential double put of TCP session reference

2010-09-14 Thread Jeff Layton
On Tue, 14 Sep 2010 10:19:56 -0500 Steve French smfre...@gmail.com wrote: On Tue, Sep 14, 2010 at 6:39 AM, Jeff Layton jlay...@redhat.com wrote: On Tue, 14 Sep 2010 15:18:32 +0530 Suresh Jayaraman sjayara...@suse.de wrote: On 09/13/2010 11:32 PM, Jeff Layton wrote: cifs_get_smb_ses

[PATCH] cifs: fix potential double put of TCP session reference

2010-09-14 Thread Jeff Layton
returning an error. Cc: sta...@kernel.org Reviewed-by: Suresh Jayaraman sjayara...@suse.de Signed-off-by: Jeff Layton jlay...@redhat.com --- fs/cifs/connect.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 67dad54..88c84a3

Re: [PATCH -v3 3/4 cifs] NTLMv2/NTLMSSP define crypto hash functions and create and send keys needed for key exchange

2010-09-15 Thread Jeff Layton
get automatically freed. That does mean however that you can't kfree it at the end of that block. One way to fix it would be to move the ntlmsspblob declaration to the top of the function and kfree it at function exit. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list: send the line

Re: [PATCH -v5 2/4] cifs NTLMv2/NTLMSSP ntlmv2 within ntlmssp autentication code

2010-09-15 Thread Jeff Layton
: key_put(spnego_key); } kfree(str_area); + kfree(ntlmsspblob); if (resp_buf_type == CIFS_SMALL_BUFFER) { cFYI(1, ssetup freeing small buf %p, iov[0].iov_base); cifs_small_buf_release(iov[0].iov_base); -- Jeff Layton jlay...@samba.org

Re: [PATCH -v5 2/4] cifs NTLMv2/NTLMSSP ntlmv2 within ntlmssp autentication code

2010-09-15 Thread Jeff Layton
*) blobptr; + } + + return 0; +} + -- Jeff Layton jlay...@samba.org -- To unsubscribe from this list: send the line unsubscribe linux-cifs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

  1   2   3   4   5   6   7   8   9   10   >