23 Oct, 2020

1 commit


17 Oct, 2020

2 commits

  • Pull documentation updates from Mauro Carvalho Chehab:
    "A series of patches addressing warnings produced by make htmldocs.
    This includes:

    - kernel-doc markup fixes

    - ReST fixes

    - Updates at the build system in order to support newer versions of
    the docs build toolchain (Sphinx)

    After this series, the number of html build warnings should reduce
    significantly, and building with Sphinx 3.1 or later should now be
    supported (although it is still recommended to use Sphinx 2.4.4).

    As agreed with Jon, I should be sending you a late pull request by the
    end of the merge window addressing remaining issues with docs build,
    as there are a number of warning fixes that depends on pull requests
    that should be happening along the merge window.

    The end goal is to have a clean htmldocs build on Kernel 5.10.

    PS. It should be noticed that Sphinx 3.0 is not currently supported,
    as it lacks support for C domain namespaces. Such feature, needed in
    order to document uAPI system calls with Sphinx 3.x, was added only on
    Sphinx 3.1"

    * tag 'docs/v5.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (75 commits)
    PM / devfreq: remove a duplicated kernel-doc markup
    mm/doc: fix a literal block markup
    workqueue: fix a kernel-doc warning
    docs: virt: user_mode_linux_howto_v2.rst: fix a literal block markup
    Input: sparse-keymap: add a description for @sw
    rcu/tree: docs: document bkvcache new members at struct kfree_rcu_cpu
    nl80211: docs: add a description for s1g_cap parameter
    usb: docs: document altmode register/unregister functions
    kunit: test.h: fix a bad kernel-doc markup
    drivers: core: fix kernel-doc markup for dev_err_probe()
    docs: bio: fix a kerneldoc markup
    kunit: test.h: solve kernel-doc warnings
    block: bio: fix a warning at the kernel-doc markups
    docs: powerpc: syscall64-abi.rst: fix a malformed table
    drivers: net: hamradio: fix document location
    net: appletalk: Kconfig: Fix docs location
    dt-bindings: fix references to files converted to yaml
    memblock: get rid of a :c:type leftover
    math64.h: kernel-docs: Convert some markups into normal comments
    media: uAPI: buffer.rst: remove a left-over documentation
    ...

    Linus Torvalds
     
  • In order to use multi-index entries for huge pages in the page cache, we
    need to be able to split a multi-index entry (eg if a file is truncated in
    the middle of a huge page entry). This version does not support splitting
    more than one level of the tree at a time. This is an acceptable
    limitation for the page cache as we do not expect to support order-12
    pages in the near future.

    [akpm@linux-foundation.org: export xas_split_alloc() to modules]
    [willy@infradead.org: fix xarray split]
    Link: https://lkml.kernel.org/r/20200910175450.GV6583@casper.infradead.org
    [willy@infradead.org: fix xarray]
    Link: https://lkml.kernel.org/r/20201001233943.GW20115@casper.infradead.org

    Signed-off-by: Matthew Wilcox (Oracle)
    Signed-off-by: Andrew Morton
    Cc: "Kirill A . Shutemov"
    Cc: Qian Cai
    Cc: Song Liu
    Link: https://lkml.kernel.org/r/20200903183029.14930-3-willy@infradead.org
    Signed-off-by: Linus Torvalds

    Matthew Wilcox (Oracle)
     

16 Oct, 2020

1 commit

  • Pull dma-mapping updates from Christoph Hellwig:

    - rework the non-coherent DMA allocator

    - move private definitions out of

    - lower CMA_ALIGNMENT (Paul Cercueil)

    - remove the omap1 dma address translation in favor of the common code

    - make dma-direct aware of multiple dma offset ranges (Jim Quinlan)

    - support per-node DMA CMA areas (Barry Song)

    - increase the default seg boundary limit (Nicolin Chen)

    - misc fixes (Robin Murphy, Thomas Tai, Xu Wang)

    - various cleanups

    * tag 'dma-mapping-5.10' of git://git.infradead.org/users/hch/dma-mapping: (63 commits)
    ARM/ixp4xx: add a missing include of dma-map-ops.h
    dma-direct: simplify the DMA_ATTR_NO_KERNEL_MAPPING handling
    dma-direct: factor out a dma_direct_alloc_from_pool helper
    dma-direct check for highmem pages in dma_direct_alloc_pages
    dma-mapping: merge into
    dma-mapping: move large parts of to kernel/dma
    dma-mapping: move dma-debug.h to kernel/dma/
    dma-mapping: remove
    dma-mapping: merge into
    dma-contiguous: remove dma_contiguous_set_default
    dma-contiguous: remove dev_set_cma_area
    dma-contiguous: remove dma_declare_contiguous
    dma-mapping: split
    cma: decrease CMA_ALIGNMENT lower limit to 2
    firewire-ohci: use dma_alloc_pages
    dma-iommu: implement ->alloc_noncoherent
    dma-mapping: add new {alloc,free}_noncoherent dma_map_ops methods
    dma-mapping: add a new dma_alloc_pages API
    dma-mapping: remove dma_cache_sync
    53c700: convert to dma_alloc_noncoherent
    ...

    Linus Torvalds
     

15 Oct, 2020

3 commits


25 Sep, 2020

2 commits

  • This API is the equivalent of alloc_pages, except that the returned memory
    is guaranteed to be DMA addressable by the passed in device. The
    implementation will also be used to provide a more sensible replacement
    for DMA_ATTR_NON_CONSISTENT flag.

    Additionally dma_alloc_noncoherent is switched over to use dma_alloc_pages
    as its backend.

    Signed-off-by: Christoph Hellwig
    Acked-by: Thomas Bogendoerfer (MIPS part)

    Christoph Hellwig
     
  • Add a new API to allocate and free memory that is guaranteed to be
    addressable by a device, but which potentially is not cache coherent
    for DMA.

    To transfer ownership to and from the device, the existing streaming
    DMA API calls dma_sync_single_for_device and dma_sync_single_for_cpu
    must be used.

    For now the new calls are implemented on top of dma_alloc_attrs just
    like the old-noncoherent API, but once all drivers are switched to
    the new API it will be replaced with a better working implementation
    that is available on all architectures.

    Signed-off-by: Christoph Hellwig

    Christoph Hellwig
     

11 Sep, 2020

1 commit


10 Sep, 2020

1 commit


14 Aug, 2020

1 commit

  • Pull documentation fixes from Jonathan Corbet:
    "A handful of obvious fixes that wandered in during the merge window"

    * tag 'docs-5.9-2' of git://git.lwn.net/linux:
    Documentation/locking/locktypes: fix the typo
    doc/zh_CN: resolve undefined label warning in admin-guide index
    doc/zh_CN: fix title heading markup in admin-guide cpu-load
    docs: remove the 2.6 "Upgrading I2C Drivers" guide
    docs: Correct the release date of 5.2 stable
    mailmap: Update comments for with format and more detalis
    docs: cdrom: Fix a typo and rst markup
    Doc: admin-guide: use correct legends in kernel-parameters.txt
    Documentation/features: refresh RISC-V arch support files
    documentation: coccinelle: Improve command example for make C={1,2}
    Core-api: Documentation: Replace deprecated :c:func: Usage
    Dev-tools: Documentation: Replace deprecated :c:func: Usage
    Filesystems: Documentation: Replace deprecated :c:func: Usage
    docs: trace: fix a typo

    Linus Torvalds
     

12 Aug, 2020

1 commit


08 Aug, 2020

1 commit

  • Pull powerpc updates from Michael Ellerman:

    - Add support for (optionally) using queued spinlocks & rwlocks.

    - Support for a new faster system call ABI using the scv instruction on
    Power9 or later.

    - Drop support for the PROT_SAO mmap/mprotect flag as it will be
    unsupported on Power10 and future processors, leaving us with no way
    to implement the functionality it requests. This risks breaking
    userspace, though we believe it is unused in practice.

    - A bug fix for, and then the removal of, our custom stack expansion
    checking. We now allow stack expansion up to the rlimit, like other
    architectures.

    - Remove the remnants of our (previously disabled) topology update
    code, which tried to react to NUMA layout changes on virtualised
    systems, but was prone to crashes and other problems.

    - Add PMU support for Power10 CPUs.

    - A change to our signal trampoline so that we don't unbalance the link
    stack (branch return predictor) in the signal delivery path.

    - Lots of other cleanups, refactorings, smaller features and so on as
    usual.

    Thanks to: Abhishek Goel, Alastair D'Silva, Alexander A. Klimov, Alexey
    Kardashevskiy, Alistair Popple, Andrew Donnellan, Aneesh Kumar K.V, Anju
    T Sudhakar, Anton Blanchard, Arnd Bergmann, Athira Rajeev, Balamuruhan
    S, Bharata B Rao, Bill Wendling, Bin Meng, Cédric Le Goater, Chris
    Packham, Christophe Leroy, Christoph Hellwig, Daniel Axtens, Dan
    Williams, David Lamparter, Desnes A. Nunes do Rosario, Erhard F., Finn
    Thain, Frederic Barrat, Ganesh Goudar, Gautham R. Shenoy, Geoff Levand,
    Greg Kurz, Gustavo A. R. Silva, Hari Bathini, Harish, Imre Kaloz, Joel
    Stanley, Joe Perches, John Crispin, Jordan Niethe, Kajol Jain, Kamalesh
    Babulal, Kees Cook, Laurent Dufour, Leonardo Bras, Li RongQing, Madhavan
    Srinivasan, Mahesh Salgaonkar, Mark Cave-Ayland, Michal Suchanek, Milton
    Miller, Mimi Zohar, Murilo Opsfelder Araujo, Nathan Chancellor, Nathan
    Lynch, Naveen N. Rao, Nayna Jain, Nicholas Piggin, Oliver O'Halloran,
    Palmer Dabbelt, Pedro Miraglia Franco de Carvalho, Philippe Bergheaud,
    Pingfan Liu, Pratik Rajesh Sampat, Qian Cai, Qinglang Miao, Randy
    Dunlap, Ravi Bangoria, Sachin Sant, Sam Bobroff, Sandipan Das, Santosh
    Sivaraj, Satheesh Rajendran, Shirisha Ganta, Sourabh Jain, Srikar
    Dronamraju, Stan Johnson, Stephen Rothwell, Thadeu Lima de Souza
    Cascardo, Thiago Jung Bauermann, Tom Lane, Vaibhav Jain, Vladis Dronov,
    Wei Yongjun, Wen Xiong, YueHaibing.

    * tag 'powerpc-5.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (337 commits)
    selftests/powerpc: Fix pkey syscall redefinitions
    powerpc: Fix circular dependency between percpu.h and mmu.h
    powerpc/powernv/sriov: Fix use of uninitialised variable
    selftests/powerpc: Skip vmx/vsx/tar/etc tests on older CPUs
    powerpc/40x: Fix assembler warning about r0
    powerpc/papr_scm: Add support for fetching nvdimm 'fuel-gauge' metric
    powerpc/papr_scm: Fetch nvdimm performance stats from PHYP
    cpuidle: pseries: Fixup exit latency for CEDE(0)
    cpuidle: pseries: Add function to parse extended CEDE records
    cpuidle: pseries: Set the latency-hint before entering CEDE
    selftests/powerpc: Fix online CPU selection
    powerpc/perf: Consolidate perf_callchain_user_[64|32]()
    powerpc/pseries/hotplug-cpu: Remove double free in error path
    powerpc/pseries/mobility: Add pr_debug() for device tree changes
    powerpc/pseries/mobility: Set pr_fmt()
    powerpc/cacheinfo: Warn if cache object chain becomes unordered
    powerpc/cacheinfo: Improve diagnostics about malformed cache lists
    powerpc/cacheinfo: Use name@unit instead of full DT path in debug messages
    powerpc/cacheinfo: Set pr_fmt()
    powerpc: fix function annotations to avoid section mismatch warnings with gcc-10
    ...

    Linus Torvalds
     

05 Aug, 2020

2 commits

  • Pull documentation updates from Jonathan Corbet:
    "It's been a busy cycle for documentation - hopefully the busiest for a
    while to come. Changes include:

    - Some new Chinese translations

    - Progress on the battle against double words words and non-HTTPS
    URLs

    - Some block-mq documentation

    - More RST conversions from Mauro. At this point, that task is
    essentially complete, so we shouldn't see this kind of churn again
    for a while. Unless we decide to switch to asciidoc or
    something...:)

    - Lots of typo fixes, warning fixes, and more"

    * tag 'docs-5.9' of git://git.lwn.net/linux: (195 commits)
    scripts/kernel-doc: optionally treat warnings as errors
    docs: ia64: correct typo
    mailmap: add entry for
    doc/zh_CN: add cpu-load Chinese version
    Documentation/admin-guide: tainted-kernels: fix spelling mistake
    MAINTAINERS: adjust kprobes.rst entry to new location
    devices.txt: document rfkill allocation
    PCI: correct flag name
    docs: filesystems: vfs: correct flag name
    docs: filesystems: vfs: correct sync_mode flag names
    docs: path-lookup: markup fixes for emphasis
    docs: path-lookup: more markup fixes
    docs: path-lookup: fix HTML entity mojibake
    CREDITS: Replace HTTP links with HTTPS ones
    docs: process: Add an example for creating a fixes tag
    doc/zh_CN: add Chinese translation prefer section
    doc/zh_CN: add clearing-warn-once Chinese version
    doc/zh_CN: add admin-guide index
    doc:it_IT: process: coding-style.rst: Correct __maybe_unused compiler label
    futex: MAINTAINERS: Re-add selftests directory
    ...

    Linus Torvalds
     
  • Pull printk updates from Petr Mladek:

    - Herbert Xu made printk header file self-contained.

    - Andy Shevchenko and Sergey Senozhatsky cleaned up console->setup()
    error handling.

    - Andy Shevchenko did some cleanups (e.g. sparse warning) in vsprintf
    code.

    - Minor documentation updates.

    * tag 'printk-for-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux:
    lib/vsprintf: Force type of flags value for gfp_t
    lib/vsprintf: Replace custom spec to print decimals with generic one
    lib/vsprintf: Replace hidden BUILD_BUG_ON() with static_assert()
    printk: Make linux/printk.h self-contained
    doc:kmsg: explicitly state the return value in case of SEEK_CUR
    Replace HTTP links with HTTPS ones: vsprintf
    hvc: unify console setup naming
    console: Fix trivia typo 'change' -> 'chance'
    console: Propagate error code from console ->setup()
    tty: hvc: Return proper error code from console ->setup() hook
    serial: sunzilog: Return proper error code from console ->setup() hook
    serial: sunsab: Return proper error code from console ->setup() hook
    mips: Return proper error code from console ->setup() hook

    Linus Torvalds
     

04 Aug, 2020

1 commit

  • Pull crypto updates from Herbert Xu:
    "API:
    - Add support for allocating transforms on a specific NUMA Node
    - Introduce the flag CRYPTO_ALG_ALLOCATES_MEMORY for storage users

    Algorithms:
    - Drop PMULL based ghash on arm64
    - Fixes for building with clang on x86
    - Add sha256 helper that does the digest in one go
    - Add SP800-56A rev 3 validation checks to dh

    Drivers:
    - Permit users to specify NUMA node in hisilicon/zip
    - Add support for i.MX6 in imx-rngc
    - Add sa2ul crypto driver
    - Add BA431 hwrng driver
    - Add Ingenic JZ4780 and X1000 hwrng driver
    - Spread IRQ affinity in inside-secure and marvell/cesa"

    * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (157 commits)
    crypto: sa2ul - Fix inconsistent IS_ERR and PTR_ERR
    hwrng: core - remove redundant initialization of variable ret
    crypto: x86/curve25519 - Remove unused carry variables
    crypto: ingenic - Add hardware RNG for Ingenic JZ4780 and X1000
    dt-bindings: RNG: Add Ingenic RNG bindings.
    crypto: caam/qi2 - add module alias
    crypto: caam - add more RNG hw error codes
    crypto: caam/jr - remove incorrect reference to caam_jr_register()
    crypto: caam - silence .setkey in case of bad key length
    crypto: caam/qi2 - create ahash shared descriptors only once
    crypto: caam/qi2 - fix error reporting for caam_hash_alloc
    crypto: caam - remove deadcode on 32-bit platforms
    crypto: ccp - use generic power management
    crypto: xts - Replace memcpy() invocation with simple assignment
    crypto: marvell/cesa - irq balance
    crypto: inside-secure - irq balance
    crypto: ecc - SP800-56A rev 3 local public key validation
    crypto: dh - SP800-56A rev 3 local public key validation
    crypto: dh - check validity of Z before export
    lib/mpi: Add mpi_sub_ui()
    ...

    Linus Torvalds
     

24 Jul, 2020

3 commits


23 Jul, 2020

2 commits

  • There's no reason to have two interfaces when there's only one caller.
    Removing _possible saves text and simplifies future changes.

    Signed-off-by: Daniel Jordan
    Cc: Herbert Xu
    Cc: Steffen Klassert
    Cc: linux-crypto@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Herbert Xu

    Daniel Jordan
     
  • padata_stop() has two callers and is unnecessary in both cases. When
    pcrypt calls it before padata_free(), it's being unloaded so there are
    no outstanding padata jobs[0]. When __padata_free() calls it, it's
    either along the same path or else pcrypt initialization failed, which
    of course means there are also no outstanding jobs.

    Removing it simplifies padata and saves text.

    [0] https://lore.kernel.org/linux-crypto/20191119225017.mjrak2fwa5vccazl@gondor.apana.org.au/

    Signed-off-by: Daniel Jordan
    Cc: Herbert Xu
    Cc: Steffen Klassert
    Cc: linux-crypto@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Herbert Xu

    Daniel Jordan
     

16 Jul, 2020

1 commit

  • This effectively reverts commit 3aa565f53c39 ("powerpc/pseries: Add
    hooks to put the CPU into an appropriate offline state"), which added
    an offline mode for CPUs which uses the H_CEDE hcall instead of the
    architected stop-self RTAS function in order to facilitate "folding"
    of dedicated mode processors on PowerVM platforms to achieve energy
    savings. This has been the default offline mode since its
    introduction.

    There's nothing about stop-self that would prevent the hypervisor from
    achieving the energy savings available via H_CEDE, so the original
    premise of this change appears to be flawed.

    I also have encountered the claim that the transition to and from
    ceded state is much faster than stop-self/start-cpu. Certainly we
    would not want to use stop-self as an *idle* mode. That is what H_CEDE
    is for. However, this difference is insignificant in the context of
    Linux CPU hotplug, where the latency of an offline or online operation
    on current systems is on the order of 100ms, mainly attributable to
    all the various subsystems' cpuhp callbacks.

    The cede offline mode also prevents accurate accounting, as discussed
    before:
    https://lore.kernel.org/linuxppc-dev/1571740391-3251-1-git-send-email-ego@linux.vnet.ibm.com/

    Unconditionally use stop-self to offline processor threads. This is
    the architected method for offlining CPUs on PAPR systems.

    The "cede_offline" boot parameter is rendered obsolete.

    Removing this code enables the removal of the partition suspend code
    which temporarily onlines all present CPUs.

    Fixes: 3aa565f53c39 ("powerpc/pseries: Add hooks to put the CPU into an appropriate offline state")
    Signed-off-by: Nathan Lynch
    Reviewed-by: Gautham R. Shenoy
    Signed-off-by: Michael Ellerman
    Link: https://lore.kernel.org/r/20200612051238.1007764-2-nathanl@linux.ibm.com

    Nathan Lynch
     

13 Jul, 2020

2 commits

  • Drop the doubled word "the".

    Signed-off-by: Randy Dunlap
    Cc: Jonathan Corbet
    Cc: linux-doc@vger.kernel.org
    Link: https://lore.kernel.org/r/20200707180414.10467-4-rdunlap@infradead.org
    Signed-off-by: Jonathan Corbet

    Randy Dunlap
     
  • Rationale:
    Reduces attack surface on kernel devs opening the links for MITM
    as HTTPS traffic is much harder to manipulate.

    Deterministic algorithm:
    For each file:
    If not .svg:
    For each line:
    If doesn't contain `\bxmlns\b`:
    For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
    If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
    If both the HTTP and HTTPS versions
    return 200 OK and serve the same content:
    Replace HTTP with HTTPS.

    Signed-off-by: Alexander A. Klimov
    Link: https://lore.kernel.org/r/20200713144103.35049-1-grandmaster@al2klimov.de
    Signed-off-by: Jonathan Corbet

    Alexander A. Klimov
     

11 Jul, 2020

1 commit

  • Pull networking fixes from David Miller:

    1) Restore previous behavior of CAP_SYS_ADMIN wrt loading networking
    BPF programs, from Maciej Żenczykowski.

    2) Fix dropped broadcasts in mac80211 code, from Seevalamuthu
    Mariappan.

    3) Slay memory leak in nl80211 bss color attribute parsing code, from
    Luca Coelho.

    4) Get route from skb properly in ip_route_use_hint(), from Miaohe Lin.

    5) Don't allow anything other than ARPHRD_ETHER in llc code, from Eric
    Dumazet.

    6) xsk code dips too deeply into DMA mapping implementation internals.
    Add dma_need_sync and use it. From Christoph Hellwig

    7) Enforce power-of-2 for BPF ringbuf sizes. From Andrii Nakryiko.

    8) Check for disallowed attributes when loading flow dissector BPF
    programs. From Lorenz Bauer.

    9) Correct packet injection to L3 tunnel devices via AF_PACKET, from
    Jason A. Donenfeld.

    10) Don't advertise checksum offload on ipa devices that don't support
    it. From Alex Elder.

    11) Resolve several issues in TCP MD5 signature support. Missing memory
    barriers, bogus options emitted when using syncookies, and failure
    to allow md5 key changes in established states. All from Eric
    Dumazet.

    12) Fix interface leak in hsr code, from Taehee Yoo.

    13) VF reset fixes in hns3 driver, from Huazhong Tan.

    14) Make loopback work again with ipv6 anycast, from David Ahern.

    15) Fix TX starvation under high load in fec driver, from Tobias
    Waldekranz.

    16) MLD2 payload lengths not checked properly in bridge multicast code,
    from Linus Lüssing.

    17) Packet scheduler code that wants to find the inner protocol
    currently only works for one level of VLAN encapsulation. Allow
    Q-in-Q situations to work properly here, from Toke
    Høiland-Jørgensen.

    18) Fix route leak in l2tp, from Xin Long.

    19) Resolve conflict between the sk->sk_user_data usage of bpf reuseport
    support and various protocols. From Martin KaFai Lau.

    20) Fix socket cgroup v2 reference counting in some situations, from
    Cong Wang.

    21) Cure memory leak in mlx5 connection tracking offload support, from
    Eli Britstein.

    * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (146 commits)
    mlxsw: pci: Fix use-after-free in case of failed devlink reload
    mlxsw: spectrum_router: Remove inappropriate usage of WARN_ON()
    net: macb: fix call to pm_runtime in the suspend/resume functions
    net: macb: fix macb_suspend() by removing call to netif_carrier_off()
    net: macb: fix macb_get/set_wol() when moving to phylink
    net: macb: mark device wake capable when "magic-packet" property present
    net: macb: fix wakeup test in runtime suspend/resume routines
    bnxt_en: fix NULL dereference in case SR-IOV configuration fails
    libbpf: Fix libbpf hashmap on (I)LP32 architectures
    net/mlx5e: CT: Fix memory leak in cleanup
    net/mlx5e: Fix port buffers cell size value
    net/mlx5e: Fix 50G per lane indication
    net/mlx5e: Fix CPU mapping after function reload to avoid aRFS RX crash
    net/mlx5e: Fix VXLAN configuration restore after function reload
    net/mlx5e: Fix usage of rcu-protected pointer
    net/mxl5e: Verify that rpriv is not NULL
    net/mlx5: E-Switch, Fix vlan or qos setting in legacy mode
    net/mlx5: Fix eeprom support for SFP module
    cgroup: Fix sock_cgroup_data on big-endian.
    selftests: bpf: Fix detach from sockmap tests
    ...

    Linus Torvalds
     

03 Jul, 2020

1 commit

  • Rationale:
    Reduces attack surface on kernel devs opening the links for MITM
    as HTTPS traffic is much harder to manipulate.

    Deterministic algorithm:
    For each file:
    If not .svg:
    For each line:
    If doesn't contain `\bxmlns\b`:
    For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
    If both the HTTP and HTTPS versions
    return 200 OK and serve the same content:
    Replace HTTP with HTTPS.

    Signed-off-by: Alexander A. Klimov
    Reviewed-by: Petr Mladek
    Reviewed-by: Sergey Senozhatsky
    Signed-off-by: Petr Mladek
    Link: https://lore.kernel.org/r/20200702200536.13389-1-grandmaster@al2klimov.de

    Alexander A. Klimov
     

30 Jun, 2020

1 commit


27 Jun, 2020

2 commits

  • There are a number of random documents that seem to be
    describing some aspects of the core-api. Move them to such
    directory, adding them at the core-api/index.rst file.

    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/86d979ed183adb76af93a92f20189bccf97f0055.1592918949.git.mchehab+huawei@kernel.org
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     
  • As we moved those files to core-api, fix references to point
    to their newer locations.

    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/37b2fd159fbc7655dbf33b3eb1215396a25f6344.1592895969.git.mchehab+huawei@kernel.org
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     

26 Jun, 2020

1 commit

  • Now there are 5 cases. Updated the same.

    Link: http://lkml.kernel.org/r/1592422023-7401-1-git-send-email-jrdr.linux@gmail.com
    Signed-off-by: Souptick Joarder
    Reviewed-by: John Hubbard
    Cc: Jonathan Corbet
    Cc: Jan Kara
    Cc: Kirill A. Shutemov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Souptick Joarder
     

20 Jun, 2020

1 commit


11 Jun, 2020

1 commit

  • Pull more documentation updates from Jonathan Corbet:
    "A handful of late-arriving docs fixes, along with a patch changing a
    lot of HTTP links to HTTPS that had to be yanked and redone before the
    first pull"

    * tag 'docs-5.8-2' of git://git.lwn.net/linux:
    docs/memory-barriers.txt/kokr: smp_mb__{before,after}_atomic(): update Documentation
    Documentation: devres: add missing entry for devm_platform_get_and_ioremap_resource()
    Replace HTTP links with HTTPS ones: documentation
    docs: it_IT: address invalid reference warnings
    doc: zh_CN: use doc reference to resolve undefined label warning
    docs: Update the location of the LF NDA program
    docs: dev-tools: coccinelle: underlines

    Linus Torvalds
     

09 Jun, 2020

2 commits

  • Patch series "vhost, docs: convert to pin_user_pages(), new "case 5""

    It recently became clear to me that there are some get_user_pages*()
    callers that don't fit neatly into any of the four cases that are so far
    listed in pin_user_pages.rst. vhost.c is one of those.

    Add a Case 5 to the documentation, and refer to that when converting
    vhost.c.

    Thanks to Jan Kara for helping me (again) in understanding the
    interaction between get_user_pages() and page writeback [1].

    This is based on today's mmotm, which has a nearby patch to
    pin_user_pages.rst that rewords cases 3 and 4.

    Note that I have only compile-tested the vhost.c patch, although that
    does also include cross-compiling for a few other arches. Any run-time
    testing would be greatly appreciated.

    [1] https://lore.kernel.org/r/20200529070343.GL14550@quack2.suse.cz

    This patch (of 2):

    There are four cases listed in pin_user_pages.rst. These are intended
    to help developers figure out whether to use get_user_pages*(), or
    pin_user_pages*(). However, the four cases do not cover all the
    situations. For example, drivers/vhost/vhost.c has a "pin, write to
    page, set page dirty, unpin" case.

    Add a fifth case, to help explain that there is a general pattern that
    requires pin_user_pages*() API calls.

    [jhubbard@nvidia.com: v2]
    Link: http://lkml.kernel.org/r/20200601052633.853874-2-jhubbard@nvidia.com

    Signed-off-by: John Hubbard
    Signed-off-by: Andrew Morton
    Cc: Vlastimil Babka
    Cc: Jan Kara
    Cc: Jérôme Glisse
    Cc: Dave Chinner
    Cc: Jonathan Corbet
    Cc: Souptick Joarder
    Cc: "Michael S . Tsirkin"
    Cc: Jason Wang
    Link: http://lkml.kernel.org/r/20200529234309.484480-1-jhubbard@nvidia.com
    Link: http://lkml.kernel.org/r/20200529234309.484480-2-jhubbard@nvidia.com
    Signed-off-by: Linus Torvalds

    John Hubbard
     
  • Update case 3 so that it covers the use of mmu notifiers, for hardware
    that does, or does not have replayable page faults.

    Also, elaborate case 4 slightly, as it was quite cryptic.

    Signed-off-by: John Hubbard
    Signed-off-by: Andrew Morton
    Cc: Daniel Vetter
    Cc: Jérôme Glisse
    Cc: Vlastimil Babka
    Cc: Jan Kara
    Cc: Dave Chinner
    Cc: Jonathan Corbet
    Link: http://lkml.kernel.org/r/20200527194953.11130-1-jhubbard@nvidia.com
    Signed-off-by: Linus Torvalds

    John Hubbard
     

08 Jun, 2020

1 commit

  • Rationale:
    Reduces attack surface on kernel devs opening the links for MITM
    as HTTPS traffic is much harder to manipulate.

    Deterministic algorithm:
    For each file:
    For each line:
    If doesn't contain `\bxmlns\b`:
    For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
    If both the HTTP and HTTPS versions
    return 200 OK and serve the same content:
    Replace HTTP with HTTPS.

    Signed-off-by: Alexander A. Klimov
    Link: https://lore.kernel.org/r/20200526060544.25127-1-grandmaster@al2klimov.de
    Signed-off-by: Jonathan Corbet

    Alexander A. Klimov
     

04 Jun, 2020

1 commit

  • Add Documentation for multithreaded jobs.

    Signed-off-by: Daniel Jordan
    Signed-off-by: Andrew Morton
    Tested-by: Josh Triplett
    Cc: Alexander Duyck
    Cc: Alex Williamson
    Cc: Dan Williams
    Cc: Dave Hansen
    Cc: David Hildenbrand
    Cc: Herbert Xu
    Cc: Jason Gunthorpe
    Cc: Jonathan Corbet
    Cc: Kirill Tkhai
    Cc: Michal Hocko
    Cc: Pavel Machek
    Cc: Pavel Tatashin
    Cc: Peter Zijlstra
    Cc: Randy Dunlap
    Cc: Robert Elliott
    Cc: Shile Zhang
    Cc: Steffen Klassert
    Cc: Steven Sistare
    Cc: Tejun Heo
    Cc: Zi Yan
    Link: http://lkml.kernel.org/r/20200527173608.2885243-9-daniel.m.jordan@oracle.com
    Signed-off-by: Linus Torvalds

    Daniel Jordan
     

03 Jun, 2020

2 commits

  • Merge updates from Andrew Morton:
    "A few little subsystems and a start of a lot of MM patches.

    Subsystems affected by this patch series: squashfs, ocfs2, parisc,
    vfs. With mm subsystems: slab-generic, slub, debug, pagecache, gup,
    swap, memcg, pagemap, memory-failure, vmalloc, kasan"

    * emailed patches from Andrew Morton : (128 commits)
    kasan: move kasan_report() into report.c
    mm/mm_init.c: report kasan-tag information stored in page->flags
    ubsan: entirely disable alignment checks under UBSAN_TRAP
    kasan: fix clang compilation warning due to stack protector
    x86/mm: remove vmalloc faulting
    mm: remove vmalloc_sync_(un)mappings()
    x86/mm/32: implement arch_sync_kernel_mappings()
    x86/mm/64: implement arch_sync_kernel_mappings()
    mm/ioremap: track which page-table levels were modified
    mm/vmalloc: track which page-table levels were modified
    mm: add functions to track page directory modifications
    s390: use __vmalloc_node in stack_alloc
    powerpc: use __vmalloc_node in alloc_vm_stack
    arm64: use __vmalloc_node in arch_alloc_vmap_stack
    mm: remove vmalloc_user_node_flags
    mm: switch the test_vmalloc module to use __vmalloc_node
    mm: remove __vmalloc_node_flags_caller
    mm: remove both instances of __vmalloc_node_flags
    mm: remove the prot argument to __vmalloc_node
    mm: remove the pgprot argument to __vmalloc
    ...

    Linus Torvalds
     
  • Switch all callers to map_kernel_range, which symmetric to the unmap side
    (as well as the _noflush versions).

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Acked-by: Peter Zijlstra (Intel)
    Cc: Christian Borntraeger
    Cc: Christophe Leroy
    Cc: Daniel Vetter
    Cc: David Airlie
    Cc: Gao Xiang
    Cc: Greg Kroah-Hartman
    Cc: Haiyang Zhang
    Cc: Johannes Weiner
    Cc: "K. Y. Srinivasan"
    Cc: Laura Abbott
    Cc: Mark Rutland
    Cc: Michael Kelley
    Cc: Minchan Kim
    Cc: Nitin Gupta
    Cc: Robin Murphy
    Cc: Sakari Ailus
    Cc: Stephen Hemminger
    Cc: Sumit Semwal
    Cc: Wei Liu
    Cc: Benjamin Herrenschmidt
    Cc: Catalin Marinas
    Cc: Heiko Carstens
    Cc: Paul Mackerras
    Cc: Vasily Gorbik
    Cc: Will Deacon
    Link: http://lkml.kernel.org/r/20200414131348.444715-17-hch@lst.de
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     

02 Jun, 2020

1 commit

  • Pull documentation updates from Jonathan Corbet:
    "A fair amount of stuff this time around, dominated by yet another
    massive set from Mauro toward the completion of the RST conversion. I
    *really* hope we are getting close to the end of this. Meanwhile,
    those patches reach pretty far afield to update document references
    around the tree; there should be no actual code changes there. There
    will be, alas, more of the usual trivial merge conflicts.

    Beyond that we have more translations, improvements to the sphinx
    scripting, a number of additions to the sysctl documentation, and lots
    of fixes"

    * tag 'docs-5.8' of git://git.lwn.net/linux: (130 commits)
    Documentation: fixes to the maintainer-entry-profile template
    zswap: docs/vm: Fix typo accept_threshold_percent in zswap.rst
    tracing: Fix events.rst section numbering
    docs: acpi: fix old http link and improve document format
    docs: filesystems: add info about efivars content
    Documentation: LSM: Correct the basic LSM description
    mailmap: change email for Ricardo Ribalda
    docs: sysctl/kernel: document unaligned controls
    Documentation: admin-guide: update bug-hunting.rst
    docs: sysctl/kernel: document ngroups_max
    nvdimm: fixes to maintainter-entry-profile
    Documentation/features: Correct RISC-V kprobes support entry
    Documentation/features: Refresh the arch support status files
    Revert "docs: sysctl/kernel: document ngroups_max"
    docs: move locking-specific documents to locking/
    docs: move digsig docs to the security book
    docs: move the kref doc into the core-api book
    docs: add IRQ documentation at the core-api book
    docs: debugging-via-ohci1394.txt: add it to the core-api book
    docs: fix references for ipmi.rst file
    ...

    Linus Torvalds