[linux-cifs-client] recent regression in mainline CIFS code

Jeff Layton jlayton at redhat.com
Wed Apr 29 14:20:31 GMT 2009


I've just started seeing a recent regression in the mainline cifs code
when doing the general cthon04 tests. The small compile test does this:

$ gcc -w -o stat stat.c -lm
/usr/bin/ld: final link failed: Bad file descriptor
collect2: ld returned 1 exit status

Unix extensions are enabled here. I've not tested this w/o them yet.
stracing shows this:

4866  open("stat", O_RDWR)              = 13
4866  fcntl(13, F_GETFD)                = 0
4866  fcntl(13, F_SETFD, FD_CLOEXEC)    = 0
4866  fstat(13, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
4866  mmap(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd4e7075000
4866  lseek(13, 0, SEEK_SET)            = 0
4866  read(13, 0x7fd4e7075000, 64)      = -1 EBADF (Bad file descriptor)
4866  lseek(13, 64, SEEK_CUR)           = 64
4866  write(13, "\6\0\0\0\5\0\0\0@\0\0\0\0\0\0\0@\0@\0\0\0\0\0@\0@\0\0\0\0\0\300"..., 448) = -1 EBADF (Bad file descriptor)

I ran these tests a month or two ago and didn't see this, so I think
it's a recent regression.

-- 
Jeff Layton <jlayton at redhat.com>


More information about the linux-cifs-client mailing list