02 May, 2008

4 commits


01 May, 2008

2 commits


30 Apr, 2008

1 commit


23 Apr, 2008

9 commits


22 Apr, 2008

7 commits


19 Apr, 2008

1 commit


15 Apr, 2008

1 commit

  • This fixes a regression introduced in commit
    205c109a7a96d9a3d8ffe64c4068b70811fef5e8 when switching to
    write_begin/write_end operations in JFFS2.

    The page offset is miscalculated, leading to corruption of the fragment
    lists and subsequently to memory corruption and panics.

    [ Side note: the bug is a fairly direct result of the naming. Nick was
    likely misled by the use of "offs", since we tend to use the notion of
    "offset" not as an absolute position, but as an offset _within_ a page
    or allocation.

    Alternatively, a "pgoff_t" is a page index, but not a byte offset -
    our VM naming can be a bit confusing.

    So in this case, a VM person would likely have called this a "pos",
    not an "offs", or perhaps talked about byte offsets rather than page
    offsets (since it's counted in bytes, not pages). - Linus ]

    Signed-off-by: Alexey Korolev
    Signed-off-by: Vasiliy Leonenko
    Signed-off-by: David Woodhouse
    Signed-off-by: Linus Torvalds

    Alexey Korolev
     

25 Feb, 2008

2 commits


08 Feb, 2008

3 commits

  • * git://git.infradead.org/mtd-2.6: (120 commits)
    [MTD] Fix mtdoops.c compilation
    [MTD] [NOR] fix startup lock when using multiple nor flash chips
    [MTD] [DOC200x] eccbuf is statically defined and always evaluate to true
    [MTD] Fix maps/physmap.c compilation with CONFIG_PM
    [MTD] onenand: Add panic_write function to the onenand driver
    [MTD] mtdoops: Use the panic_write function when present
    [MTD] Add mtd panic_write function pointer
    [MTD] [NAND] Freescale enhanced Local Bus Controller FCM NAND support.
    [MTD] physmap.c: Add support for multiple resources
    [MTD] [NAND] Fix misparenthesization introduced by commit 78b65179...
    [MTD] [NAND] Fix Blackfin NFC ECC calculating bug with page size 512 bytes
    [MTD] [NAND] Remove wrong operation in PM function of the BF54x NFC driver
    [MTD] [NAND] Remove unused variable in plat_nand_remove
    [MTD] Unlocking all Intel flash that is locked on power up.
    [MTD] [NAND] at91_nand: Make mtdparts option can override board info
    [MTD] mtdoops: Various minor cleanups
    [MTD] mtdoops: Ensure sequential write to the buffer
    [MTD] mtdoops: Perform write operations in a workqueue
    [MTD] mtdoops: Add further error return code checking
    [MTD] [NOR] Test devtype, not definition in flash_probe(), drivers/mtd/devices/lart.c
    ...

    Linus Torvalds
     
  • Stop the JFFS2 filesystem from using iget() and read_inode(). Replace
    jffs2_read_inode() with jffs2_iget(), and call that instead of iget().
    jffs2_iget() then uses iget_locked() directly and returns a proper error code
    instead of an inode in the event of an error.

    jffs2_do_fill_super() returns any error incurred when getting the root inode
    instead of EINVAL.

    Signed-off-by: David Howells
    Cc: David Woodhouse
    Acked-by: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Howells
     
  • Convert instances of ERR_PTR(PTR_ERR(p)) to ERR_CAST(p) using:

    perl -spi -e 's/ERR_PTR[(]PTR_ERR[(](.*)[)][)]/ERR_CAST(\1)/' `grep -rl 'ERR_PTR[(]*PTR_ERR' fs crypto net security`

    Signed-off-by: David Howells
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Howells
     

03 Feb, 2008

2 commits


08 Jan, 2008

1 commit

  • posix_acl_clone does a memory allocation and sets a reference count, so
    posix_acl_release is needed afterwards to free it.

    The problem was fixed using the following semantic patch.
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @@
    type T;
    identifier E;
    expression E1, E2;
    int ret;
    statement S;
    @@

    T E;

    //

    Signed-off-by: Julia Lawall
    Acked-by: KaiGai Kohei
    Signed-off-by: David Woodhouse

    Julia Lawall
     

04 Dec, 2007

1 commit


28 Nov, 2007

1 commit


22 Nov, 2007

1 commit


06 Nov, 2007

2 commits


02 Nov, 2007

2 commits

  • dwmw2: anyway, removing sgid from directories or from
    files without S_IXGRP is a plain and simple bug
    these days you don't need that logics at all - simply remove it

    Signed-off-by: David Woodhouse

    David Woodhouse
     
  • Commit a491486a2087ac3dfc00efb4f838c8d684afaf54 started obliterating
    dirents directly on the medium, when jffs2_can_mark_obsolete(). Removing
    them immediately from the f->dents list, however, screws up handling of
    f_pos within a directory -- because the offset is equivalent to the
    number of entries through the list we are, and the existence of
    deletion dirents served to provide 'placeholders' for unlinked
    entries. Now, 'rm -r' doesn't even manage to unlink everything in the
    directory.

    Revert to keeping 'deletion' dirents in the list, at least in memory
    even though we no longer write anything to the medium.

    Spotted, debugged and mostly fixed by Joakim Tjernlund

    Signed-off-by: David Woodhouse

    David Woodhouse