09 Sep, 2008

1 commit

  • Automounter maps can contain mount options valid for other NFS
    implementations but not for Linux. The Linux automounter uses the
    mount command's "-s" command line option ("s" for "sloppy") so that
    mount requests containing such options are not rejected.

    Commit f45663ce5fb30f76a3414ab3ac69f4dd320e760a attempted to address a
    known regression with text-based NFS mount option parsing. Unrecognized
    mount options would cause mount requests to fail, even if the "-s"
    option was used on the mount command line.

    Unfortunately, this commit was not complete as submitted. It adds a
    new mount option, "sloppy". But it is missing a hunk, so it now allows
    NFS mounts with unrecognized mount options, even if the "sloppy" option
    is not present. This could be a problem if a required critical mount
    option such as "sync" is misspelled, for example, and is considered a
    regression from 2.6.26.

    This patch restores the missing hunk. Now, the default behavior of
    text-based NFS mount options is as before: any unrecognized mount option
    will cause the mount to fail.

    Please include this in 2.6.27-rc.

    Thanks to Neil Brown for reporting this.

    Signed-off-by: Chuck Lever
    Acked-by: J. Bruce Fields
    Signed-off-by: Linus Torvalds

    Chuck Lever
     

06 Sep, 2008

1 commit

  • Spencer reported a problem where utime and stime were going negative despite
    the fixes in commit b27f03d4bdc145a09fb7b0c0e004b29f1ee555fa. The suspected
    reason for the problem is that signal_struct maintains it's own utime and
    stime (of exited tasks), these are not updated using the new task_utime()
    routine, hence sig->utime can go backwards and cause the same problem
    to occur (sig->utime, adds tsk->utime and not task_utime()). This patch
    fixes the problem

    TODO: using max(task->prev_utime, derived utime) works for now, but a more
    generic solution is to implement cputime_max() and use the cputime_gt()
    function for comparison.

    Reported-by: spencer@bluehost.com
    Signed-off-by: Balbir Singh
    Signed-off-by: Peter Zijlstra
    Signed-off-by: Ingo Molnar

    Balbir Singh
     

03 Sep, 2008

3 commits

  • Quicklists can consume several GB of memory. We should provide a means of
    monitoring this.

    After this patch is applied, /proc/meminfo will output the following:

    % cat /proc/meminfo

    MemTotal: 7715392 kB
    MemFree: 5401600 kB
    Buffers: 80384 kB
    Cached: 300800 kB
    SwapCached: 0 kB
    Active: 235584 kB
    Inactive: 262656 kB
    SwapTotal: 2031488 kB
    SwapFree: 2031488 kB
    Dirty: 3520 kB
    Writeback: 0 kB
    AnonPages: 117696 kB
    Mapped: 38528 kB
    Slab: 1589952 kB
    SReclaimable: 23104 kB
    SUnreclaim: 1566848 kB
    PageTables: 14656 kB
    NFS_Unstable: 0 kB
    Bounce: 0 kB
    WritebackTmp: 0 kB
    CommitLimit: 5889152 kB
    Committed_AS: 393152 kB
    VmallocTotal: 17592177655808 kB
    VmallocUsed: 29056 kB
    VmallocChunk: 17592177626432 kB
    Quicklists: 130944 kB
    HugePages_Total: 0
    HugePages_Free: 0
    HugePages_Rsvd: 0
    HugePages_Surp: 0
    Hugepagesize: 262144 kB

    Signed-off-by: KOSAKI Motohiro
    Cc: Christoph Lameter
    Cc: Keiichiro Tokunaga
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KOSAKI Motohiro
     
  • Update the location of the NTFS homepage in several files.

    Signed-off-by: Adrian Bunk
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • * 'for-2.6.27' of git://linux-nfs.org/~bfields/linux:
    nfsd: fix buffer overrun decoding NFSv4 acl
    sunrpc: fix possible overrun on read of /proc/sys/sunrpc/transports
    nfsd: fix compound state allocation error handling
    svcrdma: Fix race between svc_rdma_recvfrom thread and the dto_tasklet

    Linus Torvalds
     

02 Sep, 2008

2 commits


28 Aug, 2008

10 commits

  • LANMAN session setup did not support Unicode (after session setup, unicode can
    still be used though).

    Fixes samba bug# 5319

    CC: Jeff Layton
    CC: Stable Kernel
    Signed-off-by: Steve French

    Steve French
     
  • Signed-off-by: Steve French

    Steve French
     
  • The direct I/O write codepath for CIFS is done through
    cifs_user_write(). That function does not currently call
    generic_write_checks() so the file position isn't being properly set
    when the file is opened with O_APPEND. It's also not doing the other
    "normal" checks that should be done for a write call.

    The problem is currently that when you open a file with O_APPEND on a
    mount with the directio mount option, the file position is set to the
    beginning of the file. This makes any subsequent writes clobber the data
    in the file starting at the beginning.

    This seems to fix the problem in cursory testing. It is, however
    important to note that NFS disallows the combination of
    (O_DIRECT|O_APPEND). If my understanding is correct, the concern is
    races with multiple clients appending to a file clobbering each others'
    data. Since the write model for CIFS and NFS is pretty similar in this
    regard, CIFS is probably subject to the same sort of races. What's
    unclear to me is why this is a particular problem with O_DIRECT and not
    with buffered writes...

    Regardless, disallowing O_APPEND on an entire mount is probably not
    reasonable, so we'll probably just have to deal with it and reevaluate
    this flag combination when we get proper support for O_DIRECT. In the
    meantime this patch at least fixes the existing problem.

    Signed-off-by: Jeff Layton
    Cc: Stable Tree
    Signed-off-by: Steve French

    Jeff Layton
     
  • Steve French
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
    [CIFS] Add destroy routine for dns_resolver
    [CIFS] Reorder cifs config item for better clarity
    [CIFS] Correct keys dependency for cifs kerberos support

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
    [PATCH] deal with the first call of ->show() generating no output
    [PATCH] fix ->llseek() for a bunch of directories
    [PATCH] fix regular readdir() and friends
    [PATCH] fix hpux_getdents()
    [PATCH] fix osf_getdirents()
    [PATCH] ntfs: use d_add_ci
    [PATCH] change d_add_ci argument ordering
    [PATCH] fix efs_lookup()
    [PATCH] proc: inode number fixlet

    Linus Torvalds
     
  • The last eight bytes of the password field were not cleared when doing lanman plaintext password authentication. This patch fixes that.

    I tested it with Samba by setting password
    encryption to no in the server's smb.conf. Other servers also can be
    configured to force plaintext authentication. Note that plaintexti
    authentication requires setting /proc/fs/cifs/SecurityFlags to 0x30030
    on the client (enabling both LANMAN and also plaintext password support).
    Also note that LANMAN support (and thus plaintext password support) requires
    CONFIG_CIFS_WEAK_PW_HASH to be enabled in menuconfig.

    CC: Jeff Layton
    CC: Stable Kernel
    Signed-off-by: Steve French

    Steve French
     
  • Otherwise, we're leaking the payload memory.

    CC: Stable Kernel
    Acked-by: David Howells
    Signed-off-by: Jeff Layton
    Signed-off-by: Steve French

    Jeff Layton
     
  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
    block: remove blk_queue_tag_depth() and blk_queue_tag_queue()
    block: remove unused ->busy part of the block queue tag map
    bio: fix __bio_copy_iov() handling of bio->bv_len
    bio: fix bio_copy_kern() handling of bio->bv_len
    block: submit_bh() inadvertently discards barrier flag on a sync write
    block: clean up cmdfilter sysfs interface
    block: rename blk_scsi_cmd_filter to blk_cmd_filter
    sg: restore command permission for TYPE_SCANNER
    block: move cmdfilter from gendisk to request_queue

    Linus Torvalds
     
  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2:
    ocfs2: Increment the reference count of an already-active stack.
    [PATCH] configfs: Consolidate locking around configfs_detach_prep() in configfs_rmdir()
    ocfs2: correctly set i_blocks after inline dir gets expanded
    ocfs2: Jump to correct label in ocfs2_expand_inline_dir()
    ocfs2: Fix sleep-with-spinlock recovery regression
    [PATCH] ocfs2/cluster/netdebug.c: fix warning
    [PATCH] ocfs2/cluster/tcp.c: make some functions static

    Linus Torvalds
     

27 Aug, 2008

6 commits


26 Aug, 2008

1 commit


25 Aug, 2008

8 commits


24 Aug, 2008

1 commit


23 Aug, 2008

6 commits


22 Aug, 2008

1 commit

  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
    ext4: Update documentation to remind users to update mke2fs.conf
    ext4: Fix small file fragmentation
    ext4: Initialize writeback_index to 0 when allocating a new inode
    ext4: make sure ext4_has_free_blocks returns 0 for ENOSPC
    ext4: journal credit fix for the delayed allocation's writepages() function
    ext4: Rework the ext4_da_writepages() function
    ext4: journal credits reservation fixes for DIO, fallocate
    ext4: journal credits reservation fixes for extent file writepage
    ext4: journal credits calulation cleanup and fix for non-extent writepage
    ext4: Fix bug where we return ENOSPC even though we have plenty of inodes
    ext4: don't try to resize if there are no reserved gdt blocks left
    ext4: Use ext4_discard_reservations instead of mballoc-specific call
    ext4: Fix ext4_dx_readdir hash collision handling
    ext4: Fix delalloc release block reservation for truncate
    ext4: Fix potential truncate BUG due to i_prealloc_list being non-empty
    ext4: Handle unwritten extent properly with delayed allocation

    Linus Torvalds