1. 01 12月, 2008 1 次提交
  2. 24 11月, 2008 3 次提交
  3. 21 11月, 2008 1 次提交
    • J
      powerpc/spufs: Fix spinning in spufs_ps_fault on signal · 60657263
      Jeremy Kerr 提交于
      Currently, we can end up in an infinite loop if we get a signal
      while the kernel has faulted in spufs_ps_fault. Eg:
      
       alarm(1);
      
       write(fd, some_spu_psmap_register_address, 4);
      
      - the write's copy_from_user will fault on the ps mapping, and
      signal_pending will be non-zero. Because returning from the fault
      handler will never clear TIF_SIGPENDING, so we'll just keep faulting,
      resulting in an unkillable process using 100% of CPU.
      
      This change returns VM_FAULT_SIGBUS if there's a fatal signal pending,
      letting us escape the loop.
      Signed-off-by: NJeremy Kerr <jk@ozlabs.org>
      60657263
  4. 20 11月, 2008 3 次提交
  5. 19 11月, 2008 7 次提交
  6. 18 11月, 2008 21 次提交
  7. 17 11月, 2008 4 次提交
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6 · 9753b127
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
        rtc: rtc-sun4v fixes, revised
        sparc: Fix tty compile warnings.
        sparc: struct device - replace bus_id with dev_name(), dev_set_name()
      9753b127
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 847e9170
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (27 commits)
        rtnetlink: propagate error from dev_change_flags in do_setlink()
        isdn: remove extra byteswap in isdn_net_ciscohdlck_slarp_send_reply
        Phonet: refuse to send bigger than MTU packets
        e1000e: fix IPMI traffic
        e1000e: fix warn_on reload after phy_id error
        phy: fix phy address bug
        e100: fix dma error in direction for mapping
        igb: use dev_printk instead of printk
        qla3xxx: Cleanup: Fix link print statements.
        igb: Use device_set_wakeup_enable
        e1000: Use device_set_wakeup_enable
        e1000e: Use device_set_wakeup_enable
        via-velocity: enable perfect filtering for multicast packets
        phy: Add support for Marvell 88E1118 PHY
        mlx4_en: Pause parameters per port
        phylib: fix premature freeing of struct mii_bus
        atl1: Do not enumerate options unsupported by chip
        atl1e: fix broken multicast by removing unnecessary crc inversion
        gianfar: Fix DMA unmap invocations
        net/ucc_geth: Fix oops in uec_get_ethtool_stats()
        ...
      847e9170
    • O
      sched, signals: fix the racy usage of ->signal in account_group_xxx/run_posix_cpu_timers · ad133ba3
      Oleg Nesterov 提交于
      Impact: fix potential NULL dereference
      
      Contrary to ad474cac changelog, other
      acct_group_xxx() helpers can be called after exit_notify() by timer tick.
      Thanks to Roland for pointing out this. Somehow I missed this simple fact
      when I read the original patch, and I am afraid I confused Frank during
      the discussion. Sorry.
      
      Fortunately, these helpers work with current, we can check ->exit_state
      to ensure that ->signal can't go away under us.
      
      Also, add the comment and compiler barrier to account_group_exec_runtime(),
      to make sure we load ->signal only once.
      Signed-off-by: NOleg Nesterov <oleg@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      ad133ba3
    • F
      swiotlb: use coherent_dma_mask in alloc_coherent · 1e74f300
      FUJITA Tomonori 提交于
      Impact: fix DMA buffer allocation coherency bug in certain configs
      
      This patch fixes swiotlb to use dev->coherent_dma_mask in
      swiotlb_alloc_coherent().
      
      coherent_dma_mask is a subset of dma_mask (equal to it most of
      the time), enumerating the address range that a given device
      is able to DMA to/from in a cache-coherent way.
      
      But currently, swiotlb uses dev->dma_mask in alloc_coherent()
      implicitly via address_needs_mapping(), but alloc_coherent is really
      supposed to use coherent_dma_mask.
      
      This bug could break drivers that uses smaller coherent_dma_mask than
      dma_mask (though the current code works for the majority that use the
      same mask for coherent_dma_mask and dma_mask).
      Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
      Cc: tony.luck@intel.com
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      1e74f300