1. 01 11月, 2011 9 次提交
  2. 27 10月, 2011 3 次提交
  3. 20 10月, 2011 1 次提交
  4. 19 10月, 2011 3 次提交
  5. 06 10月, 2011 1 次提交
  6. 04 10月, 2011 5 次提交
  7. 02 10月, 2011 1 次提交
    • A
      ARM: always use ARM_UNWIND for thumb2 kernels · 89bace65
      Arnd Bergmann 提交于
      Thumb2 kernels cannot be built with frame pointers, but can use the
      ARM_UNWIND feature for unwinding instead. This makes sure that all
      features that rely on unwinding includeing CONFIG_LATENCYTOP and
      FAULT_INJECTION_STACKTRACE_FILTER do not enable frame pointers
      when the unwinder is already selected, and we always build with
      the unwinder when we want a thumb2 kernel, to make sure we do not
      get the frame pointers instead.
      
      A different option would be to redefine the CONFIG_FRAME_POINTERS
      option on ARM to mean builing with either frame pointers or
      the unwinder, and then select which one to use based on the
      CPU architecture or another user option. That would still allow
      building thumb2 kernels without the unwinder but would also be
      more confusing.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      89bace65
  8. 22 9月, 2011 1 次提交
    • L
      XZ: Fix incorrect XZ_BUF_ERROR · 9c1f8594
      Lasse Collin 提交于
      xz_dec_run() could incorrectly return XZ_BUF_ERROR if all of the
      following was true:
      
       - The caller knows how many bytes of output to expect and only provides
         that much output space.
      
       - When the last output bytes are decoded, the caller-provided input
         buffer ends right before the LZMA2 end of payload marker.  So LZMA2
         won't provide more output anymore, but it won't know it yet and thus
         won't return XZ_STREAM_END yet.
      
       - A BCJ filter is in use and it hasn't left any unfiltered bytes in the
         temp buffer.  This can happen with any BCJ filter, but in practice
         it's more likely with filters other than the x86 BCJ.
      
      This fixes <https://bugzilla.redhat.com/show_bug.cgi?id=735408> where
      Squashfs thinks that a valid file system is corrupt.
      
      This also fixes a similar bug in single-call mode where the uncompressed
      size of a block using BCJ + LZMA2 was 0 bytes and caller provided no
      output space.  Many empty .xz files don't contain any blocks and thus
      don't trigger this bug.
      
      This also tweaks a closely related detail: xz_dec_bcj_run() could call
      xz_dec_lzma2_run() to decode into temp buffer when it was known to be
      useless.  This was harmless although it wasted a minuscule number of CPU
      cycles.
      Signed-off-by: NLasse Collin <lasse.collin@tukaani.org>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9c1f8594
  9. 21 9月, 2011 1 次提交
    • M
      lib: add error checking to hex2bin · b7804983
      Mimi Zohar 提交于
      hex2bin converts a hexadecimal string to its binary representation.
      The original version of hex2bin did not do any error checking.  This
      patch adds error checking and returns the result.
      
      Changelog v1:
      - removed unpack_hex_byte()
      - changed return code from boolean to int
      
      Changelog:
      - use the new unpack_hex_byte()
      - add __must_check compiler option (Andy Shevchenko's suggestion)
      - change function API to return error checking result
        (based on Tetsuo Handa's initial patch)
      Signed-off-by: NMimi Zohar <zohar@linux.vnet.ibm.com>
      Acked-by: NAndy Shevchenko <andy.shevchenko@gmail.com>
      b7804983
  10. 15 9月, 2011 2 次提交
  11. 14 9月, 2011 2 次提交
  12. 13 9月, 2011 5 次提交
  13. 31 8月, 2011 1 次提交
    • G
      bitops: Move find_next_bit.o from lib-y to obj-y · bd823821
      Geert Uytterhoeven 提交于
      If there are no builtin users of find_next_bit_le() and
      find_next_zero_bit_le(), these functions are not present in the kernel
      image, causing m68k allmodconfig to fail with:
      
        ERROR: "find_next_zero_bit_le" [fs/ufs/ufs.ko] undefined!
        ERROR: "find_next_bit_le" [fs/udf/udf.ko] undefined!
        ...
      
      This started to happen after commit 171d809d ("m68k: merge mmu and
      non-mmu bitops.h"), as m68k had its own inline versions before.
      
      commit 63e424c8 ("arch: remove CONFIG_GENERIC_FIND_{NEXT_BIT,
      BIT_LE, LAST_BIT}") added find_last_bit.o to obj-y (so it's always
      included), but find_next_bit.o to lib-y (so it gets removed by the
      linker if there are no builtin users).
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Cc: Akinobu Mita <akinobu.mita@gmail.com>
      Cc: Greg Ungerer <gerg@uclinux.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      bd823821
  14. 23 8月, 2011 5 次提交
    • N
      dma-debug: hash_bucket_find needs to allow for offsets within an entry · c6a21d0b
      Neil Horman 提交于
      Summary:
      Users of the pci_dma_sync_single_* api allow users to sync address ranges within
      the range of a mapped entry (i.e. you can dma map address X to dma_addr_t A and
      then pci_dma_sync_single on dma_addr_t A+1.  The dma-debug library however
      assume dma syncs will always occur using the base address of a mapped region,
      and uses that assumption to find entries in its hash table.  Since thats often
      (but not always the case), the dma debug library can give us false errors about
      missing entries, which are reported as syncing of memory not allocated by the
      driver.  This was noted in the cxgb3 driver as this error:
      
      WARNING: at lib/dma-debug.c:902 check_sync+0xdd/0x48c()
      Hardware name: To be filled by O.E.M.
      cxgb3 0000:01:00.0: DMA-API: device driver tries to sync DMA memory it has not
      allocated [device address=0x00000000fff97800] [size=1984 bytes]
      Modules linked in: autofs4 sunrpc cpufreq_ondemand acpi_cpufreq freq_table
      mperf ip6t_REJECT nf_conntrack_ipv6 ip6table_filter ip6_tables ipv6 uinput
      snd_hda_codec_intelhdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec
      snd_hwdep snd_seq snd_seq_device snd_pcm snd_timer e1000e snd soundcore r8169
      cxgb3 iTCO_wdt snd_page_alloc mii shpchp i2c_i801 iTCO_vendor_support mdio
      microcode firewire_ohci firewire_core crc_itu_t ata_generic pata_acpi i915
      drm_kms_helper drm i2c_algo_bit i2c_core video output [last unloaded:
      scsi_wait_scan]
      Pid: 1818, comm: ifconfig Not tainted 2.6.35-0.23.rc3.git6.fc14.x86_64 #1
      Call Trace:
      [<ffffffff81050f71>] warn_slowpath_common+0x85/0x9d
      [<ffffffff8105102c>] warn_slowpath_fmt+0x46/0x48
      [<ffffffff8124658e>] ? check_sync+0x39/0x48c
      [<ffffffff8107c470>] ? trace_hardirqs_on+0xd/0xf
      [<ffffffff81246632>] check_sync+0xdd/0x48c
      [<ffffffff81246ca6>] debug_dma_sync_single_for_device+0x3f/0x41
      [<ffffffffa011615c>] ? pci_map_page+0x84/0x97 [cxgb3]
      [<ffffffffa0117bc3>] pci_dma_sync_single_for_device.clone.0+0x65/0x6e [cxgb3]
      [<ffffffffa0117ed1>] refill_fl+0x305/0x30a [cxgb3]
      [<ffffffffa011857d>] t3_sge_alloc_qset+0x6a7/0x821 [cxgb3]
      [<ffffffffa010a07b>] cxgb_up+0x4d0/0xe62 [cxgb3]
      [<ffffffff81086037>] ? __module_text_address+0x12/0x58
      [<ffffffffa010aa4c>] cxgb_open+0x3f/0x309 [cxgb3]
      [<ffffffff813e9f6c>] __dev_open+0x8e/0xbc
      [<ffffffff813e7ca5>] __dev_change_flags+0xbe/0x142
      [<ffffffff813e9ea8>] dev_change_flags+0x21/0x57
      [<ffffffff81445937>] devinet_ioctl+0x29a/0x54b
      [<ffffffff811f9a87>] ? inode_has_perm+0xaa/0xce
      [<ffffffff81446ed2>] inet_ioctl+0x8f/0xa7
      [<ffffffff813d683a>] sock_do_ioctl+0x29/0x48
      [<ffffffff813d6c83>] sock_ioctl+0x213/0x222
      [<ffffffff81137f78>] vfs_ioctl+0x32/0xa6
      [<ffffffff811384e2>] do_vfs_ioctl+0x47a/0x4b3
      [<ffffffff81138571>] sys_ioctl+0x56/0x79
      [<ffffffff81009c32>] system_call_fastpath+0x16/0x1b
      ---[ end trace 69a4d4cc77b58004 ]---
      
      (some edits by Joerg Roedel)
      Signed-off-by: NNeil Horman <nhorman@tuxdriver.com>
      Reported-by: NJay Fenalson <fenlason@redhat.com>
      CC: Divy LeRay <divy@chelsio.com>
      CC: Stanislaw Gruszka <sgruszka@redhat.com>
      CC: Joerg Roedel <joerg.roedel@amd.com>
      CC: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
      c6a21d0b
    • J
      lib: Kconfig.debug: Typo remove extra "it" · 52288b66
      Justin P. Mattock 提交于
      The patch below removes an extra "it" in the comment.
      Signed-off-by: NJustin P. Mattock <justinmattock@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      52288b66
    • M
      kobj_uevent: Ignore if some listeners cannot handle message · ebf4127c
      Milan Broz 提交于
      kobject_uevent() uses a multicast socket and should ignore
      if one of listeners cannot handle messages or nobody is
      listening at all.
      
      Easily reproducible when a process in system is cloned
      with CLONE_NEWNET flag.
      
      (See also http://article.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/5256)
      Signed-off-by: NMilan Broz <mbroz@redhat.com>
      Acked-by: NKay Sievers <kay.sievers@vrfy.org>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ebf4127c
    • J
      dynamic_debug: make netdev_dbg() call __netdev_printk() · ffa10cb4
      Jason Baron 提交于
      Previously, if dynamic debug was enabled netdev_dbg() was using
      dynamic_dev_dbg() to print out the underlying msg. Fix this by making
      sure netdev_dbg() uses __netdev_printk().
      
      Cc: David S. Miller <davem@davemloft.net>
      Signed-off-by: NJason Baron <jbaron@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ffa10cb4
    • J
      dynamic_debug: Convert printks to pr_<level> · 4ad275e5
      Joe Perches 提交于
      Add pr_fmt(fmt) with __func__.
      Converts "ddebug:" prefix to "dynamic_debug:".
      
      Most likely the if (verbose) outputs could
      also be converted from pr_info to pr_debug.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NJason Baron <jbaron@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      4ad275e5