08 Jun, 2007

16 commits

  • There's really no reason it's below the first use of the pointer
    type, and it'll fail compilation for the network addition (for good
    reason). So move it up a bit.

    Signed-off-by: Jens Axboe

    Jens Axboe
     
  • * git://git.linux-xtensa.org/kernel/xtensa-feed:
    Xtensa: use asm-generic/fcntl.h
    [XTENSA] Remove non-rt signal handling
    [XTENSA] Move common sections into bss sections
    [XTENSA] clean-up header files
    [XTENSA] Use generic 64-bit division
    [XTENSA] Remove multi-exported symbols from xtensa_ksyms.c
    [XTENSA] fix sources using deprecated assembler directive
    [XTENSA] Spelling fixes in arch/xtensa
    [XTENSA] fix bit operations in bitops.h

    Linus Torvalds
     
  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (24 commits)
    xfrm: Add security check before flushing SAD/SPD
    [NET_SCHED]: Fix filter double free
    [NET]: Avoid duplicate netlink notification when changing link state
    [UDP]: Revert 2-pass hashing changes.
    [AF_UNIX]: Fix stream recvmsg() race.
    [NETFILTER]: nf_conntrack_amanda: fix textsearch_prepare() error check
    [NETFILTER]: ip_tables: fix compat related crash
    [NETFILTER]: nf_conntrack: fix helper module unload races
    [RTNETLINK]: ifindex 0 does not exist
    [NETLINK]: Mark netlink policies const
    [TCP] tcp_probe: Attach printf attribute properly to printl().
    [TCP]: Use LIMIT_NETDEBUG in tcp_retransmit_timer().
    [NET]: Merge dst_discard_in and dst_discard_out.
    [RFKILL]: Make rfkill->name const
    [IPV4]: Restore old behaviour of default config values
    [IPV4]: Add default config support after inetdev_init
    [IPV4]: Convert IPv4 devconf to an array
    [IPV4]: Only panic if inetdev_init fails for loopback
    [TCP]: Honour sk_bound_dev_if in tcp_v4_send_ack
    [BNX2]: Update version and reldate.
    ...

    Linus Torvalds
     
  • * master.kernel.org:/home/rmk/linux-2.6-arm:
    [ARM] pxa: fix pxa27x keyboard driver
    [ARM] Fix 4417/1: Serial: Fix AMBA drivers locking
    [ARM] 4421/1: AT91: Value of _KEY fields.
    [ARM] Solve buggy smp_processor_id() usage
    [ARM] 4422/1: Fix default value handling in gpio_direction_output (PXA)
    [ARM] 4419/1: AT91: SAM9 USB clocks check for suspending
    [ARM] 4418/1: AT91: Number of programmable clocks differs
    [ARM] 4392/2: Do not corrupt the SP register in compressed/head.S

    Linus Torvalds
     
  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
    [MIPS] Fix warning by moving do_default_vi into CONFIG_CPU_MIPSR2_SRS
    [MIPS] Fix some minor typoes in arch/mips/Kconfig.
    [MIPS] Remove prototype for deleted function qemu_handle_int
    [MIPS] Fix some system calls with long long arguments
    [MIPS] Make dma_map_sg handle sg elements which are longer than one page
    [MIPS] Drop __ARCH_WANT_SYS_FADVISE64
    [MIPS] Fix VGA corruption on RM300C
    [MIPS] RM300: Fix MMIO problems by marking the PCI INT ACK region busy
    [MIPS] EMMA2RH: remove dead KGDB code
    [MIPS] Remove duplicate fpu enable hazard code.
    [MIPS] Atlas, Malta, SEAD: Remove scroll from interrupt handler.

    Linus Torvalds
     
  • In file included from /usr/src/linux-2.6-2/net/ipv4/ip_input.c:118:

    include2/asm/system.h:245: error: parse error before "__cmpxchg_32"
    include2/asm/system.h:245: error: parse error before '*' token
    include2/asm/system.h:245: warning: type defaults to `int' in declaration of `__cmpxchg_32'
    include2/asm/system.h:245: warning: function declaration isn't a prototype
    include2/asm/system.h:245: warning: data definition has no type or storage class

    Signed-off-by: Peter Zijlstra
    Acked-by: David Howells
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     
  • Currently we check for permission before deleting entries from SAD and
    SPD, (see security_xfrm_policy_delete() security_xfrm_state_delete())
    However we are not checking for authorization when flushing the SPD and
    the SAD completely. It was perhaps missed in the original security hooks
    patch.

    This patch adds a security check when flushing entries from the SAD and
    SPD. It runs the entire database and checks each entry for a denial.
    If the process attempting the flush is unable to remove all of the
    entries a denial is logged the the flush function returns an error
    without removing anything.

    This is particularly useful when a process may need to create or delete
    its own xfrm entries used for things like labeled networking but that
    same process should not be able to delete other entries or flush the
    entire database.

    Signed-off-by: Joy Latten
    Signed-off-by: Eric Paris
    Signed-off-by: James Morris

    Joy Latten
     
  • This reverts changesets:

    6aaf47fa48d3c44280810b1b470261d340e4ed87
    b7b5f487ab39bc10ed0694af35651a03d9cb97ff
    de34ed91c4ffa4727964a832c46e624dd1495cf5
    fc038410b4b1643766f8033f4940bcdb1dace633

    There are still some correctness issues recently
    discovered which do not have a known fix that doesn't
    involve doing a full hash table scan on port bind.

    So revert for now.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • check_compat_entry_size_and_hooks iterates over the matches and calls
    compat_check_calc_match, which loads the match and calculates the
    compat offsets, but unlike the non-compat version, doesn't call
    ->checkentry yet. On error however it calls cleanup_matches, which in
    turn calls ->destroy, which can result in crashes if the destroy
    function (validly) expects to only get called after the checkentry
    function.

    Add a compat_release_match function that only drops the module reference
    on error and rename compat_check_calc_match to compat_find_calc_match to
    reflect the fact that it doesn't call the checkentry function.

    Reported by Jan Engelhardt

    Signed-off-by: Dmitry Mishin
    Signed-off-by: Patrick McHardy
    Signed-off-by: David S. Miller

    Dmitry Mishin
     
  • Signed-off-by: Patrick McHardy
    Signed-off-by: David S. Miller

    Patrick McHardy
     
  • The rfkill name can be made const safely,
    this makes the compiler happy when drivers make
    it point to some const string used elsewhere.

    Signed-off-by: Ivo van Doorn
    Signed-off-by: David S. Miller

    Ivo van Doorn
     
  • Previously inet devices were only constructed when addresses are added
    (or rarely in ipmr). Therefore the default config values they get are
    the ones at the time of these operations.

    Now that we're creating inet devices earlier, this changes the
    behaviour of default config values in an incompatible way (see bug
    #8519).

    This patch creates a compromise by setting the default values at the
    same point as before but only for those that have not been explicitly
    set by the user since the inet device's creation.

    Signed-off-by: Herbert Xu
    Signed-off-by: David S. Miller

    Herbert Xu
     
  • Previously once inetdev_init has been called on a device any changes
    made to ipv4_devconf_dflt would have no effect on that device's
    configuration.

    This creates a problem since we have moved the point where
    inetdev_init is called from when an address is added to where the
    device is registered.

    This patch is the first half of a set that tries to mimic the old
    behaviour while still calling inetdev_init.

    It propagates any changes to ipv4_devconf_dflt to those devices that
    have not had the corresponding attribute set.

    The next patch will forcibly set all values at the point where
    inetdev_init was previously called.

    Signed-off-by: Herbert Xu
    Signed-off-by: David S. Miller

    Herbert Xu
     
  • This patch converts the ipv4_devconf config members (everything except
    sysctl) to an array. This allows easier manipulation which will be
    needed later on to provide better management of default config values.

    Signed-off-by: Herbert Xu
    Signed-off-by: David S. Miller

    Herbert Xu
     
  • A time_wait socket inherits sk_bound_dev_if from the original socket,
    but it is not used when sending ACK packets using ip_send_reply.

    Fix by passing the oif to ip_send_reply in struct ip_reply_arg and
    use it for output routing.

    Signed-off-by: Patrick McHardy
    Signed-off-by: David S. Miller

    Patrick McHardy
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6:
    sh: Fix se73180 platform device registration.
    sh: ioremap() through PMB needs asm/mmu.h.
    sh: voyagergx: Fix build warnings.
    sh: Fix SH4-202 clock fwk set_rate() mismatch.
    sh: microdev: Fix compile warnings.
    sh: Fix in_nmi symbol build error.

    Linus Torvalds
     

07 Jun, 2007

3 commits


05 Jun, 2007

6 commits

  • Signed-off-by: David S. Miller

    David S. Miller
     
  • It's not just sun4v hypervisor platforms that should return true
    for this, sun4u with UltraSPARC-IV should return true too.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • The scheduling domain hierarchy is:

    all cpus -->
    cpus that share an instruction cache -->
    cpus that share an integer execution unit

    Signed-off-by: David S. Miller

    David S. Miller
     
  • If the system supports hypervisor based statistics, allow them to
    be fetched, enabled, and disabled via sysfs.

    Enable and disable via the boolean:

    /sys/devices/systems/cpu/cpuN/mmustat_enable

    Statistic values are provided under:

    /sys/devices/systems/cpu/cpuN/mmu_status/

    Signed-off-by: David S. Miller

    David Miller
     
  • * git://git.infradead.org/mtd-2.6:
    [JFFS2] Fix obsoletion of metadata nodes in jffs2_add_tn_to_tree()
    [MTD] Fix error checking after get_mtd_device() in get_sb_mtd functions
    [JFFS2] Fix buffer length calculations in jffs2_get_inode_nodes()
    [JFFS2] Fix potential memory leak of dead xattrs on unmount.
    [JFFS2] Fix BUG() caused by failing to discard xattrs on deleted files.
    [MTD] generalise the handling of MTD-specific superblocks
    [MTD] [MAPS] don't force uclinux mtd map to be root dev

    Linus Torvalds
     
  • Several people have reported LITE-ON LTR-48246S detection failed
    because SETXFER fails. It seems the device raises IRQ too early after
    SETXFER. This is controller independent. The same problem has been
    reported for different controllers.

    So, now we have pata_via where the controller raises IRQ before it's
    ready after SETXFER and a device which does similar thing. This patch
    makes libata always execute SETXFER via polling. As this only happens
    during EH, performance impact is nil. Setting ATA_TFLAG_POLLING is
    also moved from issue hot path to ata_dev_set_xfermode() - the only
    place where SETXFER can be issued.

    Note that ATA_TFLAG_POLLING applies only to drivers which implement
    SFF TF interface and use libata HSM. More advanced controllers ignore
    the flag. This doesn't matter for this fix as SFF TF controllers are
    the problematic ones.

    Signed-off-by: Tejun Heo
    Signed-off-by: Jeff Garzik

    Tejun Heo
     

04 Jun, 2007

4 commits

  • Copy and paste error from se7343, fix it up.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • The unix_state_*() locking macros imply that there is some
    rwlock kind of thing going on, but the implementation is
    actually a spinlock which makes the code more confusing than
    it needs to be.

    So use plain unix_state_lock and unix_state_unlock.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • * 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
    [POWERPC] Fix zImage.coff generation for 32-bit pmac
    [POWERPC] Fix compile breakage for IBM/AMCC 4xx arch/ppc platforms
    [POWERPC] Don't allow PMAC_APM_EMU for 64-bit
    [POWERPC] Compare irq numbers with NO_IRQ not IRQ_NONE
    [POWERPC] Fix return from pte_alloc_one() in out-of-memory case
    [POWERPC] Fix compile warning in pseries xics code
    [POWERPC] Don't use HOSTCFLAGS in BOOTCFLAGS
    [POWERPC] Create a zImage for legacy iSeries
    [POWERPC] pasemi idle uses hard_smp_processor_id
    [POWERPC] ps3/interrupt.c uses get_hard_smp_processor_id
    [POWERPC] Fix possible access to free pages
    [POWERPC] Fix compiler/assembler flags for Ebony platform boot files
    [POWERPC] Fix ppc32 single-stepping out of syscalls
    [POWERPC] Update documentation for of_find_node_by_type()

    Linus Torvalds
     
  • Use the actual value (0xA5) for the AT91_SHDW_KEY and AT91_WDT_KEY
    register fields instead of a bitmask.

    This is consistent with how AT91_RSTC_KEY is defined, and is easier to
    use in code.

    Signed-off-by: Andrew Victor
    Signed-off-by: Russell King

    Andrew Victor
     

03 Jun, 2007

1 commit


02 Jun, 2007

6 commits


01 Jun, 2007

4 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6:
    firewire: Install firewire-constants.h and firewire-cdev.h for userspace.
    firewire: Change struct fw_cdev_iso_packet to not use bitfields.
    firewire: Implement suspend/resume PCI driver hooks.
    firewire: add to MAINTAINERS
    firewire: fw-sbp2: implement sysfs ieee1394_id
    ieee1394: sbp2: offer SAM-conforming target port ID in sysfs
    ieee1394: fix calculation of sysfs attribute "address"

    Linus Torvalds
     
  • The header refers to handle_sysrq(), but does not
    include which provides a declaration of the function. This
    may result in an implicit declaration and a warning if the actual one is
    seen later on.

    Signed-off-by: Maciej W. Rozycki
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Maciej W. Rozycki
     
  • Add comment for errnos related to restart syscall to avoid the leakage of
    them to user programs.

    Signed-off-by: Satoru Takeuchi
    Cc: Oleg Nesterov
    Acked-by: Roland McGrath
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Satoru Takeuchi
     
  • 1. arch/alpha/Kconfig

    several adjustments:
    a) additions to the systems list and cleanup of same
    b) change limits of NR_CPUS and make dep. on platform

    Note that MARVEL support is limited to 32 CPUs whan using
    42-bit KSEG - one needs 48-bit KSEG to handle up to 64, and
    we've never supported 48-bit KSEG.

    2. include/asm-alpha/core_wildfire.h

    fix a typo that undoubtedly prevents WILDFIRE support
    from working

    Signed-off-by: Ivan Kokshaysky
    Cc: Richard Henderson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jay Estabrook