15 Jul, 2006

38 commits

  • IRQs must be disabled before taking ->siglock.

    Noticed by lockdep.

    Signed-off-by: OGAWA Hirofumi
    Cc: Arjan van de Ven
    Cc: Ingo Molnar
    Cc: "Eric W. Biederman"
    Cc: Oleg Nesterov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    OGAWA Hirofumi
     
  • Resolve problems seen w/ APM suspend.

    Due to resume initialization ordering, its possible we could get a timer
    interrupt before the timekeeping resume() function is called. This patch
    ensures we don't do any timekeeping accounting before we're fully resumed.

    (akpm: fixes the machine-freezes-on-APM-resume bug)

    Signed-off-by: John Stultz
    Cc: Roman Zippel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    john stultz
     
  • Remove the scx200_gpio's cdev-array & ksalloc, replacing it with a single
    static struct cdev, which is sufficient for all the pins.

    cdev_put is commented out since kernel wont link properly with it, and its
    apparently not needed.

    With these patches, this driver continues to work with Chris Boot's
    leds_48xx driver.

    Signed-off-by Jim Cromie

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

    Jim Cromie
     
  • this patch is mostly cleanup of scx200_gpio :
    - drop #include
    - s/DEVNAME/DRVNAME/ apparently a convention
    - replace variable num_pins with #define MAX_PINS
    - s/dev/devid/ to clarify that its a dev_t, not a struct device dev.
    - move devid = MKDEV(major,0) into branch where its needed.

    2 minor 'changes' :

    - reduced MAX_PINS from 64 to 32. Ive never tested other pins, and
    theyre all multiplexed with other functions, some of which may be in use
    on my soekris 4801, so I dont know what testing should yield.

    - +EXPORT_SYMBOL(scx200_access);

    This exposes the driver's vtable, which another driver can use along
    with #include , to manipulate a gpio-pin.

    Signed-off-by Jim Cromie

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

    Jim Cromie
     
  • Christoph Hellwig:
    open_softirq just enables a softirq. The softirq array is statically
    allocated so to add a new one you would have to patch the kernel. So
    there's no point to keep this export at all as any user would have to
    patch the enum in include/linux/interrupt.h anyway.

    Signed-off-by: Adrian Bunk
    Acked-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Signed-off-by: Adrian Bunk
    Acked-by: Mike Miller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • When CONFIG_RT_MUTEX_TESTER is enabled kernel refuses to suspend the
    machine because it's unable to freeze the rt-test-* threads.

    Add try_to_freeze() after schedule() so that the threads will be freezed
    correctly; I've tested the patch and it lets the notebook suspends and
    resumes nicely.

    Signed-off-by: Luca Tettamanti
    Cc: Ingo Molnar
    Acked-by: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Luca Tettamanti
     
  • The delete partition IOCTL takes the bd_mutex for both the disk and the
    partition; these have an obvious hierarchical relationship and this patch
    annotates this relationship for lockdep.

    Signed-off-by: Arjan van de Ven
    Acked-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     
  • Add support for the I2C-attached Intersil ISL1208 RTC chip.

    [akpm@osdl.org: cleanups, fixlets]
    Signed-off-by: Herbert Valerio Riedel
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Herbert Valerio Riedel
     
  • Make the ramdisk blocksize configurable at kernel compilation time rather
    than only at boot or module load time, like a couple of the other ramdisk
    options. I found this handy awhile back but thought little of it, until
    recently asked by a few of the testing folks here to be able to do the same
    thing for their automated test setups.

    The Kconfig comment is largely lifted from comments in rd.c, and hopefully
    this will increase the chances of making folks aware that the default value
    often isn't a great choice here (for increasing values of PAGE_SIZE, even
    moreso).

    Signed-off-by: Nathan Scott
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nathan Scott
     
  • The default ramdisk blocksize is actually 1024, not 512 bytes. Also fixes
    up some trailing whitespace issues.

    Signed-off-by: Nathan Scott
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nathan Scott
     
  • nommu.c needs to export two more symbols for drivers to use:
    remap_pfn_range and unmap_mapping_range.

    Signed-off-by: Luke Yang
    Cc: David Howells
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Luke Yang
     
  • There's no excuse for userspace abusing this kernel header -- the kernel's
    headers are not intended to provide a library of helper routines for
    userspace. Using from userspace is broken on most architectures
    anyway. Just say 'no'.

    Signed-off-by: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Woodhouse
     
  • This isn't suitable for userspace to see -- the kernel headers are not a
    random library of stuff for userspace; they're only there to define the
    kerneluser ABI for system libraries and tools. Anything which _was_
    abusing asm/atomic.h from userspace was probably broken anyway -- as it often
    didn't even give atomic operation.

    Signed-off-by: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Woodhouse
     
  • Remove asm/irq.h from the exported headers -- there was never any good reason
    for it to have been listed.

    Signed-off-by: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Woodhouse
     
  • Relax the CPU in the del_timer_sync() busywait loop.

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

    Andrew Morton
     
  • Remove the now-unneeded kthread_stop_sem().

    Signed-off-by: Adrian Bunk
    Acked-by: Alan Stern
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Got a customer bug report (https://bugzilla.novell.com/190296) about kernel
    symbols longer than 127 characters which end up in a string buffer that is
    not NULL terminated, leading to garbage in /proc/kallsyms. Using strlcpy
    prevents this from happening, even though such symbols still won't come out
    right.

    A better fix would be to not use a fixed-size buffer, but it's probably not
    worth the trouble. (Modversion'ed symbols even have a length limit of 60.)

    [bunk@stusta.de: build fix]
    Signed-off-by: Andreas Gruenbacher
    Signed-off-by: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andreas Gruenbacher
     
  • Clean up whitespace and return syntax in os.h.

    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • On top of the previous biarch changes for UML, this makes the preprocessor
    changes a bit cleaner. Specify the 64-bit build in CPPFLAGS on the x86_64
    SUBARCH, rather than #undef'ing i386. Compile-tested with i386 and x86_64
    SUBARCHs.

    Signed-off-by: Nishanth Aravamudan
    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • The UML_SETJMP macro was requiring its users to pass in a argument which it
    could supply itself, since it wasn't used outside that invocation of the
    macro.

    Signed-off-by: Jeff Dike
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Dike
     
  • On i386, the user space accessor functions copy_from/to_user() both invoke
    might_sleep(), do a quick sanity check, and then pass the work on to their
    __copy_from/to_user() counterparts, which again invoke might_sleep().
    Given that no actual work happens between these two calls, it is best to
    eliminate one of the redundant might_sleep()s.

    Signed-off-by: Vadim Lobanov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Vadim Lobanov
     
  • This patch removes the foolish assumption that SMP implied local apics.
    That assumption is not-true on the Voyager subarch. This makes that
    dependency explicit, and allows the code to build.

    What gets disabled is just an optimization to get better crash dumps so the
    support should work if there is a kernel that will initialization on the
    voyager subarch under those harsh conditions.

    Hopefully we can figure out how to initialize apics in init_IRQ and remove
    the need to disable io_apics and this dependency.

    Signed-off-by: Eric W. Biederman
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     
  • Signed-off-by: Catalin Marinas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Catalin Marinas
     
  • handle_BUG() tries to print file and line number even when they're not
    available (CONFIG_DEBUG_BUGVERBOSE is not set.) Change this to print a
    message stating info is unavailable instead of printing a misleading
    message.

    Signed-off-by: Chuck Ebbert
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chuck Ebbert
     
  • There is a race condition that showed up in a threaded JIT environment.
    The situation is that a process with a JIT code page forks, so the page is
    marked read-only, then some threads are created in the child. One of the
    threads attempts to add a new code block to the JIT page, so a
    copy-on-write fault is taken, and the kernel allocates a new page, copies
    the data, installs the new pte, and then calls lazy_mmu_prot_update() to
    flush caches to make sure that the icache and dcache are in sync.
    Unfortunately, the other thread runs right after the new pte is installed,
    but before the caches have been flushed. It tries to execute some old JIT
    code that was already in this page, but it sees some garbage in the i-cache
    from the previous users of the new physical page.

    Fix: we must make the caches consistent before installing the pte. This is
    an ia64 only fix because lazy_mmu_prot_update() is a no-op on all other
    architectures.

    Signed-off-by: Anil Keshavamurthy
    Signed-off-by: Tony Luck
    Cc: Hugh Dickins
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Anil Keshavamurthy
     
  • __vunmap must not rely on area->nr_pages when picking the release methode
    for area->pages. It may be too small when __vmalloc_area_node failed early
    due to lacking memory. Instead, use a flag in vmstruct to differentiate.

    Signed-off-by: Jan Kiszka
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Kiszka
     
  • Avoid bogus out of memory errors: fix sa_query to actually pass gfp_mask
    supplied by the user to idr_pre_get.

    Signed-off-by: Michael S. Tsirkin
    Acked-by: "Sean Hefty"
    Acked-by: "Roland Dreier"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael S. Tsirkin
     
  • ib_fmr_pool_map_phys gets the virtual address by pointer but never writes
    there, and users (e.g. srp) seem to assume this and ignore the value
    returned. This patch cleans up the API to get the VA by value, and updates
    all users.

    Signed-off-by: Michael S. Tsirkin
    Acked-by: Roland Dreier
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael S. Tsirkin
     
  • Set private data length for reject messages to the correct size. Fix from
    openib svn r8483.

    Signed-off-by: Sean Hefty
    Signed-off-by: Michael S. Tsirkin
    Cc: Roland Dreier
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ira Weiny
     
  • srp_unmap_data assumes req->fmr is NULL if the request is not mapped, so we
    must clean it out in case of an error.

    Signed-off-by: Vu Pham
    Signed-off-by: Michael S. Tsirkin
    Acked-by: Roland Dreier
    Cc: Roland Dreier
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Vu Pham
     
  • The device address contains unsigned character arrays, which contain raw GID
    addresses. The GIDs may not be naturally aligned, so do not cast them to
    structures or unions.

    Signed-off-by: Sean Hefty
    Signed-off-by: Michael S. Tsirkin
    Cc: Roland Dreier
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael S. Tsirkin
     
  • If a user of the IB CM returns -ENOMEM from their connection callback, simply
    drop the incoming REQ - do not attempt to send a reject. This should allow
    the sender to retry the request.

    Signed-off-by: Michael S. Tsirkin
    Signed-off-by: Sean Hefty
    Cc: Roland Dreier
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael S. Tsirkin
     
  • After recent changes, mthca_wq_init does not actually initialize the WQ as it
    used to - it simply resets all index fields to their initial values. So,
    let's rename it to mthca_wq_reset.

    Signed-off-by: Michael S. Tsirkin
    Cc: Roland Dreier
    Acked-by: Zach Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael S. Tsirkin
     
  • mthca_ah_query returs the static rate of the address handle in internal mthc
    format. fix it to use rate encoding from enum ib_rate, which is what users
    expect.

    Signed-off-by: Jack Morgenstein
    Signed-off-by: Michael S. Tsirkin
    Cc: Roland Dreier
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jack Morgenstein
     
  • 2.6.16 leaks like hell. While testing, I found massive leakage
    (reproduced in openvz) in:

    *filp
    *size-4096

    And 1 object leaks in
    *size-32
    *size-64
    *size-128

    It is the fix for the first one. filp leaks in the bowels of namei.c.

    Seems, size-4096 is file table leaking in expand_fdtables.

    I have no idea what are the rest and why they show only accompanying
    another leaks. Some debugging structs?

    [akpm@osdl.org, Trond: remove the IS_ERR() check]
    Signed-off-by: Alexey Kuznetsov
    Cc: Kirill Korotaev
    Cc:
    Cc: Trond Myklebust
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kirill Korotaev
     
  • Clearign all of i_mode was a bit draconian. We only really care about
    S_ISUID/ISGID, after all.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • We have a bad interaction with both the kernel and user space being able
    to change some of the /proc file status. This fixes the most obvious
    part of it, but I expect we'll also make it harder for users to modify
    even their "own" files in /proc.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

14 Jul, 2006

2 commits

  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (53 commits)
    [MIPS] sparsemem: fix crash in show_mem
    [MIPS] vr41xx: Update workpad setup function
    [MIPS] vr41xx: Update e55 setup function
    [MIPS] vr41xx: Removed old v2.4 VRC4173 driver
    [MIPS] vr41xx: Move IRQ numbers to asm-mips/vr41xx/irq.h
    [MIPS] MIPSsim: Build fix, rename sim_timer_setup -> plat_timer_setup.
    [MIPS] Remove unused code.
    [MIPS] IP22 Fix brown paper bag in RTC code.
    [MIPS] Atlas, Malta, SEAD: Don't disable interrupts in mips_time_init().
    [MIPS] Replace board_timer_setup function pointer by plat_timer_setup.
    [MIPS] Nuke redeclarations of board_time_init.
    [MIPS] Remove redeclarations of setup_irq().
    [MIPS] Nuke redeclarations of board_timer_setup.
    [MIPS] Print out TLB handler assembly for debugging.
    [MIPS] SMTC: Reformat to Linux style.
    [MIPS] MIPSsim: Delete redeclaration of ll_local_timer_interrupt.
    [MIPS] IP27: Reformatting.
    [MIPS] IP27: Invoke setup_irq for timer interrupt so proc stats will be shown.
    [MIPS] IP27: irq_chip startup method returns unsigned int.
    [MIPS] IP27: struct irq_desc member handler was renamed to chip.
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
    [CIFS] CIFS_DEBUG2 depends on CIFS

    Linus Torvalds