From patchwork Fri Jul 21 15:05:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Gusev X-Patchwork-Id: 13322119 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98377C001E0 for ; Fri, 21 Jul 2023 15:13:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231680AbjGUPNy (ORCPT ); Fri, 21 Jul 2023 11:13:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231693AbjGUPNv (ORCPT ); Fri, 21 Jul 2023 11:13:51 -0400 Received: from mail.ispras.ru (mail.ispras.ru [83.149.199.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE5A530E3; Fri, 21 Jul 2023 08:13:43 -0700 (PDT) Received: from tp-owlcat.intra.ispras.ru (unknown [10.10.165.6]) by mail.ispras.ru (Postfix) with ESMTPSA id 48BD440B27AC; Fri, 21 Jul 2023 15:05:56 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.ispras.ru 48BD440B27AC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ispras.ru; s=default; t=1689951956; bh=XTwyWVZFfamFmp6s8GAMDD3q7CDQ92gXY7bdsxBiQgM=; h=From:To:Cc:Subject:Date:From; b=PLyJJ0OYyZKy8MvMZvxtAZQIuGtOWU6a3m58PwuMkGqtDcQtYLfrI34fNN4pqgP4X WqQdOKEBzerD3zpShixEKvc0xcFqmga7zPBogZy94XzlgHDoAJcvuKxhlj3ivoryvx dWHNOzmCmsYq54vPJ0wkJjqEgWf79FciN8oQ++y4= From: Anton Gusev To: stable@vger.kernel.org, Greg Kroah-Hartman Cc: Anton Gusev , Doug Ledford , Jason Gunthorpe , Leon Romanovsky , Sasha Levin , Mark Zhang , =?utf-8?q?H=C3=A5kon_Bugge?= , Michael Guralnik , Roland Dreier , Sean Hefty , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org Subject: [PATCH 5.10 0/1] RDMA/cma: Ensure rdma_addr_cancel() happens before issuing more requests Date: Fri, 21 Jul 2023 18:05:32 +0300 Message-ID: <20230721150535.191318-1-aagusev@ispras.ru> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Syzkaller reports use-after-free at addr_handler in 5.10 stable releases. The problem was fixed in upstream and backported into 5.14, but wasn't applied to 5.10 and lower versions due to a small merge conflict. This patch is a modified version that can be cleanly applied to 5.10 and 5.4 stable branches. Found by Linux Verification Center (linuxtesting.org) with Syzkaller.