1. 31 Aug, 2003 40 commits
    • Andrew Morton's avatar
      [PATCH] v4l use-after-free fix · d625bd72
      Andrew Morton authored
      From: Greg KH <greg@kroah.com>
      
      When working on converting the usb v4l drivers to the new v4l class
      changes, I ran into this nasty bug.  Seems that the core was using a
      structure after it had been freed.  The patch below fixes it.
      d625bd72
    • Andrew Morton's avatar
      [PATCH] Update ide.txt documentation to current ide.c · de141c53
      Andrew Morton authored
      From: Maciej Soltysiak <solt@dns.toxicfilms.tv>
      
      this patches updates Documentation/ide.txt to reflect more options that
      really are supported by the IDE driver (drivers/ide.c)
      de141c53
    • Andrew Morton's avatar
      [PATCH] Add the kernel janitors to MAINTAINERS · ed56ea68
      Andrew Morton authored
      From: "Randy.Dunlap" <rddunlap@osdl.org>
      
      Add the Kernel Janitors project to MAINTAINERS.
      
      Probably the trivial patch monkey should be there too.
      ed56ea68
    • Andrew Morton's avatar
      [PATCH] move DAC960 GAM IOCTLs into a new device · bbf41765
      Andrew Morton authored
      From: Dave Olien <dmo@osdl.org>
      
      The DAC960 driver uses an ugly overloading of the O_NONBLOCK flag to
      support the controller's RAID configuration features.
      
      Opening "/dev/rd/c0d0" with the O_NONBLOCK flag set returns a file
      descriptor that can be used to do RAID control operations using ioctl().
      The normal ioctl operations are not availabe with that file descriptor.
      
      This patch removes that O_NONBLOCK overloading from DAC960_open() and
      DAC960_ioctl() functions.  It introduces a new "miscellaneous" device
      named /dev/dac960_gam.  It uses minor device number 252 of the miscellaneous
      character devices.
      
      The currently distrubted "Global Array Manager" server distrubted by
      LSIlogic on their web page page works only on RH7.3 or earlier.  It doesn't
      work under RH9.  There are probably some library incompatabilities.
      So, I don't view this patch as breaking anything that currently works.
      If this software package is ever brought up to date (which I doubt),
      then it can be modified to use this new device at that time.
      bbf41765
    • Andrew Morton's avatar
      [PATCH] Call security hook from pid*_revalidate · 7909c355
      Andrew Morton authored
      From: Stephen Smalley <sds@epoch.ncsc.mil>
      
      This patch against 2.6.0-test3-mm3 adds calls to the security_task_to_inode
      hook to the pid*_revalidate functions to ensure that the inode security field
      is also updated appropriately for /proc/pid inodes.  This corresponds with
      the uid/gid update performed by the proc-pid-setuid-ownership-fix.patch that
      is already in -mm3.
      7909c355
    • Andrew Morton's avatar
      [PATCH] fix /proc/pid/fd ownership across setuid() · d24db0a5
      Andrew Morton authored
      From: "B. D. Elliott" <bde@nwlink.com>
      
      There's a bug:
      
      - Someone reads a (say) root-owned process's /proc/pid/fd directory
      
        The inodes are instantiated owned by root.
      
      - That process does a setuid
      
      - The /proc/pid/* files still have the old ownerships.
      
      This happened because we are now caching the proc entries.
      
      The patch rewrites the ownership of the inodes under /proc/pid in the
      d_revalidate() handler.
      d24db0a5
    • Andrew Morton's avatar
      [PATCH] disable prefetch on athlons · e2d3b22c
      Andrew Morton authored
      K7's (at least) are faulting in the prefetch instruction.  The AMD
      engineers have said they will be getting back to us on it, and the fix is
      looking complex, and nobody seems to be standing up to work on it.
      
      So hum.  The usual manifestation is an oops in hlist_for_each(), down in
      the VFS inode lookup code.  Disrupting our testers in this way is very bad,
      so this patch just disables prefetch on all AMD parts in a rather stupid
      way.
      e2d3b22c
    • Andrew Morton's avatar
      [PATCH] random: accounting and sleeping fixes · 294eef2b
      Andrew Morton authored
      From: Oliver Xymoron <oxymoron@waste.org>
      
      This fixes several calculation errors and races in entropy accounting
      that would allow /dev/random output to greatly exceed the measured
      entropy collection. This doesn't include any of my more controversial
      hardening, it just makes it behave as intended.
      
      It also corrects the operation of the 'catastrophic reseeding' feature
      so that it will actually prevent the state extension attack it's meant
      to guard against.
      
      And finally, it also fixes a couple missed wake-up and accidental
      sleep bugs uncovered by the above fixes.
      
      Debug instrumentation has been improved to help verify correctness.
      294eef2b
    • Andrew Morton's avatar
      [PATCH] random: SMP locking · fbf6dda7
      Andrew Morton authored
      From: Oliver Xymoron <oxymoron@waste.org>
      
      This patch adds locking for SMP. Apparently Willy never managed to
      revive his laptop with his version so I revived mine.
      
      The batch pool is copied as a block to avoid long lock hold times
      while mixing it into the primary pool. 
      
      Two locks are added:
      
      gobal batch_lock
         batch_entropy_store can be called from any context, and typically from
         interrupts -> spin_lock_irqsave
      
         batch_entropy_process is called called via schedule_delayed_work and
         runs in process context -> spin_lock_irq
      
      entropy_store.lock
         the mixing process is too expensive to be called from an interrupt
         context and the basic worker function extract_entropy can sleep, so
         all this stuff can be under a normal spin_lock
      fbf6dda7
    • Andrew Morton's avatar
      [PATCH] .config checks updated · b0c15cba
      Andrew Morton authored
      From: Sam Ravnborg <sam@ravnborg.org>
      
      When building a kernel right after 'make mrproper' resulted in a very short
      run, and no sign that .config was missing.  This has been fixed by adding a
      new rule for .config in the top-level Makefile, and a new target
      'silentoldconfig' in scripts/kconfig/Makefile.
      
      Cleaned up a bit in scripts/kconfig/Makefile
      b0c15cba
    • Neil Brown's avatar
      [PATCH] Fix compile errors in NFSv4 server · 32dfc756
      Neil Brown authored
      32dfc756
    • Linus Torvalds's avatar
      Merge bk://bk.arm.linux.org.uk/linux-2.6-rmk · 9b1ea0b2
      Linus Torvalds authored
      into home.osdl.org:/home/torvalds/v2.5/linux
      9b1ea0b2
    • Herbert Xu's avatar
      [PATCH] free_netdev typo · 038921ab
      Herbert Xu authored
      The free_netdev fixes in 2.6.0-test4 broke drivers/net/wan/cosa.c.
      This fixes it.
      038921ab
    • Guillaume Morin's avatar
      [PATCH] fix cu3088 group write · 24964bb1
      Guillaume Morin authored
      The current cu3088 ccwgroup write code overwrite the last char of the
      given arguments.  This fixes the problem.  It is been tested and applies
      on latest bk.
      24964bb1
    • Krishna Kumar's avatar
      [PATCH] Remaining task queue to work queue conversion. · 1de0513c
      Krishna Kumar authored
      Somewhere in the transition of task queue to the work queue, in
      stallion.c, some of the schedule_task were left out from being converted
      to schedule_work.  This fixes it.
      1de0513c
    • Arnaldo Carvalho de Melo's avatar
      [PATCH] cyc2x: sanitize ioremap usage & more · 058a26b7
      Arnaldo Carvalho de Melo authored
      	I wrote this driver a long time ago, and now, playing with my
      brand new PARISC machine I found these problems, could you please apply
      this patch?
      
      	Ah, the "& more" refers to some alignment problems also solved
      in this patch.
      058a26b7
    • Vinay K. Nallamothu's avatar
      [PATCH] pcmciamtd.c: remove release timer · 566fa176
      Vinay K. Nallamothu authored
      This patch removes the PCMCIA timer release functionality which is no
      longer required (or supported).
      566fa176
    • John Levon's avatar
      [PATCH] OProfile: correct CPU type for x86-64 · f41549ab
      John Levon authored
      Enable the Hammer specific events by giving the correct cpu string.
      From, and tested by, Will Cohen.
      f41549ab
    • Linus Torvalds's avatar
      Merge · bea9b7fa
      Linus Torvalds authored
      bea9b7fa
    • Linus Torvalds's avatar
      Merge bk://linux-dj.bkbits.net/agpgart · 5dbafd23
      Linus Torvalds authored
      into home.osdl.org:/home/torvalds/v2.5/linux
      5dbafd23
    • Linus Torvalds's avatar
      Merge bk://kernel.bkbits.net/jgarzik/net-drivers-2.6 · 7fbfb09e
      Linus Torvalds authored
      into home.osdl.org:/home/torvalds/v2.5/linux
      7fbfb09e
    • Hirofumi Ogawa's avatar
      [netdrvr 8139too] don't start thread when it's not needed · 0f5bb98d
      Hirofumi Ogawa authored
          The thread for was unneeded on chips other than CH_8139_K/8129. So,
          this patch doesn't create the thread on chips other than
          CH_8139_K/8129.
      0f5bb98d
    • Hirofumi Ogawa's avatar
      [netdrvr 8139too] remove driver-based poisoning of net_device · c418dd53
      Hirofumi Ogawa authored
      Harmless in 2.4, but causes oopses on rmmod in 2.6.
      
      slab poisoning can take care of this for us, anyway.
      c418dd53
    • Jeff Garzik's avatar
      Merge redhat.com:/spare/repo/linus-2.6 · 7cc6719e
      Jeff Garzik authored
      into redhat.com:/spare/repo/net-drivers-2.6
      7cc6719e
    • Jeff Garzik's avatar
      [netdrvr sk_mca] remove ancient-kernel compat code; fix bugs · 6b711861
      Jeff Garzik authored
      * removed ancient-kernel compat code from sk_mca.h.  I leave
        it to janitors to remove the now-useless SKMCA_xxx wrappers.
      * removed ancient-kernel compat code from sk_mca.c.
      * s/SKMCA_NETDEV/net_device/
      * fixed static net_device initialization (this will go away
        when dynamic-alloc patches land)
      6b711861
    • Jeff Garzik's avatar
      [netdrvr sk_mca] somebody typo'd in their cli()-to-spinlock conversion · 7775d66f
      Jeff Garzik authored
      Anybody with hardware, that can test this driver?
      7775d66f
    • Linus Torvalds's avatar
      Merge pmac IDE changes · 11dce97d
      Linus Torvalds authored
      11dce97d
    • Jeff Garzik's avatar
      fe6aad76
    • Jeff Garzik's avatar
      7cbf6784
    • Miles Bader's avatar
      11879fb2
    • Miles Bader's avatar
      [PATCH] Give v850 its own version of the vmlinux.lds.h RODATA macro · 4ccc2c29
      Miles Bader authored
      While it would be nice to keep using the generic version of RODATA, the
      v850's linker-script structure is sufficiently different from that of
      typical archs that it's not possible to use RODATA as it's currently
      defined.  I earlier suggested splitting the generic definition of RODATA
      into `RODATA_CONTENTS' and `RODATA' (a wrapper around RODATA_CONTENTS)
      where most archs would use RODATA, and the v850 would use
      RODATA_CONTENTS, however Kai didn't like that idea.
      
      It _may_ be possible to rewrite the v850's linker scripts into something
      more typical (using lots of individual output sections), but it doesn't
      seem at all straightforward, so I don't have the time to do it right
      now.
      
      Anyway, this is the short-term work-around so that Linus's kernel works
      on the v850.
      4ccc2c29
    • Yoshinori Sato's avatar
      [PATCH] h8300 include update · 98b0e789
      Yoshinori Sato authored
      o driver support headers update
      o fix warnings
      98b0e789
    • Yoshinori Sato's avatar
      [PATCH] h8300 interrupt problem fix · 640bba88
      Yoshinori Sato authored
      typo fixed.
      640bba88
    • Stelian Pop's avatar
      [PATCH] meye driver update · 7f70ae01
      Stelian Pop authored
      In order to bring the 2.4 and 2.6 versions in sync, here is the
      missing bit for the meye driver :)
      7f70ae01
    • Stelian Pop's avatar
      [PATCH] sonypi driver update · 7c2a1fdf
      Stelian Pop authored
      This updates the sonypi driver to the latest version:
              * document the fact that FX501/FX702 laptops are not supported
      
              * add battery insert/remove events (thanks to Daniel K.)
      
              * improve the event detection using a different port offset
                on 'type2' models (thanks to Daniel K.)
      7c2a1fdf
    • Linus Torvalds's avatar
      Merge http://lia64.bkbits.net/to-linus-2.5 · c334ec34
      Linus Torvalds authored
      into home.osdl.org:/home/torvalds/v2.5/linux
      c334ec34
    • Geert Uytterhoeven's avatar
      [PATCH] Atari floppy · 9b9f98ee
      Geert Uytterhoeven authored
      Atari floppy: Add missing includes and remove some unnecessary includes
      9b9f98ee
    • Geert Uytterhoeven's avatar
      [PATCH] M68k switch_to · 2fc6e0d6
      Geert Uytterhoeven authored
      M68k: Set last in switch_to(), fix asm constraints (from Andreas Schwab)
      2fc6e0d6
    • Geert Uytterhoeven's avatar
      [PATCH] Amiga floppy · f6135a3e
      Geert Uytterhoeven authored
      Amiga floppy: Add missing includes and remove some unnecessary includes (from
      Roman Zippel)
      f6135a3e
    • Geert Uytterhoeven's avatar
      [PATCH] Amiga z2ram · 7ff2b89c
      Geert Uytterhoeven authored
      Amiga z2ram: Add missing includes and remove some unnecessary includes
      7ff2b89c