1. 04 Jun, 2003 14 commits
    • Andrew Morton's avatar
      [PATCH] reiserfs option parser fix and ability to pass · b743d13b
      Andrew Morton authored
      From: Oleg Drokin <green@namesys.com>
      
      This patch adds support for remounting taking into account all extra options
      you may want to pass it.  (by Jeff Mahooney).
      
      Also it reworks the parser to correctly deal with mutually exclusive options.
      Now whatever option was specified last will take an effect.
      
      - If you pass more than one jdev= option, the error will be reported and
        mount/remount refused.
      
      - If you pass incorrect alloc= suboptions, the mount/remount will fail.
        (it did not before).
      
      - nolargeio now actually looks at its argument.  Argument is expected to be
        numeric.  If it is zero, default io size is set to 128k (default setting),
        if it is non-zero, default io size is set to PAGE_SIZE.
      b743d13b
    • Andrew Morton's avatar
      [PATCH] Fix generic_file_write() again. · b7651add
      Andrew Morton authored
      From: "Milton D. Miller II" <miltonm@realtime.net>
      
      The code at present has a small problem: when a fault is encountered we will
      run commit_write() to cover the amount of data which was successfully copied
      in from userspace.
      
      But filemap_copy_from_user() may have zeroed out some more of the page.  So
      pagecache now has zeroes and the buffer_head which represents those zeroes is
      not dirtied.  So a subsequent eviction and re-read of the file in the window
      beyond the faulting offset will return the file's old contents and not the
      zeroes.
      
      So we change filemap_copy_from_user_iovec() to have the same behaviour as the
      non-iovec filemap_copy_from_user(), and ensure that the commit_write() covers
      the parts of the page which copy_from_user() zeroed out.
      b7651add
    • Andrew Morton's avatar
      [PATCH] Graceful failure in devfs_remove() · 2632cc57
      Andrew Morton authored
      From: Pavel Roskin <proski@gnu.org>, via Christoph Hellwig <hch@infradead.org>
      
      It's already the second time that I encounter a kernel panic in the same
      place.  When devfs_remove() is called on a non-existent file entry, the
      kernel panics and I have to reboot the system.
      
      First time it was unregistering of pseudoterminals.  This time it's
      ide-floppy module that doesn't register devfs entries if the media is absent
      but still tries to unregister them.  The bug in ide-floppy will be reported
      separately.
      
      The point of this message is that the failure in devfs_remove() is possible,
      especially with rarely used drivers.  Secondly, is not fatal enough to
      justify an immediate panic and reboot.  Thirdly, devfs misses a chance to
      tell the user what's going wrong.
      2632cc57
    • Andrew Morton's avatar
      [PATCH] fix bw-qcam.c bad copy_to_user · ebd913f0
      Andrew Morton authored
      From: Hollis Blanchard <hollisb@us.ibm.com>
      
      Like radio-cadet.c, bw-qcam.c is calling copy_to_user() where it shouldn't.
      The user buffer is copied to/from kernel space by
      drivers/media/video/videodev.c:video_usercopy().
      ebd913f0
    • Andrew Morton's avatar
      [PATCH] pnpbios dereferencing user pointer · 55e3bcda
      Andrew Morton authored
      From: Hollis Blanchard <hollisb@us.ibm.com>
      
      Another simple case of a memcpy that should be copy_from_user...
      
      Also fix some error-path memory leaks.
      55e3bcda
    • Andrew Morton's avatar
      [PATCH] remove unsafe BUG_ON() · 82980ce2
      Andrew Morton authored
      From: Hugh Dickins <hugh@veritas.com>
      
      PageDirty BUG_ON in __remove_inode_page is, and always has been, unsafe for
      SMP or preemption: truncation may be racing against unmapping's
      set_page_dirty in zap_pte_range (amongst a few other possibilities).
      !PageUptodate error in __set_page_dirty_buffers is unsafe then too.
      82980ce2
    • Andrew Morton's avatar
      [PATCH] zr36120: fix improper access to userspace · 938da621
      Andrew Morton authored
      From: Hollis Blanchard <hollisb@us.ibm.com>
      
      Fix a direct userspace access, found by the Stanford checker.
      938da621
    • Andrew Morton's avatar
      [PATCH] cmpci: fix improper access to userspace · ff94d27a
      Andrew Morton authored
      From: Hollis Blanchard <hollisb@us.ibm.com>
      
      Fix a direct userspace access, found by the Stanford checker.
      ff94d27a
    • Andrew Morton's avatar
      [PATCH] radio-cadet.c: remove unnecessary copy_to_user() · 2cb28602
      Andrew Morton authored
      From: Hollis Blanchard <hollisb@us.ibm.com>
      
      As pointed out by the Stanford checker, 'v' is not tainted.  The driver
      shouldn't be using copy_to_user() in cadet_do_ioctl() at all:
      
        cadet_do_ioctl() is being called by drivers/media/video/videodev.c:
        video_usercopy(), which has already copied the buffer 'arg' (aka 'v')
        into kernel space, and will copy it back after cadet_do_ioctl()
        returns.  So all the direct 'v' accesses are correct.
      2cb28602
    • Andrew Morton's avatar
      [PATCH] clean up timer interpolation code · 1b3b38f8
      Andrew Morton authored
      From: Christoph Hellwig <hch@lst.de>
      
      - don't add one level of indentation when taking a lock
      
      - remove useless ti_global struct
      1b3b38f8
    • Andrew Morton's avatar
      [PATCH] aio: small cleanups · d8a2bcae
      Andrew Morton authored
      - comment fixes
      
      - duplicated assignments
      
      - Remove a prototype which is in aio.h already
      
      - Some __user annotation
      
      - use the existing symbolic names, not magic numbers.
      d8a2bcae
    • Andrew Morton's avatar
      [PATCH] fix broken networking · 95ade38c
      Andrew Morton authored
      Fix broken "cleanup"
      95ade38c
    • Linus Torvalds's avatar
      Merge bk://kernel.bkbits.net/gregkh/linux/pci-2.5 · 9be2217a
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      9be2217a
    • Linus Torvalds's avatar
      Merge bk://bk.arm.linux.org.uk/linux-2.5-rmk · 3f3bdf8e
      Linus Torvalds authored
      into home.transmeta.com:/home/torvalds/v2.5/linux
      3f3bdf8e
  2. 05 Jun, 2003 2 commits
    • Russell King's avatar
      [ARM] Tidy up Integrator core support. · 8698cff8
      Russell King authored
      This merges arch.c, irq.c and mm.c into one core file for this
      platform; it's pointless keeping these separate.
      8698cff8
    • Russell King's avatar
      [ARM] Convert platform devices to use platform_device · 4f00f1c2
      Russell King authored
      Since struct platform_device now has the ability to pass resources,
      defined by the platform to the device driver, we can now use this
      to handle platform specific devices.  One such instance is the
      StrongARM SA1111 companion chip, which can appear in various address
      spaces, and connected to different IRQ lines depending on how many
      cups of coffee the hardware designer had, the direction of the wind
      outside the designers office that day.
      
      We also convert some of the other StrongARM peripheral on-chip
      devices to use struct platform_device.
      
      ARM also provides a platform_add_devices() function which can be
      used by platform code to bulk-register a tabular set of platform
      devices.
      4f00f1c2
  3. 04 Jun, 2003 24 commits