From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from PA4PR04CU001.outbound.protection.outlook.com (mail-francecentralazon11023129.outbound.protection.outlook.com [40.107.162.129]) by lore.virtuozzo.com (Postfix) with ESMTPS id 0D9628017D for ; Tue, 6 Oct 2026 16:29:35 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FqeNij6CXkjNqMnqWK/4+ltQt0bzcQn+QmoSYxz5kSULdkYQ1O6/UWBsHHNU8X88Fm2sI/0L7KNJNL0YfEFJa1t3EVuhjPr+0SoYiZ1biv6MA5YGf1pMZqKGqSuD3iFnRRzY6lcmrmlLeCevkG8U1JjxaPO55nBerAPMPYYz0ixDXNIvYpvM5EitKunnLbqlcEov6WdiiyPkDvz1sPzH28yLxY9s3L9Sgj82hJqiP6A++9SOoFuARqdFA66cREmduPtwKVrgNeuCw6LI/5Pp3lzect8kUhHMT4loa4t0MeebyYW8H5BDTo8Nsp85I/A/AMN5ZHDrKBm6dqXL0bKsAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=JkjOkmZVgDz1XkT4LwCt5b7p+cdgMYh9cBZ1uthMedo=; b=BOC2UV6sp8AEwRneIZKY5FfLKRfUqlTeTvD3NgG6pAuYsRMmNdduDal8S4sZinPqBbslC5tqCq6HzhAHc6ZhpOEwTPYiwGm3pxjvwRhJ5tE+iQbA1XA27PivqCwmG3/mjXj9YFXUBPtpQDj6K5zZVhyULG0a+rWUL66C8u0g/yrWbF3iA9BBSSLqmUR4cq4N0X1+a56Bs9RHVQijfUWgvg2Wg6f0+aHaorY0geAQdkH72lsAhTs2UdGau90dXPtENku+gI1mAewr4+DLFjzKuRrvJTwxyy8sDHNkhnbpLgm81anrww4jTwuNyLKfhd9YWQRuJ9wNIAisC++JNpCbSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 69.169.224.2) smtp.rcpttodomain=virtuozzo.com smtp.mailfrom=eu-central-1.amazonses.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=sashiko.virtuozzo.com; dkim=pass (signature was verified) header.d=sashiko.virtuozzo.com; dkim=pass (signature was verified) header.d=amazonses.com; arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.onmicrosoft.com; s=selector2-virtuozzo-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JkjOkmZVgDz1XkT4LwCt5b7p+cdgMYh9cBZ1uthMedo=; b=Weyaipo1uqrk0casPzalmYyA0Uajt9HU2etNRWEQfkAYXh9ni3cOhtwqa/qP+9aidrgSATliMRJTes8kLVty9aA4nsJ23JtVt0E/TqjC+OmhaBTMrg9n2D18zAnBjNaHnxjVi85eo7CaMQ26alviVPd0NLK89fQp3tofaermy2c= Received: from WA0P291CA0007.POLP291.PROD.OUTLOOK.COM (2603:10a6:1d0:1::11) by PAXPR08MB6350.eurprd08.prod.outlook.com (2603:10a6:102:12c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.496.9; Tue, 6 Oct 2026 16:29:31 +0000 Received: from WA1PEPF00009B39.eurprd05.prod.outlook.com (2603:10a6:1d0:1:cafe::4) by WA0P291CA0007.outlook.office365.com (2603:10a6:1d0:1::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.472.20 via Frontend Transport; Tue, 6 Oct 2026 16:29:31 +0000 Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 69.169.224.2) smtp.mailfrom=eu-central-1.amazonses.com; dkim=pass (signature was verified) header.d=sashiko.virtuozzo.com;dkim=pass (signature was verified) header.d=amazonses.com;dmarc=pass action=none header.from=sashiko.virtuozzo.com; Received-SPF: Pass (protection.outlook.com: domain of eu-central-1.amazonses.com designates 69.169.224.2 as permitted sender) receiver=protection.outlook.com; client-ip=69.169.224.2; helo=b224-2.smtp-out.eu-central-1.amazonses.com; pr=C Received: from b224-2.smtp-out.eu-central-1.amazonses.com (69.169.224.2) by WA1PEPF00009B39.mail.protection.outlook.com (10.167.242.38) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.496.14 via Frontend Transport; Tue, 6 Oct 2026 16:29:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=23yjbh4k34hwzfubhuiim7m4inbd3ick; d=sashiko.virtuozzo.com; t=1791304170; h=From:Subject:To:Cc:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date:Message-ID; bh=YNhbjiG+ldr/XHPWH7bmTUO/WBayC+Kry9IyO+uBBPQ=; b=bU1iBg2aQbiXxLXfaKkJlF3S4sm6zMtHSk0iOWjQONeHA/oHU3T8RbJ6ZuxOrShr 9iB8bPJdT17gvkBZW+xFy16dZj/3En7jbUdvyp9jKWnmAYlfK/9i7SHkb4V9zR+ed+8 azE6gyc/NGmcfeZVy/iziyR+9i5jP+3OsYhA6SIYKxYFaQGNtzVuo1EXlRDNWiTVJeg 2+Nmbs6lnlYU412ea1YQtxyn51d6tkZyQJ0HSbM3eJZu+B3bgqqRlqIHQTo3/dnU6wA hlYt+M0FQ0V5XrUTlNbVfanVxARS3F7p9cbsgrBPP3IKqRqMWIV3AQHZIxSKJ/s8NIs cARLrs7GFg== DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=sokbgaaqhfgd6qjht2wmdajpuuanpimv; d=amazonses.com; t=1791304170; h=From:Subject:To:Cc:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date:Message-ID:Feedback-ID; bh=YNhbjiG+ldr/XHPWH7bmTUO/WBayC+Kry9IyO+uBBPQ=; b=BJy9nlHEbP66h3zco5NvdW443eOH3woDeQSXe9S/Tje9v7pZ7TOMuiLwdYvZkBz5 wykPRcmPGwTSeileVn5dgh83YwGHeaLdrOyO8faG7n8K9pZ+5NKlnzQDi8tQy8sYxDg WRWTKKBh9+slHc4o8fl4yCGsW/C5P9FnMHPZ2ySw= From: no-reply@sashiko.virtuozzo.com Subject: Re: [PATCH QEMU HCI-8.0 v8 02/14] usb-host: don't leak config descriptor on claim failure #VSTOR-137800 To: svt-core@virtuozzo.com, Andrey Drobyshev Cc: den@openvz.org, andrey.drobyshev@virtuozzo.com In-Reply-To: <20261006-usb-host_v3-v8-2-72ae4fb8977b@virtuozzo.com> References: <20261006-usb-host_v3-v8-0-72ae4fb8977b@virtuozzo.com> <20261006-usb-host_v3-v8-2-72ae4fb8977b@virtuozzo.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 6 Oct 2026 16:29:30 +0000 Message-ID: <010701a1120c7c01-5cf5b3df-4abd-4f60-abe1-73ef434de655-000000@eu-central-1.amazonses.com> Feedback-ID: ::1.eu-central-1.2wRQJBpg9g1fGRYexx3dUuYGS25Bux+2TEOx72/m6U4=:AmazonSES X-SES-Outgoing: 2026.10.06-69.169.224.2 X-EOPAttributedMessage: 0 X-EOPTenantAttributedMessage: 0bc7f26d-0264-416e-a6fc-8352af79c58f:0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: WA1PEPF00009B39:EE_|PAXPR08MB6350:EE_ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 8806ebec-ab32-400b-7a0d-08df23c6ffc5 X-LD-Processed: 0bc7f26d-0264-416e-a6fc-8352af79c58f,ExtAddr X-MS-Exchange-AtpMessageProperties: SA List-Id: svt-core@virtuozzo.com X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|48200799018|32142699015|9140799003|376014|61400799027|18002099003|16102099003|22082099003|13003099007|55112099003|4143699003|10067099003|5063699009|5113699003|56012099006|4113699003; X-Microsoft-Antispam-Message-Info: Ae9DxYbQQTTiYILrSLBu4OvLUTQd4Cd2uli6dKD+VIpurMT14YIjrr8MU8G3p1DMqEpRLALZd+UXnvh+LhBbQ4UqOisne02vuZgbS/w6lDybWj4Rld0VAvVgR4og8qA5Ku5T9BTCwS/TRrJeOf424Pa0kRZOBsVPgpFhS/r68Pt/0yFKFjN/SLmpfB4xxyURxqy0ElhdwZiJb5VZ6HgBmwqZ64H2cr3TIbYhj1lE15OhuR4LKpbwN/+zkN/6xaKebs31Ig6mJsFJ4D9d/n4mVhdmbtb6iZCItRZn0/YaD8xr3yQ/ZJa0uyg5NtsVRdhDTDuEl/Lr/Rr+gGT3cSTw6mt9LSKxLETBrXygBJQF44Zf8c5hId+8iOeBcoRT0AKXnFguMP5XSYxh0RXT7STroRLQRlsu/XcbnpIHVnjMzBLzzZISDMcSi1J5uB2ScFyog6FoDhYXs4V1douFuq6np6CWbth8z6IHMm65mmHBbSJCeiBUS8gFTZNU4PHSTkaDK+RRHfWHBG2/vVEY5tF1fNVkMPODTDYh2TQDPlZM7/9K9bbQK2rkc+y/Uetmzryn5Vg4BsC0EHm+RQQZOaeGiaw7ZWaawMLB+T1n+FIcF9yhP3fFkokpQZqNg8BOKhmDXRu4he2fUCpUofPSNq8r+2jydhz++X4s0iY7AEPBEbRClJ/GgjnbPY3G5xbce+lPScsg+KE6gW8yubAmgqTXqY7wRvKQDLdwja2fPD2G2znTj2KeuqpEIF/kySryztpr1VfkrAotEUEYQULtAbMnmUqCBxP0iTRF7IoTQzi7T5FchU+PrBI9Cu+9TdxZqXPmyJIZIPme/IcjUI1fkc+5HQ== X-Forefront-Antispam-Report: CIP:69.169.224.2;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:b224-2.smtp-out.eu-central-1.amazonses.com;PTR:b224-2.smtp-out.eu-central-1.amazonses.com;CAT:NONE;SFS:(13230040)(48200799018)(32142699015)(9140799003)(376014)(61400799027)(18002099003)(16102099003)(22082099003)(13003099007)(55112099003)(4143699003)(10067099003)(5063699009)(5113699003)(56012099006)(4113699003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4OaU8508WdwR9f3KXZ5CIISBtiofw7D2Wzh9BSJCi1Z2cI3WK5xIHsn0ylTsXAgS69CC9EsvbXLBqd5kGMFKJIBngGyEf/YiB8c9Lwt1bfeSNaDlb9Ascp2oUbTWDn6Zeth7aorocSY1YEg41OH11JY9Jtu5b3LnkB3jR33TzE8WIG+at2z8+DbLmppCKnOjkxnzEW8sQda5cdZjFyyZ7Y0cR+W4y8Case68LyyQluhYPPi9otn6Bhdo6En04pG9OpQAXMpKldjOfcGhGqVvKJdpDbzX93rLNaDYfzyqvXWFh9Lo26gY1XVeIK8wqmDum+6UzGAdTbwCoiCpeVLRm0N2yiAuCD9N3l6OzTCed8Z5E2igKi/GUpuUi1PiNy7d75igCUQ3R3FXsi2aJamlx3b9O3O+jtK8NcAuaIPvzTXZsvwo6LjdSybUWqzswmqn X-ExternalRecipientOutboundConnectors: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-Auto-Response-Suppress: DR, OOF, AutoReply X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2026 16:29:31.0158 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8806ebec-ab32-400b-7a0d-08df23c6ffc5 X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-AuthSource: WA1PEPF00009B39.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6350 > usb_host_claim_interfaces() fetches the active config descriptor but > frees it only on the success path. When not every interface can be > claimed it returns USB_RET_STALL without freeing it, leaking the > descriptor. >=20 > Free it before the error return. >=20 > Fixes: 896b6757f9c4 ("usb-host: support devices with sparse/non-sequentia= l USB interfaces") > Signed-off-by: Andrey Drobyshev Sashiko has reviewed this patch and found no issues. It looks great! --=20 Sashiko AI review =C2=B7 https://sashiko.vzint.dev/#/patchset/20261006-usb-= host_v3-v8-0-72ae4fb8977b@virtuozzo.com?part=3D2