29 Dec, 2018

1 commit

  • [ Upstream commit a8874e7e8a8896f2b6c641f4b8e2473eafd35204 ]

    Change the currently empty defines for __PAGETABLE_PMD_FOLDED,
    __PAGETABLE_PUD_FOLDED and __PAGETABLE_P4D_FOLDED to return 1.
    This makes it possible to use __is_defined() to test if the
    preprocessor define exists.

    Acked-by: Kirill A. Shutemov
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Sasha Levin

    Martin Schwidefsky
     

06 Dec, 2018

1 commit

  • commit 556763e5a500d71879d632867b75826551acd49c upstream.

    The function_graph_enter() function does the work of calling the function
    graph hook function and the management of the shadow stack, simplifying the
    work done in the architecture dependent prepare_ftrace_return().

    Have microblaze use the new code, and remove the shadow stack management as well as
    having to set up the trace structure.

    This is needed to prepare for a fix of a design bug on how the curr_ret_stack
    is used.

    Cc: Michal Simek
    Cc: stable@kernel.org
    Fixes: 03274a3ffb449 ("tracing/fgraph: Adjust fgraph depth before calling trace return callback")
    Reviewed-by: Masami Hiramatsu
    Signed-off-by: Steven Rostedt (VMware)
    Signed-off-by: Greg Kroah-Hartman

    Steven Rostedt (VMware)
     

24 Aug, 2018

1 commit

  • Commit a0f97e06a43c ("kbuild: enable 'make CFLAGS=...' to add
    additional options to CC") renamed CFLAGS to KBUILD_CFLAGS.

    Commit 222d394d30e7 ("kbuild: enable 'make AFLAGS=...' to add
    additional options to AS") renamed AFLAGS to KBUILD_AFLAGS.

    Commit 06c5040cdb13 ("kbuild: enable 'make CPPFLAGS=...' to add
    additional options to CPP") renamed CPPFLAGS to KBUILD_CPPFLAGS.

    For some reason, LDFLAGS was not renamed.

    Using a well-known variable like LDFLAGS may result in accidental
    override of the variable.

    Kbuild generally uses KBUILD_ prefixed variables for the internally
    appended options, so here is one more conversion to sanitize the
    naming convention.

    I did not touch Makefiles under tools/ since the tools build system
    is a different world.

    Signed-off-by: Masahiro Yamada
    Acked-by: Kirill A. Shutemov
    Reviewed-by: Palmer Dabbelt

    Masahiro Yamada
     

22 Aug, 2018

1 commit

  • Pull arch/microblaze updates from Michal Simek:

    - use generic noncoherent direct mapping

    - use LDFLAGS instead of LD

    - pci error path fix

    - remove incorrect comments

    * tag 'microblaze-v4.19-rc1' of git://git.monstr.eu/linux-2.6-microblaze:
    microblaze/PCI: Remove stale pcibios_align_resource() comment
    microblaze: delete wrong comment about machine_early_init
    microblaze: add endianness options to LDFLAGS instead of LD
    microblaze: remove consistent_sync and consistent_sync_page
    microblaze: use generic dma_noncoherent_ops
    microblaze: warn if of_iomap() failed

    Linus Torvalds
     

21 Aug, 2018

1 commit

  • commit 01cf9d524ff0 ("microblaze/PCI: Support generic Xilinx AXI PCIe Host
    Bridge IP driver")

    and

    commit ecf677c8dcaa ("PCI: Add a generic weak pcibios_align_resource()")

    first patched then removed pcibios_align_resource() from the microblaze
    architecture code but failed to remove the comment that was added to
    it.

    Remove it since it has now become stale and it is quite confusing.

    Signed-off-by: Lorenzo Pieralisi
    Cc: Palmer Dabbelt
    Cc: Bjorn Helgaas
    Cc: Bharat Kumar Gogada
    Cc: Michal Simek
    Signed-off-by: Michal Simek

    Lorenzo Pieralisi
     

18 Aug, 2018

1 commit

  • Use new return type vm_fault_t for fault handler. For now, this is just
    documenting that the function returns a VM_FAULT value rather than an
    errno. Once all instances are converted, vm_fault_t will become a
    distinct type.

    Ref-> commit 1c8f422059ae ("mm: change return type to vm_fault_t")

    In this patch all the caller of handle_mm_fault() are changed to return
    vm_fault_t type.

    Link: http://lkml.kernel.org/r/20180617084810.GA6730@jordon-HP-15-Notebook-PC
    Signed-off-by: Souptick Joarder
    Cc: Matthew Wilcox
    Cc: Richard Henderson
    Cc: Tony Luck
    Cc: Matt Turner
    Cc: Vineet Gupta
    Cc: Russell King
    Cc: Catalin Marinas
    Cc: Will Deacon
    Cc: Richard Kuo
    Cc: Geert Uytterhoeven
    Cc: Michal Simek
    Cc: James Hogan
    Cc: Ley Foon Tan
    Cc: Jonas Bonn
    Cc: James E.J. Bottomley
    Cc: Benjamin Herrenschmidt
    Cc: Palmer Dabbelt
    Cc: Yoshinori Sato
    Cc: David S. Miller
    Cc: Richard Weinberger
    Cc: Guan Xuetao
    Cc: Thomas Gleixner
    Cc: "H. Peter Anvin"
    Cc: "Levin, Alexander (Sasha Levin)"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Souptick Joarder
     

02 Aug, 2018

4 commits

  • Almost all architectures include it. Add a ARCH_NO_PREEMPT symbol to
    disable preempt support for alpha, hexagon, non-coldfire m68k and
    user mode Linux.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Masahiro Yamada

    Christoph Hellwig
     
  • Move the source of lib/Kconfig.debug and arch/$(ARCH)/Kconfig.debug to
    the top-level Kconfig. For two architectures that means moving their
    arch-specific symbols in that menu into a new arch Kconfig.debug file,
    and for a few more creating a dummy file so that we can include it
    unconditionally.

    Also move the actual 'Kernel hacking' menu to lib/Kconfig.debug, where
    it belongs.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Masahiro Yamada

    Christoph Hellwig
     
  • Instead of duplicating the source statements in every architecture just
    do it once in the toplevel Kconfig file.

    Note that with this the inclusion of arch/$(SRCARCH/Kconfig moves out of
    the top-level Kconfig into arch/Kconfig so that don't violate ordering
    constraits while keeping a sensible menu structure.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Masahiro Yamada

    Christoph Hellwig
     
  • microblaze and nios2 define their own always n SWAP symbols. Remove those
    and let the generic defintion do the right thing by adding a new symbol
    to disable swap entirely.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Masahiro Yamada

    Christoph Hellwig
     

30 Jul, 2018

1 commit


25 Jul, 2018

1 commit

  • With the recent syntax extension, Kconfig is now able to evaluate the
    compiler / toolchain capability.

    However, accumulating flags to 'LD' is not compatible with the way
    it works; 'LD' must be passed to Kconfig to call $(ld-option,...)
    from Kconfig files. If you tweak 'LD' in arch Makefile depending on
    CONFIG_CPU_BIG_ENDIAN, this would end up with circular dependency
    between Makefile and Kconfig.

    Signed-off-by: Masahiro Yamada
    Signed-off-by: Michal Simek

    Masahiro Yamada
     

20 Jul, 2018

2 commits


11 Jul, 2018

1 commit

  • of_iomap() can return NULL. The function is void thus error propagation
    is not possible but at least a WARN_ON() seems warranted here as a silent
    failure might lead to a hard to understand system state.

    Signed-off-by: Nicholas Mc Guire
    Signed-off-by: Michal Simek

    Nicholas Mc Guire
     

28 Jun, 2018

1 commit

  • Pull microblaze fixes from Michal Simek:

    - fix architecture gpio heart beat code

    - add new syscalls

    - remove unused xlnx,compound handling

    - remove platform.c

    * tag 'microblaze-v4.18-rc3' of git://git.monstr.eu/linux-2.6-microblaze:
    microblaze: consolidate GPIO reset handling
    microblaze: remove unecessary of_platform_bus_probe call
    microblaze: Add new syscalls io_pgetevents and rseq
    microblaze: Remove architecture heart beat code
    microblaze: heartbeat: fix missing prom.h include

    Linus Torvalds
     

21 Jun, 2018

3 commits


16 Jun, 2018

1 commit

  • As we move stuff around, some doc references are broken. Fix some of
    them via this script:
    ./scripts/documentation-file-ref-check --fix

    Manually checked if the produced result is valid, removing a few
    false-positives.

    Acked-by: Takashi Iwai
    Acked-by: Masami Hiramatsu
    Acked-by: Stephen Boyd
    Acked-by: Charles Keepax
    Acked-by: Mathieu Poirier
    Reviewed-by: Coly Li
    Signed-off-by: Mauro Carvalho Chehab
    Acked-by: Jonathan Corbet

    Mauro Carvalho Chehab
     

12 Jun, 2018

2 commits

  • There is no reason to keep this gpio based code in architecture. Use
    ledtrig-heartbeat.c instead which is much more flexible then this
    ancient code.

    Signed-off-by: Michal Simek
    Reviewed-by: Linus Walleij

    Michal Simek
     
  • Since commit 96f0e6fcc9ad ("microblaze: remove redundant early_printk
    support") prom.h was removed and one instance in heartbeat.c remained.
    Include of.h as it is the actual header needed.

    Fixes: 96f0e6fcc9ad ("microblaze: remove redundant early_printk support")
    Reported-by: kbuild test robot
    Cc: Michal Simek
    Signed-off-by: Rob Herring
    Signed-off-by: Michal Simek

    Rob Herring
     

08 Jun, 2018

2 commits

  • Pull PCI updates from Bjorn Helgaas:

    - unify AER decoding for native and ACPI CPER sources (Alexandru
    Gagniuc)

    - add TLP header info to AER tracepoint (Thomas Tai)

    - add generic pcie_wait_for_link() interface (Oza Pawandeep)

    - handle AER ERR_FATAL by removing and re-enumerating devices, as
    Downstream Port Containment does (Oza Pawandeep)

    - factor out common code between AER and DPC recovery (Oza Pawandeep)

    - stop triggering DPC for ERR_NONFATAL errors (Oza Pawandeep)

    - share ERR_FATAL recovery path between AER and DPC (Oza Pawandeep)

    - disable ASPM L1.2 substate if we don't have LTR (Bjorn Helgaas)

    - respect platform ownership of LTR (Bjorn Helgaas)

    - clear interrupt status in top half to avoid interrupt storm (Oza
    Pawandeep)

    - neaten pci=earlydump output (Andy Shevchenko)

    - avoid errors when extended config space inaccessible (Gilles Buloz)

    - prevent sysfs disable of device while driver attached (Christoph
    Hellwig)

    - use core interface to report PCIe link properties in bnx2x, bnxt_en,
    cxgb4, ixgbe (Bjorn Helgaas)

    - remove unused pcie_get_minimum_link() (Bjorn Helgaas)

    - fix use-before-set error in ibmphp (Dan Carpenter)

    - fix pciehp timeouts caused by Command Completed errata (Bjorn
    Helgaas)

    - fix refcounting in pnv_php hotplug (Julia Lawall)

    - clear pciehp Presence Detect and Data Link Layer Status Changed on
    resume so we don't miss hotplug events (Mika Westerberg)

    - only request pciehp control if we support it, so platform can use
    ACPI hotplug otherwise (Mika Westerberg)

    - convert SHPC to be builtin only (Mika Westerberg)

    - request SHPC control via _OSC if we support it (Mika Westerberg)

    - simplify SHPC handoff from firmware (Mika Westerberg)

    - fix an SHPC quirk that mistakenly included *all* AMD bridges as well
    as devices from any vendor with device ID 0x7458 (Bjorn Helgaas)

    - assign a bus number even to non-native hotplug bridges to leave
    space for acpiphp additions, to fix a common Thunderbolt xHCI
    hot-add failure (Mika Westerberg)

    - keep acpiphp from scanning native hotplug bridges, to fix common
    Thunderbolt hot-add failures (Mika Westerberg)

    - improve "partially hidden behind bridge" messages from core (Mika
    Westerberg)

    - add macros for PCIe Link Control 2 register (Frederick Lawler)

    - replace IB/hfi1 custom macros with PCI core versions (Frederick
    Lawler)

    - remove dead microblaze and xtensa code (Bjorn Helgaas)

    - use dev_printk() when possible in xtensa and mips (Bjorn Helgaas)

    - remove unused pcie_port_acpi_setup() and portdrv_acpi.c (Bjorn
    Helgaas)

    - add managed interface to get PCI host bridge resources from OF (Jan
    Kiszka)

    - add support for unbinding generic PCI host controller (Jan Kiszka)

    - fix memory leaks when unbinding generic PCI host controller (Jan
    Kiszka)

    - request legacy VGA framebuffer only for VGA devices to avoid false
    device conflicts (Bjorn Helgaas)

    - turn on PCI_COMMAND_IO & PCI_COMMAND_MEMORY in pci_enable_device()
    like everybody else, not in pcibios_fixup_bus() (Bjorn Helgaas)

    - add generic enable function for simple SR-IOV hardware (Alexander
    Duyck)

    - use generic SR-IOV enable for ena, nvme (Alexander Duyck)

    - add ACS quirk for Intel 7th & 8th Gen mobile (Alex Williamson)

    - add ACS quirk for Intel 300 series (Mika Westerberg)

    - enable register clock for Armada 7K/8K (Gregory CLEMENT)

    - reduce Keystone "link already up" log level (Fabio Estevam)

    - move private DT functions to drivers/pci/ (Rob Herring)

    - factor out dwc CONFIG_PCI Kconfig dependencies (Rob Herring)

    - add DesignWare support to the endpoint test driver (Gustavo
    Pimentel)

    - add DesignWare support for endpoint mode (Gustavo Pimentel)

    - use devm_ioremap_resource() instead of devm_ioremap() in dra7xx and
    artpec6 (Gustavo Pimentel)

    - fix Qualcomm bitwise NOT issue (Dan Carpenter)

    - add Qualcomm runtime PM support (Srinivas Kandagatla)

    - fix DesignWare enumeration below bridges (Koen Vandeputte)

    - use usleep() instead of mdelay() in endpoint test (Jia-Ju Bai)

    - add configfs entries for pci_epf_driver device IDs (Kishon Vijay
    Abraham I)

    - clean up pci_endpoint_test driver (Gustavo Pimentel)

    - update Layerscape maintainer email addresses (Minghuan Lian)

    - add COMPILE_TEST to improve build test coverage (Rob Herring)

    - fix Hyper-V bus registration failure caused by domain/serial number
    confusion (Sridhar Pitchai)

    - improve Hyper-V refcounting and coding style (Stephen Hemminger)

    - avoid potential Hyper-V hang waiting for a response that will never
    come (Dexuan Cui)

    - implement Mediatek chained IRQ handling (Honghui Zhang)

    - fix vendor ID & class type for Mediatek MT7622 (Honghui Zhang)

    - add Mobiveil PCIe host controller driver (Subrahmanya Lingappa)

    - add Mobiveil MSI support (Subrahmanya Lingappa)

    - clean up clocks, MSI, IRQ mappings in R-Car probe failure paths
    (Marek Vasut)

    - poll more frequently (5us vs 5ms) while waiting for R-Car data link
    active (Marek Vasut)

    - use generic OF parsing interface in R-Car (Vladimir Zapolskiy)

    - add R-Car V3H (R8A77980) "compatible" string (Sergei Shtylyov)

    - add R-Car gen3 PHY support (Sergei Shtylyov)

    - improve R-Car PHYRDY polling (Sergei Shtylyov)

    - clean up R-Car macros (Marek Vasut)

    - use runtime PM for R-Car controller clock (Dien Pham)

    - update arm64 defconfig for Rockchip (Shawn Lin)

    - refactor Rockchip code to facilitate both root port and endpoint
    mode (Shawn Lin)

    - add Rockchip endpoint mode driver (Shawn Lin)

    - support VMD "membar shadow" feature (Jon Derrick)

    - support VMD bus number offsets (Jon Derrick)

    - add VMD "no AER source ID" quirk for more device IDs (Jon Derrick)

    - remove unnecessary host controller CONFIG_PCIEPORTBUS Kconfig
    selections (Bjorn Helgaas)

    - clean up quirks.c organization and whitespace (Bjorn Helgaas)

    * tag 'pci-v4.18-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (144 commits)
    PCI/AER: Replace struct pcie_device with pci_dev
    PCI/AER: Remove unused parameters
    PCI: qcom: Include gpio/consumer.h
    PCI: Improve "partially hidden behind bridge" log message
    PCI: Improve pci_scan_bridge() and pci_scan_bridge_extend() doc
    PCI: Move resource distribution for single bridge outside loop
    PCI: Account for all bridges on bus when distributing bus numbers
    ACPI / hotplug / PCI: Drop unnecessary parentheses
    ACPI / hotplug / PCI: Mark stale PCI devices disconnected
    ACPI / hotplug / PCI: Don't scan bridges managed by native hotplug
    PCI: hotplug: Add hotplug_is_native()
    PCI: shpchp: Add shpchp_is_native()
    PCI: shpchp: Fix AMD POGO identification
    PCI: mobiveil: Add MSI support
    PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver
    PCI/AER: Decode Error Source Requester ID
    PCI/AER: Remove aer_recover_work_func() forward declaration
    PCI/DPC: Use the generic pcie_do_fatal_recovery() path
    PCI/AER: Pass service type to pcie_do_fatal_recovery()
    PCI/DPC: Disable ERR_NONFATAL handling by DPC
    ...

    Linus Torvalds
     
  • Pull microblaze updates from Michal Simek:

    - Fix simpleImage format generation

    - Remove earlyprintk support and replace it by earlycon

    * tag 'microblaze-v4.18-rc1' of git://git.monstr.eu/linux-2.6-microblaze:
    microblaze: dts: replace 'linux,stdout-path' with 'stdout-path'
    microblaze: remove redundant early_printk support
    microblaze: remove unnecessary prom.h includes
    microblaze: Fix simpleImage format generation

    Linus Torvalds
     

05 Jun, 2018

2 commits

  • Pull timers and timekeeping updates from Thomas Gleixner:

    - Core infrastucture work for Y2038 to address the COMPAT interfaces:

    + Add a new Y2038 safe __kernel_timespec and use it in the core
    code

    + Introduce config switches which allow to control the various
    compat mechanisms

    + Use the new config switch in the posix timer code to control the
    32bit compat syscall implementation.

    - Prevent bogus selection of CPU local clocksources which causes an
    endless reselection loop

    - Remove the extra kthread in the clocksource code which has no value
    and just adds another level of indirection

    - The usual bunch of trivial updates, cleanups and fixlets all over the
    place

    - More SPDX conversions

    * 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (24 commits)
    clocksource/drivers/mxs_timer: Switch to SPDX identifier
    clocksource/drivers/timer-imx-tpm: Switch to SPDX identifier
    clocksource/drivers/timer-imx-gpt: Switch to SPDX identifier
    clocksource/drivers/timer-imx-gpt: Remove outdated file path
    clocksource/drivers/arc_timer: Add comments about locking while read GFRC
    clocksource/drivers/mips-gic-timer: Add pr_fmt and reword pr_* messages
    clocksource/drivers/sprd: Fix Kconfig dependency
    clocksource: Move inline keyword to the beginning of function declarations
    timer_list: Remove unused function pointer typedef
    timers: Adjust a kernel-doc comment
    tick: Prefer a lower rating device only if it's CPU local device
    clocksource: Remove kthread
    time: Change nanosleep to safe __kernel_* types
    time: Change types to new y2038 safe __kernel_* types
    time: Fix get_timespec64() for y2038 safe compat interfaces
    time: Add new y2038 safe __kernel_timespec
    posix-timers: Make compat syscalls depend on CONFIG_COMPAT_32BIT_TIME
    time: Introduce CONFIG_COMPAT_32BIT_TIME
    time: Introduce CONFIG_64BIT_TIME in architectures
    compat: Enable compat_get/put_timespec64 always
    ...

    Linus Torvalds
     
  • …iederm/user-namespace

    Pull siginfo updates from Eric Biederman:
    "This set of changes close the known issues with setting si_code to an
    invalid value, and with not fully initializing struct siginfo. There
    remains work to do on nds32, arc, unicore32, powerpc, arm, arm64, ia64
    and x86 to get the code that generates siginfo into a simpler and more
    maintainable state. Most of that work involves refactoring the signal
    handling code and thus careful code review.

    Also not included is the work to shrink the in kernel version of
    struct siginfo. That depends on getting the number of places that
    directly manipulate struct siginfo under control, as it requires the
    introduction of struct kernel_siginfo for the in kernel things.

    Overall this set of changes looks like it is making good progress, and
    with a little luck I will be wrapping up the siginfo work next
    development cycle"

    * 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace: (46 commits)
    signal/sh: Stop gcc warning about an impossible case in do_divide_error
    signal/mips: Report FPE_FLTUNK for undiagnosed floating point exceptions
    signal/um: More carefully relay signals in relay_signal.
    signal: Extend siginfo_layout with SIL_FAULT_{MCEERR|BNDERR|PKUERR}
    signal: Remove unncessary #ifdef SEGV_PKUERR in 32bit compat code
    signal/signalfd: Add support for SIGSYS
    signal/signalfd: Remove __put_user from signalfd_copyinfo
    signal/xtensa: Use force_sig_fault where appropriate
    signal/xtensa: Consistenly use SIGBUS in do_unaligned_user
    signal/um: Use force_sig_fault where appropriate
    signal/sparc: Use force_sig_fault where appropriate
    signal/sparc: Use send_sig_fault where appropriate
    signal/sh: Use force_sig_fault where appropriate
    signal/s390: Use force_sig_fault where appropriate
    signal/riscv: Replace do_trap_siginfo with force_sig_fault
    signal/riscv: Use force_sig_fault where appropriate
    signal/parisc: Use force_sig_fault where appropriate
    signal/parisc: Use force_sig_mceerr where appropriate
    signal/openrisc: Use force_sig_fault where appropriate
    signal/nios2: Use force_sig_fault where appropriate
    ...

    Linus Torvalds
     

22 May, 2018

2 commits


08 May, 2018

2 commits

  • There is no arch specific code required for dma-debug, so there is no
    need to opt into the support either.

    Signed-off-by: Christoph Hellwig
    Reviewed-by: Robin Murphy

    Christoph Hellwig
     
  • Most mainstream architectures are using 65536 entries, so lets stick to
    that. If someone is really desperate to override it that can still be
    done through , but I'd rather see a really good
    rationale for that.

    dma_debug_init is now called as a core_initcall, which for many
    architectures means much earlier, and provides dma-debug functionality
    earlier in the boot process. This should be safe as it only relies
    on the memory allocator already being available.

    Signed-off-by: Christoph Hellwig
    Acked-by: Marek Szyprowski
    Reviewed-by: Robin Murphy

    Christoph Hellwig
     

07 May, 2018

1 commit

  • This was used by the ide, scsi and networking code in the past to
    determine if they should bounce payloads. Now that the dma mapping
    always have to support dma to all physical memory (thanks to swiotlb
    for non-iommu systems) there is no need to this crude hack any more.

    Signed-off-by: Christoph Hellwig
    Acked-by: Palmer Dabbelt (for riscv)
    Reviewed-by: Jens Axboe

    Christoph Hellwig
     

25 Apr, 2018

3 commits

  • Filling in struct siginfo before calling force_sig_info a tedious and
    error prone process, where once in a great while the wrong fields
    are filled out, and siginfo has been inconsistently cleared.

    Simplify this process by using the helper force_sig_fault. Which
    takes as a parameters all of the information it needs, ensures
    all of the fiddly bits of filling in struct siginfo are done properly
    and then calls force_sig_info.

    In short about a 5 line reduction in code for every time force_sig_info
    is called, which makes the calling function clearer.

    Cc: Michal Simek
    Signed-off-by: "Eric W. Biederman"

    Eric W. Biederman
     
  • Remove the commented out call to force_sig_info right after a call to
    _exception in do_page_fault. The function _exception does exactly the
    work the commented out code does so there is no reason for the
    commented out code.

    Cc: Michal Simek
    Signed-off-by: "Eric W. Biederman"

    Eric W. Biederman
     
  • Call clear_siginfo to ensure every stack allocated siginfo is properly
    initialized before being passed to the signal sending functions.

    Note: It is not safe to depend on C initializers to initialize struct
    siginfo on the stack because C is allowed to skip holes when
    initializing a structure.

    The initialization of struct siginfo in tracehook_report_syscall_exit
    was moved from the helper user_single_step_siginfo into
    tracehook_report_syscall_exit itself, to make it clear that the local
    variable siginfo gets fully initialized.

    In a few cases the scope of struct siginfo has been reduced to make it
    clear that siginfo siginfo is not used on other paths in the function
    in which it is declared.

    Instances of using memset to initialize siginfo have been replaced
    with calls clear_siginfo for clarity.

    Signed-off-by: "Eric W. Biederman"

    Eric W. Biederman
     

23 Apr, 2018

4 commits


19 Apr, 2018

1 commit

  • We have a couple of files that try to include asm/compat.h on
    architectures where this is available. Those should generally use the
    higher-level linux/compat.h file, but that in turn fails to include
    asm/compat.h when CONFIG_COMPAT is disabled, unless we can provide
    that header on all architectures.

    This adds the asm/compat.h for all remaining architectures to
    simplify the dependencies.

    Architectures that are getting removed in linux-4.17 are not changed
    here, to avoid needless conflicts with the removal patches. Those
    architectures are broken by this patch, but we have already shown
    that they have no users.

    Signed-off-by: Arnd Bergmann

    Arnd Bergmann
     

13 Apr, 2018

1 commit