11 Jun, 2015

1 commit

  • Fix

    include/asm-generic/io.h: In function 'readb':
    include/asm-generic/io.h:113:2: error:
    implicit declaration of function 'bfin_read8'
    include/asm-generic/io.h: In function 'readw':
    include/asm-generic/io.h:121:2: error:
    implicit declaration of function 'bfin_read16'
    include/asm-generic/io.h: In function 'readl':
    include/asm-generic/io.h:129:2: error:
    implicit declaration of function 'bfin_read32'
    include/asm-generic/io.h: In function 'writeb':
    include/asm-generic/io.h:147:2: error:
    implicit declaration of function 'bfin_write8'
    include/asm-generic/io.h: In function 'writew':
    include/asm-generic/io.h:155:2: error:
    implicit declaration of function 'bfin_write16'
    include/asm-generic/io.h: In function 'writel':
    include/asm-generic/io.h:163:2: error:
    implicit declaration of function 'bfin_write32'

    Reported-by: Geert Uytterhoeven
    Fixes: 1a3372bc522ef ("blackfin: io: define __raw_readx/writex with
    bfin_readx/writex")
    Cc: Steven Miao
    Signed-off-by: Guenter Roeck

    Guenter Roeck
     

24 Apr, 2015

3 commits

  • …realmz6/blackfin-linux

    Pull blackfin updates from Steven Miao.

    * tag 'blackfin-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/realmz6/blackfin-linux:
    eth: bf609 eth clock: add pclk clock for stmmac driver probe
    blackfin: Wire up missing syscalls
    arch: blackfin: kernel: kgdb: Remove unused function
    dma: fix build error after update to v3.19
    blackfin: io: define __raw_readx/writex with bfin_readx/writex
    bf609: add resources for lcd nl8048
    pm: sometimes wake up from suspend to RAM would fail
    debug-mmrs: Eliminate all traces of the USB_PHY_TEST MMR
    bf609: remove softswitch i2c configuration from adv7842 and adv7511 platform data
    bf609: add platform data for soft switch devices on the video extenders
    bf609: enable soft switch gpio driver by default
    bf609: add gpio soft switch platform data for mcp23017 i2c devices
    bf609: use new SND_BF6XX_PCM to choose audio pcm driver
    bug[220] kgdb: change the smp cross core function entry
    arch: blackfin: kernel: setup.c: Cleaning up missing null-terminate in conjunction with strncpy
    blackfin: defconfigs: cleanup unused CONFIG_MTD_CHAR, add MTD_SPI_NOR for BF537-STAMP

    Linus Torvalds
     
  • Signed-off-by: Steven Miao

    Steven Miao
     
  • The related syscalls are below which may cause samples/kdbus building
    break in next-20150401 tree, the related information and error:

    CALL scripts/checksyscalls.sh
    :1223:2: warning: #warning syscall kcmp not implemented [-Wcpp]
    :1226:2: warning: #warning syscall finit_module not implemented [-Wcpp]
    :1229:2: warning: #warning syscall sched_setattr not implemented [-Wcpp]
    :1232:2: warning: #warning syscall sched_getattr not implemented [-Wcpp]
    :1235:2: warning: #warning syscall renameat2 not implemented [-Wcpp]
    :1238:2: warning: #warning syscall seccomp not implemented [-Wcpp]
    :1241:2: warning: #warning syscall getrandom not implemented [-Wcpp]
    :1244:2: warning: #warning syscall memfd_create not implemented [-Wcpp]
    :1247:2: warning: #warning syscall bpf not implemented [-Wcpp]
    :1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
    [...]
    HOSTCC samples/kdbus/kdbus-workers
    samples/kdbus/kdbus-workers.c: In function ‘prime_new’:
    samples/kdbus/kdbus-workers.c:930:18: error: ‘__NR_memfd_create’ undeclared (first use in this function)
    p->fd = syscall(__NR_memfd_create, "prime-area", MFD_CLOEXEC);
    ^
    samples/kdbus/kdbus-workers.c:930:18: note: each undeclared identifier is reported only once for each function it appears in

    Signed-off-by: Chen Gang

    Chen Gang
     

23 Apr, 2015

14 commits


21 Apr, 2015

1 commit

  • Pull final removal of deprecated cpus_* cpumask functions from Rusty Russell:
    "This is the final removal (after several years!) of the obsolete
    cpus_* functions, prompted by their mis-use in staging.

    With these function removed, all cpu functions should only iterate to
    nr_cpu_ids, so we finally only allocate that many bits when cpumasks
    are allocated offstack"

    * tag 'cpumask-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux: (25 commits)
    cpumask: remove __first_cpu / __next_cpu
    cpumask: resurrect CPU_MASK_CPU0
    linux/cpumask.h: add typechecking to cpumask_test_cpu
    cpumask: only allocate nr_cpumask_bits.
    Fix weird uses of num_online_cpus().
    cpumask: remove deprecated functions.
    mips: fix obsolete cpumask_of_cpu usage.
    x86: fix more deprecated cpu function usage.
    ia64: remove deprecated cpus_ usage.
    powerpc: fix deprecated CPU_MASK_CPU0 usage.
    CPU_MASK_ALL/CPU_MASK_NONE: remove from deprecated region.
    staging/lustre/o2iblnd: Don't use cpus_weight
    staging/lustre/libcfs: replace deprecated cpus_ calls with cpumask_
    staging/lustre/ptlrpc: Do not use deprecated cpus_* functions
    blackfin: fix up obsolete cpu function usage.
    parisc: fix up obsolete cpu function usage.
    tile: fix up obsolete cpu function usage.
    arm64: fix up obsolete cpu function usage.
    mips: fix up obsolete cpu function usage.
    x86: fix up obsolete cpu function usage.
    ...

    Linus Torvalds
     

16 Apr, 2015

1 commit

  • Pull exec domain removal from Richard Weinberger:
    "This series removes execution domain support from Linux.

    The idea behind exec domains was to support different ABIs. The
    feature was never complete nor stable. Let's rip it out and make the
    kernel signal handling code less complicated"

    * 'exec_domain_rip_v2' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/misc: (27 commits)
    arm64: Removed unused variable
    sparc: Fix execution domain removal
    Remove rest of exec domains.
    arch: Remove exec_domain from remaining archs
    arc: Remove signal translation and exec_domain
    xtensa: Remove signal translation and exec_domain
    xtensa: Autogenerate offsets in struct thread_info
    x86: Remove signal translation and exec_domain
    unicore32: Remove signal translation and exec_domain
    um: Remove signal translation and exec_domain
    tile: Remove signal translation and exec_domain
    sparc: Remove signal translation and exec_domain
    sh: Remove signal translation and exec_domain
    s390: Remove signal translation and exec_domain
    mn10300: Remove signal translation and exec_domain
    microblaze: Remove signal translation and exec_domain
    m68k: Remove signal translation and exec_domain
    m32r: Remove signal translation and exec_domain
    m32r: Autogenerate offsets in struct thread_info
    frv: Remove signal translation and exec_domain
    ...

    Linus Torvalds
     

13 Apr, 2015

3 commits


12 Mar, 2015

1 commit

  • This commit removes the open-coded CPU-offline notification with new
    common code. This change avoids calling scheduler code using RCU from
    an offline CPU that RCU is ignoring. This commit is compatible with
    the existing code in not checking for timeout during a prior offline
    for a given CPU.

    Signed-off-by: Paul E. McKenney
    Cc: Steven Miao
    Cc:

    Paul E. McKenney
     

05 Mar, 2015

1 commit


22 Feb, 2015

1 commit

  • Pull more input updates from Dmitry Torokhov:
    "The second round of updates for the input subsystem.

    Updates to ALPS an bfin_roraty drivers and a couple oother fixups"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: psmouse - use IS_ENABLED instead of homegrown code
    Input: bfin_rotary - introduce open and close methods
    Input: bfin_rotary - convert to use managed resources
    Input: bfin_rotary - use generic IO functions
    Input: bfin_rotary - move pin lists into into platform data
    Input: bfin_rotary - move platform header to linux/platform_data
    Input: bfin_rotary - mark suspend and resume code as __maybe_unused
    Input: bfin_rotary - fix potential oops in interrupt handler
    Input: ALPS - move v7 packet info to Documentation and v6 packet info
    Input: ALPS - fix confusing comment in protocol data
    Input: ALPS - do not mix trackstick and external PS/2 mouse data
    Input: ALPS - fix trackstick detection on some Dell Latitudes
    Input: ALPS - consolidate setting protocol parameters
    Input: ALPS - split protocol data from model info
    Input: ALPS - make Rushmore a separate protocol
    Input: ALPS - renumber protocol numbers
    Input: adi - remove an unnecessary check
    Input: pxa27x_keypad - remove an unneeded NULL check
    Input: soc_button_array - use "Windows" key for "Home"

    Linus Torvalds
     

19 Feb, 2015

1 commit

  • Pull asm-generic uaccess.h cleanup from Arnd Bergmann:
    "Like in 3.19, I once more have a multi-stage cleanup for one
    asm-generic header file, this time the work was done by Michael
    Tsirkin and cleans up the uaccess.h file in asm-generic, as well as
    all architectures for which the respective maintainers did not pick up
    his patches directly"

    * tag 'asm-generic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic: (37 commits)
    sparc32: nocheck uaccess coding style tweaks
    sparc64: nocheck uaccess coding style tweaks
    xtensa: macro whitespace fixes
    sh: macro whitespace fixes
    parisc: macro whitespace fixes
    m68k: macro whitespace fixes
    m32r: macro whitespace fixes
    frv: macro whitespace fixes
    cris: macro whitespace fixes
    avr32: macro whitespace fixes
    arm64: macro whitespace fixes
    arm: macro whitespace fixes
    alpha: macro whitespace fixes
    blackfin: macro whitespace fixes
    sparc64: uaccess_64 macro whitespace fixes
    sparc32: uaccess_32 macro whitespace fixes
    avr32: whitespace fix
    sh: fix put_user sparse errors
    metag: fix put_user sparse errors
    ia64: fix put_user sparse errors
    ...

    Linus Torvalds
     

16 Feb, 2015

3 commits


13 Feb, 2015

1 commit

  • If an attacker can cause a controlled kernel stack overflow, overwriting
    the restart block is a very juicy exploit target. This is because the
    restart_block is held in the same memory allocation as the kernel stack.

    Moving the restart block to struct task_struct prevents this exploit by
    making the restart_block harder to locate.

    Note that there are other fields in thread_info that are also easy
    targets, at least on some architectures.

    It's also a decent simplification, since the restart code is more or less
    identical on all architectures.

    [james.hogan@imgtec.com: metag: align thread_info::supervisor_stack]
    Signed-off-by: Andy Lutomirski
    Cc: Thomas Gleixner
    Cc: Al Viro
    Cc: "H. Peter Anvin"
    Cc: Ingo Molnar
    Cc: Kees Cook
    Cc: David Miller
    Acked-by: Richard Weinberger
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Cc: Matt Turner
    Cc: Vineet Gupta
    Cc: Russell King
    Cc: Catalin Marinas
    Cc: Will Deacon
    Cc: Haavard Skinnemoen
    Cc: Hans-Christian Egtvedt
    Cc: Steven Miao
    Cc: Mark Salter
    Cc: Aurelien Jacquiot
    Cc: Mikael Starvik
    Cc: Jesper Nilsson
    Cc: David Howells
    Cc: Richard Kuo
    Cc: "Luck, Tony"
    Cc: Geert Uytterhoeven
    Cc: Michal Simek
    Cc: Ralf Baechle
    Cc: Jonas Bonn
    Cc: "James E.J. Bottomley"
    Cc: Helge Deller
    Cc: Benjamin Herrenschmidt
    Cc: Paul Mackerras
    Acked-by: Michael Ellerman (powerpc)
    Tested-by: Michael Ellerman (powerpc)
    Cc: Martin Schwidefsky
    Cc: Heiko Carstens
    Cc: Chen Liqin
    Cc: Lennox Wu
    Cc: Chris Metcalf
    Cc: Guan Xuetao
    Cc: Chris Zankel
    Cc: Max Filippov
    Cc: Oleg Nesterov
    Cc: Guenter Roeck
    Signed-off-by: James Hogan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Lutomirski
     

11 Feb, 2015

2 commits

  • Pull trivial tree changes from Jiri Kosina:
    "Patches from trivial.git that keep the world turning around.

    Mostly documentation and comment fixes, and a two corner-case code
    fixes from Alan Cox"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial:
    kexec, Kconfig: spell "architecture" properly
    mm: fix cleancache debugfs directory path
    blackfin: mach-common: ints-priority: remove unused function
    doubletalk: probe failure causes OOPS
    ARM: cache-l2x0.c: Make it clear that cache-l2x0 handles L310 cache controller
    msdos_fs.h: fix 'fields' in comment
    scsi: aic7xxx: fix comment
    ARM: l2c: fix comment
    ibmraid: fix writeable attribute with no store method
    dynamic_debug: fix comment
    doc: usbmon: fix spelling s/unpriviledged/unprivileged/
    x86: init_mem_mapping(): use capital BIOS in comment

    Linus Torvalds
     
  • We've replaced remap_file_pages(2) implementation with emulation. Nobody
    creates non-linear mapping anymore.

    Signed-off-by: Kirill A. Shutemov
    Cc: Steven Miao
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kirill A. Shutemov
     

20 Jan, 2015

1 commit


15 Jan, 2015

1 commit

  • …t/mst/vhost into asm-generic

    Merge "uaccess: fix sparse warning on get/put_user for bitwise types" from Michael S. Tsirkin:

    At the moment, if p and x are both tagged as bitwise types,
    some of get_user(x, p), put_user(x, p), __get_user(x, p), __put_user(x, p)
    might produce a sparse warning on many architectures.
    This is a false positive: *p on these architectures is loaded into long
    (typically using asm), then cast back to typeof(*p).

    When typeof(*p) is a bitwise type (which is uncommon), such a cast needs
    __force, otherwise sparse produces a warning.

    Some architectures already have the __force tag, add it
    where it's missing.

    I verified that adding these __force casts does not supress any useful warnings.

    Specifically, vhost wants to read/write bitwise types in userspace memory
    using get_user/put_user.
    At the moment this triggers sparse errors, since the value is passed through an
    integer.

    For example:
    __le32 __user *p;
    __u32 x;

    both
    put_user(x, p);
    and
    get_user(x, p);
    should be safe, but produce warnings on some architectures.

    While there, I noticed that a bunch of architectures violated
    coding style rules within uaccess macros.
    Included patches to fix them up.

    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>

    * tag 'uaccess_for_upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: (37 commits)
    sparc32: nocheck uaccess coding style tweaks
    sparc64: nocheck uaccess coding style tweaks
    xtensa: macro whitespace fixes
    sh: macro whitespace fixes
    parisc: macro whitespace fixes
    m68k: macro whitespace fixes
    m32r: macro whitespace fixes
    frv: macro whitespace fixes
    cris: macro whitespace fixes
    avr32: macro whitespace fixes
    arm64: macro whitespace fixes
    arm: macro whitespace fixes
    alpha: macro whitespace fixes
    blackfin: macro whitespace fixes
    sparc64: uaccess_64 macro whitespace fixes
    sparc32: uaccess_32 macro whitespace fixes
    avr32: whitespace fix
    sh: fix put_user sparse errors
    metag: fix put_user sparse errors
    ia64: fix put_user sparse errors
    ...

    Arnd Bergmann
     

13 Jan, 2015

3 commits

  • While working on arch/blackfin/include/asm/uaccess.h, I noticed
    that some macros within this header are made harder to read because they
    violate a coding style rule: space is missing after comma.

    Fix it up.

    Signed-off-by: Michael S. Tsirkin

    Michael S. Tsirkin
     
  • virtio wants to write bitwise types to userspace using put_user.
    At the moment this triggers sparse errors, since the value is passed
    through an integer.

    For example:

    __le32 __user *p;
    __le32 x;
    put_user(x, p);

    is safe, but currently triggers a sparse warning.

    Fix that up using __force.

    Note: this does not suppress any useful sparse checks since caller
    assigns x to typeof(*p), which in turn forces all the necessary type
    checks.

    Signed-off-by: Michael S. Tsirkin

    Michael S. Tsirkin
     
  • virtio wants to read bitwise types from userspace using get_user. At the
    moment this triggers sparse errors, since the value is passed through an
    integer.

    Fix that up using __force.

    Signed-off-by: Michael S. Tsirkin
    Acked-by: Steven Miao

    Michael S. Tsirkin
     

09 Jan, 2015

1 commit


15 Dec, 2014

1 commit

  • Pull tty/serial driver updates from Greg KH:
    "Here's the big tty/serial driver update for 3.19-rc1.

    There are a number of TTY core changes/fixes in here from Peter Hurley
    that have all been teted in linux-next for a long time now. There are
    also the normal serial driver updates as well, full details in the
    changelog below"

    * tag 'tty-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (219 commits)
    serial: pxa: hold port.lock when reporting modem line changes
    tty-hvsi_lib: Deletion of an unnecessary check before the function call "tty_kref_put"
    tty: Deletion of unnecessary checks before two function calls
    n_tty: Fix read_buf race condition, increment read_head after pushing data
    serial: of-serial: add PM suspend/resume support
    Revert "serial: of-serial: add PM suspend/resume support"
    Revert "serial: of-serial: fix up PM ops on no_console_suspend and port type"
    serial: 8250: don't attempt a trylock if in sysrq
    serial: core: Add big-endian iotype
    serial: samsung: use port->fifosize instead of hardcoded values
    serial: samsung: prefer to use fifosize from driver data
    serial: samsung: fix style problems
    serial: samsung: wait for transfer completion before clock disable
    serial: icom: fix error return code
    serial: tegra: clean up tty-flag assignments
    serial: Fix io address assign flow with Fintek PCI-to-UART Product
    serial: mxs-auart: fix tx_empty against shift register
    serial: mxs-auart: fix gpio change detection on interrupt
    serial: mxs-auart: Fix mxs_auart_set_ldisc()
    serial: 8250_dw: Use 64-bit access for OCTEON.
    ...

    Linus Torvalds