1. 22 5月, 2013 2 次提交
  2. 19 5月, 2013 1 次提交
    • R
      MIPS: Rewrite pfn_valid to work in modules, too. · 8b923214
      Ralf Baechle 提交于
      This fixes:
      
        MODPOST 393 modules
      ERROR: "min_low_pfn" [arch/mips/kvm/kvm.ko] undefined!
      make[3]: *** [__modpost] Error 1
      
      It would have been possible to just export min_low_pfn but in the end
      pfn_valid should return 1 for any pfn argument for which a struct page
      exists so using min_low_pfn was wrong anyway.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      8b923214
  3. 18 5月, 2013 1 次提交
    • D
      MIPS: Make virt_to_phys() work for all unmapped addresses. · 49c426ba
      David Daney 提交于
      As reported:
        This problem was discovered when doing BGP traffic with the TCP MD5 option
        activated, where the following call chain caused a crash:
      
         * tcp_v4_rcv
         *  tcp_v4_timewait_ack
         *   tcp_v4_send_ack -> follow stack variable rep.th
         *    tcp_v4_md5_hash_hdr
         *     tcp_md5_hash_header
         *      sg_init_one
         *       sg_set_buf
         *        virt_to_page
      
        I noticed that tcp_v4_send_reset uses a similar stack variable and
        also calls tcp_v4_md5_hash_hdr, so it has the same problem.
      
      The networking core can indirectly call virt_to_phys() on stack
      addresses, if this is done from PID 0, the stack will usually be in
      CKSEG0, so virt_to_phys() needs to work there as well
      Signed-off-by: NDavid Daney <david.daney@cavium.com>
      Cc: linux-mips@linux-mips.org
      Cc: Jiang Liu <liuj97@gmail.com>
      Cc: eunb.song@samsung.com
      Cc: linux-kernel@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/5220/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      49c426ba
  4. 17 5月, 2013 1 次提交
  5. 09 5月, 2013 13 次提交
  6. 08 5月, 2013 22 次提交