1. 29 Jul, 2020 6 commits
    • Linus Torvalds's avatar
      Merge tag 'audit-pr-20200729' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit · d3590ebf
      Linus Torvalds authored
      Pull audit fixes from Paul Moore:
       "One small audit fix that you can hopefully merge before v5.8 is
        released. Unfortunately it is a revert of a patch that went in during
        the v5.7 window and we just recently started to see some bug reports
        relating to that commit.
      
        We are working on a proper fix, but I'm not yet clear on when that
        will be ready and we need to fix the v5.7 kernels anyway, so in the
        interest of time a revert seemed like the best solution right now"
      
      * tag 'audit-pr-20200729' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit:
        revert: 1320a405 ("audit: trigger accompanying records when no rules present")
      d3590ebf
    • Linus Torvalds's avatar
      Merge tag '9p-for-5.8-2' of git://github.com/martinetd/linux into master · 21391520
      Linus Torvalds authored
      Pull 9p fixes from Dominique Martinet:
       "A couple of syzcaller fixes for 5.8
      
        The first one in particular has been quite noisy ("broke" in -rc5) so
        this would be worth landing even this late even if users likely won't
        see a difference"
      
      * tag '9p-for-5.8-2' of git://github.com/martinetd/linux:
        9p/trans_fd: Fix concurrency del of req_list in p9_fd_cancelled/p9_read_work
        net/9p: validate fds in p9_fd_open
      21391520
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2020-07-29' of git://anongit.freedesktop.org/drm/drm into master · c2f3850d
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "The nouveau fixes missed the last pull by a few hours, and we had a
        few arm driver/panel/bridge fixes come in.
      
        This is possibly a bit more than I'm comfortable sending at this
        stage, but I've looked at each patch, the core + nouveau patches fix
        regressions, and the arm related ones are all around screens turning
        on and working, and are mostly trivial patches, the line count is
        mostly in comments.
      
        core:
         - fix possible use-after-free
      
        drm_fb_helper:
         - regression fix to use memcpy_io on bochs' sparc64
      
        nouveau:
         - format modifiers fixes
         - HDA regression fix
         - turing modesetting race fix
      
        of:
         - fix a double free
      
        dbi:
         - fix SPI Type 1 transfer
      
        mcde:
         - fix screen stability crash
      
        panel:
         - panel: fix display noise on auo,kd101n80-45na
         - panel: delay HPD checks for boe_nv133fhm_n61
      
        bridge:
         - bridge: drop connector check in nwl-dsi bridge
         - bridge: set proper bridge type for adv7511"
      
      * tag 'drm-fixes-2020-07-29' of git://anongit.freedesktop.org/drm/drm:
        drm: hold gem reference until object is no longer accessed
        drm/dbi: Fix SPI Type 1 (9-bit) transfer
        drm/drm_fb_helper: fix fbdev with sparc64
        drm/mcde: Fix stability issue
        drm/bridge: nwl-dsi: Drop DRM_BRIDGE_ATTACH_NO_CONNECTOR check.
        drm/panel: Fix auo, kd101n80-45na horizontal noise on edges of panel
        drm: panel: simple: Delay HPD checking on boe_nv133fhm_n61 for 15 ms
        drm/bridge/adv7511: set the bridge type properly
        drm: of: Fix double-free bug
        drm/nouveau/fbcon: zero-initialise the mode_cmd2 structure
        drm/nouveau/fbcon: fix module unload when fbcon init has failed for some reason
        drm/nouveau/kms/tu102: wait for core update to complete when assigning windows
        drm/nouveau/kms/gf100: use correct format modifiers
        drm/nouveau/disp/gm200-: fix regression from HDA SOR selection changes
      c2f3850d
    • Willy Tarreau's avatar
      random32: update the net random state on interrupt and activity · f227e3ec
      Willy Tarreau authored
      This modifies the first 32 bits out of the 128 bits of a random CPU's
      net_rand_state on interrupt or CPU activity to complicate remote
      observations that could lead to guessing the network RNG's internal
      state.
      
      Note that depending on some network devices' interrupt rate moderation
      or binding, this re-seeding might happen on every packet or even almost
      never.
      
      In addition, with NOHZ some CPUs might not even get timer interrupts,
      leaving their local state rarely updated, while they are running
      networked processes making use of the random state.  For this reason, we
      also perform this update in update_process_times() in order to at least
      update the state when there is user or system activity, since it's the
      only case we care about.
      Reported-by: default avatarAmit Klein <aksecurity@gmail.com>
      Suggested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Cc: Eric Dumazet <edumazet@google.com>
      Cc: "Jason A. Donenfeld" <Jason@zx2c4.com>
      Cc: Andy Lutomirski <luto@kernel.org>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f227e3ec
    • Paul Moore's avatar
      revert: 1320a405 ("audit: trigger accompanying records when no rules present") · 8ac68dc4
      Paul Moore authored
      Unfortunately the commit listed in the subject line above failed
      to ensure that the task's audit_context was properly initialized/set
      before enabling the "accompanying records".  Depending on the
      situation, the resulting audit_context could have invalid values in
      some of it's fields which could cause a kernel panic/oops when the
      task/syscall exists and the audit records are generated.
      
      We will revisit the original patch, with the necessary fixes, in a
      future kernel but right now we just want to fix the kernel panic
      with the least amount of added risk.
      
      Cc: stable@vger.kernel.org
      Fixes: 1320a405 ("audit: trigger accompanying records when no rules present")
      Reported-by: j2468h@googlemail.com
      Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
      8ac68dc4
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2020-07-28' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · a4a2739b
      Dave Airlie authored
       * drm: fix possible use-after-free
       * dbi: fix SPI Type 1 transfer
       * drm_fb_helper: use memcpy_io on bochs' sparc64
       * mcde: fix stability
       * panel: fix display noise on auo,kd101n80-45na
       * panel: delay HPD checks for boe_nv133fhm_n61
       * bridge: drop connector check in nwl-dsi bridge
       * bridge: set proper bridge type for adv7511
       * of: fix a double free
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200728110446.GA8076@linux-uq9g
      a4a2739b
  2. 28 Jul, 2020 3 commits
  3. 27 Jul, 2020 7 commits
  4. 26 Jul, 2020 15 commits
  5. 25 Jul, 2020 9 commits
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.8-rc7' of... · 04300d66
      Linus Torvalds authored
      Merge tag 'riscv-for-linus-5.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux into master
      
      Pull RISC-V fixes from Palmer Dabbelt:
       "A few more fixes this week:
      
         - A fix to avoid using SBI calls during kasan initialization, as the
           SBI calls themselves have not been probed yet.
      
         - Three fixes related to systems with multiple memory regions"
      
      * tag 'riscv-for-linus-5.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: Parse all memory blocks to remove unusable memory
        RISC-V: Do not rely on initrd_start/end computed during early dt parsing
        RISC-V: Set maximum number of mapped pages correctly
        riscv: kasan: use local_tlb_flush_all() to avoid uninitialized __sbi_rfence
      04300d66
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2020-07-25' of... · fbe0d451
      Linus Torvalds authored
      Merge tag 'x86-urgent-2020-07-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into master
      
      Pull x86 fixes from Ingo Molnar:
       "Misc fixes:
      
         - Fix a section end page alignment assumption that was causing
           crashes
      
         - Fix ORC unwinding on freshly forked tasks which haven't executed
           yet and which have empty user task stacks
      
         - Fix the debug.exception-trace=1 sysctl dumping of user stacks,
           which was broken by recent maccess changes"
      
      * tag 'x86-urgent-2020-07-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/dumpstack: Dump user space code correctly again
        x86/stacktrace: Fix reliable check for empty user task stacks
        x86/unwind/orc: Fix ORC for newly forked tasks
        x86, vmlinux.lds: Page-align end of ..page_aligned sections
      fbe0d451
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2020-07-25' of... · 78b1afe2
      Linus Torvalds authored
      Merge tag 'perf-urgent-2020-07-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into master
      
      Pull uprobe fix from Ingo Molnar:
       "Fix an interaction/regression between uprobes based shared library
        tracing & GDB"
      
      * tag 'perf-urgent-2020-07-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        uprobes: Change handle_swbp() to send SIGTRAP with si_code=SI_KERNEL, to fix GDB regression
      78b1afe2
    • Linus Torvalds's avatar
      Merge tag 'timers-urgent-2020-07-25' of... · a7b36c2b
      Linus Torvalds authored
      Merge tag 'timers-urgent-2020-07-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into master
      
      Pull timer fix from Ingo Molnar:
       "Fix a suspend/resume regression (crash) on TI AM3/AM4 SoC's"
      
      * tag 'timers-urgent-2020-07-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        clocksource/drivers/timer-ti-dm: Fix suspend and resume for am3 and am4
      a7b36c2b
    • Linus Torvalds's avatar
      Merge tag 'sched-urgent-2020-07-25' of... · 3077805e
      Linus Torvalds authored
      Merge tag 'sched-urgent-2020-07-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into master
      
      Pull scheduler fixes from Ingo Molnar:
       "Fix a race introduced by the recent loadavg race fix, plus add a debug
        check for a hard to debug case of bogus wakeup function flags"
      
      * tag 'sched-urgent-2020-07-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched: Warn if garbage is passed to default_wake_function()
        sched: Fix race against ptrace_freeze_trace()
      3077805e
    • Linus Torvalds's avatar
      Merge tag 'efi-urgent-2020-07-25' of... · 17baa442
      Linus Torvalds authored
      Merge tag 'efi-urgent-2020-07-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into master
      
      Pull EFI fixes from Ingo Molnar:
       "Various EFI fixes:
      
         - Fix the layering violation in the use of the EFI runtime services
           availability mask in users of the 'efivars' abstraction
      
         - Revert build fix for GCC v4.8 which is no longer supported
      
         - Clean up some x86 EFI stub details, some of which are borderline
           bugs that copy around garbage into padding fields - let's fix these
           out of caution.
      
         - Fix build issues while working on RISC-V support
      
         - Avoid --whole-archive when linking the stub on arm64"
      
      * tag 'efi-urgent-2020-07-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        efi: Revert "efi/x86: Fix build with gcc 4"
        efi/efivars: Expose RT service availability via efivars abstraction
        efi/libstub: Move the function prototypes to header file
        efi/libstub: Fix gcc error around __umoddi3 for 32 bit builds
        efi/libstub/arm64: link stub lib.a conditionally
        efi/x86: Only copy upto the end of setup_header
        efi/x86: Remove unused variables
      17baa442
    • Linus Torvalds's avatar
      Merge tag '5.8-rc6-cifs-fix' of git://git.samba.org/sfrench/cifs-2.6 into master · 7cb3a5c5
      Linus Torvalds authored
      Pull cifs fix from Steve French:
       "A fix for a recently discovered regression in rename to older servers
        caused by a recent patch"
      
      * tag '5.8-rc6-cifs-fix' of git://git.samba.org/sfrench/cifs-2.6:
        Revert "cifs: Fix the target file was deleted when rename failed."
      7cb3a5c5
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net into master · 1b64b2e2
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) Fix RCU locaking in iwlwifi, from Johannes Berg.
      
       2) mt76 can access uninitialized NAPI struct, from Felix Fietkau.
      
       3) Fix race in updating pause settings in bnxt_en, from Vasundhara
          Volam.
      
       4) Propagate error return properly during unbind failures in ax88172a,
          from George Kennedy.
      
       5) Fix memleak in adf7242_probe, from Liu Jian.
      
       6) smc_drv_probe() can leak, from Wang Hai.
      
       7) Don't muck with the carrier state if register_netdevice() fails in
          the bonding driver, from Taehee Yoo.
      
       8) Fix memleak in dpaa_eth_probe, from Liu Jian.
      
       9) Need to check skb_put_padto() return value in hsr_fill_tag(), from
          Murali Karicheri.
      
      10) Don't lose ionic RSS hash settings across FW update, from Shannon
          Nelson.
      
      11) Fix clobbered SKB control block in act_ct, from Wen Xu.
      
      12) Missing newlink in "tx_timeout" sysfs output, from Xiongfeng Wang.
      
      13) IS_UDPLITE cleanup a long time ago, incorrectly handled
          transformations involving UDPLITE_RECV_CC. From Miaohe Lin.
      
      14) Unbalanced locking in netdevsim, from Taehee Yoo.
      
      15) Suppress false-positive error messages in qed driver, from Alexander
          Lobakin.
      
      16) Out of bounds read in ax25_connect and ax25_sendmsg, from Peilin Ye.
      
      17) Missing SKB release in cxgb4's uld_send(), from Navid Emamdoost.
      
      18) Uninitialized value in geneve_changelink(), from Cong Wang.
      
      19) Fix deadlock in xen-netfront, from Andera Righi.
      
      19) flush_backlog() frees skbs with IRQs disabled, so should use
          dev_kfree_skb_irq() instead of kfree_skb(). From Subash Abhinov
          Kasiviswanathan.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (111 commits)
        drivers/net/wan: lapb: Corrected the usage of skb_cow
        dev: Defer free of skbs in flush_backlog
        qrtr: orphan socket in qrtr_release()
        xen-netfront: fix potential deadlock in xennet_remove()
        flow_offload: Move rhashtable inclusion to the source file
        geneve: fix an uninitialized value in geneve_changelink()
        bonding: check return value of register_netdevice() in bond_newlink()
        tcp: allow at most one TLP probe per flight
        AX.25: Prevent integer overflows in connect and sendmsg
        cxgb4: add missing release on skb in uld_send()
        net: atlantic: fix PTP on AQC10X
        AX.25: Prevent out-of-bounds read in ax25_sendmsg()
        sctp: shrink stream outq when fails to do addstream reconf
        sctp: shrink stream outq only when new outcnt < old outcnt
        AX.25: Fix out-of-bounds read in ax25_connect()
        enetc: Remove the mdio bus on PF probe bailout
        net: ethernet: ti: add NETIF_F_HW_TC hw feature flag for taprio offload
        net: ethernet: ave: Fix error returns in ave_init
        drivers/net/wan/x25_asy: Fix to make it work
        ipvs: fix the connection sync failed in some cases
        ...
      1b64b2e2
    • Grygorii Strashko's avatar
      ARM: dts: keystone-k2g-evm: fix rgmii phy-mode for ksz9031 phy · fe1d899f
      Grygorii Strashko authored
      Since commit bcf3440c ("net: phy: micrel: add phy-mode support for the
      KSZ9031 PHY") the networking is broken on keystone-k2g-evm board.
      
      The above board have phy-mode = "rgmii-id" and it is worked before because
      KSZ9031 PHY started with default RGMII internal delays configuration (TX
      off, RX on 1.2 ns) and MAC provided TX delay by default.
      After above commit, the KSZ9031 PHY starts handling phy mode properly and
      enables both RX and TX delays, as result networking is become broken.
      
      Fix it by switching to phy-mode = "rgmii-rxid" to reflect previous
      behavior.
      
      Fixes: bcf3440c ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY")
      Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
      Cc: Oleksij Rempel <o.rempel@pengutronix.de>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Philippe Schenker <philippe.schenker@toradex.com>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      fe1d899f