From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from AS2PR08MB8576.eurprd08.prod.outlook.com (2603:10a6:20b:55f::9) by PAXPR08MB6942.eurprd08.prod.outlook.com with HTTPS; Wed, 16 Sep 2026 14:38:33 +0000 Received: from PA7P264CA0302.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:395::12) by AS2PR08MB8576.eurprd08.prod.outlook.com (2603:10a6:20b:55f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.428.8; Wed, 16 Sep 2026 14:38:30 +0000 Received: from MA3PEPF00000404.eurprd04.prod.outlook.com (2603:10a6:102:395:cafe::40) by PA7P264CA0302.outlook.office365.com (2603:10a6:102:395::12) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.428.11 via Frontend Transport; Wed, 16 Sep 2026 14:38:30 +0000 Authentication-Results: spf=softfail (sender IP is 99.81.216.78) smtp.mailfrom=openvz.org; dkim=pass (signature was verified) header.d=openvz.org;dmarc=pass action=none header.from=openvz.org;compauth=pass reason=100 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning openvz.org discourages use of 99.81.216.78 as permitted sender) Received: from nat.eu.perception-point.io (99.81.216.78) by MA3PEPF00000404.mail.protection.outlook.com (10.167.241.149) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.428.7 via Frontend Transport; Wed, 16 Sep 2026 14:38:29 +0000 X-PERCEPTION-POINT-VERDICT: CLN X-PERCEPTION-POINT-SPF: X-PERCEPTION-POINT-SPAM: PASS X-PERCEPTION-POINT-SENDER-IP: 2a00:1450:4864:31::11 X-PP-Forefront-Antispam-Report: CIP:2a00:1450:4864:31::11;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail-wm2-x11.google.com;PTR:mail-wm2-x11.google.com;CAT:NONE;SFS:(13230040)(704161411799003)(82310400026)(6059299003)(3072899012)(2092899012)(43022699015)(12012899012)(10067099003)(19002099009)(3023799007)(57112099003)(16102099003)(55112099003)(18002099003)(5063699009)(5023799004);DIR:INB; Received: from AS8PR07CU003.outbound.protection.outlook.com (mail-as8pr07cu00302.outbound.protection.outlook.com [40.93.65.50]) by inbound-smtp.eu-west-1.amazonaws.com with SMTP id 93abeenp110iv8t6mban981mb6s280bdsca89eg1; Wed, 16 Sep 2026 14:38:26 +0000 (UTC) X-SES-Spam-Verdict: PASS X-SES-Virus-Verdict: PASS Received-SPF: softfail (spfCheck: transitioning domain of openvz.org does not designate 40.93.65.50 as permitted sender) client-ip=40.93.65.50; envelope-from=den@openvz.org; helo=AS8PR07CU003.outbound.protection.outlook.com; Authentication-Results-Original: amazonses.com; spf=softfail (spfCheck: transitioning domain of openvz.org does not designate 40.93.65.50 as permitted sender) client-ip=40.93.65.50; envelope-from=den@openvz.org; helo=AS8PR07CU003.outbound.protection.outlook.com; dkim=pass header.i=@openvz.org; dmarc=pass header.from=openvz.org; X-SES-RECEIPT: AEFBQUFBQUFBQUFGR1pZb1FhdUJqbGpSd1Zjc0lwVWhTNjZxdWd6eVFqZkVrNGR3L25oNExiVUFGQTBhQS9KM2gxZHkraXhiNzJTZ2VKUVdtRllZUHFFNjFPV1RLSkI3WmNQRlRyRitBRjBDMmpVb3FCYlE3SGUxdmtpWVNGOHlaako3UW5BRkZDTWdtNUh0d25qUy94TkRTUldNaFFIQTR2djhXQVQ3TUtkYWhaMkV2bWNSVVk2dDdVOVJneEs0YnkxOVFibGZXUmNMaDdIMGhUd0tzSDRBeENSd09XaVJBOWNlNmpJY2RHdG9PMG1jOVhaazFVSXFGd0ZGcVc5SkVxM1FCUTdWV05WQkpMN1ZRU0dMRWhaY2ZVU3lrRUZWcUlKVnNhK1czWWZaZ2x1cnRhaktpNFE9PQ== X-SES-DKIM-SIGNATURE: a=rsa-sha256; q=dns/txt; b=D490RgczDkD1KwpMI+Ngrm1lSnewSce3EQWt190WG7wsrMrmxTP6ebwtBC/M8WNZUTkgczE7zCGEm+kwqC2M38WAFMn1ouXoiuY5ETgTJlmbvGE+x4MR+3Pz6P7O516KVtU+GYpjWj8tmJQ7ZyR3oToqsowpa7H5bW+I+rodGCc=; c=relaxed/simple; s=shh3fegwg5fppqsuzphvschd53n6ihuv; d=amazonses.com; t=1789569507; v=1; bh=PB5Yu64ap38ngSOnNM7grHOWh/rxMjtewPcsJx1Bd/0=; h=From:To:Cc:Bcc:Subject:Date:Message-ID:MIME-Version:Content-Type:X-SES-RECEIPT; Received: from DU7P194CA0018.EURP194.PROD.OUTLOOK.COM (2603:10a6:10:553::9) by AM9PR08MB6145.eurprd08.prod.outlook.com (2603:10a6:20b:2dd::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.428.11; Wed, 16 Sep 2026 14:38:21 +0000 Received: from DU2PEPF00028D0E.eurprd03.prod.outlook.com (2603:10a6:10:553:cafe::1a) by DU7P194CA0018.outlook.office365.com (2603:10a6:10:553::9) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.428.11 via Frontend Transport; Wed, 16 Sep 2026 14:38:21 +0000 Authentication-Results-Original: spf=pass (sender IP is 2a00:1450:4864:31::11) smtp.mailfrom=openvz.org; dkim=pass (signature was verified) header.d=openvz.org;dmarc=pass action=none header.from=openvz.org;compauth=pass reason=100 Received-SPF: Pass (protection.outlook.com: domain of openvz.org designates 2a00:1450:4864:31::11 as permitted sender) receiver=protection.outlook.com; client-ip=2a00:1450:4864:31::11; helo=mail-wm2-x11.google.com; pr=C Received: from mail-wm2-x11.google.com (2a00:1450:4864:31::11) by DU2PEPF00028D0E.mail.protection.outlook.com (2603:10a6:18:3::6c6) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.428.7 via Frontend Transport; Wed, 16 Sep 2026 14:38:20 +0000 Received: by mail-wm2-x11.google.com with SMTP id 5b1f17b1804b1-49cd4ba9f68so13070915e9.1 for ; Wed, 16 Sep 2026 07:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=google; t=1789569499; x=1790174299; darn=virtuozzo.com; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=+ipbhrrpeHZpMs8Qn1QkzA45Tda7/Z5xZ1joODkZRHg=; b=HBeJ4v6LTfZnEpq62oYdf2cOOeT4nil9hdvr2IRABpmB8hxeyJae2SGyt+g+3xVJnu Fv9vCiF4RXCDVo0/2Va8aAWrX80UY9ibLsrROYfHGYkZLjqgjk3Rf9LOufHogCade/mF hexk0Po5fXx2c40+Hqp9cmTGvyr9ZfKhNBjhwwLNix25eY6JcX3AbRCIMOWzzDVnu+Y1 wspIdhtOPd5LSUQq7hiLEIc3GovaArZtJXx82XRNCAGoeuygEwqZlXCZE31u1fWhKTOT ncwIBDO8TJ+0/+Ca0/Bj4OI4rfRPrFEDBuc/WHzpyvGW21Qf/zPW/N6Aeeq95ThOWn9t KIHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789569499; x=1790174299; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=+ipbhrrpeHZpMs8Qn1QkzA45Tda7/Z5xZ1joODkZRHg=; b=EriEQeKKPEO/1y492AwDnOjEhW/aHbV+5aOQyX/eRPbmE31CWL3wIJh1xtZlnd89gd RDZ8V/J5MI76WyM7gpNenncgwmESo01QDEyq3o7sGKyamOUWC7FsFwo5CUMeFrlU24yV MAJipc3knsSRwGbzY0dxYElo3WDAurfuTeboZqIMDW0LaaNDM3Uflf8jQVZ8pFh2q2aA Ce4noCVb8PXFc0JY9IpxT/LyZreC8DFLTf4z9BRCKTvCHdwRsWHahb13RNHHbMVZTTet /194VFSDKDTZqusey0HLenqayqDz6S2acMP+phbYu44R/B8Bx9qrdwe97GBx3OQVh3/l KYEQ== X-Gm-Message-State: AFuF++ny0rrLH2ZR4OxNtyVH/NWbFRAcoCyu0hPGQa/CcB8hXNXal8Hp QggD/gsoD29fZ3UhzCQktq6d5no4pnQzUwtPTIIdZvtQQyyT+wkGhHe82SOln2GHTDfuAT+5mwu 14pP3+CY= X-Gm-Gg: AYBFou1yUY0gmcvor/F4lf5b/w2rIiAEyXFGPX29scy7R1O0LE8I1x2pOJ8lDw1Hneh jvWpFikpaQ+dav6E+hEJMXHmsoNUUshVmcAhtL1DkKbgP9bcidzCz1/roiEnxrK1hSzNUDIVh7H ciyHwerojLkad9rLFHxkhz7F//h28i0ooVtOo1clnpiZoK3H8Sr1CKngJkvL3aQ77ZW2B5GQ776 4S4Ey09EImOMdF90MBYAuqWjlboY6Jn42BqOT2a3JF7oUFzvMjyqZ5op7F+3h4NBETnVjGd6CYA IRDSLJbhN3yRUUpW7zeDAR6q6QwH7DlcEduCQ5Sv65hjB4wbluuldZLhg3u5IMIcDrru55GG8Da kDUsIdrJkyTFu+9WahJuhC6/OQS+gQq1bJJu/3JQ63wUVOUivDSSNk5J1nQrMyo/VuYQSyudjYq 4BbW5F4AH2Xb0+qu8ruDgL/LwAzyyI52fEXp2DUnf0G4KXjzFJsqV8ufSGhGkTDYmzWoXq X-Received: by 2002:a05:600c:548f:b0:49c:fc6e:8cbb with SMTP id 5b1f17b1804b1-49ec0543ce6mr36511665e9.31.1789569499375; Wed, 16 Sep 2026 07:38:19 -0700 (PDT) Return-Path: den@openvz.org Received: from athena.sw.ru ([2a06:5b06:b600:300:f56f:c51e:c53f:b1ce]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49e83aeae01sm87991275e9.6.2026.09.16.07.38.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2026 07:38:18 -0700 (PDT) From: "Denis V. Lunev" To: svt-core@virtuozzo.com Cc: andrey.drobyshev@virtuozzo.com, den@openvz.org Subject: [PATCH hci-8.0 0/2] migration/cpr: lock the cpr state #VSTOR-145529 Date: Wed, 16 Sep 2026 16:38:14 +0200 Message-ID: <20260916143816.1712971-1-den@openvz.org> X-Mailer: git-send-email 2.53.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 1 X-EOPTenantAttributedMessage: 0bc7f26d-0264-416e-a6fc-8352af79c58f:1 X-MS-TrafficTypeDiagnostic: DU2PEPF00028D0E:EE_|AM9PR08MB6145:EE_|MA3PEPF00000404:EE_|AS2PR08MB8576:EE_|PAXPR08MB6942:EE_ X-MS-Office365-Filtering-Correlation-Id: 62688970-9ff0-43e7-ab13-08df14002d74 X-MS-Exchange-AtpMessageProperties: SA|SL X-PERCEPTION-POINT-CUSTOM: vzpp X-Microsoft-Antispam-Untrusted: BCL:0;ARA:13230040|704161411799003|82310400026|6059299003|3072899012|2092899012|43022699015|12012899012|10067099003|19002099009|3023799007|57112099003|16102099003|55112099003|18002099003|5063699009|5023799004; X-Microsoft-Antispam-Message-Info-Original: =?us-ascii?Q?kd/zKjrMlb4l1p+fC12yfee+TImd0mWejXoRlFiQlG3J2wUc6WhHjoID1wvH?= =?us-ascii?Q?yW9oKfWLaTAiLyEDTcZQCm39h5Rpb0cIQuPsiR+uPAcfIFlMeblPcZUooPlC?= =?us-ascii?Q?XSxgIJoFdkxZduwGsM6M+53wVd2Bnf8zYxqSxXywt9SOnBSfCtK3rGSDSADp?= =?us-ascii?Q?z+Hu7g7wFq9dXfEGR/crVKr5MPnXKtFzOHYqaJ4YPNYKqMfMrL8HxeaihnGe?= =?us-ascii?Q?eobWaJcqvseSHZFbAGYMNMTM709M4NJvvP8fxqAhRCPVMHptGv9HrSVyGVVg?= =?us-ascii?Q?rOue3gvvpTUlrNv7sdq89/Nv4QFMxQJZAWX4iRdbwSXoBFHSO0zcxh+XcKL2?= =?us-ascii?Q?vOO2bwjrbI7IZejmMgGUcsQLHwbUJiAWTM+79+Qo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Kej9fYbSoz/VeU5Zlo63PLEWQI/xAvWi8sTZokFilvCKCM?= =?us-ascii?Q?fZXVGd07OqWmTEbqoxDjQiN/W42fhioNYjQLIzCB6/48G70WGchJfiomrukL?= =?us-ascii?Q?0VL5DsNs+Uh8lUDhN9jO14IDJesgdbCn+ZTpznf5zPDoA4zGwZy0HeJWoyf0?= =?us-ascii?Q?zDjZHu6DgnVV0nqGJs/qVF/GQBKw20AOOEOevG14QleCzN3vTzs54VAt8J1p?= =?us-ascii?Q?9Y7McQPZfYs5xUzukX6O3ieRjgCejuS+PLRQg0xl297MSVGBg8xh0lMD6agu?= =?us-ascii?Q?P6ngEnKdWvxHpvupKVl+Ftxn9yytolAF8MPzek81ZIofo8LzthBqe7TMyqXU?= =?us-ascii?Q?ZpEzvLO+JU3qhCHORjMVxkQj+fOmKp5KeNGqSX02Y4x2qcuTl04V49GaofHb?= =?us-ascii?Q?ibEAsYLE06GnnSntkUIaC52pO2TNynk0dLtAZcJF+Rxi0L1gmnYNGF5VJwBw?= =?us-ascii?Q?ljPhRPJPNUm1wy8dsDi0B3babmkTjcY8biMxbK29OyohJg3/s4gDtMo6FWeQ?= =?us-ascii?Q?xdsCNNT109c4g06UDneEaxfMgVx+3FzA3QYKHP1xIUJejHOW5Qx1agzUlkM4?= =?us-ascii?Q?Ub3ofCpYc96c8LHcOXpZcnqqW9hv9GHu8IaNbbQSZz4EtnvSaE+XMIhp3v1F?= =?us-ascii?Q?r+/w/dDU8IsvBwtwXu6NIme23lvelZuMvGr8rNUIFSu/ds3ErvrF0S9jW+Hp?= =?us-ascii?Q?zie8vwxNVMacZEA4ikCrIPBMN4B24hkFRqWa8DTB38XrYe/OqtHJ3EHvyajm?= =?us-ascii?Q?zmIIZFPS?= X-Forefront-Antispam-Report-Untrusted: CIP:2a00:1450:4864:31::11;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail-wm2-x11.google.com;PTR:mail-wm2-x11.google.com;CAT:NONE;SFS:(13230040)(704161411799003)(82310400026)(6059299003)(3072899012)(2092899012)(43022699015)(12012899012)(10067099003)(19002099009)(3023799007)(57112099003)(16102099003)(55112099003)(18002099003)(5063699009)(5023799004);DIR:INB; X-Auto-Response-Suppress: DR, OOF, AutoReply X-Exchange-RoutingPolicyChecked: ufQRQJkb9iq+aAIX2xDaOxNo8PIlAfVT/qbQlSlyY/nxChcFUrt/deL2Rj++FecpBplZ1pPl63xi6QGY7aeuyHVAhMEJ57z/EM/jDqSEkVuDflj3ZPDp1peNSgFj/JSFbLgbU8SNgz9FgcW138yZ8wTZocGbfJjHbBOwr6JX0NOu7QY11QaeHQsN+RfT5sv5I8TMwKjsmmtsW7hPW5CJZOnsHu8XsQqKTgdBi15a4h7GL++VMwtY8/yJE0s1y7pKyMgq8irkUdttp/hlXipLrBB8Sb91byCwtuSriiYFnpkB4JVmikP8QsqRzb2iWR4N1WEAGQdpbX6n/qqF1SsgjQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6145 X-MS-Exchange-Organization-ExpirationStartTime: 16 Sep 2026 14:38:30.5075 (UTC) X-MS-Exchange-Organization-ExpirationStartTimeReason: OriginalSubmit X-MS-Exchange-Organization-ExpirationInterval: 1:00:00:00.0000000 X-MS-Exchange-Organization-ExpirationIntervalReason: OriginalSubmit X-MS-Exchange-Organization-Network-Message-Id: 62688970-9ff0-43e7-ab13-08df14002d74 X-MS-Exchange-Organization-MessageDirectionality: Incoming X-MS-Exchange-Transport-CrossTenantHeadersStripped: MA3PEPF00000404.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Exchange-Organization-AuthSource: MA3PEPF00000404.eurprd04.prod.outlook.com X-MS-Exchange-Organization-AuthAs: Anonymous X-MS-Office365-Filtering-Correlation-Id-Prvs: 697b55fa-718f-42d9-6fe0-08df14002746 X-MS-Exchange-Organization-SCL: -1 X-Microsoft-Antispam: BCL:0;ARA:13230040|704161411799003|35042699022|82310400026|6059299003|12012899012|3072899012|43022699015|2092899012|5133699003|19002099009|55112099003|16102099003|57112099003|18003699003|3023799007|5063699009|5023799004|10067099003; X-Forefront-Antispam-Report: CIP:99.81.216.78;CTRY:IE;LANG:en;SCL:-1;SRV:;IPV:CAL;SFV:SKN;H:nat.eu.perception-point.io;PTR:nat2.eu.perception-point.io;CAT:NONE;SFS:(13230040)(704161411799003)(35042699022)(82310400026)(6059299003)(12012899012)(3072899012)(43022699015)(2092899012)(5133699003)(19002099009)(55112099003)(16102099003)(57112099003)(18003699003)(3023799007)(5063699009)(5023799004)(10067099003);DIR:INB; X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2026 14:38:29.8044 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 62688970-9ff0-43e7-ab13-08df14002d74 X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-AuthSource: MA3PEPF00000404.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB8576 X-MS-Exchange-Transport-EndToEndLatency: 00:00:03.3361177 X-MS-Exchange-Processed-By-BccFoldering: 15.21.0451.004 Content-Type: text/plain X-Microsoft-Antispam-Mailbox-Delivery: ucf:0;jmr:0;auth:0;dest:I;ENG:(910005)(944506478)(944626604)(920097)(930201)(20251009189)(140003); X-Microsoft-Antispam-Message-Info: =?iso-8859-1?Q?Rs0nSVa8Bjrm2AsDTthS2T4oTnsCcUHqjpTZzGYHkaIlrZIhE2KODWTf1U?= =?iso-8859-1?Q?MAi2KTOhfI8KD07GZQADxPklmKxGOElWRo9zrPDIM9AC0yO+Ja/kiqrJOq?= =?iso-8859-1?Q?d7xKxxCjFhkxnpQws1NPRl77fWpTbCaOCRltZTkFjygSZU5+2tduKMs7y5?= =?iso-8859-1?Q?7L9IGxvJbpHNnVYaPGsIMUlEg6lSMyNqkDWJevlMH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SR3UbotX5ddh2IkVGIf8gKSFquteGftLk9v+?= =?iso-8859-1?Q?9mEu6x4s+QBr8ujofRDL8l1d5UTbFrsyijlWANQvSccHlPUUYxejprDCYZ?= =?iso-8859-1?Q?I5F2KD9L+5fFwcwBeluVanKymD4zbJ7rlSz3dDVoLNgnMIyivs3kU/ISiX?= =?iso-8859-1?Q?NHNOYNOS4HE8dg7DPzXUIfwjze4jkRJOK6H8pxNHvbespAiVQl31ed3JtF?= =?iso-8859-1?Q?ICWDfydEOMTK8y/EqkOhU2dsexUgCjZ1LI3FUfsNbvlfOcD4UlQPVVUcfj?= =?iso-8859-1?Q?AdG+/tsfWAt2t2tMkWUI1+ojbvzdepuc1uDUd8f0Ufn4+Qvcqc57cIeDGJ?= =?iso-8859-1?Q?YsfaqtxJY28mOWxERbxCRJpBzmFiSYX/TSq0QgRT3i1IU1R6ZxI1uDMxIB?= =?iso-8859-1?Q?MpI/dS7deEkzxWhT+gXIHClFrUOWUiH/ELKxsN/yGEsh5Z599TH9llfDbK?= =?iso-8859-1?Q?rZyD3QsdcuoG/xamG7UkoLKRu7k9vTtnGCwx20/d1jBySbOntFhH3YuiqH?= =?iso-8859-1?Q?bSh33kSievBlx1OOnPt0citdvuqpUGzxQwo6PGZT83ppQ50L/ze1rH21uK?= =?iso-8859-1?Q?mIhbKDIT2mRxNS3zJgRR9yxcgv+HI+NrS9r6aPo=3D?= MIME-Version: 1.0 List-Id: A guest died with SIGSEGV in find_fd() after a routine libvirtd restart. The fd registry in cpr_state has no lock, and since we started saving chardev connection fds it is reached from more than one thread. A socket chardev saves and drops its connection fd in tcp_chr_new_client() and tcp_chr_free_connection(), which run in the chardev's GMainContext. For libvirt's monitor that context belongs to the QMP iothread, while the guest agent channels and the serial pty stay on the main loop. All four are listening sockets, so a libvirtd restart reconnects them at the same moment and two threads run QLIST_INSERT_HEAD and QLIST_REMOVE on the same list. The core on mhw0501 shows the result. cpr_state.fds.lh_first points at a 48 byte chunk whose malloc size field carries NON_MAIN_ARENA, so an iothread allocated it, and it now holds a glib GSourceCallback for the listener watch. The real list is intact and unreachable behind it: vsock0, hostnet0 x2, charchannel1, charchannel0, charserial0 and charmonitor, headed by a freed main arena entry with id 1, which is a guest agent channel connection entry dropped by the main loop. Both mutators are in the wreckage. Taking the BQL in the chardev hooks is not an option. The chardev layer never takes it, monitor_cleanup() stops the QMP iothread while holding it, and the iothread exists precisely so out-of-band commands keep working when the main thread will not release it. The lock belongs to the registry. The commit message is deliberately free of chardev and QLIST specifics so that the same text serves upstream. Nothing upstream reaches this state off the main thread, so upstream gets it as hardening rather than a fix, against a rewritten cpr.c that keeps the fds in a GHashTable. Patch 1 is the part that also goes upstream, so it stops at the fd accessors and the vmstate walks. Patch 2 covers the ramblock list, which upstream does not have. Splitting them keeps patch 1 a straight mirror of the qemu-devel posting, which should make the next rebase onto a newer upstream cheap. The use-after-free read of elem->fd in the cpr_delete_fd() trace, which this series originally carried as well, is already in as b6732b19c34. Tested on dev007 against this base: tests/qemu-iotests migrate-cpr-exec passes all 30 subtests, which covers the chardev serial, chardev server unix and chardev-change hot-swap cases as well as the tap and vhost ones, and tests/qtest/migration-test --full is 86 of 86 with QEMU_TEST_FLAKY_TESTS=1 set, so mode/reboot, mode/transfer, mode/transfer/defer and mode/exec all run. Denis V. Lunev (2): migration/cpr: lock the saved fds #VSTOR-145529 migration/cpr: lock the ramblocks #VSTOR-145529 migration/cpr.c | 86 ++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 71 insertions(+), 15 deletions(-) base-commit: 87f111d087cff956908ccb22daedb596b3734877 -- 2.53.0