1. 03 5月, 2006 7 次提交
    • V
      [PATCH] ppc32 CPM_UART: Fixed break send on SCC · 61f5657c
      Vitaly Bordug 提交于
      SCC uart sends a break sequence each time it is stopped with the
      CPM_CR_STOP_TX command. That means that each time an application closes the
      serial device, a break is transmitted. To fix this, graceful tx stop is
      issued for SCC.
      Signed-off-by: NDavid Jander <david.jander@protonic.nl>
      Signed-off-by: NVitaly Bordug <vbordug@ru.mvista.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      61f5657c
    • A
      [PATCH] powerpc/kprobes: fix singlestep out-of-line · 0ccde0a2
      Ananth N Mavinakayanahalli 提交于
      We currently single-step inline if the instruction on which a kprobe is
      inserted is a trap variant.
      
      - variants (such as tdnei, used by BUG()) typically evaluate a condition
        and cause a trap only if the condition is satisfied.
      - kprobes uses the unconditional "trap" (0x7fe00008) and single-stepping
        again on this instruction, resulting in another trap without
        evaluating the condition is obviously incorrect.
      Signed-off-by: NAnanth N Mavinakayanahalli <ananth@in.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      0ccde0a2
    • L
      [PATCH] powerpc/pseries: avoid crash in PCI code if mem system not up · 054d8ff3
      Linas Vepstas 提交于
      The powerpc code is currently performing PCI setup before memory
      initialization.  PCI setup touches PCI config space registers.  If the PCI
      card is bad, this will evoke an error, which currrently can't be handled,
      as the PCI error recovery code expects kmalloc() to be functional.  This
      patch will cause the system to punt instead of crashing with
      
      cpu 0x0: Vector: 300 (Data Access) at [c0000000004434d0]
          pc: c0000000000c06b4: .kmem_cache_alloc+0x8c/0xf4
          lr: c00000000004ad6c: .eeh_send_failure_event+0x48/0xfc
      
      This patch will also print name of the offending pci device.
      Signed-off-by: NLinas Vepstas <linas@austin.ibm.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      054d8ff3
    • P
      [NETFILTER] SCTP conntrack: fix infinite loop · e17df688
      Patrick McHardy 提交于
      fix infinite loop in the SCTP-netfilter code: check SCTP chunk size to
      guarantee progress of for_each_sctp_chunk(). (all other uses of
      for_each_sctp_chunk() are preceded by do_basic_checks(), so this fix
      should be complete.)
      
      Based on patch from Ingo Molnar <mingo@elte.hu>
      
      CVE-2006-1527
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e17df688
    • A
      forcedeth: fix multi irq issues · ebf34c9b
      Ayaz Abdulla 提交于
      This patch fixes the issues with multiple irqs.
      
      I am resending based on feedback. I decoupled the dma mask for
      consistent memory and fixed leak with multiple irq in error path.
      
      Thanks to Manfred for catching the spin lock problem.
      Signed-Off-By: NAyaz Abdulla <aabdulla@nvidia.com>
      ebf34c9b
    • C
      [PATCH] via-rhine: zero pad short packets on Rhine I ethernet cards · 3e0d167a
      Craig Brind 提交于
      Fixes Rhine I cards disclosing fragments of previously transmitted frames
      in new transmissions.
      
      Before transmission, any socket buffer (skb) shorter than the ethernet
      minimum length of 60 bytes was zero-padded.  On Rhine I cards the data can
      later be copied into an aligned transmission buffer without copying this
      padding.  This resulted in the transmission of the frame with the extra
      bytes beyond the provided content leaking the previous contents of this
      buffer on to the network.
      
      Now zero-padding is repeated in the local aligned buffer if one is used.
      
      Following a suggestion from the via-rhine maintainer, no attempt is made
      here to avoid the duplicated effort of padding the skb if it is known that
      an aligned buffer will definitely be used.  This is to make the change
      "obviously correct" and allow it to be applied to a stable kernel if
      necessary.  There is no change to the flow of control and the changes are
      only to the Rhine I code path.
      
      The patch has run on an in-service Rhine-I host without incident.  Frames
      shorter than 60 bytes are now correctly zero-padded when captured on a
      separate host.  I see no unusual stats reported by ifconfig, and no unusual
      log messages.
      Signed-off-by: NCraig Brind <craigbrind@gmail.com>
      Signed-off-by: NRoger Luethi <rl@hellgate.ch>
      Cc: Jeff Garzik <jeff@garzik.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      3e0d167a
    • O
      [PATCH] mv643xx_eth: provide sysfs class device symlink · b0b8dab2
      Olaf Hering 提交于
      On Sat, Mar 11, Olaf Hering wrote:
      > Why is the /sys/class/net/eth0/device symlink not created for the
      > mv643xx_eth driver? Does this work for other platform device drivers?
      > Seems to work for the ps2 keyboard at least.
      
      The SET_NETDEV_DEV has to be done before a call to register_netdev.  With
      the new patch below, the device symlink for the platform device was
      created.  Unfortunately, after the 4 ls commands, the network connection
      died.  No idea if the box crashed or if something else broke, lost remote
      access.
      
      Provide sysfs 'device' in /class/net/ethN Also, set module owner field,
      like pcnet32 driver does.
      Signed-off-by: NOlaf Hering <olh@suse.de>
      Acked-by: NDale Farnsworth <dale@farnsworth.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      b0b8dab2
  2. 02 5月, 2006 33 次提交