lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 2 Aug 2011 23:40:04 +0200
From:	Jan Seiffert <kaffeemonster@...glemail.com>
To:	Jeff Layton <jlayton@...hat.com>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	sfrench@...ibm.com, linux-cifs@...r.kernel.org
Subject: Re: [3.0.0+][Regression][Bisected] CIFS: getdents() broken for large dirs

2011/8/2 Jeff Layton <jlayton@...hat.com>:
> On Tue, 2 Aug 2011 06:44:55 -0400
> Jeff Layton <jlayton@...hat.com> wrote:
>
>> On Tue, 2 Aug 2011 02:30:35 +0200
>> Jan Seiffert <kaffeemonster@...glemail.com> wrote:
>>
[snip - bug report]
>>
>> Thanks for the bug report.

Hi Jeff,
thanks for your fast feedback, and sorry it took me so long to get back to you.

>> According to the spec, I think I was a
>> *little* off in the calculation but not by much. CIFSMaxBufSize doesn't
>> include the size of the header, so the value we're sending is too small
>> by 0x58 bytes. But, if anything though that should have led to the
>> server sending smaller frames than we can handle, which should not
>> cause this sort of problem.
>>
>> I tried to reproduce this on my test setup, but couldn't...
>>
>> Some questions...
>>
>> 1) did anything pop up in dmesg when this error occurred?
>>

No, nothing in dmesg.
Looks like it is detected as malformed packet and silently dropped.
(at dmesg default log level and default debug options)

>> 2) are you setting the CIFSMaxBufSize module parm to anything?
>>

No parameters to the CIFS module (i didn't even know till now there
are options...)

>> 3) would it be possible to get debugging output? Instructions on how to
>> do that are here:
>>
>> http://wiki.samba.org/index.php/LinuxCIFS_troubleshooting#Enabling_Debugging
>>

I will skip this ...

>> Thanks,
>
> Nevermind... I was able to reproduce it, and the following patch seems
> to fix it for me. Jan, can you test this as well?

.. to test your patch, and it looks good!

$ ls -l /usr/portage/ | wc -l
170
$ ls -l /usr/portage/distfiles/ | wc -l
47470

So here it is:
Tested-by: Jan Seiffert <kaffeemonster@...glemail.com>

> If so, I'll "officially" send it to Steve and we'll get this in ASAP.
>

I hope so ;)

> Long term, it would be better clean up the way CIFSMaxBufSize is
> handled to get rid of this source of confusion...
>

Sounds good, but with a lot of different servers (orig. Windows
versions and different Samba versions), i hope there is no maze of
endless special cases because all those versions did something subtle
different with the MaxBufSize (eg. simple +/-1 Bugs).

Greetings
Jan

[snip - patch]

-- 
Murphy's Law of Combat
Rule #3: "Never forget that your weapon was manufactured by the
lowest bidder"
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ