1. 14 Sep, 2020 1 commit
  2. 17 Jun, 2020 4 commits
    • Colin Xu's avatar
      drm/i915/gvt: Use GFP_ATOMIC instead of GFP_KERNEL in atomic context · a291e4fb
      Colin Xu authored
      GFP_KERNEL flag specifies a normal kernel allocation in which executing
      in process context without any locks and can sleep.
      mmio_diff takes sometime to finish all the diff compare and it has
      locks, continue using GFP_KERNEL will output below trace if LOCKDEP
      enabled.
      
      Use GFP_ATOMIC instead.
      
      V2: Rebase.
      
      =====================================================
      WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected
      5.7.0-rc2 #400 Not tainted
      -----------------------------------------------------
      is trying to acquire:
      ffffffffb47bea20 (fs_reclaim){+.+.}-{0:0}, at: fs_reclaim_acquire.part.0+0x0/0x30
      
                     and this task is already holding:
      ffff88845b85cc90 (&gvt->scheduler.mmio_context_lock){+.-.}-{2:2}, at: vgpu_mmio_diff_show+0xcf/0x2e0
      which would create a new lock dependency:
       (&gvt->scheduler.mmio_context_lock){+.-.}-{2:2} -> (fs_reclaim){+.+.}-{0:0}
      
                     but this new dependency connects a SOFTIRQ-irq-safe lock:
       (&gvt->scheduler.mmio_context_lock){+.-.}-{2:2}
      
                     ... which became SOFTIRQ-irq-safe at:
        lock_acquire+0x175/0x4e0
        _raw_spin_lock_irqsave+0x2b/0x40
        shadow_context_status_change+0xfe/0x2f0
        notifier_call_chain+0x6a/0xa0
        __atomic_notifier_call_chain+0x5f/0xf0
        execlists_schedule_out+0x42a/0x820
        process_csb+0xe7/0x3e0
        execlists_submission_tasklet+0x5c/0x1d0
        tasklet_action_common.isra.0+0xeb/0x260
        __do_softirq+0x11d/0x56f
        irq_exit+0xf6/0x100
        do_IRQ+0x7f/0x160
        ret_from_intr+0x0/0x2a
        cpuidle_enter_state+0xcd/0x5b0
        cpuidle_enter+0x37/0x60
        do_idle+0x337/0x3f0
        cpu_startup_entry+0x14/0x20
        start_kernel+0x58b/0x5c5
        secondary_startup_64+0xa4/0xb0
      
                     to a SOFTIRQ-irq-unsafe lock:
       (fs_reclaim){+.+.}-{0:0}
      
                     ... which became SOFTIRQ-irq-unsafe at:
      ...
        lock_acquire+0x175/0x4e0
        fs_reclaim_acquire.part.0+0x20/0x30
        kmem_cache_alloc_node_trace+0x2e/0x290
        alloc_worker+0x2b/0xb0
        init_rescuer.part.0+0x17/0xe0
        workqueue_init+0x293/0x3bb
        kernel_init_freeable+0x149/0x325
        kernel_init+0x8/0x116
        ret_from_fork+0x3a/0x50
      
                     other info that might help us debug this:
      
       Possible interrupt unsafe locking scenario:
      
             CPU0                    CPU1
             ----                    ----
        lock(fs_reclaim);
                                     local_irq_disable();
                                     lock(&gvt->scheduler.mmio_context_lock);
                                     lock(fs_reclaim);
        <Interrupt>
          lock(&gvt->scheduler.mmio_context_lock);
      
                      *** DEADLOCK ***
      
      3 locks held by cat/1439:
       #0: ffff888444a23698 (&p->lock){+.+.}-{3:3}, at: seq_read+0x49/0x680
       #1: ffff88845b858068 (&gvt->lock){+.+.}-{3:3}, at: vgpu_mmio_diff_show+0xc7/0x2e0
       #2: ffff88845b85cc90 (&gvt->scheduler.mmio_context_lock){+.-.}-{2:2}, at: vgpu_mmio_diff_show+0xcf/0x2e0
      
                     the dependencies between SOFTIRQ-irq-safe lock and the holding lock:
      -> (&gvt->scheduler.mmio_context_lock){+.-.}-{2:2} ops: 31 {
         HARDIRQ-ON-W at:
                          lock_acquire+0x175/0x4e0
                          _raw_spin_lock_bh+0x2f/0x40
                          vgpu_mmio_diff_show+0xcf/0x2e0
                          seq_read+0x242/0x680
                          full_proxy_read+0x95/0xc0
                          vfs_read+0xc2/0x1b0
                          ksys_read+0xc4/0x160
                          do_syscall_64+0x63/0x290
                          entry_SYSCALL_64_after_hwframe+0x49/0xb3
         IN-SOFTIRQ-W at:
                          lock_acquire+0x175/0x4e0
                          _raw_spin_lock_irqsave+0x2b/0x40
                          shadow_context_status_change+0xfe/0x2f0
                          notifier_call_chain+0x6a/0xa0
                          __atomic_notifier_call_chain+0x5f/0xf0
                          execlists_schedule_out+0x42a/0x820
                          process_csb+0xe7/0x3e0
                          execlists_submission_tasklet+0x5c/0x1d0
                          tasklet_action_common.isra.0+0xeb/0x260
                          __do_softirq+0x11d/0x56f
                          irq_exit+0xf6/0x100
                          do_IRQ+0x7f/0x160
                          ret_from_intr+0x0/0x2a
                          cpuidle_enter_state+0xcd/0x5b0
                          cpuidle_enter+0x37/0x60
                          do_idle+0x337/0x3f0
                          cpu_startup_entry+0x14/0x20
                          start_kernel+0x58b/0x5c5
                          secondary_startup_64+0xa4/0xb0
         INITIAL USE at:
                         lock_acquire+0x175/0x4e0
                         _raw_spin_lock_irqsave+0x2b/0x40
                         shadow_context_status_change+0xfe/0x2f0
                         notifier_call_chain+0x6a/0xa0
                         __atomic_notifier_call_chain+0x5f/0xf0
                         execlists_schedule_in+0x2c8/0x690
                         __execlists_submission_tasklet+0x1303/0x1930
                         execlists_submit_request+0x1e7/0x230
                         submit_notify+0x105/0x2a4
                         __i915_sw_fence_complete+0xaa/0x380
                         __engine_park+0x313/0x5a0
                         ____intel_wakeref_put_last+0x3e/0x90
                         intel_gt_resume+0x41e/0x440
                         intel_gt_init+0x283/0xbc0
                         i915_gem_init+0x197/0x240
                         i915_driver_probe+0xc2d/0x12e0
                         i915_pci_probe+0xa2/0x1e0
                         local_pci_probe+0x6f/0xb0
                         pci_device_probe+0x171/0x230
                         really_probe+0x17a/0x380
                         driver_probe_device+0x70/0xf0
                         device_driver_attach+0x82/0x90
                         __driver_attach+0x60/0x100
                         bus_for_each_dev+0xe4/0x140
                         bus_add_driver+0x257/0x2a0
                         driver_register+0xd3/0x150
                         i915_init+0x6d/0x80
                         do_one_initcall+0xb8/0x3a0
                         kernel_init_freeable+0x2b4/0x325
                         kernel_init+0x8/0x116
                         ret_from_fork+0x3a/0x50
       }
      __key.77812+0x0/0x40
       ... acquired at:
         lock_acquire+0x175/0x4e0
         fs_reclaim_acquire.part.0+0x20/0x30
         kmem_cache_alloc_trace+0x2e/0x260
         mmio_diff_handler+0xc0/0x150
         intel_gvt_for_each_tracked_mmio+0x7b/0x140
         vgpu_mmio_diff_show+0x111/0x2e0
         seq_read+0x242/0x680
         full_proxy_read+0x95/0xc0
         vfs_read+0xc2/0x1b0
         ksys_read+0xc4/0x160
         do_syscall_64+0x63/0x290
         entry_SYSCALL_64_after_hwframe+0x49/0xb3
      
                     the dependencies between the lock to be acquired
       and SOFTIRQ-irq-unsafe lock:
      -> (fs_reclaim){+.+.}-{0:0} ops: 1999031 {
         HARDIRQ-ON-W at:
                          lock_acquire+0x175/0x4e0
                          fs_reclaim_acquire.part.0+0x20/0x30
                          kmem_cache_alloc_node_trace+0x2e/0x290
                          alloc_worker+0x2b/0xb0
                          init_rescuer.part.0+0x17/0xe0
                          workqueue_init+0x293/0x3bb
                          kernel_init_freeable+0x149/0x325
                          kernel_init+0x8/0x116
                          ret_from_fork+0x3a/0x50
         SOFTIRQ-ON-W at:
                          lock_acquire+0x175/0x4e0
                          fs_reclaim_acquire.part.0+0x20/0x30
                          kmem_cache_alloc_node_trace+0x2e/0x290
                          alloc_worker+0x2b/0xb0
                          init_rescuer.part.0+0x17/0xe0
                          workqueue_init+0x293/0x3bb
                          kernel_init_freeable+0x149/0x325
                          kernel_init+0x8/0x116
                          ret_from_fork+0x3a/0x50
         INITIAL USE at:
                         lock_acquire+0x175/0x4e0
                         fs_reclaim_acquire.part.0+0x20/0x30
                         kmem_cache_alloc_node_trace+0x2e/0x290
                         alloc_worker+0x2b/0xb0
                         init_rescuer.part.0+0x17/0xe0
                         workqueue_init+0x293/0x3bb
                         kernel_init_freeable+0x149/0x325
                         kernel_init+0x8/0x116
                         ret_from_fork+0x3a/0x50
       }
      __fs_reclaim_map+0x0/0x60
       ... acquired at:
         lock_acquire+0x175/0x4e0
         fs_reclaim_acquire.part.0+0x20/0x30
         kmem_cache_alloc_trace+0x2e/0x260
         mmio_diff_handler+0xc0/0x150
         intel_gvt_for_each_tracked_mmio+0x7b/0x140
         vgpu_mmio_diff_show+0x111/0x2e0
         seq_read+0x242/0x680
         full_proxy_read+0x95/0xc0
         vfs_read+0xc2/0x1b0
         ksys_read+0xc4/0x160
         do_syscall_64+0x63/0x290
         entry_SYSCALL_64_after_hwframe+0x49/0xb3
      
                     stack backtrace:
      CPU: 5 PID: 1439 Comm: cat Not tainted 5.7.0-rc2 #400
      Hardware name: Intel(R) Client Systems NUC8i7BEH/NUC8BEB, BIOS BECFL357.86A.0056.2018.1128.1717 11/28/2018
      Call Trace:
       dump_stack+0x97/0xe0
       check_irq_usage.cold+0x428/0x434
       ? check_usage_forwards+0x2c0/0x2c0
       ? class_equal+0x11/0x20
       ? __bfs+0xd2/0x2d0
       ? in_any_class_list+0xa0/0xa0
       ? check_path+0x22/0x40
       ? check_noncircular+0x150/0x2b0
       ? print_circular_bug.isra.0+0x1b0/0x1b0
       ? mark_lock+0x13d/0xc50
       ? __lock_acquire+0x1e32/0x39b0
       __lock_acquire+0x1e32/0x39b0
       ? timerqueue_add+0xc1/0x130
       ? register_lock_class+0xa60/0xa60
       ? mark_lock+0x13d/0xc50
       lock_acquire+0x175/0x4e0
       ? __zone_pcp_update+0x80/0x80
       ? check_flags.part.0+0x210/0x210
       ? mark_held_locks+0x65/0x90
       ? _raw_spin_unlock_irqrestore+0x32/0x40
       ? lockdep_hardirqs_on+0x190/0x290
       ? fwtable_read32+0x163/0x480
       ? mmio_diff_handler+0xc0/0x150
       fs_reclaim_acquire.part.0+0x20/0x30
       ? __zone_pcp_update+0x80/0x80
       kmem_cache_alloc_trace+0x2e/0x260
       mmio_diff_handler+0xc0/0x150
       ? vgpu_mmio_diff_open+0x30/0x30
       intel_gvt_for_each_tracked_mmio+0x7b/0x140
       vgpu_mmio_diff_show+0x111/0x2e0
       ? mmio_diff_handler+0x150/0x150
       ? rcu_read_lock_sched_held+0xa0/0xb0
       ? rcu_read_lock_bh_held+0xc0/0xc0
       ? kasan_unpoison_shadow+0x33/0x40
       ? __kasan_kmalloc.constprop.0+0xc2/0xd0
       seq_read+0x242/0x680
       ? debugfs_locked_down.isra.0+0x70/0x70
       full_proxy_read+0x95/0xc0
       vfs_read+0xc2/0x1b0
       ksys_read+0xc4/0x160
       ? kernel_write+0xb0/0xb0
       ? mark_held_locks+0x24/0x90
       do_syscall_64+0x63/0x290
       entry_SYSCALL_64_after_hwframe+0x49/0xb3
      RIP: 0033:0x7ffbe3e6efb2
      Code: c0 e9 c2 fe ff ff 50 48 8d 3d ca cb 0a 00 e8 f5 19 02 00 0f 1f 44 00 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 0f 05 <48> 3d 00 f0 ff ff 77 56 c3 0f 1f 44 00 00 48 83 ec 28 48 89 54 24
      RSP: 002b:00007ffd021c08a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
      RAX: ffffffffffffffda RBX: 0000000000020000 RCX: 00007ffbe3e6efb2
      RDX: 0000000000020000 RSI: 00007ffbe34cd000 RDI: 0000000000000003
      RBP: 00007ffbe34cd000 R08: 00007ffbe34cc010 R09: 0000000000000000
      R10: 0000000000000022 R11: 0000000000000246 R12: 0000562b6f0a11f0
      R13: 0000000000000003 R14: 0000000000020000 R15: 0000000000020000
      ------------[ cut here ]------------
      Acked-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
      Signed-off-by: default avatarColin Xu <colin.xu@intel.com>
      Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/20200601035556.19999-1-colin.xu@intel.com
      a291e4fb
    • Colin Xu's avatar
      drm/i915/gvt: Fix incorrect check of enabled bits in mask registers · fc1e3aa0
      Colin Xu authored
      Using _MASKED_BIT_ENABLE macro to set mask register bits is straight
      forward and not likely to go wrong. However when checking which bit(s)
      is(are) enabled, simply bitwise AND value and _MASKED_BIT_ENABLE() won't
      output expected result. Suppose the register write is disabling bit 1
      by setting 0xFFFF0000, however "& _MASKED_BIT_ENABLE(1)" outputs
      0x00010000, and the non-zero check will pass which cause the old code
      consider the new value set as an enabling operation.
      
      We found guest set 0x80008000 on boot, and set 0xffff8000 during resume.
      Both are legal settings but old code will block latter and force vgpu
      enter fail-safe mode.
      
      Introduce two new macro and make proper masked bit check in mmio handler:
      IS_MASKED_BITS_ENABLED()
      IS_MASKED_BITS_DISABLED()
      
      V2: Rebase.
      Reviewed-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
      Signed-off-by: default avatarColin Xu <colin.xu@intel.com>
      Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/20200601030721.17129-1-colin.xu@intel.com
      fc1e3aa0
    • Colin Xu's avatar
      drm/i915/gvt: Fix two CFL MMIO handling caused by regression. · fccd0f7c
      Colin Xu authored
      D_CFL was incorrectly removed for:
      GAMT_CHKN_BIT_REG
      GEN9_CTX_PREEMPT_REG
      
      V2: Update commit message.
      V3: Rebase and split Fixes and mis-handled MMIO.
      
      Fixes: 43226e6f (drm/i915/gvt: replaced register address with name)
      Reviewed-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
      Signed-off-by: default avatarColin Xu <colin.xu@intel.com>
      Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/20200601030638.16002-1-colin.xu@intel.com
      fccd0f7c
    • Colin Xu's avatar
      drm/i915/gvt: Add one missing MMIO handler for D_SKL_PLUS · 2de60af4
      Colin Xu authored
      _PLANE_CTL_3_A, _PLANE_CTL_3_B and _PLANE_SURF_3_A are handled, but
      miss _PLANE_SURF_3_B.
      Reviewed-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
      Signed-off-by: default avatarColin Xu <colin.xu@intel.com>
      Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/20200601030457.14002-1-colin.xu@intel.com
      2de60af4
  3. 16 Jun, 2020 13 commits
  4. 15 Jun, 2020 3 commits
  5. 14 Jun, 2020 4 commits
    • Linus Torvalds's avatar
      Linux 5.8-rc1 · b3a9e3b9
      Linus Torvalds authored
      b3a9e3b9
    • Linus Torvalds's avatar
      Merge tag 'LSM-add-setgid-hook-5.8-author-fix' of git://github.com/micah-morton/linux · 4a87b197
      Linus Torvalds authored
      Pull SafeSetID update from Micah Morton:
       "Add additional LSM hooks for SafeSetID
      
        SafeSetID is capable of making allow/deny decisions for set*uid calls
        on a system, and we want to add similar functionality for set*gid
        calls.
      
        The work to do that is not yet complete, so probably won't make it in
        for v5.8, but we are looking to get this simple patch in for v5.8
        since we have it ready.
      
        We are planning on the rest of the work for extending the SafeSetID
        LSM being merged during the v5.9 merge window"
      
      * tag 'LSM-add-setgid-hook-5.8-author-fix' of git://github.com/micah-morton/linux:
        security: Add LSM hooks to set*gid syscalls
      4a87b197
    • Thomas Cedeno's avatar
      security: Add LSM hooks to set*gid syscalls · 39030e13
      Thomas Cedeno authored
      The SafeSetID LSM uses the security_task_fix_setuid hook to filter
      set*uid() syscalls according to its configured security policy. In
      preparation for adding analagous support in the LSM for set*gid()
      syscalls, we add the requisite hook here. Tested by putting print
      statements in the security_task_fix_setgid hook and seeing them get hit
      during kernel boot.
      Signed-off-by: default avatarThomas Cedeno <thomascedeno@google.com>
      Signed-off-by: default avatarMicah Morton <mortonm@chromium.org>
      39030e13
    • Linus Torvalds's avatar
      Merge tag 'for-5.8-part2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 9d645db8
      Linus Torvalds authored
      Pull btrfs updates from David Sterba:
       "This reverts the direct io port to iomap infrastructure of btrfs
        merged in the first pull request. We found problems in invalidate page
        that don't seem to be fixable as regressions or without changing iomap
        code that would not affect other filesystems.
      
        There are four reverts in total, but three of them are followup
        cleanups needed to revert a43a67a2 cleanly. The result is the
        buffer head based implementation of direct io.
      
        Reverts are not great, but under current circumstances I don't see
        better options"
      
      * tag 'for-5.8-part2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        Revert "btrfs: switch to iomap_dio_rw() for dio"
        Revert "fs: remove dio_end_io()"
        Revert "btrfs: remove BTRFS_INODE_READDIO_NEED_LOCK"
        Revert "btrfs: split btrfs_direct_IO to read and write part"
      9d645db8
  6. 13 Jun, 2020 15 commits
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 96144c58
      Linus Torvalds authored
      Pull networking fixes from David Miller:
      
       1) Fix cfg80211 deadlock, from Johannes Berg.
      
       2) RXRPC fails to send norigications, from David Howells.
      
       3) MPTCP RM_ADDR parsing has an off by one pointer error, fix from
          Geliang Tang.
      
       4) Fix crash when using MSG_PEEK with sockmap, from Anny Hu.
      
       5) The ucc_geth driver needs __netdev_watchdog_up exported, from
          Valentin Longchamp.
      
       6) Fix hashtable memory leak in dccp, from Wang Hai.
      
       7) Fix how nexthops are marked as FDB nexthops, from David Ahern.
      
       8) Fix mptcp races between shutdown and recvmsg, from Paolo Abeni.
      
       9) Fix crashes in tipc_disc_rcv(), from Tuong Lien.
      
      10) Fix link speed reporting in iavf driver, from Brett Creeley.
      
      11) When a channel is used for XSK and then reused again later for XSK,
          we forget to clear out the relevant data structures in mlx5 which
          causes all kinds of problems. Fix from Maxim Mikityanskiy.
      
      12) Fix memory leak in genetlink, from Cong Wang.
      
      13) Disallow sockmap attachments to UDP sockets, it simply won't work.
          From Lorenz Bauer.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (83 commits)
        net: ethernet: ti: ale: fix allmulti for nu type ale
        net: ethernet: ti: am65-cpsw-nuss: fix ale parameters init
        net: atm: Remove the error message according to the atomic context
        bpf: Undo internal BPF_PROBE_MEM in BPF insns dump
        libbpf: Support pre-initializing .bss global variables
        tools/bpftool: Fix skeleton codegen
        bpf: Fix memlock accounting for sock_hash
        bpf: sockmap: Don't attach programs to UDP sockets
        bpf: tcp: Recv() should return 0 when the peer socket is closed
        ibmvnic: Flush existing work items before device removal
        genetlink: clean up family attributes allocations
        net: ipa: header pad field only valid for AP->modem endpoint
        net: ipa: program upper nibbles of sequencer type
        net: ipa: fix modem LAN RX endpoint id
        net: ipa: program metadata mask differently
        ionic: add pcie_print_link_status
        rxrpc: Fix race between incoming ACK parser and retransmitter
        net/mlx5: E-Switch, Fix some error pointer dereferences
        net/mlx5: Don't fail driver on failure to create debugfs
        net/mlx5e: CT: Fix ipv6 nat header rewrite actions
        ...
      96144c58
    • David Sterba's avatar
      Revert "btrfs: switch to iomap_dio_rw() for dio" · 55e20bd1
      David Sterba authored
      This reverts commit a43a67a2.
      
      This patch reverts the main part of switching direct io implementation
      to iomap infrastructure. There's a problem in invalidate page that
      couldn't be solved as regression in this development cycle.
      
      The problem occurs when buffered and direct io are mixed, and the ranges
      overlap. Although this is not recommended, filesystems implement
      measures or fallbacks to make it somehow work. In this case, fallback to
      buffered IO would be an option for btrfs (this already happens when
      direct io is done on compressed data), but the change would be needed in
      the iomap code, bringing new semantics to other filesystems.
      
      Another problem arises when again the buffered and direct ios are mixed,
      invalidation fails, then -EIO is set on the mapping and fsync will fail,
      though there's no real error.
      
      There have been discussions how to fix that, but revert seems to be the
      least intrusive option.
      
      Link: https://lore.kernel.org/linux-btrfs/20200528192103.xm45qoxqmkw7i5yl@fiona/Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
      55e20bd1
    • Grygorii Strashko's avatar
      net: ethernet: ti: ale: fix allmulti for nu type ale · bc139119
      Grygorii Strashko authored
      On AM65xx MCU CPSW2G NUSS and 66AK2E/L NUSS allmulti setting does not allow
      unregistered mcast packets to pass.
      
      This happens, because ALE VLAN entries on these SoCs do not contain port
      masks for reg/unreg mcast packets, but instead store indexes of
      ALE_VLAN_MASK_MUXx_REG registers which intended for store port masks for
      reg/unreg mcast packets.
      This path was missed by commit 9d1f6447 ("net: ethernet: ti: ale: fix
      seeing unreg mcast packets with promisc and allmulti disabled").
      
      Hence, fix it by taking into account ALE type in cpsw_ale_set_allmulti().
      
      Fixes: 9d1f6447 ("net: ethernet: ti: ale: fix seeing unreg mcast packets with promisc and allmulti disabled")
      Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bc139119
    • Grygorii Strashko's avatar
      net: ethernet: ti: am65-cpsw-nuss: fix ale parameters init · 2074f9ea
      Grygorii Strashko authored
      The ALE parameters structure is created on stack, so it has to be reset
      before passing to cpsw_ale_create() to avoid garbage values.
      
      Fixes: 93a76530 ("net: ethernet: ti: introduce am65x/j721e gigabit eth subsystem driver")
      Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      2074f9ea
    • David S. Miller's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf · fa7566a0
      David S. Miller authored
      Alexei Starovoitov says:
      
      ====================
      pull-request: bpf 2020-06-12
      
      The following pull-request contains BPF updates for your *net* tree.
      
      We've added 26 non-merge commits during the last 10 day(s) which contain
      a total of 27 files changed, 348 insertions(+), 93 deletions(-).
      
      The main changes are:
      
      1) sock_hash accounting fix, from Andrey.
      
      2) libbpf fix and probe_mem sanitizing, from Andrii.
      
      3) sock_hash fixes, from Jakub.
      
      4) devmap_val fix, from Jesper.
      
      5) load_bytes_relative fix, from YiFei.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fa7566a0
    • Liao Pingfang's avatar
      net: atm: Remove the error message according to the atomic context · bf97bac9
      Liao Pingfang authored
      Looking into the context (atomic!) and the error message should be dropped.
      Signed-off-by: default avatarLiao Pingfang <liao.pingfang@zte.com.cn>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bf97bac9
    • Linus Torvalds's avatar
      Merge tag '5.8-rc-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6 · f82e7b57
      Linus Torvalds authored
      Pull more cifs updates from Steve French:
       "12 cifs/smb3 fixes, 2 for stable.
      
         - add support for idsfromsid on create and chgrp/chown allowing
           ability to save owner information more naturally for some workloads
      
         - improve query info (getattr) when SMB3.1.1 posix extensions are
           negotiated by using new query info level"
      
      * tag '5.8-rc-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6:
        smb3: Add debug message for new file creation with idsfromsid mount option
        cifs: fix chown and chgrp when idsfromsid mount option enabled
        smb3: allow uid and gid owners to be set on create with idsfromsid mount option
        smb311: Add tracepoints for new compound posix query info
        smb311: add support for using info level for posix extensions query
        smb311: Add support for lookup with posix extensions query info
        smb311: Add support for SMB311 query info (non-compounded)
        SMB311: Add support for query info using posix extensions (level 100)
        smb3: add indatalen that can be a non-zero value to calculation of credit charge in smb2 ioctl
        smb3: fix typo in mount options displayed in /proc/mounts
        cifs: Add get_security_type_str function to return sec type.
        smb3: extend fscache mount volume coherency check
      f82e7b57
    • Linus Torvalds's avatar
      binderfs: add gitignore for generated sample program · 4f9b3a37
      Linus Torvalds authored
      Let's keep "git status" happy and quiet.
      
      Fixes: 9762dc14 ("samples: add binderfs sample program
      Fixes: fca5e949 ("samples: binderfs: really compile this sample and fix build issues")
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4f9b3a37
    • Linus Torvalds's avatar
      doc: don't use deprecated "---help---" markers in target docs · 3e1ad405
      Linus Torvalds authored
      I'm not convinced the script makes useful automaed help lines anyway,
      but since we're trying to deprecate the use of "---help---" in Kconfig
      files, let's fix the doc example code too.
      
      See commit a7f7f624 ("treewide: replace '---help---' in Kconfig
      files with 'help'")
      
      Cc: Masahiro Yamada <masahiroy@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      3e1ad405
    • Linus Torvalds's avatar
      Merge tag 'kbuild-v5.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild · 6adc19fd
      Linus Torvalds authored
      Pull more Kbuild updates from Masahiro Yamada:
      
       - fix build rules in binderfs sample
      
       - fix build errors when Kbuild recurses to the top Makefile
      
       - covert '---help---' in Kconfig to 'help'
      
      * tag 'kbuild-v5.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        treewide: replace '---help---' in Kconfig files with 'help'
        kbuild: fix broken builds because of GZIP,BZIP2,LZOP variables
        samples: binderfs: really compile this sample and fix build issues
      6adc19fd
    • Linus Torvalds's avatar
      Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 3df83e16
      Linus Torvalds authored
      Pull more SCSI updates from James Bottomley:
       "This is the set of changes collected since just before the merge
        window opened. It's mostly minor fixes in drivers.
      
        The one non-driver set is the three optical disk (sr) changes where
        two are error path fixes and one is a helper conversion.
      
        The big driver change is the hpsa compat_alloc_userspace rework by Al
        so he can kill the remaining user. This has been tested and acked by
        the maintainer"
      
      * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (21 commits)
        scsi: acornscsi: Fix an error handling path in acornscsi_probe()
        scsi: storvsc: Remove memset before memory freeing in storvsc_suspend()
        scsi: cxlflash: Remove an unnecessary NULL check
        scsi: ibmvscsi: Don't send host info in adapter info MAD after LPM
        scsi: sr: Fix sr_probe() missing deallocate of device minor
        scsi: sr: Fix sr_probe() missing mutex_destroy
        scsi: st: Convert convert get_user_pages() --> pin_user_pages()
        scsi: target: Rename target_setup_cmd_from_cdb() to target_cmd_parse_cdb()
        scsi: target: Fix NULL pointer dereference
        scsi: target: Initialize LUN in transport_init_se_cmd()
        scsi: target: Factor out a new helper, target_cmd_init_cdb()
        scsi: hpsa: hpsa_ioctl(): Tidy up a bit
        scsi: hpsa: Get rid of compat_alloc_user_space()
        scsi: hpsa: Don't bother with vmalloc for BIG_IOCTL_Command_struct
        scsi: hpsa: Lift {BIG_,}IOCTL_Command_struct copy{in,out} into hpsa_ioctl()
        scsi: ufs: Remove redundant urgent_bkop_lvl initialization
        scsi: ufs: Don't update urgent bkops level when toggling auto bkops
        scsi: qedf: Remove redundant initialization of variable rc
        scsi: mpt3sas: Fix memset() in non-RDPQ mode
        scsi: iscsi: Fix reference count leak in iscsi_boot_create_kobj
        ...
      3df83e16
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 91fa5884
      Linus Torvalds authored
      Pull i2c updates from Wolfram Sang:
       "I2C has quite some patches for you this time. I hope it is the move to
        per-driver-maintainers which is now showing results. We will see.
      
        The big news is two new drivers (Nuvoton NPCM and Qualcomm CCI),
        larger refactoring of the Designware, Tegra, and PXA drivers, the
        Cadence driver supports being a slave now, and there is support to
        instanciate SPD eeproms for well-known cases (which will be
        user-visible because the i801 driver supports it), and some
        devm_platform_ioremap_resource() conversions which blow up the
        diffstat.
      
        Note that I applied the Nuvoton driver quite late, so some minor fixup
        patches arrived during the merge window. I chose to apply them right
        away because they were trivial"
      
      * 'i2c/for-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (109 commits)
        i2c: Drop stray comma in MODULE_AUTHOR statements
        i2c: npcm7xx: npcm_i2caddr[] can be static
        MAINTAINERS: npcm7xx: Add maintainer for Nuvoton NPCM BMC
        i2c: npcm7xx: Fix a couple of error codes in probe
        i2c: icy: Fix build with CONFIG_AMIGA_PCMCIA=n
        i2c: npcm7xx: Remove unnecessary parentheses
        i2c: npcm7xx: Add support for slave mode for Nuvoton
        i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver
        dt-bindings: i2c: npcm7xx: add NPCM I2C controller
        i2c: pxa: don't error out if there's no pinctrl
        i2c: add 'single-master' property to generic bindings
        i2c: designware: Add Baikal-T1 System I2C support
        i2c: designware: Move reg-space remapping into a dedicated function
        i2c: designware: Retrieve quirk flags as early as possible
        i2c: designware: Convert driver to using regmap API
        i2c: designware: Discard Cherry Trail model flag
        i2c: designware: Add Baytrail sem config DW I2C platform dependency
        i2c: designware: slave: Set DW I2C core module dependency
        i2c: designware: Use `-y` to build multi-object modules
        dt-bindings: i2c: dw: Add Baikal-T1 SoC I2C controller
        ...
      91fa5884
    • Linus Torvalds's avatar
      Merge tag 'media/v5.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · ac911b31
      Linus Torvalds authored
      Pull more media updates from Mauro Carvalho Chehab:
      
       - a set of atomisp patches. They remove several abstraction layers, and
         fixes clang and gcc warnings (that were hidden via some macros that
         were disabling 4 or 5 types of warnings there). There are also some
         important fixes and sensor auto-detection on newer BIOSes via ACPI
         _DCM tables.
      
       - some fixes
      
      * tag 'media/v5.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (95 commits)
        media: rkvdec: Fix H264 scaling list order
        media: v4l2-ctrls: Unset correct HEVC loop filter flag
        media: videobuf2-dma-contig: fix bad kfree in vb2_dma_contig_clear_max_seg_size
        media: v4l2-subdev.rst: correct information about v4l2 events
        media: s5p-mfc: Properly handle dma_parms for the allocated devices
        media: medium: cec: Make MEDIA_CEC_SUPPORT default to n if !MEDIA_SUPPORT
        media: cedrus: Implement runtime PM
        media: cedrus: Program output format during each run
        media: atomisp: improve ACPI/DMI detection logs
        media: Revert "media: atomisp: add Asus Transform T101HA ACPI vars"
        media: Revert "media: atomisp: Add some ACPI detection info"
        media: atomisp: improve sensor detection code to use _DSM table
        media: atomisp: get rid of an iomem abstraction layer
        media: atomisp: get rid of a string_support.h abstraction layer
        media: atomisp: use strscpy() instead of less secure variants
        media: atomisp: set DFS to MAX if sensor doesn't report fps
        media: atomisp: use different dfs failed messages
        media: atomisp: change the detection of ISP2401 at runtime
        media: atomisp: use macros from intel-family.h
        media: atomisp: don't set hpll_freq twice with different values
        ...
      ac911b31
    • Linus Torvalds's avatar
      Merge tag 'libnvdimm-for-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm · d74b15db
      Linus Torvalds authored
      Pull libnvdimm updates from Dan Williams:
       "Small collection of cleanups to rework usage of ->queuedata and the
        GUID api"
      
      * tag 'libnvdimm-for-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
        nvdimm/pmem: stop using ->queuedata
        nvdimm/btt: stop using ->queuedata
        nvdimm/blk: stop using ->queuedata
        libnvdimm: Replace guid_copy() with import_guid() where it makes sense
      d74b15db
    • Linus Torvalds's avatar
      watch_queue: add gitignore for generated sample program · 298ce0fd
      Linus Torvalds authored
      Let's keep "git status" happy and quiet.
      
      Fixes: f5b5a164 ("Add sample notification program")
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      298ce0fd