1. 07 Aug, 2003 40 commits
    • Kazunori Miyazawa's avatar
      [IPV6]: Fix authentication error with TCP, with help from Joy Latten (latten@austin.ibm.com). · 3111b920
      Kazunori Miyazawa authored
      This patch makes the kernel consider extension header length in a dst.
      3111b920
    • Kazunori Miyazawa's avatar
      [IPV6]: Fix clearing in ah6 input. · 99c2a902
      Kazunori Miyazawa authored
      This patch fixes zero-clear in ah6_input.
      If calling pskb_expand_head, the kernel clears wrong memory.
      99c2a902
    • Ville Nuorvala's avatar
      [IPV6]: Fix bugs in ip6ip6_tnl_xmit(). · e8830aa5
      Ville Nuorvala authored
      - ip6_tunnel must give its own getfrag function to ip6_append_data()
      - fix dst leakage when encapsulated packet too bit
      e8830aa5
    • Herbert Xu's avatar
      611f1929
    • Herbert Xu's avatar
    • Paul Mackerras's avatar
      [PPP]: Fix two bugs wrt. compression/decompression. · 5dbaaa44
      Paul Mackerras authored
      This patch fixes two bugs that were stopping PPP compression (and in
      particular, Deflate compression) from working.
      
      The first bug was pointed out by Richard Moats.  In the conversion to
      use pskb_may_pull, we ended up with a bogus test which basically meant
      that the kernel driver never saw the CCP conf-ack packets and thus
      never enabled compression.
      
      The second bug crept in with the change of DEFLATE_MIN_SIZE from 8 to
      9.  Changing that definition had the unfortunate side-effect of
      changing the way that the code interpreted the encoded Deflate
      parameter bytes.  This meant that we were using the wrong window size,
      twice what we had actually negotiated with the peer.
      5dbaaa44
    • Stephen Hemminger's avatar
      524c95c1
    • Stephen Hemminger's avatar
      [NET]: Add unlikely tag to skb_pull(). · 0ea123bf
      Stephen Hemminger authored
      0ea123bf
    • Linus Torvalds's avatar
      Merge bk://are.twiddle.net/axp-2.5 · 0dbdce6f
      Linus Torvalds authored
      into home.osdl.org:/home/torvalds/v2.5/linux
      0dbdce6f
    • Richard Henderson's avatar
      [ALPHA] Enhanced EV6/EV7 error management. · 0b1afd0f
      Richard Henderson authored
      From Jay Estabrook <Jay.Estabrook@compaq.com>.
      0b1afd0f
    • Richard Henderson's avatar
      [ALPHA] Fix RTC init for LYNX. · 497f9226
      Richard Henderson authored
      From Jay Estabrook <Jay.Estabrook@compaq.com>.
      497f9226
    • Richard Henderson's avatar
      [ALPHA] IRQ updates to match x86 changes. · 264b8458
      Richard Henderson authored
      From Jay Estabrook <Jay.Estabrook@compaq.com>.
      264b8458
    • Andrew Morton's avatar
      [PATCH] initialise page->private · c987cb10
      Andrew Morton authored
      From: Nathan Scott <nathans@sgi.com>
      
      XFS wants to use page->private as a bitmap of uptodate indicators for
      sub-page-sized blocks (which is one of the things ->provate was intended
      for).
      
      But someone needs to initialise ->private somewhere.  best to do it in the
      page allocator, so the zeroness of a new page's ->private becomes a
      system-wide thing.
      c987cb10
    • Andrew Morton's avatar
      [PATCH] mtrr race fix · 93ecfc23
      Andrew Morton authored
      From: john stultz <johnstul@us.ibm.com>
      
      I've found a race in the mtrr ipi_handler() and set_mtrr() functions.
      
      Basically the server, set_mtrr() does the following:
      
        1.1 initialize a flag
        1.2 send ipi
        1.3 waits for all cpus to check in
        1.4 toggle flag
        1.5 do stuff
        1.6 wait for all cpus to check out
        1.7 toggle flag again
        1.8 return
      
      While the clients, running ipi_handler() do the following:
      
        2.1 check in
        2.2 wait for flag
        2.3 do stuff
        2.4 check out
        2.5 wait for flag
        2.6 return
      
      The problem is the flag is on the servers stack! So if 1.7 and 1.8
      executes before 2.5 happens, the client's pointer to the flag becomes
      invalid (likely overwritten) which causes the client to never see the
      flag change, hanging the box.
      
      The patch fixes that by adding a final synchronisation step in which the
      controlling CPU waits for all the IPI'ed CPUs to complete.
      93ecfc23
    • Andrew Morton's avatar
      [PATCH] declare struct irq_desc · 145c67ca
      Andrew Morton authored
      From: Martin Pool <mbp@samba.org>
      
      ia64_mv_irq_desc returns a 'struct irq_desc', which had a forward declaration
      but did not actually exist.  We're currently using a silly anonymous struct
      typedefed to irq_desc_t.
      
      Now add the structure name as well.
      145c67ca
    • Andrew Morton's avatar
      [PATCH] ext3: handle aborted journals in · 59c30d0f
      Andrew Morton authored
      Teach journal_get_write_access() and journal_get_undo_access() to handle
      aborted trasaction handles.
      59c30d0f
    • Andrew Morton's avatar
      [PATCH] itimer resolution and rounding fixes · 1b70d78f
      Andrew Morton authored
      From: george anzinger <george@mvista.com>
      
      a) Fixes bug 858 (http://bugme.osdl.org/show_bug.cgi?id=858)
      
         The problem was caused by round off error in calculating the correct
         jiffies value in micro seconds to do the round up to jiffies.  The fix
         is to do the round up AFTER conversion to jiffies, rather than before.
         This only affected the timeval to jiffies calculation.
      
      b) Changed the scale values to get the highest possible precision short
         of going to full 64-bit math.  This is particularly useful in the
         scaling of the seconds part of time.  The code now computes a trial
         value at compile time and adjusts the scaling if the result is less than
         32 bits.
      
      c) Adds comments to time.h to remove (I hope) ALL the confusion that
         this file use to generate.
      1b70d78f
    • Andrew Morton's avatar
      [PATCH] Add do_setitimer prototype to linux/time.h · 835980c4
      Andrew Morton authored
      From: Peter Chubb <peterc@gelato.unsw.edu.au>
      
      Currently, do_setitimer() is used in several files, but doesn't appear
      in any header.  Thus its declaration is repeated in some files, and
      its use causes a warning in others (because there is no declaration
      present).
      
      This patch:
           -- adds a couple of declarations to linux/times.h
           -- removes the (now duplicate) declarations from other files.
      835980c4
    • Andrew Morton's avatar
      [PATCH] NMI watchdog documentation for x86-64 · d8aceb1c
      Andrew Morton authored
      From: Ville Herva <vherva@niksula.hut.fi>
      
      NMI watchdog is nowadays supported on x86-64, too. The nmi-watchdog.txt
      document doesn't mention this. Here is a patch to add a few words on that.
      d8aceb1c
    • Andrew Morton's avatar
      [PATCH] fix free_all_bootmem_core for virtual memmap · 767aa962
      Andrew Morton authored
      From: jbarnes@sgi.com (Jesse Barnes)
      
      Currently, free_all_bootmem_core() assumes that the bdata for a given
      node will begin where the node's memory map begins.  This isn't
      necessarily true on machines that use a virtual memory map (e.g. ia64
      discontig machines), so we fix page to point to the first actual page of
      RAM on the node, which _does_ contain the bdata struct.
      767aa962
    • Andrew Morton's avatar
      [PATCH] export lookup_create() · d3d147ac
      Andrew Morton authored
      From: jbarnes@sgi.com (Jesse Barnes)
      
      hwgfs needs lookup_create(), and intermezzo already has copied it.
      
      Document it, export it to modules and fix intermezzo.
      d3d147ac
    • Andrew Morton's avatar
      [PATCH] Don't trigger NMI watchdog for panic delay · 88fbf07a
      Andrew Morton authored
      From: Andi Kleen <ak@muc.de>
      
      In some cases panic can be called with interrupts off.  Don't trigger the
      NMI watchdog in this case when a panic= parameter is specified.
      88fbf07a
    • Andrew Morton's avatar
      [PATCH] might_sleep() checks for x86 usercopy functions · 4bca8b2e
      Andrew Morton authored
      From: Matt Mackall <mpm@selenic.com>
      
      This only checks in the non-__ versions, as those are occassionally
      called inside things like kmap_atomic pairs which take a spinlock in
      with highmem. It's all conditional on CONFIG_DEBUG_SPINLOCK_SLEEP
      (which isn't quite the right name) so there's no overhead for normal
      builds.
      4bca8b2e
    • Andrew Morton's avatar
      [PATCH] ide-cd error handling oops fix · 30c633b8
      Andrew Morton authored
      cdrom_decode_status() can call cdrom_end_request() twice.  The second call
      oopses because the first call destroyed the request.
      
      Fix it to only call cdrom_end_request() once.
      
      Jens has acked this change.
      30c633b8
    • Andrew Morton's avatar
      [PATCH] move_one_page() atomicity fix · 8a8f9d8e
      Andrew Morton authored
      move_one_page() is awkward.  It grabs an atomic_kmap of the source pte
      (because it needs to know if there's really a page there) and then it needs
      to allocate a pte for the dest.  But it cannot allocate the dest pte while
      holding the src's atomic kmap.
      
      So it performs this little dance peeking at pagetables to predict if
      alloc_one_pte_map() might need to perform a pte page allocation.
      
      When I wrote this code I made it conditional on CONFIG_HIGHPTE.  But that was
      bogus: even in the !CONFIG_HIGHPTE case, get_one_pte_map_nested() will run
      atomic_kmap() against the pte page, which disables preemption.
      
      Net effect: with CONFIG_HIGHMEM && !CONFIG_HIGHPTE we can end up performing a
      GFP_KERNEL pte page allocation while preemption is disabled.  It triggers a
      might_sleep() warning and indeed is buggy.
      
      So the patch removes the conditionality: even in the !CONFIG_HIGHPTE case we
      still do the pagetable peek and drop the kmap if necessary.
      
      (Arguably, we shouldn't be performing the atomic_kmap() at all if
      !CONFIG_HIGHPTE: all it does is a pointless preemption disable).
      
      (Arguably, kmap_atomic() should not be disabling preemption if the target
      page is not highmem.  But we're doing it anyway at present for consistency
      (ie: debug coverage) and because the filemap.c pagecache copying functions
      rely on kmap_atomic() disabling do_no_page() for all pages: see
      do_no_page()'s use of in_atomic()).
      8a8f9d8e
    • Andrew Morton's avatar
      [PATCH] remount_fs needs lock_kernel() · bb29ae49
      Andrew Morton authored
      The new emergency remount path forgot to take lock_kernel(), which is
      required for ->remount_fs().
      bb29ae49
    • Andrew Morton's avatar
      [PATCH] reiserfs: fix races between link and unlink on same · ddc7ccd3
      Andrew Morton authored
      From: Oleg Drokin <green@namesys.com>
      
      This patch (originally by Chris Mason) fixes link/unlink races in reiserfs.
      ddc7ccd3
    • Andrew Morton's avatar
      [PATCH] reiserfs: fix problem when fs is out of space · 0dff0b1b
      Andrew Morton authored
      From: Oleg Drokin <green@namesys.com>
      
      This patch fixes various bad stuff that happens when you write to full or
      almost full reiserfs filesystem.
      0dff0b1b
    • Andrew Morton's avatar
      [PATCH] reiserfs: fix savelinks on bigendian arches · 3491b2bc
      Andrew Morton authored
      From: Oleg Drokin <green@namesys.com>
      
      This small patch fixes a savelinks problem on bigendian platforms, where
      savelinks were not working at all because of incorrect cpu->disk endianness
      conversion.
      
      Savelinks are used on reiserfs to remember "truncate" and "unlink" events
      so that if crash happens in the middle of truncate/unlink, we do not endup
      with lost or half truncated files.
      3491b2bc
    • Andrew Morton's avatar
      [PATCH] dm: resume() name clash · 9b111f76
      Andrew Morton authored
      From: Joe Thornber <thornber@sistina.com>
      
      Some architectures define an extern function called resume(), which
      clashes with a static function in dm-ioctl-v4.c.  Rename static one to
      do_resume().
      9b111f76
    • Andrew Morton's avatar
      [PATCH] [patch 7/25 dm: use sector_div() · d2571b1f
      Andrew Morton authored
      From: Joe Thornber <thornber@sistina.com>
      
      Use sector_div() rather than defining own version.  [Christophe Saout]
      d2571b1f
    • Andrew Morton's avatar
      [PATCH] dm: missing #include · 6247e3d5
      Andrew Morton authored
      From: Joe Thornber <thornber@sistina.com>
      
      Missing #include
      6247e3d5
    • Andrew Morton's avatar
      [PATCH] dm: 64 bit ioctl fixes · 35a4a8e8
      Andrew Morton authored
      From: Joe Thornber <thornber@sistina.com>
      
      Update the ioctl32 handlers for the 64-bit architectures to recognize
      the new Device-Mapper version 4 ioctls. The version 1 ioctls are still
      there.  If/When the version 1 ioctls are removed, these same files
      will need to be updated again.
      
      I have been unable to test this patch yet, since I have not had any
      luck getting 2.6.0-test2 to compile on my ppc64 box (not a dm-related
      problem).  But the patch is pretty trivial, so I'm pretty confident it
      will work. If anyone else can test this (on mips64, sparc64, parisc,
      or x86-64), let me know if you have any problems.  [Kevin Corry]
      35a4a8e8
    • Andrew Morton's avatar
      [PATCH] dm: decimal device num sscanf · aa2c597c
      Andrew Morton authored
      From: Joe Thornber <thornber@sistina.com>
      
      The 2.4 version of Device-Mapper scans for device-numbers in decimal
      instead of hex (in dm_get_device()). Update 2.6 so both versions use
      the same behavior.  [Kevin Corry]
      aa2c597c
    • Andrew Morton's avatar
      [PATCH] dm: remove blk.h include · 7e22b406
      Andrew Morton authored
      From: Joe Thornber <thornber@sistina.com>
      
      Remove includes of <linux/blk.h>. This header is deprecated in 2.6.
      [Kevin Corry]
      7e22b406
    • Andrew Morton's avatar
      [PATCH] dm: don't use MODULE_PARM · cdabd5b1
      Andrew Morton authored
      From: Joe Thornber <thornber@sistina.com>
      
      MODULE_PARM is deprecated in 2.6. Use the new module_param() macro.
      [Kevin Corry]
      cdabd5b1
    • Andrew Morton's avatar
      [PATCH] ax8817x.c build fix for older gcc's · ddff49c1
      Andrew Morton authored
      Work around gcc-2.9x token-pasting bug by adding a space in front of the
      comma.
      ddff49c1
    • Gerd Knorr's avatar
      [PATCH] v4l: bttv driver update · 66332b52
      Gerd Knorr authored
       * the usual pile of tv card database updates.
       * various signed/unsigned fixups (fix gcc 3.3 warnings)
         and releated cleanups (use ARRAY_SIZE macro, ...).
       * moved some code which can be shared with the new,
         upcoming cx2388x driver to a separate module.
       * split the irq handler into smaller functions.
       * some new features (field rate capture support for example).
       * simplified i2c code a bit by removing redundant
         bookkeeping of attached i2c clients.
       * merged i2c changes back into my tree, there are some no-op
         changes due to this.
       * various other bugfixes.
       * fix build failure with CONFIG_FW_LOADER enabled
      66332b52
    • Gerd Knorr's avatar
      [PATCH] v4l: sysfs'ify videodev · d0c54b7a
      Gerd Knorr authored
      This patch drops procfs code from videodev.c and adds sysfs support
      instead.  It adds a new class where all v4l devices are listed.  It
      also provides some new helper functions for v4l drivers.
      d0c54b7a
    • Bartlomiej Zolnierkiewicz's avatar
      [PATCH] fix CONFIG_IDEDISK_STROKE support in ide-disk.c · 78808d51
      Bartlomiej Zolnierkiewicz authored
      Original patch from Erik Andersen <andersen@codepoet.org>:
      - fix CONFIG_IDEDISK_STROKE by adding proper detection of HPA feature set
        and removing IDE_STROKE_LIMIT
      - remove irrelevant idedisk_supports_host_protected_area()
      - make the HPA detection actually display useful information
      
      I've reworked it a bit:
      - detect HPA before calculating drive's geometry
      - move HPA detection outside init_idedisk_capacity()
        to idedisk_check_hpa_lba28() and idedisk_check_hpa_lba48()
      - use sectors_to_MB()
      - respect 80-column limit
      78808d51