1. 25 10月, 2006 4 次提交
    • P
      [NETFILTER]: Fix ip6_tables extension header bypass bug · 6d381634
      Patrick McHardy 提交于
      As reported by Mark Dowd <Mark_Dowd@McAfee.com>, ip6_tables is susceptible
      to a fragmentation attack causing false negatives on extension header matches.
      
      When extension headers occur in the non-first fragment after the fragment
      header (possibly with an incorrect nexthdr value in the fragment header)
      a rule looking for this extension header will never match.
      
      Drop fragments that are at offset 0 and don't contain the final protocol
      header regardless of the ruleset, since this should not happen normally.
      Since all extension headers are before the protocol header this makes sure
      an extension header is either not present or in the first fragment, where
      we can properly parse it.
      
      With help from Yasuyuki KOZAKAI <yasuyuki.kozakai@toshiba.co.jp>.
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6d381634
    • P
      [NETFILTER]: Fix ip6_tables protocol bypass bug · 51d8b1a6
      Patrick McHardy 提交于
      As reported by Mark Dowd <Mark_Dowd@McAfee.com>, ip6_tables is susceptible
      to a fragmentation attack causing false negatives on protocol matches.
      
      When the protocol header doesn't follow the fragment header immediately,
      the fragment header contains the protocol number of the next extension
      header. When the extension header and the protocol header are sent in
      a second fragment a rule like "ip6tables .. -p udp -j DROP" will never
      match.
      
      Drop fragments that are at offset 0 and don't contain the final protocol
      header regardless of the ruleset, since this should not happen normally.
      
      With help from Yasuyuki KOZAKAI <yasuyuki.kozakai@toshiba.co.jp>.
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      51d8b1a6
    • P
      [XFRM]: Fix xfrm_state accounting · 2fab22f2
      Patrick McHardy 提交于
      xfrm_state_num needs to be increased for XFRM_STATE_ACQ states created
      by xfrm_state_find() to prevent the counter from going negative when
      the state is destroyed.
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2fab22f2
    • A
      [IPV4] ipconfig: fix RARP ic_servaddr breakage · 82571026
      Al Viro 提交于
      memcpy 4 bytes to address of auto unsigned long variable followed
      by comparison with u32 is a bloody bad idea.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      82571026
  2. 24 10月, 2006 5 次提交
    • L
      Linux 2.6.19-rc3 · 7059abed
      Linus Torvalds 提交于
      7059abed
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog · 6d03a68e
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog: (33 commits)
        [WATCHDOG] remove experimental on iTCO_wdt.c
        [WATCHDOG] Atmel AT91RM9200 rename.
        [WATCHDOG] includes for sample watchdog program.
        [WATCHDOG] watchdog/iTCO_wdt: fix bug related to gcc uninit warning
        [WATCHDOG] add ich8 support to iTCO_wdt.c (patch 2)
        [WATCHDOG] add ich8 support to iTCO_wdt.c
        [WATCHDOG] ioremap balanced with iounmap for drivers/char/watchdog/s3c2410_wdt.c
        [WATCHDOG] w83697hf/hg WDT driver - Kconfig patch
        [WATCHDOG] w83697hf/hg WDT driver - autodetect patch
        [WATCHDOG] w83697hf/hg WDT driver - patch 16
        [WATCHDOG] w83697hf/hg WDT driver - patch 15
        [WATCHDOG] w83697hf/hg WDT driver - patch 14
        [WATCHDOG] w83697hf/hg WDT driver - patch 13
        [WATCHDOG] w83697hf/hg WDT driver - patch 12
        [WATCHDOG] w83697hf/hg WDT driver - patch 11
        [WATCHDOG] w83697hf/hg WDT driver - patch 10
        [WATCHDOG] w83697hf/hg WDT driver - patch 9
        [WATCHDOG] w83697hf/hg WDT driver - patch 8
        [WATCHDOG] w83697hf/hg WDT driver - patch 7
        [WATCHDOG] w83697hf/hg WDT driver - patch 6
        ...
      6d03a68e
    • L
      Revert unintentional and bogus change to drivers/pci/quirks.c · 0c0e4668
      Linus Torvalds 提交于
      In commit 4e8a5201 ("[PKT_SCHED] netem:
      Orphan SKB when adding to queue.") Davem mistakenly also included a
      temporary diff in his tree that disabled the pci_fixup_video VGA quirk,
      which broke sparc64.
      
      This reverts that part of the commit. Sayeth Davem:
      
        "Greg KH has a patch coming to you soon which will move that VGA code
         back into x86/x86_64/IA64 specific areas and will fix the sparc64
         problem properly."
      
      Special thanks to Claudio Martins <ctpm@ist.utl.pt> for noticing the
      error in the first place.
      
      Cc: Claudio Martins <ctpm@ist.utl.pt>
      Cc: David Miller <davem@davemloft.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      0c0e4668
    • R
      [PATCH] Remove __must_check for device_for_each_child() · 04fed361
      Russell King 提交于
      Eliminate more __must_check madness.
      
      The return code from device_for_each_child() depends on the values
      which the helper function returns.  If the helper function always
      returns zero, it's utterly pointless to check the return code from
      device_for_each_child().
      
      The only code which knows if the return value should be checked is
      the caller itself, so forcing the return code to always be checked
      is silly.  Hence, remove the __must_check annotation.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      04fed361
    • L
      Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/perex/alsa · dee6515b
      Linus Torvalds 提交于
      * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/perex/alsa:
        [ALSA] hda-intel - Add check of MSI availabity
        [ALSA] version 1.0.13
        [ALSA] Fix addition of user-defined boolean controls
        [ALSA] Fix AC97 power-saving mode
        [ALSA] Fix re-use of va_list
        [ALSA] hda_intel: add ATI RS690 HDMI audio support
        [ALSA] hda-codec - Add model entry for ASUS U5F laptop
        [ALSA] Fix dependency of snd-adlib driver in Kconfig
        [ALSA] Various fixes for suspend/resume of ALSA PCI drivers
        [ALSA] hda-codec - Fix assignment of PCM devices for Realtek codecs
        [ALSA] sound/isa/opti9xx/opti92x-ad1848.c: check kmalloc() return value
        [ALSA] sound/isa/ad1816a/ad1816a.c: check kmalloc() return value
        [ALSA] sound/isa/cmi8330.c: check kmalloc() return value
        [ALSA] sound/isa/gus/interwave.c: check kmalloc() return value
      dee6515b
  3. 23 10月, 2006 8 次提交
  4. 22 10月, 2006 23 次提交