26 Sep, 2006

32 commits

  • This patch includes the changes to make the nmi watchdog on i386 SMP aware.
    A bunch of code was moved around to make it simpler to read. In addition,
    it is now possible to determine if a particular NMI was the result of the
    watchdog or not. This feature allows the kernel to filter out unknown NMIs
    easier.

    Signed-off-by: Don Zickus
    Signed-off-by: Andi Kleen

    Don Zickus
     
  • This patch includes the changes to make the nmi watchdog on x86_64 SMP
    aware. A bunch of code was moved around to make it simpler to read. In
    addition, it is now possible to determine if a particular NMI was the result
    of the watchdog or not. This feature allows the kernel to filter out
    unknown NMIs easier.

    Signed-off-by: Don Zickus
    Signed-off-by: Andi Kleen

    Don Zickus
     
  • Incorporates the new performance counter reservation system in oprofile.
    Also cleans up a lot of the initialization code. The code original zero'd
    out every register associated with performance counters regardless if those
    registers were used or not. This causes issues with the nmi watchdog.
    Now oprofile tries to reserve registers and gives up if it can't get them.

    Cc: levon@movementarian.org
    Cc: oprofile-list@lists.sf.net

    Signed-off-by: Don Zickus
    Signed-off-by: Andi Kleen

    Don Zickus
     
  • Adds basic infrastructure to allow subsystems to reserve performance
    counters on the x86 chips. Only UP kernels are supported in this patch to
    make reviewing easier. The SMP portion makes a lot more changes.

    Think of this as a locking mechanism where each bit represents a different
    counter. In addition, each subsystem should also reserve an appropriate
    event selection register that will correspond to the performance counter it
    will be using (this is mainly neccessary for the Pentium 4 chips as they
    break the 1:1 relationship to performance counters).

    This will help prevent subsystems like oprofile from interfering with the
    nmi watchdog.

    Signed-off-by: Don Zickus
    Signed-off-by: Andi Kleen

    Don Zickus
     
  • This makes merging easier. They are readded a few patches later.

    Signed-off-by: Andi Kleen

    Andi Kleen
     
  • There are some machines around (large xSeries or Unisys ES7000) that
    need physical IO-APIC destination mode to access all of their IO
    devices. This currently doesn't work in UP kernels as used in
    distribution installers.

    This patch allows to compile even UP kernels as GENERICARCH which
    allows to use physical or clustered APIC mode.

    Signed-off-by: Andi Kleen

    Andi Kleen
     
  • This is based on the x86-64 defconfig which works on a wide range of systems.

    Signed-off-by: Andi Kleen

    Andi Kleen
     
  • Signed-off-by: Andi Kleen

    Andi Kleen
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
    [NetLabel]: update docs with website information
    [NetLabel]: rework the Netlink attribute handling (part 2)
    [NetLabel]: rework the Netlink attribute handling (part 1)
    [Netlink]: add nla_validate_nested()
    [NETLINK]: add nla_for_each_nested() to the interface list
    [NetLabel]: change the SELinux permissions
    [NetLabel]: make the CIPSOv4 cache spinlocks bottom half safe
    [NetLabel]: correct improper handling of non-NetLabel peer contexts
    [TCP]: make cubic the default
    [TCP]: default congestion control menu
    [ATM] he: Fix __init/__devinit conflict
    [NETFILTER]: Add dscp,DSCP headers to header-y
    [DCCP]: Introduce dccp_probe
    [DCCP]: Use constants for CCIDs
    [DCCP]: Introduce constants for CCID numbers
    [DCCP]: Allow default/fallback service code.

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
    [SOUND] sparc/amd7930: Use __devinit and __devinitdata as needed.
    [SUNLANCE]: Mark sparc_lance_probe_one as __devinit.
    [SPARC64]: Fix section-mismatch errors in solaris emul module.

    Linus Torvalds
     
  • The v4l2 API documentation for VIDIOC_ENUMSTD says:

    To enumerate all standards applications shall begin at index
    zero, incrementing by one until the driver returns EINVAL.

    The actual code, however, tests the index this way:

    if (index= vfd->tvnormsize) {
    ret=-EINVAL;

    So any application which passes in index=0 gets EINVAL right off the bat
    - and, in fact, this is what happens to mplayer. So I think the
    following patch is called for, and maybe even appropriate for a 2.6.18.x
    stable release.

    Signed-off-by: Jonathan Corbet
    Cc: Mauro Carvalho Chehab
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jonathan Corbet
     
  • Invoking load_module() before param_sysfs_init() is called crashes in
    mod_sysfs_setup(), since the kset in module_subsys is not initialized yet.

    In my case, net-pf-1 is getting modprobed as a result of hotplug trying to
    create a UNIX socket. Calls to hotplug begin after the topology_init
    initcall.

    Another patch for the same symptom (module_subsys-initialize-earlier.patch)
    moves param_sysfs_init() to the subsys initcalls, but this is still not
    early enough in the boot process in some cases. In particular,
    topology_init() causes /sbin/hotplug to run, which requests net-pf-1 (the
    UNIX socket protocol) which can be compiled as a module. Moving
    param_sysfs_init() to the postcore initcalls fixes this particular race,
    but there might well be other cases where a usermodehelper causes a module
    to load earlier still.

    The patch makes load_module() return an error rather than crashing the
    kernel if invoked before module_subsys is initialized.

    Cc: Mark Huang
    Cc: Greg KH
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ed Swierk
     
  • If there is only 1 node in the system cpus should think they are apart of
    some other node.

    If cases where a real numa system boots the Flat numa option make sure the
    cpus don't claim to be apart on a non-existent node.

    Signed-off-by: Keith Mannthey
    Cc: Andy Whitcroft
    Cc: Dave Hansen
    Cc: Andi Kleen
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    keith mannthey
     
  • Assume that a cpu is *physically* offlined at boot time...

    Because smpboot.c::smp_boot_cpu_map() canoot find cpu's sapicid,
    numa.c::build_cpu_to_node_map() cannot build cpunode map for
    offlined cpu.

    For such cpus, cpu_to_node map should be fixed at cpu-hot-add.
    This mapping should be done before cpu onlining.

    This patch also handles cpu hotremove case.

    Signed-off-by: KAMEZAWA Hiroyuki
    Cc: "Luck, Tony"
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KAMEZAWA Hiroyuki
     
  • Problem description:

    We have additional_cpus= option for allocating possible_cpus. But nid
    for possible cpus are not fixed at boot time. cpus which is offlined at
    boot or cpus which is not on SRAT is not tied to its node. This will
    cause panic at cpu onlining.

    Usually, pxm_to_nid() mapping is fixed at boot time by SRAT.

    But, unfortunately, some system (my system!) do not include
    full SRAT table for possible cpus. (Then, I use
    additiona_cpus= option.)

    For such possible cpus, pxmnid should be fixed at
    hot-add. We now have acpi_map_pxm_to_node() which is also
    used at boot. It's suitable here.

    Signed-off-by: KAMEZAWA Hiroyuki
    Cc: "Luck, Tony"
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KAMEZAWA Hiroyuki
     
  • Seems like not all drivers use the framebuffer_alloc() function and won't
    have an initialized mutex. But those don't have a backlight, anyway.

    Signed-off-by: Michael Hanselmann
    Cc: Olaf Hering
    Cc: "Antonino A. Daplas"
    Cc: Daniel R Thompson
    Cc: Jon Smirl
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Hanselmann
     
  • Stops panic associated with attempting to free a non slab-allocated
    per_cpu_pageset.

    Signed-off-by: David Rientjes
    Acked-by: Christoph Lameter
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Rientjes
     
  • With CONFIG_PHYSICAL_START set to a non default values the i386
    boot_ioremap code calculated its pte index wrong and users of boot_ioremap
    have their areas incorrectly mapped (for me SRAT table not mapped during
    early boot). This patch removes the addr < BOOT_PTE_PTRS constraint.

    [ Keith says this is applicable to 2.6.16 and 2.6.17 as well ]

    Signed-off-by: Keith Mannthey
    Cc: Vivek Goyal
    Cc: Dave Hansen
    Cc:
    Cc: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    keith mannthey
     
  • BUG: warning at kernel/lockdep.c:1816/trace_hardirqs_on() (Not tainted)
    [] show_trace_log_lvl+0x58/0x171
    [] show_trace+0xd/0x10
    [] dump_stack+0x19/0x1b
    [] trace_hardirqs_on+0xa2/0x11e
    [] _spin_unlock_irq+0x22/0x26
    [] rtc_get_rtc_time+0x32/0x176
    [] hpet_rtc_interrupt+0x92/0x14d
    [] handle_IRQ_event+0x20/0x4d
    [] __do_IRQ+0x94/0xef
    [] do_IRQ+0x9e/0xbd
    [] common_interrupt+0x25/0x2c
    DWARF2 unwinder stuck at common_interrupt+0x25/0x2c

    Signed-off-by: Peter Zijlstra
    Acked-by: Ingo Molnar
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     
  • If the timeout of an autofs mount is set to zero then umounts are disabled.
    This works fine, however the kernel module checks the expire timeout and
    goes no further if it is zero. This is not the right thing to do at
    shutdown as the module is passed an option to expire mounts regardless of
    their timeout setting.

    This patch allows autofs to honor the force expire option.

    Signed-off-by: Ian Kent
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ian Kent
     
  • Fixes section-mismatch errors.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Fixes section mismatch warnings when built as a module.

    Also, mark find_ledma and sun4 init function as __devinit
    too.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • init_socksys() was marked __init but invoked from a
    non-__init function.

    Use the correct module_{init,exit}() faciltiies while we're
    here and eliminate some seriously bogus ifdefs.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Now that all of the supporting pieces of NetLabel have a home at SourceForge
    update the Kconfig help text and add an entry to the MAINTAINERS file.

    Signed-off-by: Paul Moore
    Signed-off-by: David S. Miller

    Paul Moore
     
  • At the suggestion of Thomas Graf, rewrite NetLabel's use of Netlink attributes
    to better follow the common Netlink attribute usage.

    Signed-off-by: Paul Moore
    Signed-off-by: David S. Miller

    Paul Moore
     
  • At the suggestion of Thomas Graf, rewrite NetLabel's use of Netlink attributes
    to better follow the common Netlink attribute usage.

    Signed-off-by: Paul Moore
    Signed-off-by: David S. Miller

    Paul Moore
     
  • Add a new function, nla_validate_nested(), to validate nested Netlink
    attributes.

    Signed-off-by: Paul Moore
    Signed-off-by: David S. Miller

    Paul Moore
     
  • At the top of include/net/netlink.h is a list of Netlink interfaces, however,
    the nla_for_each_nested() macro was not listed. This patch adds this interface
    to the list at the top of the header file.

    Signed-off-by: Paul Moore
    Signed-off-by: David S. Miller

    Paul Moore
     
  • Change NetLabel to use the 'recvfrom' socket permission and the
    SECINITSID_NETMSG SELinux SID as the NetLabel base SID for incoming packets.
    This patch effectively makes the old, and currently unused, SELinux NETMSG
    permissions NetLabel permissions.

    Signed-of-by: Paul Moore
    Signed-off-by: David S. Miller

    Paul Moore
     
  • The CIPSOv4 cache traversal routines are triggered both the userspace events
    (cache invalidation due to DOI removal or updated SELinux policy) and network
    packet processing events. As a result there is a problem with the existing
    CIPSOv4 cache spinlocks as they are not bottom-half/softirq safe. This patch
    converts the CIPSOv4 cache spin_[un]lock() calls into spin_[un]lock_bh() calls
    to address this problem.

    Signed-off-by: Paul Moore
    Signed-off-by: David S. Miller

    Paul Moore
     
  • Fix a problem where NetLabel would always set the value of
    sk_security_struct->peer_sid in selinux_netlbl_sock_graft() to the context of
    the socket, causing problems when users would query the context of the
    connection. This patch fixes this so that the value in
    sk_security_struct->peer_sid is only set when the connection is NetLabel based,
    otherwise the value is untouched.

    Signed-off-by: Paul Moore
    Signed-off-by: David S. Miller

    Paul Moore
     
  • They all contain the same thing. Instead, have a single generic one in
    include/asm-generic, and permit an arch to override as needed.

    Signed-off-by: Jeff Garzik

    Jeff Garzik
     

25 Sep, 2006

8 commits