Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp212488iob; Mon, 2 May 2022 17:22:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvDpym8VYzaZjxgx0570dEr+AwYau2dJMkx98feUJZL093Z4xrq9cNziz19ss0F+AttPXg X-Received: by 2002:a63:6984:0:b0:398:8db9:7570 with SMTP id e126-20020a636984000000b003988db97570mr11607659pgc.373.1651537349930; Mon, 02 May 2022 17:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651537349; cv=none; d=google.com; s=arc-20160816; b=DaYknrO27a78QlyHJvQ6RfH1eKS7VDCzTIk7eJC7b6fJtfssVb/fIXv8f+vERbSBhn kj7uH0xvc/6V7SZCtyc35vD6/uujLB/6s9PDRq5GKefWMqVpfpOocRO9ablO6OLBxqCT l7e1LUprgSUuTKyxgGOdOLvaotFER+4r5BxHSQd988m9PRbBUBnJ1aBSkErdIvHJMkwG pr56bYFDepziX9ad0Ix3ZQzEuBTkJqwVMsd/5stOIfDPRUhs0otRXk2ZwtU41b9tcLoV Ie2Xqmg12eBkij3UddFZjIrC/dTpwh5J/SA7exodjH557tJsTID6Vxfntv8tZXS9PAqo E3mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=hn6D/1mqsOpZCb0UXXalBcsMMDA5nsOG2XFxL4M3FKo=; b=Sd/FT0vn5VFhvDpkfCOcpcW7Czx4S3mJf/GD57lXmutLMlSFWPZbzoWP3k8neCQJXw 4pgvVq4dkWEIgiiQrBj3v9lJLoDVisIIOchxWf3QE9zFAF2+KtambNXkZ+fH8PwlpIPW Oc0omNYRWZ/J5aMIBrBvKkjyP0aNCsZ22G5XGbCxwwranZ+UnRnrV4WhEC/N5yl6cWjZ 62iqIbduaHy/IbmPHCvLXPH9Q+6BdOkbFr3ZXiPXDQeSZy6hc6aoYs9sY5JpLmzAFBB5 rangswWcC8jCKnaX96aiahMznzuQzW8cgFJ0oB9wIDSFr5PXgw3QP5P/U4mamseh2oHt PX5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=OxSrCcWo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k9-20020a170902ba8900b00153b2d16631si4246024pls.569.2022.05.02.17.22.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:22:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=OxSrCcWo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 91DBB3BBF5; Mon, 2 May 2022 17:18:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385460AbiEBOD0 (ORCPT + 99 others); Mon, 2 May 2022 10:03:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385457AbiEBODT (ORCPT ); Mon, 2 May 2022 10:03:19 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0433D13E07 for ; Mon, 2 May 2022 06:59:50 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id i62so11762452pgd.6 for ; Mon, 02 May 2022 06:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=hn6D/1mqsOpZCb0UXXalBcsMMDA5nsOG2XFxL4M3FKo=; b=OxSrCcWoV2/rXEc6h151zY/qeO1X7dtWA9CugimCewGit5D5A4IuMRCiGXyidVeV6l 3812vCWntOXN1sP5c48z5i5HoWOkTRvGONajtLg53LYaCjT/qd1vnBvrx8veSBXEYLnr 2wKLCEC1o9H++kbF8zEQp9qq9W337Wpsy44u7wWH1qRSzv6jNTM0NitUxFJevAdqy0c0 MyPslOJpkoFTmDeiARvhzcL9L/JvniGGm+wX3+8jWiz96rzO6ieki7yDV0KkqI7CATSK ulSDjmKVrsSRhiF/jQeGkcRJg/KYcNPYxOeUTg/DkeMEhRlH//OLk8qE5Nyjmy0WD8ro ngqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=hn6D/1mqsOpZCb0UXXalBcsMMDA5nsOG2XFxL4M3FKo=; b=TjMottPGwWckaeVixtsM/XFkRMn/Y5iRxWMJtKn7J9zP82yW22hLEECmir+bHak8Bp J30Y6gx7KG+6HoOKlC0dArk2eKOQBDzSb/Qr9SnyTf+VDWtP7tFoVq8VzRnr2MVnD4VY 3Uw2p++nyYfC2TwXbfLQJDospL1jtHgYGCvcJXiYkY6ZnxPMtpJ7K6IgP75w1DR+ESdE wO4sg/j4T04cGQL00r3x2EuHRmpmKFakXQM4nZtLWdobY0k+JgsaKGNO1Pqhr/Hm76Bx 0ZAViiNo3ROdIiiPIkRSVF4SjNfWHAU7m5pewjLJguRqdl/ybQsmy3qx13jeMRXx/DZ6 rv4Q== X-Gm-Message-State: AOAM532ghyyR6NppAF3nPX8QWX+W4MScfqOfO/3D/7bCnld/ecK6/G9O xkmqmCQQzrJ/cUYrm2bwgJnkEg== X-Received: by 2002:a63:4a09:0:b0:382:597:3d0d with SMTP id x9-20020a634a09000000b0038205973d0dmr10027753pga.18.1651499989469; Mon, 02 May 2022 06:59:49 -0700 (PDT) Received: from [192.168.4.166] (cpe-72-132-29-68.dc.res.rr.com. [72.132.29.68]) by smtp.gmail.com with ESMTPSA id u4-20020aa78484000000b0050dc762813dsm2176532pfn.23.2022.05.02.06.59.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 May 2022 06:59:49 -0700 (PDT) Message-ID: Date: Mon, 2 May 2022 07:59:47 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [REGRESSION] lxc-stop hang on 5.17.x kernels Content-Language: en-US To: Daniel Harding , Pavel Begunkov Cc: regressions@lists.linux.dev, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org References: <7925e262-e0d4-6791-e43b-d37e9d693414@living180.net> <6ad38ecc-b2a9-f0e9-f7c7-f312a2763f97@kernel.dk> From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 5/2/22 7:36 AM, Daniel Harding wrote: > On 5/2/22 16:26, Jens Axboe wrote: >> On 5/2/22 7:17 AM, Daniel Harding wrote: >>> I use lxc-4.0.12 on Gentoo, built with io-uring support >>> (--enable-liburing), targeting liburing-2.1. My kernel config is a >>> very lightly modified version of Fedora's generic kernel config. After >>> moving from the 5.16.x series to the 5.17.x kernel series, I started >>> noticed frequent hangs in lxc-stop. It doesn't happen 100% of the >>> time, but definitely more than 50% of the time. Bisecting narrowed >>> down the issue to commit aa43477b040251f451db0d844073ac00a8ab66ee: >>> io_uring: poll rework. Testing indicates the problem is still present >>> in 5.18-rc5. Unfortunately I do not have the expertise with the >>> codebases of either lxc or io-uring to try to debug the problem >>> further on my own, but I can easily apply patches to any of the >>> involved components (lxc, liburing, kernel) and rebuild for testing or >>> validation. I am also happy to provide any further information that >>> would be helpful with reproducing or debugging the problem. >> Do you have a recipe to reproduce the hang? That would make it >> significantly easier to figure out. > > I can reproduce it with just the following: > > sudo lxc-create --n lxc-test --template download --bdev dir --dir /var/lib/lxc/lxc-test/rootfs -- -d ubuntu -r bionic -a amd64 > sudo lxc-start -n lxc-test > sudo lxc-stop -n lxc-test > > The lxc-stop command never exits and the container continues running. > If that isn't sufficient to reproduce, please let me know. Thanks, that's useful! I'm at a conference this week and hence have limited amount of time to debug, hopefully Pavel has time to take a look at this. -- Jens Axboe