Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp983044rwb; Fri, 28 Jul 2023 03:00:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlEfv1Q4RhRnqVirE/8IS/rSCNPEKjttDF+S3YoEFoqQVMa2rvqaE35YU2KajPDFOEvZaww6 X-Received: by 2002:a17:903:124c:b0:1bb:7927:c1ab with SMTP id u12-20020a170903124c00b001bb7927c1abmr942704plh.48.1690538440537; Fri, 28 Jul 2023 03:00:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690538440; cv=pass; d=google.com; s=arc-20160816; b=QZCycZGksf4YQ6f3NtwzttXSMVKNh/ha00hS25ys/gqEDizKONtE10Y2IIQbXfiJXr U775Xpf0Hl1iy9kLqHSUPBGviMF/XZ6fuey+qEJ5pVbGcmpMFiCqSBBFtw2BR5FqGhuP g/QyFBAo1Dv4CFnv+4AquiyabAmvai4kRyS2AWA/Gc93LyL1TGtmA3Sq/KFmmgnoZCX1 LAGA9MzICCVdWB5IYX86UaAVfG+1AnrJcujHGBTdbS7Urll7bOJjorqNqb5bF3f601ay yXJ/FuHL1aQ9K7qXv7DtlU5jHCWXhLUeqYgqQmTtmLAZAbk5DjTy2Vg1mWtiSEyGex/j cZeg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=kUtRkU2qSJu3pyoknVwthFs/x9px43gzIplaqesgUWE=; fh=mXY7GR45epom0/cVdYAesWF0fNJGHz4k7r6QUb60MZM=; b=bcQFEaOiDCqwS9T8wk0JVQfzn2384kJXRNNvaaU7omlX1MUipwc3FaCUDHtAa1QuC5 eUQP14NpQ2kYdpqkKmod2Lp4Sw7d1KE7TCbbZJpZxbrdAholxdQVW6lO+ROEQTK3wJVo Ovcv3F9kTbPPp4x10zJL4vQh0F3R9AoItEN2KkiMlZWoXE4TIrglKjUHdaw44WhGKVR8 K45PJ3dpctcoZKxdY/LcAmRvtp5JgLu09GEVwOohmoZtiQNCz8JGE8COJmDdxStPveWb GwN1qbhwl9+cRfuDbj0ysWnIBCF1q8WV2vxwqjtjqyvhuyBFbXjksXv7K0hcx8W/g14z TheA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=PVAVWr2c; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t18-20020a170902e85200b001b8b37f6b46si2963296plg.556.2023.07.28.03.00.25; Fri, 28 Jul 2023 03:00:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=PVAVWr2c; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234443AbjG1Hsn (ORCPT + 99 others); Fri, 28 Jul 2023 03:48:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234445AbjG1Hsl (ORCPT ); Fri, 28 Jul 2023 03:48:41 -0400 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2063.outbound.protection.outlook.com [40.107.95.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99F3D3585; Fri, 28 Jul 2023 00:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SWAJuP8qDZ1URwz1NAJpR8lp1Z8en/Fhq/f4otsTVxj2wKlcEg2DseGOf3E3KvPjZvnAjdb5o7m3kizzY+CoZ/wgOeHBLSiX/ydc2ziA98HdnMnNGQdjYHgK6lwlm7uhpw+vwI2HjJ9XmqQ2/9GR1BFrcGhiJN2KDVpLhO80Dtmf1MKF5US3z54rIksAEGjbQnZV3wK1F4zyMTf3BZvMgtzKCczBUtdyfyNN44geXUvFeH1hT6jexS/Qqj58Bl3dUMDjFZxOV7ZO9cw/R4U1ZD9Po9C050DRguQTmIJy3XepZ+H7OBHdkNnEq94Akj/h/LKrnl5jH3jjSxJEZtOLtg== 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=kUtRkU2qSJu3pyoknVwthFs/x9px43gzIplaqesgUWE=; b=E9l04td+0PhSRf0xR/KbcWJU1XoWMcDhjhTjJyWtRCtmlcmgagItQSOp6eTTQ1N7Z0WrfAXUYHhBX1fDsGiGt68mEY/mM6FVXgjHOkjck9jePNFSD5gbRhYlr6q2/gYrwR8abev77qWV8XXxMu0Q1NYLNAEMzq5kraY904QxrOXwa0/C4XjJmDPJddJkf5Dqrhr+AFrAgAou4LDPohi4qo6iAtxHrhHCXlOFpyEaTQQ1PRagxp6NTQ0/09vcaSQzZ1wk2uoAYIoOlZWvEDkfiP0+Or7K7KTvXXUgJ+vi63T9fd1m/aEBE0XRu6418u258mdSARulWe+QNBGDdRjm4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kUtRkU2qSJu3pyoknVwthFs/x9px43gzIplaqesgUWE=; b=PVAVWr2crAL7KjMiKafhs1ffMRS7xUYYkghrovcihSx0Brvx8OyUbCa91SdjwpVqIx/OREo2owDByHG3wDPaMWcWq7DceluRBRbSLWeLDoO+G32OI/ZCV6YrMQ5d/nByZa+5YCPUlUPOCeWtJbbRt/RUMcLT1hBVV+G+vYvx8IA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) by SN7PR12MB8169.namprd12.prod.outlook.com (2603:10b6:806:32f::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.29; Fri, 28 Jul 2023 07:48:37 +0000 Received: from BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::3d:c14:667a:1c81]) by BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::3d:c14:667a:1c81%4]) with mapi id 15.20.6631.026; Fri, 28 Jul 2023 07:48:37 +0000 Message-ID: <43bbd12b-4754-92d1-4000-1ba928d2a8d4@amd.com> Date: Fri, 28 Jul 2023 09:48:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 2/3] drm/scheduler: Fix UAF in drm_sched_fence_get_timeline_name Content-Language: en-US To: Asahi Lina , alyssa@rosenzweig.io, Luben Tuikov , David Airlie , Daniel Vetter , Sumit Semwal Cc: Faith Ekstrand , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, asahi@lists.linux.dev References: <9c0cff84-45b1-268f-bdad-38c16316dbc3@amd.com> <20230714-drm-sched-fixes-v1-0-c567249709f7@asahilina.net> <20230714-drm-sched-fixes-v1-2-c567249709f7@asahilina.net> <236422117088ca854a6717114de73d99b2b9ba2f@rosenzweig.io> <7b564e55-a9b7-0585-3cf1-d1f132f9a918@asahilina.net> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: <7b564e55-a9b7-0585-3cf1-d1f132f9a918@asahilina.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: FR3P281CA0066.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4b::17) To BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8PR12MB3587:EE_|SN7PR12MB8169:EE_ X-MS-Office365-Filtering-Correlation-Id: 2b72c003-ce33-4dae-c304-08db8f3f0cdb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AvasP7egU9mH/wCNSwzBUPmTiIfccNEtCtPnt2h+1D9wrk3iWHk9u8+htqzSEcqMfhsnv0PgeKimM7BIEwTtN5b/F1W44L3venjzgnULcbmkajoeLS6krySHWDoa4OhMU10vwW0wgXc7TFRhZcXpfYZ3X9hCPgrXwL5clfwyQ78NoDSsqLz5/3yE+f8U758VhZulVWAeCUpnSW/Hi5y4rDIzSdkVXW6jCnepuV1tf4pFZWytjiH7RhwXSPmOV6nLMgIkArxzo30F8h3sZsarpj8N9NEDH0gu+RJ1RbLVALkZqsKBsHU3jiudp/cX+aa3/MlJbi6OXrKvudfUs99WoRdT5FoCBNYFo3gK2X5sIjZ8H6LKA2Lfx38TxKDs8oow/Jyl8/wfU2oEwDZt6AvNdjvr4q15sf4X1xWaiv0XouhdUHAG1RMn90yF8BemVuvJTqc1S09h/mSUTvKofP5UwmYOMNb1fLHfOP19yq0kTkRYn6B+Vxp2yMBlK/nXzmjW50nloVvRve/cyQJZCUukkZiApPmpdAanVCEbP5Y5pSvdHyOvrG41f8/ldMLjmkwBAMb4R98K5/dnqYfU3K9yjI0FKe8lyMbJybqKUr7EEGM1ve//PEfUSr2gF0Cc4bCR0nPjKLm65+mi3qxrLcz2eA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR12MB3587.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(39860400002)(396003)(346002)(366004)(136003)(451199021)(2906002)(316002)(8936002)(8676002)(7416002)(5660300002)(4744005)(41300700001)(36756003)(86362001)(31696002)(6512007)(6486002)(6666004)(478600001)(6506007)(186003)(110136005)(2616005)(66946007)(31686004)(38100700002)(66556008)(4326008)(66476007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cExDWitDTTN6Q0Rmc2Z2SkUyVU92bTVDSVhLZDVQc3VycVB3VW50cm1zbDlq?= =?utf-8?B?ajJBMFZVUXdtVm8wU1FON1MwRWlpMHpUTFBDNTNGODlDVE4yc21sNmpXTWNB?= =?utf-8?B?bGlrRjNuOC80U0tuV2dUbDhSWWQ0d29jTVJJRnArbStyUjZpeUU1Sk85bGky?= =?utf-8?B?WjlHQzUyWnZ4ay9lNzZZb1BJMDhydGxJSlBlVm1Ka2pMMXRSa2k4Nm1ITVZs?= =?utf-8?B?aUFwZ2tpVEFpNWpZOG1BWmpOSUxPOExpTFhWK0Y2NjkvZEQzZ3lRbXNvRDky?= =?utf-8?B?TUJPaWhGK2l6VG85VXhwT250djNMcDNvbFdYei9QTXQ5OExlZz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=?utf-8?B?NFQwS0hIMEJwV0tCZHVFRkhRUENpS2s3SExFTUkrMk0xWU9hREppalRBR3Fm?= =?utf-8?Q?4qRhexDC1i7ZMBGtqDtLZZ84o/dC32xmpw1EWn2YGJWE?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2b72c003-ce33-4dae-c304-08db8f3f0cdb X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB3587.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jul 2023 07:48:36.7282 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: iEG6lPIx0Kb59e+dn1Jr6z24CZHg6fpPchrFtKLR9/kJjjYba5cjBdoAVUxLeQbd X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB8169 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 18.07.23 um 04:35 schrieb Asahi Lina: > On 18/07/2023 00.55, Christian König wrote: >> [SNIP] > > I give up. You are ignoring everything we say, and rejecting > everything we suggest. We've already explained why drm_sched doesn't > work for us. I'm tired of repeating the same explanation over and over > again only to be ignored and told I'm wrong. I'm not telling you that you are wrong in any way. What I'm pointing out is that your solution won't work upstream and you need to take a step back and think about why this won't work. > > I'll start working on a new, much simpler Rust-native scheduler based > on the workqueue Rust abstractions which are in review. Please note that when you are implementing a dma_fence interface you also need my acknowledgement to get this upstream. Additional to that Dave and Daniel might have objections to this as well. Regards, Christian. > > ~~ Lina >