1. 20 11月, 2021 5 次提交
  2. 19 11月, 2021 1 次提交
  3. 18 11月, 2021 2 次提交
  4. 17 11月, 2021 3 次提交
  5. 03 11月, 2021 1 次提交
  6. 02 11月, 2021 1 次提交
  7. 30 10月, 2021 4 次提交
  8. 29 10月, 2021 4 次提交
    • K
      RDMA/bnxt_re: Fix kernel panic when trying to access bnxt_re_stat_descs · 04567caf
      Kamal Heib 提交于
      For some reason when introducing the fixed commit the "active_pds" and
      "active_ahs" descriptors got dropped, which lead to the following panic
      when trying to access the first entry in the descriptors.
      
       bnxt_re: Broadcom NetXtreme-C/E RoCE Driver
       BUG: kernel NULL pointer dereference, address: 0000000000000000
       CPU: 2 PID: 594 Comm: kworker/u32:1 Not tainted 5.15.0-rc6+ #2
       Hardware name: Dell Inc. PowerEdge R430/0CN7X8, BIOS 2.12.1 12/07/2020
       Workqueue: bnxt_re bnxt_re_task [bnxt_re]
       RIP: 0010:strlen+0x0/0x20
       Code: 48 89 f9 74 09 48 83 c1 01 80 39 00 75 f7 31 d2 44 0f b6 04 16 44 88 04 11 48 83 c2 01 45 84 c0 75 ee c3 0f 1f 80 00 00 00 00 <80> 3f 00 74 10 48 89 f8 48 83 c0 01 80 31
       RSP: 0018:ffffb25fc47dfbb0 EFLAGS: 00010246
       RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000008100
       RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
       RBP: 0000000000000000 R08: 00000000fffffff4 R09: 0000000000000000
       R10: ffff8a05c71fc028 R11: 0000000000000000 R12: 0000000000000000
       R13: 0000000000000000 R14: 0000000000000000 R15: ffff8a05c3dee800
       FS:  0000000000000000(0000) GS:ffff8a092fc40000(0000) knlGS:0000000000000000
       CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
       CR2: 0000000000000000 CR3: 000000048d3da001 CR4: 00000000001706e0
       Call Trace:
        kernfs_name_hash+0x12/0x80
        kernfs_find_ns+0x35/0xd0
        kernfs_remove_by_name_ns+0x32/0x90
        remove_files+0x2b/0x60
        create_files+0x1d3/0x1f0
        internal_create_group+0x17b/0x1f0
        internal_create_groups.part.0+0x3d/0xa0
        setup_port+0x180/0x3b0 [ib_core]
        ? __cond_resched+0x16/0x40
        ? kmem_cache_alloc_trace+0x278/0x3d0
        ib_setup_port_attrs+0x99/0x240 [ib_core]
        ib_register_device+0xcc/0x160 [ib_core]
        bnxt_re_task+0xba/0x170 [bnxt_re]
        process_one_work+0x1eb/0x390
        worker_thread+0x53/0x3d0
        ? process_one_work+0x390/0x390
        kthread+0x10f/0x130
        ? set_kthread_struct+0x40/0x40
        ret_from_fork+0x22/0x30
      
      Fixes: 13f30b0f ("RDMA/counter: Add a descriptor in struct rdma_hw_stats")
      Link: https://lore.kernel.org/r/20211027205448.127821-1-kamalheib1@gmail.comSigned-off-by: NKamal Heib <kamalheib1@gmail.com>
      Acked-by: NSelvin Xavier <selvin.xavier@broadcom.com>
      Reviewed-by: NLeon Romanovsky <leonro@nvidia.com>
      Reviewed-by: NDevesh Sharma <devesh.s.sharma@oracle.com>
      Signed-off-by: NJason Gunthorpe <jgg@nvidia.com>
      04567caf
    • A
      RDMA/qedr: Fix NULL deref for query_qp on the GSI QP · 4f960393
      Alok Prasad 提交于
      This patch fixes a crash caused by querying the QP via netlink, and
      corrects the state of GSI qp. GSI qp's have a NULL qed_qp.
      
      The call trace is generated by:
       $ rdma res show
      
       BUG: kernel NULL pointer dereference, address: 0000000000000034
       Hardware name: Dell Inc. PowerEdge R720/0M1GCR, BIOS 1.2.6 05/10/2012
       RIP: 0010:qed_rdma_query_qp+0x33/0x1a0 [qed]
       RSP: 0018:ffffba560a08f580 EFLAGS: 00010206
       RAX: 0000000200000000 RBX: ffffba560a08f5b8 RCX: 0000000000000000
       RDX: ffffba560a08f5b8 RSI: 0000000000000000 RDI: ffff9807ee458090
       RBP: ffffba560a08f5a0 R08: 0000000000000000 R09: ffff9807890e7048
       R10: ffffba560a08f658 R11: 0000000000000000 R12: 0000000000000000
       R13: ffff9807ee458090 R14: ffff9807f0afb000 R15: ffffba560a08f7ec
       FS:  00007fbbf8bfe740(0000) GS:ffff980aafa00000(0000) knlGS:0000000000000000
       CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
       CR2: 0000000000000034 CR3: 00000001720ba001 CR4: 00000000000606f0
       Call Trace:
        qedr_query_qp+0x82/0x360 [qedr]
        ib_query_qp+0x34/0x40 [ib_core]
        ? ib_query_qp+0x34/0x40 [ib_core]
        fill_res_qp_entry_query.isra.26+0x47/0x1d0 [ib_core]
        ? __nla_put+0x20/0x30
        ? nla_put+0x33/0x40
        fill_res_qp_entry+0xe3/0x120 [ib_core]
        res_get_common_dumpit+0x3f8/0x5d0 [ib_core]
        ? fill_res_cm_id_entry+0x1f0/0x1f0 [ib_core]
        nldev_res_get_qp_dumpit+0x1a/0x20 [ib_core]
        netlink_dump+0x156/0x2f0
        __netlink_dump_start+0x1ab/0x260
        rdma_nl_rcv+0x1de/0x330 [ib_core]
        ? nldev_res_get_cm_id_dumpit+0x20/0x20 [ib_core]
        netlink_unicast+0x1b8/0x270
        netlink_sendmsg+0x33e/0x470
        sock_sendmsg+0x63/0x70
        __sys_sendto+0x13f/0x180
        ? setup_sgl.isra.12+0x70/0xc0
        __x64_sys_sendto+0x28/0x30
        do_syscall_64+0x3a/0xb0
        entry_SYSCALL_64_after_hwframe+0x44/0xae
      
      Cc: stable@vger.kernel.org
      Fixes: cecbcddf ("qedr: Add support for QP verbs")
      Link: https://lore.kernel.org/r/20211027184329.18454-1-palok@marvell.comSigned-off-by: NAriel Elior <aelior@marvell.com>
      Signed-off-by: NShai Malin <smalin@marvell.com>
      Signed-off-by: NPrabhakar Kushwaha <pkushwaha@marvell.com>
      Signed-off-by: NAlok Prasad <palok@marvell.com>
      Signed-off-by: NJason Gunthorpe <jgg@nvidia.com>
      4f960393
    • Y
      RDMA/hns: Modify the value of MAX_LP_MSG_LEN to meet hardware compatibility · 0e60778e
      Yixing Liu 提交于
      The upper limit of MAX_LP_MSG_LEN on HIP08 is 64K, and the upper limit on
      HIP09 is 16K. Regardless of whether it is HIP08 or HIP09, only 16K will be
      used. In order to ensure compatibility, it is unified to 16K.
      
      Setting MAX_LP_MSG_LEN to 16K will not cause performance loss on HIP08.
      
      Fixes: fbed9d2b ("RDMA/hns: Fix configuration of ack_req_freq in QPC")
      Link: https://lore.kernel.org/r/20211029100537.27299-1-liangwenpeng@huawei.comSigned-off-by: NYixing Liu <liuyixing1@huawei.com>
      Signed-off-by: NWenpeng Liang <liangwenpeng@huawei.com>
      Signed-off-by: NJason Gunthorpe <jgg@nvidia.com>
      0e60778e
    • H
      RDMA/hns: Fix initial arm_st of CQ · 571fb4fb
      Haoyue Xu 提交于
      We set the init CQ status to ARMED before. As a result, an unexpected CEQE
      would be reported. Therefore, the init CQ status should be set to no_armed
      rather than REG_NXT_CEQE.
      
      Fixes: a5073d60 ("RDMA/hns: Add eq support of hip08")
      Link: https://lore.kernel.org/r/20211029095846.26732-1-liangwenpeng@huawei.comSigned-off-by: NHaoyue Xu <xuhaoyue1@hisilicon.com>
      Signed-off-by: NWenpeng Liang <liangwenpeng@huawei.com>
      Signed-off-by: NJason Gunthorpe <jgg@nvidia.com>
      571fb4fb
  9. 28 10月, 2021 2 次提交
  10. 26 10月, 2021 4 次提交
  11. 21 10月, 2021 1 次提交
  12. 20 10月, 2021 4 次提交
  13. 19 10月, 2021 6 次提交
  14. 14 10月, 2021 2 次提交