There is known issue that "mount -t smbfs" without dmask and fmask slleps on the 30 sec and produced the following messages: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=168280 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=202934 I've investigated the reasons of these messages and found that on the RHEL4-based kernel with SLAB_DEBUG enabled this test shows the slab corruption: init_special_inode: bogus i_mode (0) smb_retry: no connection process smb_add_request: request [000001000bd22d38, mid=1802201963] timed out! smb_delete_inode: could not close inode 2 Slab corruption: start=000001000bd22d38, len=344 Redzone: 0x5a2cf071/0x5a2cf071. Last user: [<ffffffffa00ba56d>](smb_add_request+0x42d/0x4d0 [smbfs]) 010: 6a 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 150: 02 00 58 00 fb ff ff ff Prev obj: start=000001000bd22bc8, len=344 Redzone: 0x5a2cf071/0x5a2cf071. Last user: [<0000000000000000>](0x0) 000: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 010: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b
Created attachment 151106 [details] this patch is missed hunk in linux-2.6.9-smbfs-uid-gid.patch, sets the default files and dir permission
Created attachment 151109 [details] patch from mainstream, fixes smbfs slab corruption http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=48564e628bd7662d7a0b3ac81c41cd0e4cc36dae
It was reproduced on the 2.6.9-42.0.10.EL kernel
Thanks for the patches and for doing the legwork to track down a reproducer! I've attached the patch in comment #1 to BZ 168280 and will plan to propose it for that BZ. I've also confirmed that the patch in comment #2 fixes the slab corruption, so I'll plan propose that one to fix this BZ.
This request was evaluated by Red Hat Kernel Team for inclusion in a Red Hat Enterprise Linux maintenance release, and has moved to bugzilla status POST.
committed in stream U6 build 55.11. A test kernel with this patch is available from http://people.redhat.com/~jbaron/rhel4/
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0791.html