1. 07 May, 2011 2 commits
    • Randy Dunlap's avatar
      efivars: prevent oops on unload when efi is not enabled · aabb6e15
      Randy Dunlap authored
      efivars_exit() should check for efi_enabled and not undo
      allocations when efi is not enabled.  Otherwise there is an Oops
      during module unload:
      
      calling  efivars_init+0x0/0x1000 [efivars] @ 2810
      EFI Variables Facility v0.08 2004-May-17
      initcall efivars_init+0x0/0x1000 [efivars] returned 0 after 5120 usecs
      Oops: 0000 [#1] SMP DEBUG_PAGEALLOC
      last sysfs file: /sys/module/firmware_class/initstate
      CPU 1
      Modules linked in: efivars(-) af_packet tun nfsd lockd nfs_acl auth_rpcgss sunrpc ipt_REJECT nf_conntrack_ipv4 nf_defrag_ipv4 iptable_filter ip_tables ip6t_REJECT xt_tcpudp nf_conntrack_ipv6 nf_defrag_ipv6 xt_state nf_conntrack ip6table_filter ip6_tables x_tables ipv6 cpufreq_ondemand acpi_cpufreq freq_table mperf binfmt_misc dm_mirror dm_region_hash dm_log dm_multipath scsi_dh dm_mod snd_hda_codec_analog snd_hda_intel snd_hda_codec snd_hwdep mousedev snd_seq joydev snd_seq_device mac_hid evdev snd_pcm usbkbd usbmouse usbhid snd_timer hid tg3 snd sr_mod pcspkr rtc_cmos soundcore cdrom iTCO_wdt processor sg dcdbas i2c_i801 rtc_core iTCO_vendor_support intel_agp snd_page_alloc thermal_sys rtc_lib intel_gtt 8250_pnp button hwmon unix ide_pci_generic ide_core ata_generic pata_acpi ata_piix sd_mod crc_t10dif ext3 jbd mbcache uhci_hcd ohci_hcd ssb mmc_core pcmcia pcmcia_core firmware_class ehci_hcd usbcore [last unloaded: dell_rbu]
      
      Pid: 2812, comm: rmmod Not tainted 2.6.39-rc6 #1 Dell Inc.                 OptiPlex 745                 /0TY565
      RIP: 0010:[<ffffffffa06a17f6>]  [<ffffffffa06a17f6>] unregister_efivars+0x28/0x12c [efivars]
      RSP: 0018:ffff88005eedde98  EFLAGS: 00010283
      RAX: ffffffffa06a23fc RBX: ffffffffa06a44c0 RCX: ffff88007c227a50
      RDX: 0000000000000000 RSI: 00000055ac13db78 RDI: ffffffffa06a44c0
      RBP: ffff88005eeddec8 R08: 0000000000000000 R09: ffff88005eeddd78
      R10: ffffffffa06a4220 R11: ffff88005eeddd78 R12: fffffffffffff7d0
      R13: 00007fff5a3aaec0 R14: 0000000000000000 R15: ffffffffa06a4508
      FS:  00007fa8dcc4a6f0(0000) GS:ffff88007c200000(0000) knlGS:0000000000000000
      CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
      CR2: 0000000000000000 CR3: 000000005d148000 CR4: 00000000000006e0
      DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
      Process rmmod (pid: 2812, threadinfo ffff88005eedc000, task ffff88006754b000)
      Stack:
       ffff88005eeddec8 ffffffffa06a4220 0000000000000000 00007fff5a3aaec0
       0000000000000000 0000000000000001 ffff88005eedded8 ffffffffa06a2418
       ffff88005eeddf78 ffffffff810d3598 ffffffffa06a4220 0000000000000880
      Call Trace:
       [<ffffffffa06a2418>] efivars_exit+0x1c/0xc04 [efivars]
       [<ffffffff810d3598>] sys_delete_module+0x2d6/0x368
       [<ffffffff812d1db9>] ? lockdep_sys_exit_thunk+0x35/0x67
       [<ffffffff810fcba1>] ? audit_syscall_entry+0x172/0x1a5
       [<ffffffff81575082>] system_call_fastpath+0x16/0x1b
      Code: 5c c9 c3 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 ec 08 0f 1f 44 00 00 4c 8b 67 48 48 89 fb 4c 8d 7f 48 49 81 ec 30 08 00 00 <4d> 8b ac 24 30 08 00 00 49 81 ed 30 08 00 00 eb 59 48 89 df 48
      RIP  [<ffffffffa06a17f6>] unregister_efivars+0x28/0x12c [efivars]
       RSP <ffff88005eedde98>
      CR2: 0000000000000000
       ---[ end trace aa99b99090f70baa ]---
      
      Matt apparently removed such a check in 2004 (with no reason given):
       *  17 May 2004 - Matt Domsch <Matt_Domsch@dell.com>
       *   remove check for efi_enabled in exit
      but there have been several changes since then.
      Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: default avatarMike Waychison <mikew@google.com>
      Tested-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Cc: Matt Domsch <Matt_Domsch@dell.com>
      Cc: <matthew.e.tolentino@intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      aabb6e15
    • Jan Kara's avatar
      Allow setting of number of raw devices as a module parameter · 0078bff5
      Jan Kara authored
      Allow setting of maximal number of raw devices as a module parameter. This
      requires changing of static array into a vmalloced one (the array is going to
      be too large for kmalloc).
      Signed-off-by: default avatarJan Kara <jack@suse.cz>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      0078bff5
  2. 30 Apr, 2011 3 commits
  3. 29 Apr, 2011 3 commits
  4. 25 Apr, 2011 4 commits
  5. 23 Apr, 2011 9 commits
  6. 20 Apr, 2011 1 commit
  7. 19 Apr, 2011 13 commits
  8. 18 Apr, 2011 5 commits
    • Linus Torvalds's avatar
      Merge branch 'for-39-rc4' of git://codeaurora.org/quic/kernel/davidb/linux-msm · e024f69d
      Linus Torvalds authored
      * 'for-39-rc4' of git://codeaurora.org/quic/kernel/davidb/linux-msm:
        msm: timer: fix missing return value
        msm: Remove extraneous ffa device check
      e024f69d
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 96fd2d57
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: xen-kbdfront - fix mouse getting stuck after save/restore
        Input: estimate number of events per packet
        Input: evdev - indicate buffer overrun with SYN_DROPPED
        Input: document event types and codes and their intended use
        Input: add KEY_IMAGES specifically for AL Image Browser
        Input: twl4030_keypad - fix potential NULL dereference in twl4030_kp_probe()
        Input: h3600_ts - fix error handling at connect
        Input: twl4030_keypad - avoid potential NULL-pointer dereference
      96fd2d57
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block · 8a83f331
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
        block: add blk_run_queue_async
        block: blk_delay_queue() should use kblockd workqueue
        md: fix up raid1/raid10 unplugging.
        md: incorporate new plugging into raid5.
        md: provide generic support for handling unplug callbacks.
        md - remove old plugging code.
        md/dm - remove remains of plug_fn callback.
        md: use new plugging interface for RAID IO.
        block: drop queue lock before calling __blk_run_queue() for kblockd punt
        Revert "block: add callback function for unplug notification"
        block: Enhance new plugging support to support general callbacks
      8a83f331
    • Linus Torvalds's avatar
      Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc · 5d5b1b9f
      Linus Torvalds authored
      * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
        powerpc/powermac: Build fix with SMP and CPU hotplug
        powerpc/perf_event: Skip updating kernel counters if register value shrinks
        powerpc: Don't write protect kernel text with CONFIG_DYNAMIC_FTRACE enabled
        powerpc: Fix oops if scan_dispatch_log is called too early
        powerpc/pseries: Use a kmem cache for DTL buffers
        powerpc/kexec: Fix regression causing compile failure on UP
        powerpc/85xx: disable Suspend support if SMP enabled
        powerpc/e500mc: Remove CPU_FTR_MAYBE_CAN_NAP/CPU_FTR_MAYBE_CAN_DOZE
        powerpc/book3e: Fix CPU feature handling on 64-bit e5500
        powerpc: Check device status before adding serial device
        powerpc/85xx: Don't add disabled PCIe devices
      5d5b1b9f
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable · adff377b
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable: (24 commits)
        Btrfs: fix free space cache leak
        Btrfs: avoid taking the chunk_mutex in do_chunk_alloc
        Btrfs end_bio_extent_readpage should look for locked bits
        Btrfs: don't force chunk allocation in find_free_extent
        Btrfs: Check validity before setting an acl
        Btrfs: Fix incorrect inode nlink in btrfs_link()
        Btrfs: Check if btrfs_next_leaf() returns error in btrfs_real_readdir()
        Btrfs: Check if btrfs_next_leaf() returns error in btrfs_listxattr()
        Btrfs: make uncache_state unconditional
        btrfs: using cached extent_state in set/unlock combinations
        Btrfs: avoid taking the trans_mutex in btrfs_end_transaction
        Btrfs: fix subvolume mount by name problem when default mount subvolume is set
        fix user annotation in ioctl.c
        Btrfs: check for duplicate iov_base's when doing dio reads
        btrfs: properly handle overlapping areas in memmove_extent_buffer
        Btrfs: fix memory leaks in btrfs_new_inode()
        Btrfs: check for duplicate iov_base's when doing dio reads
        Btrfs: reuse the extent_map we found when calling btrfs_get_extent
        Btrfs: do not use async submit for small DIO io's
        Btrfs: don't split dio bios if we don't have to
        ...
      adff377b