* Problem with connecting to SMB server in 3.9.11 kernel.
@ 2014-01-18 17:17 Ben Greear
[not found] ` <52DAB72C.9030305-my8/4N5VtI7c+919tysfdA@public.gmane.org>
0 siblings, 1 reply; 14+ messages in thread
From: Ben Greear @ 2014-01-18 17:17 UTC (permalink / raw)
To: linux-cifs-u79uwXL29TY76Z2rM5mHXA; +Cc: Amit Haval (India Bangalore)
[-- Attachment #1: Type: text/plain, Size: 1293 bytes --]
Hello!
A customer reported problems connecting our CIFS traffic generation test gear to their SMB server.
We are using the 3.9.11+ kernel, and though it is patched, we do not have any
patches to cifs.
The OS is Fedora 14, 64-bit.
A similar system on Fedora 14, with a 3.7.10+ kernel was working, but when
we tried the 3.7.10+ kernel on the broken machine, it also failed to work.
So, it could be the SMB server itself is having issues. (In the 3.7.10+ failure,
the server just failed to respond after "Setup andX Request AUTH message", though we
did get the TCP ack so it looks like the message was received by the server.)
I'm attaching a capture taken on the SMB server.
From looking at this page:
http://msdn.microsoft.com/en-us/library/ff469913.aspx
It appears the problem (STATUS_UNSUCCESSFUL) is:
"The size of the extended attribute list is not correct. Check the EaErrorOffset field for the
address of the SMB_GEA structure at which the error was detected."
I did not see anything about extended attribute list in the capture, but if someone else
with more knowledge could take a look and see if they notice any problems I would be grateful.
Thanks!
Ben
--
Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org>
Candela Technologies Inc http://www.candelatech.com
[-- Attachment #2: cifs-reject.pcap --]
[-- Type: application/vnd.tcpdump.pcap, Size: 13844 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread[parent not found: <52DAB72C.9030305-my8/4N5VtI7c+919tysfdA@public.gmane.org>]
* Re: Problem with connecting to SMB server in 3.9.11 kernel. [not found] ` <52DAB72C.9030305-my8/4N5VtI7c+919tysfdA@public.gmane.org> @ 2014-01-20 12:56 ` Jeff Layton [not found] ` <20140120075657.0e61ecb2-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org> 2014-01-20 15:54 ` Shirish Pargaonkar ` (2 subsequent siblings) 3 siblings, 1 reply; 14+ messages in thread From: Jeff Layton @ 2014-01-20 12:56 UTC (permalink / raw) To: Ben Greear Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA, Amit Haval (India Bangalore), Shirish Pargaonkar On Sat, 18 Jan 2014 09:17:32 -0800 Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> wrote: > Hello! > > A customer reported problems connecting our CIFS traffic generation test gear to their SMB server. > We are using the 3.9.11+ kernel, and though it is patched, we do not have any > patches to cifs. > > The OS is Fedora 14, 64-bit. > > A similar system on Fedora 14, with a 3.7.10+ kernel was working, but when > we tried the 3.7.10+ kernel on the broken machine, it also failed to work. > So, it could be the SMB server itself is having issues. (In the 3.7.10+ failure, > the server just failed to respond after "Setup andX Request AUTH message", though we > did get the TCP ack so it looks like the message was received by the server.) > > I'm attaching a capture taken on the SMB server. > > From looking at this page: > > http://msdn.microsoft.com/en-us/library/ff469913.aspx > > It appears the problem (STATUS_UNSUCCESSFUL) is: > > "The size of the extended attribute list is not correct. Check the EaErrorOffset field for the > address of the SMB_GEA structure at which the error was detected." > > I did not see anything about extended attribute list in the capture, but if someone else > with more knowledge could take a look and see if they notice any problems I would be grateful. > > Thanks! > Ben > There's no EA list on this call so that description isn't valid here. AIUI, NT_STATUS_UNSUCCESSFUL is basically a generic "something went wrong" error (sort of like EIO on POSIX). It looks like the server doesn't like something about the request being sent, but it's tough to know what it is. I cc'ed Shirish though as he wrote most of that code. Maybe he has some idea? -- Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <20140120075657.0e61ecb2-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>]
* RE: Problem with connecting to SMB server in 3.9.11 kernel. [not found] ` <20140120075657.0e61ecb2-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org> @ 2014-01-20 13:47 ` Tom Talpey [not found] ` <fb5a5a794f9d46ffb3bafd4a7f9f5a88-GeMU99GfrruUGfbpEvpFbeO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org> 0 siblings, 1 reply; 14+ messages in thread From: Tom Talpey @ 2014-01-20 13:47 UTC (permalink / raw) To: Jeff Layton, Ben Greear Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Amit Haval (India Bangalore), Shirish Pargaonkar > -----Original Message----- > From: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org [mailto:linux-cifs- > owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org] On Behalf Of Jeff Layton > Sent: Monday, January 20, 2014 7:57 AM > To: Ben Greear > Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Amit Haval (India Bangalore); Shirish > Pargaonkar > Subject: Re: Problem with connecting to SMB server in 3.9.11 kernel. > > On Sat, 18 Jan 2014 09:17:32 -0800 > Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> wrote: > > > Hello! > > > > A customer reported problems connecting our CIFS traffic generation test > gear to their SMB server. > > We are using the 3.9.11+ kernel, and though it is patched, we do not > > have any patches to cifs. > > > > The OS is Fedora 14, 64-bit. > > > > A similar system on Fedora 14, with a 3.7.10+ kernel was working, but > > when we tried the 3.7.10+ kernel on the broken machine, it also failed to > work. > > So, it could be the SMB server itself is having issues. (In the > > 3.7.10+ failure, the server just failed to respond after "Setup andX > > Request AUTH message", though we did get the TCP ack so it looks like > > the message was received by the server.) > > > > I'm attaching a capture taken on the SMB server. > > > > From looking at this page: > > > > http://msdn.microsoft.com/en-us/library/ff469913.aspx > > > > It appears the problem (STATUS_UNSUCCESSFUL) is: > > > > "The size of the extended attribute list is not correct. Check the > > EaErrorOffset field for the address of the SMB_GEA structure at which the > error was detected." > > > > I did not see anything about extended attribute list in the capture, > > but if someone else with more knowledge could take a look and see if they > notice any problems I would be grateful. > > > > Thanks! > > Ben > > > > There's no EA list on this call so that description isn't valid here. > > AIUI, NT_STATUS_UNSUCCESSFUL is basically a generic "something went > wrong" error (sort of like EIO on POSIX). It looks like the server doesn't like > something about the request being sent, but it's tough to know what it is. The trace Ben attached shows an authentication failure, and I don't see any TRANS2_QUERY_FILE_INFORMATION in the trace at all as Ben references. The client is still sending its SESSION_SETUP attempt. Looks like the client is attempting NTLMSSP/NTLMv2 for NICVALIDATION\administrator, and this status is resulting from the authentication and not the SMB protocol. Microsoft Message Analyzer shows no problem with the packet structure itself, in any case. So this doesn't appear to be a malformed request. What type of server is this? The NativeOS string is "SpinStream2", which I don't recognize. ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <fb5a5a794f9d46ffb3bafd4a7f9f5a88-GeMU99GfrruUGfbpEvpFbeO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>]
* RE: Problem with connecting to SMB server in 3.9.11 kernel. [not found] ` <fb5a5a794f9d46ffb3bafd4a7f9f5a88-GeMU99GfrruUGfbpEvpFbeO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org> @ 2014-01-20 15:15 ` Amit Haval (India Bangalore) 0 siblings, 0 replies; 14+ messages in thread From: Amit Haval (India Bangalore) @ 2014-01-20 15:15 UTC (permalink / raw) To: c-dl-nb-mt-nic-validation (dl-nb-mt-nic-validation-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org) Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Shirish Pargaonkar, Tom Talpey, Jeff Layton, Ben Greear Adding our team to comment/help. -----Original Message----- From: Tom Talpey [mailto:ttalpey-0li6OtcxBFHby3iVrkZq2A@public.gmane.org] Sent: Monday, January 20, 2014 7:17 PM To: Jeff Layton; Ben Greear Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Amit Haval (India Bangalore); Shirish Pargaonkar Subject: RE: Problem with connecting to SMB server in 3.9.11 kernel. > -----Original Message----- > From: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org [mailto:linux-cifs- > owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org] On Behalf Of Jeff Layton > Sent: Monday, January 20, 2014 7:57 AM > To: Ben Greear > Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org; Amit Haval (India Bangalore); Shirish > Pargaonkar > Subject: Re: Problem with connecting to SMB server in 3.9.11 kernel. > > On Sat, 18 Jan 2014 09:17:32 -0800 > Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> wrote: > > > Hello! > > > > A customer reported problems connecting our CIFS traffic generation > > test > gear to their SMB server. > > We are using the 3.9.11+ kernel, and though it is patched, we do not > > have any patches to cifs. > > > > The OS is Fedora 14, 64-bit. > > > > A similar system on Fedora 14, with a 3.7.10+ kernel was working, > > but when we tried the 3.7.10+ kernel on the broken machine, it also > > failed to > work. > > So, it could be the SMB server itself is having issues. (In the > > 3.7.10+ failure, the server just failed to respond after "Setup andX > > Request AUTH message", though we did get the TCP ack so it looks > > like the message was received by the server.) > > > > I'm attaching a capture taken on the SMB server. > > > > From looking at this page: > > > > http://msdn.microsoft.com/en-us/library/ff469913.aspx > > > > It appears the problem (STATUS_UNSUCCESSFUL) is: > > > > "The size of the extended attribute list is not correct. Check the > > EaErrorOffset field for the address of the SMB_GEA structure at > > which the > error was detected." > > > > I did not see anything about extended attribute list in the capture, > > but if someone else with more knowledge could take a look and see if > > they > notice any problems I would be grateful. > > > > Thanks! > > Ben > > > > There's no EA list on this call so that description isn't valid here. > > AIUI, NT_STATUS_UNSUCCESSFUL is basically a generic "something went > wrong" error (sort of like EIO on POSIX). It looks like the server > doesn't like something about the request being sent, but it's tough to know what it is. The trace Ben attached shows an authentication failure, and I don't see any TRANS2_QUERY_FILE_INFORMATION in the trace at all as Ben references. The client is still sending its SESSION_SETUP attempt. Looks like the client is attempting NTLMSSP/NTLMv2 for NICVALIDATION\administrator, and this status is resulting from the authentication and not the SMB protocol. Microsoft Message Analyzer shows no problem with the packet structure itself, in any case. So this doesn't appear to be a malformed request. What type of server is this? The NativeOS string is "SpinStream2", which I don't recognize. ______________________________________________________________________ This email has been scanned by the Boundary Defense for Email Security System. For more information please visit http://www.apptix.com/email-security/antispam-virus ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Boundary Defense for Email Security System. For more information please visit http://www.apptix.com/email-security/antispam-virus ______________________________________________________________________ ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Problem with connecting to SMB server in 3.9.11 kernel. [not found] ` <52DAB72C.9030305-my8/4N5VtI7c+919tysfdA@public.gmane.org> 2014-01-20 12:56 ` Jeff Layton @ 2014-01-20 15:54 ` Shirish Pargaonkar [not found] ` <CADT32eK5_duGPjJy2Q=2-SOfN1R+Msx10RJ7wk+Zzsz+xt_-Rw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-01-26 14:04 ` Shirish Pargaonkar 2014-01-27 6:07 ` Shirish Pargaonkar 3 siblings, 1 reply; 14+ messages in thread From: Shirish Pargaonkar @ 2014-01-20 15:54 UTC (permalink / raw) To: Ben Greear; +Cc: linux-cifs, Amit Haval (India Bangalore) yes, this looks like a authentication failure. It probably is a NetApp server. Can any other client (e.g. Windows, smbclient etc.) authenticate using ntlmv2/ntlmssp to this server? SMB servers do not typically point_out/log what part of the request is invalid, so it is little harder to figure out how the request is incorrect. On Sat, Jan 18, 2014 at 11:17 AM, Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> wrote: > Hello! > > A customer reported problems connecting our CIFS traffic generation test > gear to their SMB server. > We are using the 3.9.11+ kernel, and though it is patched, we do not have > any > patches to cifs. > > The OS is Fedora 14, 64-bit. > > A similar system on Fedora 14, with a 3.7.10+ kernel was working, but when > we tried the 3.7.10+ kernel on the broken machine, it also failed to work. > So, it could be the SMB server itself is having issues. (In the 3.7.10+ > failure, > the server just failed to respond after "Setup andX Request AUTH message", > though we > did get the TCP ack so it looks like the message was received by the > server.) > > I'm attaching a capture taken on the SMB server. > > From looking at this page: > > http://msdn.microsoft.com/en-us/library/ff469913.aspx > > It appears the problem (STATUS_UNSUCCESSFUL) is: > > "The size of the extended attribute list is not correct. Check the > EaErrorOffset field for the > address of the SMB_GEA structure at which the error was detected." > > I did not see anything about extended attribute list in the capture, but if > someone else > with more knowledge could take a look and see if they notice any problems I > would be grateful. > > Thanks! > Ben > > -- > Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> > Candela Technologies Inc http://www.candelatech.com > ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <CADT32eK5_duGPjJy2Q=2-SOfN1R+Msx10RJ7wk+Zzsz+xt_-Rw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* RE: Problem with connecting to SMB server in 3.9.11 kernel. [not found] ` <CADT32eK5_duGPjJy2Q=2-SOfN1R+Msx10RJ7wk+Zzsz+xt_-Rw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-01-20 17:34 ` Amit Haval (India Bangalore) [not found] ` <0DF7592FDA7A4C428E3B3D14C1D69BDAADCF8D-CrrBPKKMyPMSwlxDF3k49UfXCdDtWGEhlw3VODuhjLzR7s880joybQ@public.gmane.org> 0 siblings, 1 reply; 14+ messages in thread From: Amit Haval (India Bangalore) @ 2014-01-20 17:34 UTC (permalink / raw) To: Shirish Pargaonkar, Ben Greear Cc: linux-cifs, c-dl-nb-mt-nic-validation (dl-nb-mt-nic-validation-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org) Adding nic-dl... -----Original Message----- From: Shirish Pargaonkar [mailto:shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org] Sent: Monday, January 20, 2014 9:24 PM To: Ben Greear Cc: linux-cifs; Amit Haval (India Bangalore) Subject: Re: Problem with connecting to SMB server in 3.9.11 kernel. yes, this looks like a authentication failure. It probably is a NetApp server. Can any other client (e.g. Windows, smbclient etc.) authenticate using ntlmv2/ntlmssp to this server? SMB servers do not typically point_out/log what part of the request is invalid, so it is little harder to figure out how the request is incorrect. On Sat, Jan 18, 2014 at 11:17 AM, Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> wrote: > Hello! > > A customer reported problems connecting our CIFS traffic generation > test gear to their SMB server. > We are using the 3.9.11+ kernel, and though it is patched, we do not > have any patches to cifs. > > The OS is Fedora 14, 64-bit. > > A similar system on Fedora 14, with a 3.7.10+ kernel was working, but > when we tried the 3.7.10+ kernel on the broken machine, it also failed to work. > So, it could be the SMB server itself is having issues. (In the > 3.7.10+ failure, the server just failed to respond after "Setup andX > Request AUTH message", though we did get the TCP ack so it looks like > the message was received by the > server.) > > I'm attaching a capture taken on the SMB server. > > From looking at this page: > > http://msdn.microsoft.com/en-us/library/ff469913.aspx > > It appears the problem (STATUS_UNSUCCESSFUL) is: > > "The size of the extended attribute list is not correct. Check the > EaErrorOffset field for the address of the SMB_GEA structure at which > the error was detected." > > I did not see anything about extended attribute list in the capture, > but if someone else with more knowledge could take a look and see if > they notice any problems I would be grateful. > > Thanks! > Ben > > -- > Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> > Candela Technologies Inc http://www.candelatech.com > ______________________________________________________________________ This email has been scanned by the Boundary Defense for Email Security System. For more information please visit http://www.apptix.com/email-security/antispam-virus ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the Boundary Defense for Email Security System. For more information please visit http://www.apptix.com/email-security/antispam-virus ______________________________________________________________________ ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <0DF7592FDA7A4C428E3B3D14C1D69BDAADCF8D-CrrBPKKMyPMSwlxDF3k49UfXCdDtWGEhlw3VODuhjLzR7s880joybQ@public.gmane.org>]
* Re: Problem with connecting to SMB server in 3.9.11 kernel. [not found] ` <0DF7592FDA7A4C428E3B3D14C1D69BDAADCF8D-CrrBPKKMyPMSwlxDF3k49UfXCdDtWGEhlw3VODuhjLzR7s880joybQ@public.gmane.org> @ 2014-01-21 3:12 ` Shirish Pargaonkar [not found] ` <CADT32eKGPu_3bNRL9bar+3RO74KXD=YKQvsC49635drWFL+63A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 14+ messages in thread From: Shirish Pargaonkar @ 2014-01-21 3:12 UTC (permalink / raw) To: Amit Haval (India Bangalore) Cc: Ben Greear, linux-cifs, c-dl-nb-mt-nic-validation (dl-nb-mt-nic-validation-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org) I will spend more time later tonight/tomorrow but it could be related to cifs client not using Target received in NTLMSSP Challenge response from the server (since the bit Target Type Domain in flags is set) while constructing NTLMSSP Authenticate message. Just a guess. On Mon, Jan 20, 2014 at 11:34 AM, Amit Haval (India Bangalore) <amit.haval-ZIEO9HjW1UBWk0Htik3J/w@public.gmane.org> wrote: > Adding nic-dl... > > -----Original Message----- > From: Shirish Pargaonkar [mailto:shirishpargaonkar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org] > Sent: Monday, January 20, 2014 9:24 PM > To: Ben Greear > Cc: linux-cifs; Amit Haval (India Bangalore) > Subject: Re: Problem with connecting to SMB server in 3.9.11 kernel. > > yes, this looks like a authentication failure. > It probably is a NetApp server. Can any other client (e.g. Windows, smbclient etc.) authenticate using ntlmv2/ntlmssp to this server? > > SMB servers do not typically point_out/log what part of the request is invalid, so it is little harder to figure out how the request is incorrect. > > > On Sat, Jan 18, 2014 at 11:17 AM, Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> wrote: >> Hello! >> >> A customer reported problems connecting our CIFS traffic generation >> test gear to their SMB server. >> We are using the 3.9.11+ kernel, and though it is patched, we do not >> have any patches to cifs. >> >> The OS is Fedora 14, 64-bit. >> >> A similar system on Fedora 14, with a 3.7.10+ kernel was working, but >> when we tried the 3.7.10+ kernel on the broken machine, it also failed to work. >> So, it could be the SMB server itself is having issues. (In the >> 3.7.10+ failure, the server just failed to respond after "Setup andX >> Request AUTH message", though we did get the TCP ack so it looks like >> the message was received by the >> server.) >> >> I'm attaching a capture taken on the SMB server. >> >> From looking at this page: >> >> http://msdn.microsoft.com/en-us/library/ff469913.aspx >> >> It appears the problem (STATUS_UNSUCCESSFUL) is: >> >> "The size of the extended attribute list is not correct. Check the >> EaErrorOffset field for the address of the SMB_GEA structure at which >> the error was detected." >> >> I did not see anything about extended attribute list in the capture, >> but if someone else with more knowledge could take a look and see if >> they notice any problems I would be grateful. >> >> Thanks! >> Ben >> >> -- >> Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> >> Candela Technologies Inc http://www.candelatech.com >> > > ______________________________________________________________________ > This email has been scanned by the Boundary Defense for Email Security System. For more information please visit http://www.apptix.com/email-security/antispam-virus > ______________________________________________________________________ > > ______________________________________________________________________ > This email has been scanned by the Boundary Defense for Email Security System. For more information please visit http://www.apptix.com/email-security/antispam-virus > ______________________________________________________________________ ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <CADT32eKGPu_3bNRL9bar+3RO74KXD=YKQvsC49635drWFL+63A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Problem with connecting to SMB server in 3.9.11 kernel. [not found] ` <CADT32eKGPu_3bNRL9bar+3RO74KXD=YKQvsC49635drWFL+63A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-01-24 5:41 ` Ben Greear [not found] ` <52E1FCF4.5040504-my8/4N5VtI7c+919tysfdA@public.gmane.org> 0 siblings, 1 reply; 14+ messages in thread From: Ben Greear @ 2014-01-24 5:41 UTC (permalink / raw) To: Shirish Pargaonkar, Amit Haval (India Bangalore) Cc: linux-cifs, c-dl-nb-mt-nic-validation (dl-nb-mt-nic-validation-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org) On 01/20/2014 07:12 PM, Shirish Pargaonkar wrote: > I will spend more time later tonight/tomorrow but it could be related to > cifs client not using Target received in NTLMSSP Challenge response from > the server (since the bit Target Type Domain in flags is set) while > constructing NTLMSSP Authenticate message. Just a guess. Did you have any luck with this? Thanks, Ben -- Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> Candela Technologies Inc http://www.candelatech.com ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <52E1FCF4.5040504-my8/4N5VtI7c+919tysfdA@public.gmane.org>]
* Re: Problem with connecting to SMB server in 3.9.11 kernel. [not found] ` <52E1FCF4.5040504-my8/4N5VtI7c+919tysfdA@public.gmane.org> @ 2014-01-25 15:03 ` Shirish Pargaonkar 0 siblings, 0 replies; 14+ messages in thread From: Shirish Pargaonkar @ 2014-01-25 15:03 UTC (permalink / raw) To: Ben Greear Cc: Amit Haval (India Bangalore), linux-cifs, c-dl-nb-mt-nic-validation (dl-nb-mt-nic-validation-HgOvQuBEEgTQT0dZR+AlfA@public.gmane.org) I want to code to use Target Name instead of using domain name from the avpair info received in type 2 ntlmssp challenge message from the server to calculate ntlmv2 response within ntlmssp. Will post a preliminary patch to try out with that code change (hopefully in a day or two). That is one code change I think might work. On Thu, Jan 23, 2014 at 11:41 PM, Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> wrote: > On 01/20/2014 07:12 PM, Shirish Pargaonkar wrote: >> >> I will spend more time later tonight/tomorrow but it could be related to >> cifs client not using Target received in NTLMSSP Challenge response from >> the server (since the bit Target Type Domain in flags is set) while >> constructing NTLMSSP Authenticate message. Just a guess. > > > Did you have any luck with this? > > Thanks, > > Ben > > -- > Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> > Candela Technologies Inc http://www.candelatech.com > ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Problem with connecting to SMB server in 3.9.11 kernel. [not found] ` <52DAB72C.9030305-my8/4N5VtI7c+919tysfdA@public.gmane.org> 2014-01-20 12:56 ` Jeff Layton 2014-01-20 15:54 ` Shirish Pargaonkar @ 2014-01-26 14:04 ` Shirish Pargaonkar 2014-01-27 6:07 ` Shirish Pargaonkar 3 siblings, 0 replies; 14+ messages in thread From: Shirish Pargaonkar @ 2014-01-26 14:04 UTC (permalink / raw) To: Ben Greear; +Cc: linux-cifs, Amit Haval (India Bangalore) I Was thinking perhaps client not setting either NTLMSSP_TARGET_TYPE_SERVER or NTLMSSP_TARGET_TYPE_DOMAIN or NTLMSSP_TARGET_TYPE_SHARE (the one that server sets in type 2/challenge message) in type 3 message is a problem but it is not (as per page 33 in ms-nlmp document). cifs client should change to code Target Name instead of NetBIOS domain name from Target Info to calculate ntlmv2 response but that is not the problem here (because they happen to be the exact same). Is there a way to check what kind of response this SMB server expects i.e. NTLMv1 or NTLMv2? There may be a conf file on the server effecting that. Also, if you can provide wireshark trace for any other client besides cifs client successfully authenticating with this server, that would be useful too. On Sat, Jan 18, 2014 at 11:17 AM, Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> wrote: > Hello! > > A customer reported problems connecting our CIFS traffic generation test > gear to their SMB server. > We are using the 3.9.11+ kernel, and though it is patched, we do not have > any > patches to cifs. > > The OS is Fedora 14, 64-bit. > > A similar system on Fedora 14, with a 3.7.10+ kernel was working, but when > we tried the 3.7.10+ kernel on the broken machine, it also failed to work. > So, it could be the SMB server itself is having issues. (In the 3.7.10+ > failure, > the server just failed to respond after "Setup andX Request AUTH message", > though we > did get the TCP ack so it looks like the message was received by the > server.) > > I'm attaching a capture taken on the SMB server. > > From looking at this page: > > http://msdn.microsoft.com/en-us/library/ff469913.aspx > > It appears the problem (STATUS_UNSUCCESSFUL) is: > > "The size of the extended attribute list is not correct. Check the > EaErrorOffset field for the > address of the SMB_GEA structure at which the error was detected." > > I did not see anything about extended attribute list in the capture, but if > someone else > with more knowledge could take a look and see if they notice any problems I > would be grateful. > > Thanks! > Ben > > -- > Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> > Candela Technologies Inc http://www.candelatech.com > ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Problem with connecting to SMB server in 3.9.11 kernel. [not found] ` <52DAB72C.9030305-my8/4N5VtI7c+919tysfdA@public.gmane.org> ` (2 preceding siblings ...) 2014-01-26 14:04 ` Shirish Pargaonkar @ 2014-01-27 6:07 ` Shirish Pargaonkar [not found] ` <CADT32eL4na+eduUmmWKHe5usN+S2aN+mCUQqU5j8RHaq-3ZVwQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 3 siblings, 1 reply; 14+ messages in thread From: Shirish Pargaonkar @ 2014-01-27 6:07 UTC (permalink / raw) To: Ben Greear; +Cc: linux-cifs, Amit Haval (India Bangalore) Can you try this patch and see if it works? diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index e87387d..ac14d71 100644 --- a/fs/cifs/sess.c +++ b/fs/cifs/sess.c @@ -450,9 +450,8 @@ int build_ntlmssp_auth_blob(unsigned char *pbuffer, sec_blob->WorkstationName.MaximumLength = 0; tmp += 2; - if (((ses->ntlmssp->server_flags & NTLMSSP_NEGOTIATE_KEY_XCH) || - (ses->ntlmssp->server_flags & NTLMSSP_NEGOTIATE_EXTENDED_SEC)) - && !calc_seckey(ses)) { + if ((ses->ntlmssp->server_flags & NTLMSSP_NEGOTIATE_KEY_XCH) && + !calc_seckey(ses)) { memcpy(tmp, ses->ntlmssp->ciphertext, CIFS_CPHTXT_SIZE); sec_blob->SessionKey.BufferOffset = cpu_to_le32(tmp - pbuffer); sec_blob->SessionKey.Length = cpu_to_le16(CIFS_CPHTXT_SIZE); On Sat, Jan 18, 2014 at 11:17 AM, Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> wrote: > Hello! > > A customer reported problems connecting our CIFS traffic generation test > gear to their SMB server. > We are using the 3.9.11+ kernel, and though it is patched, we do not have > any > patches to cifs. > > The OS is Fedora 14, 64-bit. > > A similar system on Fedora 14, with a 3.7.10+ kernel was working, but when > we tried the 3.7.10+ kernel on the broken machine, it also failed to work. > So, it could be the SMB server itself is having issues. (In the 3.7.10+ > failure, > the server just failed to respond after "Setup andX Request AUTH message", > though we > did get the TCP ack so it looks like the message was received by the > server.) > > I'm attaching a capture taken on the SMB server. > > From looking at this page: > > http://msdn.microsoft.com/en-us/library/ff469913.aspx > > It appears the problem (STATUS_UNSUCCESSFUL) is: > > "The size of the extended attribute list is not correct. Check the > EaErrorOffset field for the > address of the SMB_GEA structure at which the error was detected." > > I did not see anything about extended attribute list in the capture, but if > someone else > with more knowledge could take a look and see if they notice any problems I > would be grateful. > > Thanks! > Ben > > -- > Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> > Candela Technologies Inc http://www.candelatech.com > ^ permalink raw reply related [flat|nested] 14+ messages in thread
[parent not found: <CADT32eL4na+eduUmmWKHe5usN+S2aN+mCUQqU5j8RHaq-3ZVwQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Problem with connecting to SMB server in 3.9.11 kernel. [not found] ` <CADT32eL4na+eduUmmWKHe5usN+S2aN+mCUQqU5j8RHaq-3ZVwQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-02-03 17:54 ` Ben Greear [not found] ` <52EFD7C3.9020505-my8/4N5VtI7c+919tysfdA@public.gmane.org> 0 siblings, 1 reply; 14+ messages in thread From: Ben Greear @ 2014-02-03 17:54 UTC (permalink / raw) To: Shirish Pargaonkar; +Cc: linux-cifs, Amit Haval (India Bangalore) On 01/26/2014 10:07 PM, Shirish Pargaonkar wrote: > Can you try this patch and see if it works? We have verified that this works in our test systems. We are just passing user=foo,password=bar in our mount options, so hopefully that is sufficient to exercise this code? Thanks, Ben > diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c > index e87387d..ac14d71 100644 > --- a/fs/cifs/sess.c > +++ b/fs/cifs/sess.c > @@ -450,9 +450,8 @@ int build_ntlmssp_auth_blob(unsigned char *pbuffer, > sec_blob->WorkstationName.MaximumLength = 0; > tmp += 2; > > - if (((ses->ntlmssp->server_flags & NTLMSSP_NEGOTIATE_KEY_XCH) || > - (ses->ntlmssp->server_flags & NTLMSSP_NEGOTIATE_EXTENDED_SEC)) > - && !calc_seckey(ses)) { > + if ((ses->ntlmssp->server_flags & NTLMSSP_NEGOTIATE_KEY_XCH) && > + !calc_seckey(ses)) { > memcpy(tmp, ses->ntlmssp->ciphertext, CIFS_CPHTXT_SIZE); > sec_blob->SessionKey.BufferOffset = cpu_to_le32(tmp - pbuffer); > sec_blob->SessionKey.Length = cpu_to_le16(CIFS_CPHTXT_SIZE); -- Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> Candela Technologies Inc http://www.candelatech.com ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <52EFD7C3.9020505-my8/4N5VtI7c+919tysfdA@public.gmane.org>]
* Re: Problem with connecting to SMB server in 3.9.11 kernel. [not found] ` <52EFD7C3.9020505-my8/4N5VtI7c+919tysfdA@public.gmane.org> @ 2014-02-03 17:59 ` Steve French 2014-02-03 18:51 ` Shirish Pargaonkar 1 sibling, 0 replies; 14+ messages in thread From: Steve French @ 2014-02-03 17:59 UTC (permalink / raw) To: Ben Greear; +Cc: Shirish Pargaonkar, linux-cifs, Amit Haval (India Bangalore) username=foo is preferred On Mon, Feb 3, 2014 at 11:54 AM, Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> wrote: > On 01/26/2014 10:07 PM, Shirish Pargaonkar wrote: >> Can you try this patch and see if it works? > > We have verified that this works in our test systems. > We are just passing user=foo,password=bar in our > mount options, so hopefully that is sufficient to exercise this > code? > > Thanks, > Ben > >> diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c >> index e87387d..ac14d71 100644 >> --- a/fs/cifs/sess.c >> +++ b/fs/cifs/sess.c >> @@ -450,9 +450,8 @@ int build_ntlmssp_auth_blob(unsigned char *pbuffer, >> sec_blob->WorkstationName.MaximumLength = 0; >> tmp += 2; >> >> - if (((ses->ntlmssp->server_flags & NTLMSSP_NEGOTIATE_KEY_XCH) || >> - (ses->ntlmssp->server_flags & NTLMSSP_NEGOTIATE_EXTENDED_SEC)) >> - && !calc_seckey(ses)) { >> + if ((ses->ntlmssp->server_flags & NTLMSSP_NEGOTIATE_KEY_XCH) && >> + !calc_seckey(ses)) { >> memcpy(tmp, ses->ntlmssp->ciphertext, CIFS_CPHTXT_SIZE); >> sec_blob->SessionKey.BufferOffset = cpu_to_le32(tmp - pbuffer); >> sec_blob->SessionKey.Length = cpu_to_le16(CIFS_CPHTXT_SIZE); > > -- > Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> > Candela Technologies Inc http://www.candelatech.com > > -- > To unsubscribe from this list: send the line "unsubscribe linux-cifs" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Thanks, Steve ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Problem with connecting to SMB server in 3.9.11 kernel. [not found] ` <52EFD7C3.9020505-my8/4N5VtI7c+919tysfdA@public.gmane.org> 2014-02-03 17:59 ` Steve French @ 2014-02-03 18:51 ` Shirish Pargaonkar 1 sibling, 0 replies; 14+ messages in thread From: Shirish Pargaonkar @ 2014-02-03 18:51 UTC (permalink / raw) To: Ben Greear; +Cc: linux-cifs, Amit Haval (India Bangalore) Thanks. Will post a patch on the mailing list. Regards, Shirish On Mon, Feb 3, 2014 at 11:54 AM, Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> wrote: > On 01/26/2014 10:07 PM, Shirish Pargaonkar wrote: >> Can you try this patch and see if it works? > > We have verified that this works in our test systems. > We are just passing user=foo,password=bar in our > mount options, so hopefully that is sufficient to exercise this > code? > > Thanks, > Ben > >> diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c >> index e87387d..ac14d71 100644 >> --- a/fs/cifs/sess.c >> +++ b/fs/cifs/sess.c >> @@ -450,9 +450,8 @@ int build_ntlmssp_auth_blob(unsigned char *pbuffer, >> sec_blob->WorkstationName.MaximumLength = 0; >> tmp += 2; >> >> - if (((ses->ntlmssp->server_flags & NTLMSSP_NEGOTIATE_KEY_XCH) || >> - (ses->ntlmssp->server_flags & NTLMSSP_NEGOTIATE_EXTENDED_SEC)) >> - && !calc_seckey(ses)) { >> + if ((ses->ntlmssp->server_flags & NTLMSSP_NEGOTIATE_KEY_XCH) && >> + !calc_seckey(ses)) { >> memcpy(tmp, ses->ntlmssp->ciphertext, CIFS_CPHTXT_SIZE); >> sec_blob->SessionKey.BufferOffset = cpu_to_le32(tmp - pbuffer); >> sec_blob->SessionKey.Length = cpu_to_le16(CIFS_CPHTXT_SIZE); > > -- > Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> > Candela Technologies Inc http://www.candelatech.com > ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2014-02-03 18:51 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-18 17:17 Problem with connecting to SMB server in 3.9.11 kernel Ben Greear
[not found] ` <52DAB72C.9030305-my8/4N5VtI7c+919tysfdA@public.gmane.org>
2014-01-20 12:56 ` Jeff Layton
[not found] ` <20140120075657.0e61ecb2-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2014-01-20 13:47 ` Tom Talpey
[not found] ` <fb5a5a794f9d46ffb3bafd4a7f9f5a88-GeMU99GfrruUGfbpEvpFbeO6mTEJWrR4XA4E9RH9d+qIuWR1G4zioA@public.gmane.org>
2014-01-20 15:15 ` Amit Haval (India Bangalore)
2014-01-20 15:54 ` Shirish Pargaonkar
[not found] ` <CADT32eK5_duGPjJy2Q=2-SOfN1R+Msx10RJ7wk+Zzsz+xt_-Rw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-01-20 17:34 ` Amit Haval (India Bangalore)
[not found] ` <0DF7592FDA7A4C428E3B3D14C1D69BDAADCF8D-CrrBPKKMyPMSwlxDF3k49UfXCdDtWGEhlw3VODuhjLzR7s880joybQ@public.gmane.org>
2014-01-21 3:12 ` Shirish Pargaonkar
[not found] ` <CADT32eKGPu_3bNRL9bar+3RO74KXD=YKQvsC49635drWFL+63A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-01-24 5:41 ` Ben Greear
[not found] ` <52E1FCF4.5040504-my8/4N5VtI7c+919tysfdA@public.gmane.org>
2014-01-25 15:03 ` Shirish Pargaonkar
2014-01-26 14:04 ` Shirish Pargaonkar
2014-01-27 6:07 ` Shirish Pargaonkar
[not found] ` <CADT32eL4na+eduUmmWKHe5usN+S2aN+mCUQqU5j8RHaq-3ZVwQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-02-03 17:54 ` Ben Greear
[not found] ` <52EFD7C3.9020505-my8/4N5VtI7c+919tysfdA@public.gmane.org>
2014-02-03 17:59 ` Steve French
2014-02-03 18:51 ` Shirish Pargaonkar
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.