02 Jul, 2006

1 commit

  • jffs2_clear_acl() which releases acl caches allocated by kmalloc()
    was defined but it was never called. Thus, we faced to the risk
    of memory leaking.

    This patch plugs jffs2_clear_acl() into jffs2_do_clear_inode().
    It ensures to release acl cache when inode is cleared.

    Signed-off-by: KaiGai Kohei
    Signed-off-by: David Woodhouse

    KaiGai Kohei
     

30 Jun, 2006

1 commit


29 Jun, 2006

1 commit

  • When xd->refcnt is checked whether this xdatum should be released
    or not, atomic_dec_and_lock() is used to ensure holding the
    c->erase_completion_lock.

    This fix change a specification of delete_xattr_datum().
    Previously, it's only called when xd->refcnt equals zero.
    (calling it with positive xd->refcnt cause a BUG())
    If you applied this patch, the function checks whether
    xd->refcnt is zero or not under the spinlock if necessary.
    Then, it marks xd DEAD flahs and links with xattr_dead_list
    or releases it immediately when xd->refcnt become zero.

    Signed-off-by: KaiGai Kohei
    Signed-off-by: David Woodhouse

    KaiGai Kohei
     

28 Jun, 2006

16 commits

  • * git://git.infradead.org/mtd-2.6:
    [MTD] NAND: Select chip before checking write protect status
    [MTD] CORE mtdchar.c: fix off-by-one error in lseek()
    [MTD] NAND: Fix typo in mtd/nand/ts7250.c
    [JFFS2][XATTR] coexistence between xattr and write buffering support.
    [JFFS2][XATTR] Fix wrong copyright
    [JFFS2][XATTR] Re-define xd->refcnt as atomic_t
    [JFFS2][XATTR] Fix memory leak with jffs2_xattr_ref
    [JFFS2][XATTR] rid unnecessary writing of delete marker.
    [JFFS2][XATTR] Fix ACL bug when updating null xattr by null ACL.
    [JFFS2][XATTR] using 'delete marker' for xdatum/xref deletion
    [MTD] Fix off-by-one error in physmap.c
    [MTD] Remove unused 'nr_banks' variable from ixp2000 map driver
    [MTD NAND] s3c2412 support in s3c2410.c
    [MTD] Initialize 'writesize'
    [MTD] NAND: ndfc fix address offset thinko
    [MTD] NAND: S3C2410 convert prinks to dev_*()s
    [MTD] NAND: Missing fixups

    Linus Torvalds
     
  • * git://oss.sgi.com:8090/nathans/xfs-2.6:
    [XFS] Fixup whitespace damage in log_write, remove final warning.
    [XFS] Rework code snippets slightly to remove remaining recent-gcc
    [XFS] Fix realtime subvolume expansion, a porting bug b0rked it. Coverity
    [XFS] Remove a race condition where a linked inode could BUG_ON in
    [XFS] Remove redundant directory checks from inode link operation.
    [XFS] Remove a couple of no-longer-used macros.
    [XFS] Reduce size of xfs_trans_t structure. * remove ->t_forw, ->t_back --
    [XFS] remove unused behaviour lock - shrink XFS vnode as a side effect.
    [XFS] * There is trivial "inode => vnode => inode" conversion, but only
    [XFS] link(2) on directory is banned in VFS.

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6: (25 commits)
    [CIFS] Fix authentication choice so we do not force NTLMv2 unless the
    [CIFS] Fix alignment of unicode strings in previous patch
    [CIFS] Fix allocation of buffers for new session setup routine to allow
    [CIFS] Remove calls to to take f_owner.lock
    [CIFS] remove some redundant null pointer checks
    [CIFS] Fix compile warning when CONFIG_CIFS_EXPERIMENTAL is off
    [CIFS] Enable sec flags on mount for cifs (part one)
    [CIFS] Fix suspend/resume problem which causes EIO on subsequent access to
    [CIFS] fix minor compile warning when config_cifs_weak_security is off
    [CIFS] NTLMv2 support part 5
    [CIFS] Add support for readdir to legacy servers
    [CIFS] NTLMv2 support part 4
    [CIFS] NTLMv2 support part 3
    [CIFS] NTLMv2 support part 2
    [CIFS] Fix mask so can set new cifs security flags properly
    CIFS] Support for older servers which require plaintext passwords - part 2
    [CIFS] Support for older servers which require plaintext passwords
    [CIFS] Fix mapping of old SMB return code Invalid Net Name so it is
    [CIFS] Missing brace
    [CIFS] Do not overwrite aops
    ...

    Linus Torvalds
     
  • SGI-PV: 904196
    SGI-Modid: xfs-linux-melb:xfs-kern:26366a

    Signed-off-by: Nathan Scott

    Nathan Scott
     
  • Remove redundant NULL checks before kfree for fs/

    Signed-off-by: Jesper Juhl
    Acked-by: Mark Fasheh
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • Make use the of newly defined hotplug version of cpu_notifier functionality
    wherever appropriate.

    Signed-off-by: Chandra Seetharaman
    Cc: Ashok Raj
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chandra Seetharaman
     
  • Add missed ufsi->i_dir_start_lookup initialization in ufs_read_inode in
    UFS2 case. Also it cleans ufs_read_inode function to prevent such kind of
    situation in the future: it move depend on UFS type parts of code into
    separate functions and leaves in ufs_read_inode only generic code. It
    cleans code and avoids duplication.

    Signed-off-by: Evgeniy Dushistov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Evgeniy Dushistov
     
  • locking init cleanups:

    - convert " = SPIN_LOCK_UNLOCKED" to spin_lock_init() or DEFINE_SPINLOCK()
    - convert rwlocks in a similar manner

    this patch was generated automatically.

    Motivation:

    - cleanliness
    - lockdep needs control of lock initialization, which the open-coded
    variants do not give
    - it's also useful for -rt and for lock debugging in general

    Signed-off-by: Ingo Molnar
    Signed-off-by: Arjan van de Ven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     
  • - add a proper prototype for the following global function:
    - buffer_init()

    - make the following needlessly global function static:
    - end_buffer_async_write()

    Signed-off-by: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Localize poison values into one header file for better documentation and
    easier/quicker debugging and so that the same values won't be used for
    multiple purposes.

    Use these constants in core arch., mm, driver, and fs code.

    Signed-off-by: Randy Dunlap
    Acked-by: Matt Mackall
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Cc: "David S. Miller"
    Cc: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Move the i386 VDSO down into a vma and thus randomize it.

    Besides the security implications, this feature also helps debuggers, which
    can COW a vma-backed VDSO just like a normal DSO and can thus do
    single-stepping and other debugging features.

    It's good for hypervisors (Xen, VMWare) too, which typically live in the same
    high-mapped address space as the VDSO, hence whenever the VDSO is used, they
    get lots of guest pagefaults and have to fix such guest accesses up - which
    slows things down instead of speeding things up (the primary purpose of the
    VDSO).

    There's a new CONFIG_COMPAT_VDSO (default=y) option, which provides support
    for older glibcs that still rely on a prelinked high-mapped VDSO. Newer
    distributions (using glibc 2.3.3 or later) can turn this option off. Turning
    it off is also recommended for security reasons: attackers cannot use the
    predictable high-mapped VDSO page as syscall trampoline anymore.

    There is a new vdso=[0|1] boot option as well, and a runtime
    /proc/sys/vm/vdso_enabled sysctl switch, that allows the VDSO to be turned
    on/off.

    (This version of the VDSO-randomization patch also has working ELF
    coredumping, the previous patch crashed in the coredumping code.)

    This code is a combined work of the exec-shield VDSO randomization
    code and Gerd Hoffmann's hypervisor-centric VDSO patch. Rusty Russell
    started this patch and i completed it.

    [akpm@osdl.org: cleanups]
    [akpm@osdl.org: compile fix]
    [akpm@osdl.org: compile fix 2]
    [akpm@osdl.org: compile fix 3]
    [akpm@osdl.org: revernt MAXMEM change]
    Signed-off-by: Ingo Molnar
    Signed-off-by: Arjan van de Ven
    Cc: Gerd Hoffmann
    Cc: Rusty Russell
    Cc: Zachary Amsden
    Cc: Andi Kleen
    Cc: Jan Beulich
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     
  • warnings.

    SGI-PV: 904196
    SGI-Modid: xfs-linux-melb:xfs-kern:26364a

    Signed-off-by: Nathan Scott

    Nathan Scott
     
  • user specifies it is required or turns of ntlm

    Signed-off-by: Steve French

    Steve French
     
  • made me look at this code (bug id #344). We only return with
    XFS_ERROR(EINVAL) if mp->m_rtdev_targp is valid and pass it otherwise to
    xfs_read_buf() where some function calls later it gets dereferenced by an
    assert.

    SGI-PV: 954266
    SGI-Modid: xfs-linux-melb:xfs-kern:26363a

    Signed-off-by: Eric Sesterhenn
    Signed-off-by: Nathan Scott

    Eric Sesterhenn
     
  • Builds on ARM report link problems with common configurations like
    statically linked NFS (for nfsroot). The symptom is that __init
    section code references __exit section code; that won't work since
    the exit sections are discarded (since they can never be called).

    The best fix for these particular cases would be an "__init_or_exit"
    section annotation.

    Signed-off-by: David Brownell
    Acked-by: Trond Myklebust
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • Signed-off-by: Steve French

    Steve French
     

27 Jun, 2006

21 commits