[linux-cifs-client] Re: trying to mount.cifs a DFS share - system, freeze

Tomasz Chmielewski mangoo at wpkg.org
Fri Mar 23 22:09:47 GMT 2007


Steve French (smfltc) schrieb:
> Tomasz Chmielewski wrote:
> 
>> OK, I tried to build it with 2.6.21-rc4, it failed.
>>
> 2.6.21-rc is new enough.  You don't need to build the backported version 
> of cifs on kernels that are this new.
> 
> I thought that the bug was reported on a much older kernel.
> 
> Does it fail in the same way on 2.6.21 cifs?

Yes.
2.6.21-rc4 with no patches.
Remote server is Windows 2003.



# uname -a
Linux tomek 2.6.21-rc4 #1 Fri Mar 23 21:15:50 CET 2007 i686 AMD 
Athlon(tm) XP 2500+ GNU/Linux

# mount.cifs //192.168.10.10/dfs /mnt/dfs -o username=tomekadmin
Password:


Here - note that there is no "Admin/Admin/Admin" directory on the 
Windows server.
In reality, "Admin" contains directories dir1, dir2, users etc.
However, Linux 2.6.21-rc4 shows all DFS directories in a "3-time loop"; 
entering the last directory ends in a weird dmesg output.


# ls /mnt/dfs/Admin/Admin/Admin/
ls: reading directory /mnt/dfs/Admin/Admin/Admin/: Object is remote

# dmesg -c
Slab corruption: start=d4eaa134, len=64
Redzone: 0x0/0x5a2cf071.
Last user: [<f8861040>](ext3_clear_inode+0x7c/0x81 [ext3])
000: 00 00 00 00 00 00 00 6b 6b 6b 6b 6b 6b 6b 6b 6b
Prev obj: start=d4eaa0e8, len=64
Redzone: 0x5a2cf071/0x5a2cf071.
Last user: [<f92afc57>](cifs_get_inode_info+0x1e4/0x7e6 [cifs])
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
Next obj: start=d4eaa180, len=64
Redzone: 0x5a2cf071/0x5a2cf071.
Last user: [<f8861040>](ext3_clear_inode+0x7c/0x81 [ext3])
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
slab error in cache_alloc_debugcheck_after(): cache `size-64': double 
free, or memory outside object was overwritten
  [<c010524c>] show_trace_log_lvl+0x1a/0x2f
  [<c01057cc>] show_trace+0x12/0x14
  [<c0105850>] dump_stack+0x16/0x18
  [<c015cff5>] __slab_error+0x26/0x28
  [<c015d3f2>] cache_alloc_debugcheck_after+0x80/0x13a
  [<c015e65e>] kmem_cache_alloc+0x80/0x8c
  [<f88575a1>] ext3_init_block_alloc_info+0x1c/0x6a [ext3]
  [<f8859d42>] ext3_get_blocks_handle+0x211/0x817 [ext3]
  [<f885a63b>] ext3_get_block+0xb8/0xd1 [ext3]
  [<c017de12>] __block_prepare_write+0x16d/0x3bf
  [<c017e088>] block_prepare_write+0x24/0x32
  [<f885b8ec>] ext3_prepare_write+0xa3/0x2bd [ext3]
  [<c0147247>] generic_file_buffered_write+0x21a/0x54f
  [<c01479b0>] __generic_file_aio_write_nolock+0x434/0x4a1
  [<c0147a73>] generic_file_aio_write+0x56/0xb5
  [<f8857f67>] ext3_file_write+0x27/0x9a [ext3]
  [<c0161661>] do_sync_write+0xc2/0xff
  [<c0161e47>] vfs_write+0xaf/0x13e
  [<c016231d>] sys_write+0x3d/0x61
  [<c0103c64>] sysenter_past_esp+0x5d/0x99
  =======================
d4eaa130: redzone 1:0x0, redzone 2:0x5a2cf071

-- 
Tomasz Chmielewski
http://wpkg.org


More information about the linux-cifs-client mailing list