From patchwork Wed Jan 4 17:56:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dragos-Marian Panait X-Patchwork-Id: 13089328 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DB1D4C46467 for ; Thu, 5 Jan 2023 00:47:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DD8C110E0ED; Thu, 5 Jan 2023 00:47:02 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by gabe.freedesktop.org (Postfix) with ESMTPS id C467210E06F; Wed, 4 Jan 2023 18:26:13 +0000 (UTC) Received: from pps.filterd (m0250809.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 304FPeLp020752; Wed, 4 Jan 2023 09:56:48 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=PPS06212021; bh=qNtKodlYZ2qO13drn1n3crHjP+yMfgGR0q7i0tIE0bY=; b=Ld2t34OvcJ+SFSelEbIzf6Op+bnUgmDBqacaDfzZwji0t+ra1Z9+TZh7Qx6liOuoPiLZ mix7me76U/sFifKDKqqfjKuEHLjFpoAoeS0flOg+LRvG+Vna3mh+5wC9UsyfKwQEaPJQ H0+J5lC8d9eyWYLIIugUc9+FCLpY1SqEsx2al7MIuqTkWNULdDnuHQ0V0NJmBHdvnD1e w38TSOz16/ze4Vq82yagMctCZ2R8lND9eEWsLWq1pFp8gVaxTwyW68gm9OIZQJdjpNfN 1iqQUIYpr4SOFHBIkpNEA4vsdFqe8gm2WiHQzPYH2juyqYpI4SMFqqYxHCwHWdpozUg3 TA== Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2101.outbound.protection.outlook.com [104.47.55.101]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3mtnfrtfff-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Jan 2023 09:56:48 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MsAx45y/tdePbLNwHx9TLrP/9uhXqYkqUIy4xeMrGMZTcFbbegiflRkiveUsQKwNM1mFPahN8BPjZTvDH1404ggw+o9AaeJ0NwWP95MBdJBWrg6C1UBdSOeUvuTswva2+5ZEqwRDPHMdeQcmL1f/ob2XLtCvmpxin8gBxIXassKuhqxfqwog9kTMlQtb6J8Oqq3mEP869I0LFSbEm1KkGPJLBprb+4KXzuctgyg3pDQraQd4rgiILuaW1RAxPpo7bADAIE4znOcEF52GH7OtscS5z0XlQ/khn/ELAa/LB8xV5tg9p84xO6XtFXiFH/erKWujKZ5SjK1we8diypfjjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qNtKodlYZ2qO13drn1n3crHjP+yMfgGR0q7i0tIE0bY=; b=gHIno9yWjOYsgRz4YhMDwIivR4qbTaQ5u3BcdCM7ntr6PHunIF5wx5yAjaP8tIVEpmKppDo+jqNXj+PeY+0rAw6O91D401hjJEQ/htFhgQncKss8dA7bNJGECiZq6dULPitcDqnDFdJJIWKUhXD+VGV7Vz0b4XgJ2CdGbZbiVGZdO7L2Qc4slP/wUXvAHDz27dUWJGq0MMkOY8HFHKnzxWss+fsWKWQoM2oOKZt77Wsd2B4W3hAitAl/ODCE9OUUeQgVC4RPKGbCo7tMj8SkaaKPQKsJ6szGc8ZVaRmyu8Yb7vqntUfVzxoE2pIT5GJD+2hRbQ6dqk0FAEQLhfHNKg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from PH0PR11MB4952.namprd11.prod.outlook.com (2603:10b6:510:40::15) by BL1PR11MB5462.namprd11.prod.outlook.com (2603:10b6:208:31e::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Wed, 4 Jan 2023 17:56:44 +0000 Received: from PH0PR11MB4952.namprd11.prod.outlook.com ([fe80::52f4:f398:b983:2380]) by PH0PR11MB4952.namprd11.prod.outlook.com ([fe80::52f4:f398:b983:2380%7]) with mapi id 15.20.5944.019; Wed, 4 Jan 2023 17:56:44 +0000 From: Dragos-Marian Panait To: stable@vger.kernel.org Subject: [PATCH 5.10 0/1] drm/amdkfd: Check for null pointer after calling kmemdup Date: Wed, 4 Jan 2023 19:56:32 +0200 Message-Id: <20230104175633.1420151-1-dragos.panait@windriver.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: VE1PR03CA0059.eurprd03.prod.outlook.com (2603:10a6:803:118::48) To PH0PR11MB4952.namprd11.prod.outlook.com (2603:10b6:510:40::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR11MB4952:EE_|BL1PR11MB5462:EE_ X-MS-Office365-Filtering-Correlation-Id: 5361a79f-5074-4ae6-0c6e-08daee7d0a68 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SG6mwZugglmWlZlhQRI9IEHVJmdyporJFKcrXvLW76x66wCyBwOqza50IgkvudCIAPmMVBhFOYfOSuSInYuhWImbJDdtf3VcRizoeeeI+m6q/4e/+gqP0AVGgE7KqID2FleJ+vjlr+1YnCjxAYGL1Mwoe8UtCMfHVSeAa3O7ciXW+qDSAZPYFmKYgeLcwpYGUHB7joUlHspx8AKOY9tx+a6teX/ogqqK0c0mlHpzToUa4+O5jpk5j4iJCXkETJaEax1XL8/RRUCIApMpTDKivKFE1p9RSk0YCahGx0A2ar1BwBnfkqMkW6S8/HR30feANTf1pcRQP//YV2c1yxkXRk5mgAIAc9QLB1wqPL/YLAEcQhPouFrDBAgBI0fhPIY1MGdx1ofF/+C4zYNWFYJMH6xZpqdEu9LfrOGnrLE1/gquRvEM08BWE6tf6JZp/zQ9u6pGhO99ZSIFJnfu8PAvBJchd1Jgup9JQk/NuQEM5Smc1GOhXP4GUeWBGKICKGEgm6wDWEUU2d6P/24Ezpj8IWBLc15UAGQIrq4xW+0JQBDtTTarzDGan78rvP499cESvr5VUkEVj47z5Av6x8ylk5lceEEFjKuAytD5T9TShEDWTKC3VGJq5WVx11M/5r4a8sZCmnJtdU4zi6p4nIxPV+XXnoaexCOysezZRWKvuPy5e8IdLR/CnjTNgXH05Iu7ApfXfsx+deEU7G7a2Ie8D0eAYavl3eVRkfqjCREA5a4= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB4952.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(39850400004)(136003)(366004)(346002)(376002)(396003)(451199015)(8676002)(4326008)(66946007)(66556008)(6506007)(66476007)(478600001)(966005)(6486002)(36756003)(52116002)(86362001)(54906003)(38100700002)(6916009)(316002)(1076003)(2616005)(38350700002)(4744005)(7416002)(41300700001)(5660300002)(6666004)(186003)(8936002)(2906002)(6512007)(26005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-M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cl3MvFgwDJMimnZxE/eRd5yGV1qjjHqi2tkdw+fv+OIQJnGMEqrqlKLw80a3dJDza40apGYrNYIkWoNWCcWpwYTuZDcERLTZpRv2vEEJhZPKds4MQRT6+q9HAxhoKwr6HjbsaLF5JKi66eyun5l7zLQAqourHvpg00VpM+LsWDf3s+Wsl4g8pWlDzGGFdXgHQqLgPDEQyebPU6FHFbhuE/WxFGN75LJ0+6ZtuA2oXEFcBqx9V5nBbAF03zyJ+AnpVFe82VYL8MlnCe6MmiMmLLJA0K9vNvM9pZ2lhNubwbsWm8T6ROlLLzYTM3Ebe2uoMN71RAKuKlqrJpYDYXT/8VNFkiTf5uuOgdIahlB8WT9LOwnL1FurFYmajKmkxL8qWwdQxBG9ocDohK4kyway4hmf7A6/LalKSAxcNYHqI6CWwFsn0jVhJis38DnBl+F5mPo95xmbPDSBNmMHng/2v5yUTE4WfkORkEySkh+wgWRBmuHKDvN0Ot8iwukKDg4vc7iK20NULyrVo+fM8JNGh6/oZFhYrI5GluhnB4phUxrO5P9a36UPLfcXiR21MqGWIm0qQ== X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5361a79f-5074-4ae6-0c6e-08daee7d0a68 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB4952.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2023 17:56:44.2552 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rXom+AxwYjXZM35h9vd1+qfSFeEuSb/UvXSDf5kUQBN+9za687elHxrilzsU5c0YZ7mDqK0HukVxA0harDgUnuH7MbaEWii4pWpae7Lg1mQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB5462 X-Proofpoint-ORIG-GUID: qJ8upN-k10C69ms2tui1v13Wh51tMqlr X-Proofpoint-GUID: qJ8upN-k10C69ms2tui1v13Wh51tMqlr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-04_07,2023-01-04_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxlogscore=643 impostorscore=0 mlxscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 bulkscore=0 priorityscore=1501 adultscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301040150 X-Mailman-Approved-At: Thu, 05 Jan 2023 00:47:01 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: amd-gfx@lists.freedesktop.org, Felix Kuehling , Jiasheng Jiang , Harish Kasiviswanathan , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Kent Russell , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The following commit is needed to fix CVE-2022-3108: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=abfaf0eee97925905e742aa3b0b72e04a918fa9e Jiasheng Jiang (1): drm/amdkfd: Check for null pointer after calling kmemdup drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 3 +++ 1 file changed, 3 insertions(+) base-commit: 0fe4548663f7dc2c3b549ef54ce9bb6d40a235be