17 Apr, 2008

9 commits

  • Convert all the nanosleep related users of restart_block to the
    new nanosleep specific restart_block fields.

    Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     
  • The back and forth typecasting of restart_block->args is horrible. We
    added a separate union member for futex already. Do the same for
    nanosleep.

    Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     
  • Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6:
    it821x: do not describe noraid parameter with its value
    Pb1200/DBAu1200: fix bad IDE resource size
    Au1200: IDE driver build fix
    Au1200: kill IDE driver function prototypes
    avr32 mustn't select HAVE_IDE

    Linus Torvalds
     
  • Describe noraid parameter with its name (and not its value).

    Signed-off-by: Paul Bolle
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Paul Bolle
     
  • The header files for the Pb1200/DBAu1200 boards have wrong definition for the
    IDE interface's decoded range length -- it should be 512 bytes according to
    what the IDE driver does. In addition, the IDE platform device claims 1 byte
    too many for its memory resource -- fix the platform code and the IDE driver
    in accordance.

    Signed-off-by: Sergei Shtylyov
    Cc: Ralf Baechle
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Sergei Shtylyov
     
  • The driver fails to compile with CONFIG_BLK_DEV_IDE_AU1XXX_MDMA2_DBDMA enabled:

    drivers/ide/mips/au1xxx-ide.c: In function `auide_build_dmatable':
    drivers/ide/mips/au1xxx-ide.c:256: error: implicit declaration of function
    `sg_virt'
    drivers/ide/mips/au1xxx-ide.c:275: error: implicit declaration of function
    `sg_next'
    drivers/ide/mips/au1xxx-ide.c:275: warning: assignment makes pointer from
    integer without a cast

    Fix this by including . While at it, remove the #include's
    without which the driver happily builds.

    Signed-off-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Sergei Shtylyov
     
  • Fix these warnings emitted when compiling drivers/ide/mips/au1xxx-ide.c:

    include/asm/mach-au1x00/au1xxx_ide.h:137: warning: 'auide_tune_drive' declared
    `static' but never defined
    include/asm/mach-au1x00/au1xxx_ide.h:138: warning: 'auide_tune_chipset' declared
    `static' but never defined

    by wiping out the whole "function prototyping" section from the header file
    as it mostly declared functions that are
    already dead in the IDE driver; move the only useful prototype into the driver.

    Signed-off-by: Sergei Shtylyov
    Cc: Ralf Baechle
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Sergei Shtylyov
     
  • There's a libata based PATA driver for avr32, but no support for
    drivers/ide/ on avr32.

    This patch fixes the following compile error:

    ...
    CC [M] drivers/ide/ide-cd.o
    In file included from /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ide/ide-cd.c:37:
    /home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/ide.h:209:21: error: asm/ide.h: No such file or directory
    make[3]: *** [drivers/ide/ide-cd.o] Error 1

    Signed-off-by: Adrian Bunk
    Cc: Haavard Skinnemoen
    Acked-by: Sam Ravnborg
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Adrian Bunk
     

16 Apr, 2008

31 commits

  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
    block: update git url for blktrace
    io context: increment task attachment count in ioc_task_link()

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6:
    USB: remove broken usb-serial num_endpoints check
    USB: option: Add new vendor ID and device ID for AMOI HSDPA modem
    USB: support more Huawei data card product IDs
    USB: option.c: add more device IDs
    USB: Obscure Maxon BP3-USB Device Support 16d8:6280 for option driver

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
    [TCP]: Add return value indication to tcp_prune_ofo_queue().
    PS3: gelic: fix the oops on the broken IE returned from the hypervisor
    b43legacy: fix DMA mapping leakage
    mac80211: remove message on receiving unexpected unencrypted frames
    Update rt2x00 MAINTAINERS entry
    Add rfkill to MAINTAINERS file
    rfkill: Fix device type check when toggling states
    b43legacy: Fix usage of struct device used for DMAing
    ssb: Fix usage of struct device used for DMAing
    MAINTAINERS: move to generic repository for iwlwifi
    b43legacy: fix initvals loading on bcm4303
    rtl8187: Add missing priv->vif assignments
    netconsole: only set CON_PRINTBUFFER if the user specifies a netconsole
    [CAN]: Update documentation of struct sockaddr_can
    MAINTAINERS: isdn4linux@listserv.isdn4linux.de is subscribers-only
    [TCP]: Fix never pruned tcp out-of-order queue.
    [NET_SCHED] sch_api: fix qdisc_tree_decrease_qlen() loop

    Linus Torvalds
     
  • Describe debug parameters with their names (and not their values).

    Signed-off-by: Paul Bolle
    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    Paul Bolle
     
  • The num_interrupt_in, num_bulk_in, and other checks in the usb-serial
    code are just wrong, there are too many different devices out there with
    different numbers of endpoints. We need to just be sticking with the
    device ids instead of trying to catch this kind of thing. It broke too
    many different devices.

    This fixes a large number of usb-serial devices to get them working
    properly again.

    Cc: Oliver Neukum
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This patch add new vendor ID and device ID for AMOI HSDPA modem.

    From: tang kai
    Signed-off-by: Greg Kroah-Hartman

    tang kai
     
  • - declare the unusal device for Huawei data card devices in
    unusual_devs.h
    - disable the product ID matching for Huawei data card devices in
    usb_match_device function of driver.c
    - declare the product IDs in option.c.

    Signed-off-by: fangxiaozhi
    Signed-off-by: Greg Kroah-Hartman

    fangxiaozhi
     
  • Add devices by AMOI and NovatelWireless.

    Signed-Off-By: Matthias Urlichs
    Signed-off-by: Greg Kroah-Hartman

    Matthias Urlichs
     
  • The modem was detected, the ttyUSB{0,1,2} appeared, a call could be
    made, and the expected data rate was achieved. Tested for an hour or
    two, total of 100Mb. I shall do more testing.

    Signed-off-by: James Cameron
    Signed-off-by: Greg Kroah-Hartman

    James Cameron
     
  • Returns non-zero if tp->out_of_order_queue was seen non-empty.
    This allows tcp_try_rmem_schedule() to return early.

    Signed-off-by: Vitaliy Gusev
    Signed-off-by: David S. Miller

    Vitaliy Gusev
     
  • http://bugzilla.kernel.org/show_bug.cgi?id=10124

    this change:

    commit 08f1c192c3c32797068bfe97738babb3295bbf42
    Author: Muli Ben-Yehuda
    Date: Sun Jul 22 00:23:39 2007 +0300

    x86-64: introduce struct pci_sysdata to facilitate sharing of ->sysdata

    This patch introduces struct pci_sysdata to x86 and x86-64, and
    converts the existing two users (NUMA, Calgary) to use it.

    This lays the groundwork for having other users of sysdata, such as
    the PCI domains work.

    The Calgary bits are tested, the NUMA bits just look ok.

    replaces pcibios_scan_root by pci_scan_bus_parented...

    but in pcibios_scan_root we have a check about scanned busses.

    Cc:
    Cc: Stian Jordet
    Cc: Len Brown
    Cc: Greg KH
    Cc: Ingo Molnar
    Cc: "Yinghai Lu"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    yakui.zhao@intel.com
     
  • The THERMAL_MAX_TRIPS value is set to 10. It is too few for the Compaq AP550
    machine which has 12 trip points.

    Signed-off-by: Krzysztof Helt
    Cc: Len Brown
    Cc: Zhang Rui
    Cc: "Rafael J. Wysocki"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • List could have become empty after the unlocked check that was made earlier,
    so check again inside the lock.

    Should fix https://bugzilla.redhat.com/show_bug.cgi?id=427765

    Signed-off-by: Chuck Ebbert
    Cc:
    Cc: Len Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chuck Ebbert
     
  • The SPI core now expects num_chipselect to be set correctly as due to added
    checks on the chip being selected before an transfer is allowed. This patch
    adds a num_cs field to the platform data which needs to be set correctly
    before adding the SPI platform device.

    Signed-off-by: Ben Dooks
    Signed-off-by: David Brownell
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • Pass the bus number we expect the S3C24XX SPI driver to attach to via the
    platform data.

    Signed-off-by: Ben Dooks
    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • The s3c24xx_spi_txrx() function should initialise the completion each time
    before using it, otherwise we end up with the possibility of returning success
    before the interrupt handler has processed all the data.

    Signed-off-by: Ben Dooks
    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • mb_cache_entry_alloc() was allocating cache entries with GFP_KERNEL. But
    filesystems are calling this function while holding xattr_sem so possible
    recursion into the fs violates locking ordering of xattr_sem and transaction
    start / i_mutex for ext2-4. Change mb_cache_entry_alloc() so that filesystems
    can specify desired gfp mask and use GFP_NOFS from all of them.

    Signed-off-by: Jan Kara
    Reported-by: Dave Jones
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Kara
     
  • As shown by Gurudas Pai recently, we can put hugepages into the surplus
    state (by echo 0 > /proc/sys/vm/nr_hugepages), even when
    /proc/sys/vm/nr_overcommit_hugepages is 0. This is actually correct, to
    allow the original goal (shrink the static pool to 0) to succeed (we are
    converting hugepages to surplus because they are in use). However, the
    documentation does not accurately reflect this case. Update it.

    Signed-off-by: Nishanth Aravamudan
    Acked-by: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nishanth Aravamudan
     
  • In a5d76b54a3f3a40385d7f76069a2feac9f1bad63 (memory unplug: page isolation by
    KAMEZAWA Hiroyuki), "isolate" migratetype added. but unfortunately, it
    doesn't treat /proc/pagetypeinfo display logic.

    this patch add "Isolate" to pagetype name field.

    /proc/pagetype
    before:
    ------------------------------------------------------------------------------------------------------------------------
    Free pages count per migrate type at order 0 1 2 3 4 5 6 7 8 9 10
    Node 0, zone DMA, type Unmovable 1 2 2 2 1 2 2 1 1 0 0
    Node 0, zone DMA, type Reclaimable 0 0 0 0 0 0 0 0 0 0 0
    Node 0, zone DMA, type Movable 2 3 3 1 3 3 2 0 0 0 0
    Node 0, zone DMA, type Reserve 0 0 0 0 0 0 0 0 0 0 1
    Node 0, zone DMA, type 0 0 0 0 0 0 0 0 0 0 0
    Node 0, zone Normal, type Unmovable 1 9 7 4 1 1 1 1 0 0 0
    Node 0, zone Normal, type Reclaimable 5 2 0 0 1 1 0 0 0 1 0
    Node 0, zone Normal, type Movable 0 1 1 0 0 0 1 0 0 1 60
    Node 0, zone Normal, type Reserve 0 0 0 0 0 0 0 0 0 0 1
    Node 0, zone Normal, type 0 0 0 0 0 0 0 0 0 0 0
    Node 0, zone HighMem, type Unmovable 0 0 1 1 1 0 1 1 2 2 0
    Node 0, zone HighMem, type Reclaimable 0 0 0 0 0 0 0 0 0 0 0
    Node 0, zone HighMem, type Movable 236 62 6 2 2 1 1 0 1 1 16
    Node 0, zone HighMem, type Reserve 0 0 0 0 0 0 0 0 0 0 1
    Node 0, zone HighMem, type 0 0 0 0 0 0 0 0 0 0 0

    Number of blocks type Unmovable Reclaimable Movable Reserve
    Node 0, zone DMA 1 0 2 1 0
    Node 0, zone Normal 10 40 169 1 0
    Node 0, zone HighMem 2 0 283 1 0

    after:
    ------------------------------------------------------------------------------------------------------------------------
    Free pages count per migrate type at order 0 1 2 3 4 5 6 7 8 9 10
    Node 0, zone DMA, type Unmovable 1 2 2 2 1 2 2 1 1 0 0
    Node 0, zone DMA, type Reclaimable 0 0 0 0 0 0 0 0 0 0 0
    Node 0, zone DMA, type Movable 2 3 3 1 3 3 2 0 0 0 0
    Node 0, zone DMA, type Reserve 0 0 0 0 0 0 0 0 0 0 1
    Node 0, zone DMA, type Isolate 0 0 0 0 0 0 0 0 0 0 0
    Node 0, zone Normal, type Unmovable 0 2 1 1 0 1 0 0 0 0 0
    Node 0, zone Normal, type Reclaimable 1 1 1 1 1 0 1 1 1 0 0
    Node 0, zone Normal, type Movable 0 1 1 1 0 1 0 1 0 0 196
    Node 0, zone Normal, type Reserve 0 0 0 0 0 0 0 0 0 0 1
    Node 0, zone Normal, type Isolate 0 0 0 0 0 0 0 0 0 0 0
    Node 0, zone HighMem, type Unmovable 0 1 0 0 0 1 1 1 2 2 0
    Node 0, zone HighMem, type Reclaimable 0 0 0 0 0 0 0 0 0 0 0
    Node 0, zone HighMem, type Movable 1 0 1 1 0 0 0 0 1 0 200
    Node 0, zone HighMem, type Reserve 0 0 0 0 0 0 0 0 0 0 1
    Node 0, zone HighMem, type Isolate 0 0 0 0 0 0 0 0 0 0 0

    Number of blocks type Unmovable Reclaimable Movable Reserve Isolate
    Node 0, zone DMA 1 0 2 1 0
    Node 0, zone Normal 8 4 207 1 0
    Node 0, zone HighMem 2 0 283 1 0

    Signed-off-by: KOSAKI Motohiro
    Acked-by: KAMEZAWA Hiroyuki
    Acked-by: Mel Gorman
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KOSAKI Motohiro
     
  • A couple of typos crept into the newly added document about the seq_file
    interface. This patch corrects those typos and simultaneously deletes
    unnecessary trailing spaces.

    Signed-off-by: Dmitri Vorobiev
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dmitri Vorobiev
     
  • This patch fixes this error:

    In file included from /home/wangcong/projects/linux-2.6/arch/um/kernel/smp.c:9:
    include2/asm/tlb.h: In function `tlb_remove_page':
    include2/asm/tlb.h:101: error: implicit declaration of function `page_cache_release'

    And since including in will break sparc,
    we add this #include in uml's own header.

    Acked-by: Jeff Dike
    Signed-off-by: WANG Cong
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    WANG Cong
     
  • When I used a test program to fork mass processes and immediately move them to
    a cgroup where the memory limit is low enough to trigger oom kill, I got oops:

    BUG: unable to handle kernel NULL pointer dereference at 0000000000000808
    IP: [] _spin_lock_irqsave+0x8/0x18
    PGD 4c95f067 PUD 4406c067 PMD 0
    Oops: 0002 [1] SMP
    CPU 2
    Modules linked in:

    Pid: 11973, comm: a.out Not tainted 2.6.25-rc7 #5
    RIP: 0010:[] [] _spin_lock_irqsave+0x8/0x18
    RSP: 0018:ffff8100448c7c30 EFLAGS: 00010002
    RAX: 0000000000000202 RBX: 0000000000000009 RCX: 000000000001c9f3
    RDX: 0000000000000100 RSI: 0000000000000001 RDI: 0000000000000808
    RBP: ffff81007e444080 R08: 0000000000000000 R09: ffff8100448c7900
    R10: ffff81000105f480 R11: 00000100ffffffff R12: ffff810067c84140
    R13: 0000000000000001 R14: ffff8100441d0018 R15: ffff81007da56200
    FS: 00007f70eb1856f0(0000) GS:ffff81007fbad3c0(0000) knlGS:0000000000000000
    CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
    CR2: 0000000000000808 CR3: 000000004498a000 CR4: 00000000000006e0
    DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
    DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
    Process a.out (pid: 11973, threadinfo ffff8100448c6000, task ffff81007da533e0)
    Stack: ffffffff8023ef5a 00000000000000d0 ffffffff80548dc0 00000000000000d0
    ffff810067c84140 ffff81007e444080 ffffffff8026cef9 00000000000000d0
    ffff8100441d0000 00000000000000d0 ffff8100441d0000 ffff8100505445c0
    Call Trace:
    [] ? force_sig_info+0x25/0xb9
    [] ? oom_kill_task+0x77/0xe2
    [] ? mem_cgroup_out_of_memory+0x55/0x67
    [] ? mem_cgroup_charge_common+0xec/0x202
    [] ? handle_mm_fault+0x24e/0x77f
    [] ? default_wake_function+0x0/0xe
    [] ? get_user_pages+0x2ce/0x3af
    [] ? mem_cgroup_charge_common+0x2d/0x202
    [] ? make_pages_present+0x8e/0xa4
    [] ? mmap_region+0x373/0x429
    [] ? do_mmap_pgoff+0x2ff/0x364
    [] ? sys_mmap+0xe5/0x111
    [] ? tracesys+0xdc/0xe1

    Code: 00 00 01 48 8b 3c 24 e9 46 d4 dd ff f0 ff 07 48 8b 3c 24 e9 3a d4 dd ff fe 07 48 8b 3c 24 e9 2f d4 dd ff 9c 58 fa ba 00 01 00 00 66 0f c1 17 38 f2 74 06 f3 90 8a 17 eb f6 c3 fa b8 00 01 00
    RIP [] _spin_lock_irqsave+0x8/0x18
    RSP
    CR2: 0000000000000808
    ---[ end trace c3702fa668021ea4 ]---

    It's reproducable in a x86_64 box, but doesn't happen in x86_32.

    This is because tsk->sighand is not guarded by RCU, so we have to
    hold tasklist_lock, just as what out_of_memory() does.

    Signed-off-by: Li Zefan
    Cc: KAMEZAWA Hiroyuki
    Acked-by: Balbir Singh
    Cc: Pavel Emelianov
    Cc: Paul Menage
    Cc: Oleg Nesterov
    Cc: David Rientjes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Li Zefan
     
  • Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is
    prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable serial
    platform drivers, to re-enable auto loading.

    NOTE that Kconfig for some of these drivers doesn't allow modular builds, and
    thus doesn't match the driver source's unload support. Presumably their
    unload code is buggy and/or weakly tested...

    [dbrownell@users.sourceforge.net: more drivers, registration fixes]
    Signed-off-by: Kay Sievers
    Signed-off-by: David Brownell
    Acked-by: Peter Korsgaard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kay Sievers
     
  • Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is
    prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable PCMCIA
    platform drivers, to re-enable auto loading.

    [dbrownell@users.sourceforge.net: registration fixes]
    Signed-off-by: Kay Sievers
    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kay Sievers
     
  • Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is
    prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable 'misc'
    platform drivers, to re-enable auto loading.

    [dbrownell@users.sourceforge.net: bugfix, registration fixes]
    Signed-off-by: Kay Sievers
    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kay Sievers
     
  • /proc/fb is not removed during rmmod.

    Steps to reproduce:

    modprobe fb
    rmmod fb
    ls /proc

    BUG: unable to handle kernel paging request at ffffffffa0094370
    IP: [] proc_get_inode+0x101/0x130
    PGD 203067 PUD 207063 PMD 17e758067 PTE 0
    Oops: 0000 [1] SMP
    last sysfs file: /sys/devices/pci0000:00/0000:00:1e.0/0000:05:02.0/resource
    CPU 1
    Modules linked in: nf_conntrack_irc xt_state iptable_filter ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack ip_tables x_tables vfat fat usbhid ehci_hcd uhci_hcd usbcore sr_mod cdrom [last unloaded: fb]
    Pid: 21205, comm: ls Not tainted 2.6.25-rc8-mm2 #14
    RIP: 0010:[] [] proc_get_inode+0x101/0x130
    RSP: 0018:ffff81017c4bfc78 EFLAGS: 00010246
    RAX: 0000000000008000 RBX: ffff8101787f5470 RCX: 0000000048011ccc
    RDX: ffffffffa0094320 RSI: ffff810006ad43b0 RDI: ffff81017fc2cc00
    RBP: ffff81017e450300 R08: 0000000000000002 R09: ffff81017c5d1000
    R10: 0000000000000000 R11: 0000000000000246 R12: ffff81016b903a28
    R13: ffff81017f822020 R14: ffff81017c4bfd58 R15: ffff81017f822020
    FS: 00007f08e71696f0(0000) GS:ffff81017fc06480(0000) knlGS:0000000000000000
    CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
    CR2: ffffffffa0094370 CR3: 000000017e54a000 CR4: 00000000000006e0
    DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
    DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
    Process ls (pid: 21205, threadinfo ffff81017c4be000, task ffff81017de48770)
    Stack: ffff81017c5d1000 00000000ffffffea ffff81017e450300 ffffffff802bdd1e
    ffff81017f802258 ffff81017c4bfe48 ffff81016b903a28 ffff81017f822020
    ffff81017c4bfd48 ffffffff802b9ba0 ffff81016b903a28 ffff81017f802258
    Call Trace:
    [] ? proc_lookup_de+0x8e/0x100
    [] ? proc_root_lookup+0x20/0x60
    [] ? do_lookup+0x1b7/0x210
    [] ? __link_path_walk+0x53d/0x7f0
    [] ? mntput_no_expire+0x28/0x130
    [] ? path_walk+0x5a/0xc0
    [] ? do_path_lookup+0x83/0x1c0
    [] ? getname+0xe5/0x210
    [] ? __user_walk_fd+0x4b/0x80
    [] ? vfs_lstat_fd+0x2c/0x70
    [] ? filldir+0xae/0xf0
    [] ? de_put+0x9/0x50
    [] ? mnt_want_write+0x2d/0x80
    [] ? touch_atime+0x1f/0x170
    [] ? proc_root_readdir+0x7d/0xa0
    [] ? sys_newlstat+0x27/0x50
    [] ? vfs_readdir+0x9b/0xd0
    [] ? sys_getdents+0xce/0xe0
    [] ? system_call_after_swapgs+0x7b/0x80

    Code: b7 83 b2 00 00 00 25 00 f0 00 00 3d 00 80 00 00 74 19 48 89 93 f0 00 00 00 48 89 df e8 39 9a fd ff 48 89 d8 48 83 c4 08 5b 5d c3 83 7a 50 00 48 c7 c0 60 16 45 80 48 c7 c2 40 17 45 80 48 0f
    RIP [] proc_get_inode+0x101/0x130
    RSP
    CR2: ffffffffa0094370
    ---[ end trace c71hiarjan8ab739 ]---

    Signed-off-by: Alexey Dobriyan
    "Antonino A. Daplas"
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform
    modalias is prefixed with "platform:". Add MODULE_ALIAS() to the
    hotpluggable platform LED drivers, to re-enable auto loading.

    [dbrownell@users.sourceforge.net: more drivers, registration fixes]
    Signed-off-by: Kay Sievers
    Signed-off-by: David Brownell
    Acked-by: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kay Sievers
     
  • There is a bug in the function of cmos_set_alarm. RTC alarm time for October
    can't be set correctly.

    For October: 0x0A will be written into the RTC region (MONTH_ALARM) in current
    kernel. But in fact 0x10 should be written. Wildcards are also not handled
    correctly.

    Signed-off-by: Zhao Yakui
    Signed-off-by: Zhang Rui
    Signed-off-by: David Brownell
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Zhao Yakui
     
  • Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is
    prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable MMC host
    platform drivers, to re-enable auto loading.

    Also, add missing owner declarations in driver init.

    [dbrownell@users.sourceforge.net: registration fixes]
    Signed-off-by: Kay Sievers
    Signed-off-by: David Brownell
    Acked-by: Pierre Ossman
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kay Sievers
     
  • Fix memory corruption and crash on 32-bit x86 systems.

    If a !PAE x86 kernel is booted on a 32-bit system with more than 4GB of
    RAM, then we call memory_present() with a start/end that goes outside
    the scope of MAX_PHYSMEM_BITS.

    That causes this loop to happily walk over the limit of the sparse
    memory section map:

    for (pfn = start; pfn < end; pfn += PAGES_PER_SECTION) {
    unsigned long section = pfn_to_section_nr(pfn);
    struct mem_section *ms;

    sparse_index_init(section, nid);
    set_section_nid(section, nid);

    ms = __nr_to_section(section);
    if (!ms->section_mem_map)
    ms->section_mem_map = sparse_encode_early_nid(nid) |
    SECTION_MARKED_PRESENT;

    'ms' will be out of bounds and we'll corrupt a small amount of memory by
    encoding the node ID and writing SECTION_MARKED_PRESENT (==0x1) over it.

    The corruption might happen when encoding a non-zero node ID, or due to
    the SECTION_MARKED_PRESENT which is 0x1:

    mmzone.h:#define SECTION_MARKED_PRESENT (1UL<
    Tested-by: Christoph Lameter
    Cc: Pekka Enberg
    Cc: Mel Gorman
    Cc: Nick Piggin
    Cc: Andrew Morton
    Cc: Rafael J. Wysocki
    Cc: Yinghai Lu
    Cc: KAMEZAWA Hiroyuki
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     
  • David S. Miller