Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3464700iob; Tue, 17 May 2022 00:02:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzv2dX0QEvAb5U8suB8rUEIaW37BIES1xeuAMZWURcuDf4APHqLmlQBtaextod9Ut4HXQFV X-Received: by 2002:a17:906:4fc4:b0:6da:b4c6:fadb with SMTP id i4-20020a1709064fc400b006dab4c6fadbmr18697422ejw.282.1652770945155; Tue, 17 May 2022 00:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652770945; cv=none; d=google.com; s=arc-20160816; b=pdkhLm1B8aE5koHmi9dlvnvuiDpJHEdD/+bD8fNXWc+6Kovwr9zKKcKyH6RmOb47KF J4C+utX0KzmiF/o58srs1+Npy2t8N6YPjtZzw1stzNR9jomk24tGLMASP/QLqZ3bzWfC MdmQHubtoQfwLa+UmjQkQctlMApNrUkz9GtG/SOUEqyjgv0YJrlfPHFDvaLeQ7WnzxiR xWTkj2ZeljS79kmfz+4aW9+GDaL36gpIzHxYrsaHjWEh7UHZ3KD/gzSDcuU3HzGLjQnQ 0F8lWVxqTP3mbwj8IwAIspGRiafKCQqjp3f3A+G++OsLDq49DtlkXUpqH0QjyYVHemPU Gm3A== 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=yu8jpBcESlRO41WVtwunoeenHnb5B2EXEF8tRgSzHgE=; b=hR5knyrw/kR/IETHJKJx0AF7WlyFpk6tzMmokRaS5uhkwMUB59hZ6ev40jL1rnA/MC 8/z7rxWUyAbn2nkWnAC+gbLQ6kSxaXnO0pztMWufIdFNbcmvsbSbsk6/K864edFhrlzI d+HUUxaZHIRJWge9xEwL4QgJ08csEu3A2NqLKvny97UzSIgm52anLs5K8lmjwmzAgkTk sBvOnd05go3GJYSvZurAaLpk5TDKCUSumsDNpE2Ry665Rn/ECFFjibFupfPCAJSdmXYp hoOfnYf/TDFD2Tm0ekv45Yq+oaL7hJlWnqwcs+YGaz9xc8xsxZ5gP3XJ73B58Qb6KXsc +o7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=tqCZDZ0d; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fd1-20020a1709072a0100b006e7f21f913dsi1621093ejc.233.2022.05.17.00.02.00; Tue, 17 May 2022 00:02:25 -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=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=tqCZDZ0d; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345332AbiEPTO1 (ORCPT + 99 others); Mon, 16 May 2022 15:14:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231625AbiEPTOZ (ORCPT ); Mon, 16 May 2022 15:14:25 -0400 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C14B2B242 for ; Mon, 16 May 2022 12:14:23 -0700 (PDT) Received: by mail-io1-xd33.google.com with SMTP id s23so16984394iog.13 for ; Mon, 16 May 2022 12:14:23 -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=yu8jpBcESlRO41WVtwunoeenHnb5B2EXEF8tRgSzHgE=; b=tqCZDZ0dx3cF6RCC1hPbCmSnLFGA3LUJA9FPT9yl/mq42q/ABuK1f4ejnoMS+6ky5L sZV492OnuqI4ApfBjNxD/my1zZ8AwFpREQ1L/GBEJ32+4I6LJOEjUl2OgZalqTspT+p+ 2mNM7tW92wIo49NXj9jlQ35oPO2uzhro/D/D0tz2/GPSuepEvmI3a9TXF0pwkODrPVxD Z9XoZjpMtFeR0EceB3XQFrrJPstyipKo6XN44acrdN7iQWOBUT6EbQ3duotSqKjd1XR3 sSGEgWF7gL//m1iuVAY1+gkUbrNLBBX8g9luU4HxxMQUlozNuKRnPvzYT56wXGLm7anM QWJw== 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=yu8jpBcESlRO41WVtwunoeenHnb5B2EXEF8tRgSzHgE=; b=MO0ImhgXpFRGGNuyPUZ5QhEmieonjsG50Ax44LQXOQWacDumgAY5wMKnRZ/crke6RC nK3Ag0Eihrc/HZRqyFjh7xJF2lr9k33vfHjkENnhFJPqbSK1Wn31bffQacgt3CsU2Ifv kuZ/OqJl8YK0yETSt/N1uha7b4nQfrjdyB/t8zz/dy4pDnammo9dUAmYRdpj7OuXbE85 efgQ8rL4GmatP/dpTx+ULFIX4qJyOJZsqNo9mGx52J62yFXWkK5yjDgYfLtZAohKr8qe 74svcbGghFcpyOjQ2fCNVK3FJgP9YhiNJ0Rbq82aYInfgrvbDqr81808VyJSbCTb3y2j P9WQ== X-Gm-Message-State: AOAM530UrqZYxi8JxF8Ec1trGzUfz5BKxyFMrKcGXFyNIqmjtuVKLEH5 mH80KWxr6zPvOxVnN6F/1lRbBA== X-Received: by 2002:a02:7a06:0:b0:32b:1b83:649a with SMTP id a6-20020a027a06000000b0032b1b83649amr9861961jac.29.1652728462508; Mon, 16 May 2022 12:14:22 -0700 (PDT) Received: from [192.168.1.172] ([207.135.234.126]) by smtp.gmail.com with ESMTPSA id w24-20020a6b4a18000000b0065a47e16f41sm63007iob.19.2022.05.16.12.14.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 May 2022 12:14:21 -0700 (PDT) Message-ID: <143f0708-e446-9cfe-eba8-8731d52345db@kernel.dk> Date: Mon, 16 May 2022 13:14:20 -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: Thorsten Leemhuis , Daniel Harding , Pavel Begunkov Cc: regressions@lists.linux.dev, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, Christian Brauner References: <7925e262-e0d4-6791-e43b-d37e9d693414@living180.net> <371c01dd-258c-e428-7428-ff390b664752@kernel.dk> <2436d42c-85ca-d060-6508-350c769804f1@gmail.com> <12a57dd9-4423-a13d-559b-2b1dd2fb0ef3@living180.net> <897dc597-fc0a-34ec-84b8-7e1c4901e0fc@leemhuis.info> <41c86189-0d1f-60f0-ca8e-f80b3ccf5130@gmail.com> <3fc08243-f9e0-9cec-4207-883c55ccff78@living180.net> <13028ff4-3565-f09e-818c-19e5f95fa60f@living180.net> <469e5a9b-c7e0-6365-c353-d831ff1c5071@leemhuis.info> <1ce76b24-9185-6b2e-844e-d6a0ce42bb0f@leemhuis.info> <55ddaa3c-57a5-f17e-13a7-7427c5f1bb88@kernel.dk> <735012d3-bbda-54df-11fb-8e7b561c598d@leemhuis.info> From: Jens Axboe In-Reply-To: <735012d3-bbda-54df-11fb-8e7b561c598d@leemhuis.info> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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/16/22 1:07 PM, Thorsten Leemhuis wrote: > > > On 16.05.22 20:39, Jens Axboe wrote: >> On 5/16/22 12:34 PM, Thorsten Leemhuis wrote: >>> On 16.05.22 20:22, Jens Axboe wrote: >>>> On 5/16/22 12:17 PM, Thorsten Leemhuis wrote: >>>>>>> Pavel, I had actually just started a draft email with the same theory >>>>>>> (although you stated it much more clearly than I could have). I'm >>>>>>> working on debugging the LXC side, but I'm pretty sure the issue is >>>>>>> due to LXC using blocking reads and getting stuck exactly as you >>>>>>> describe. If I can confirm this, I'll go ahead and mark this >>>>>>> regression as invalid and file an issue with LXC. Thanks for your help >>>>>>> and patience. >>>>>> >>>>>> Yes, it does appear that was the problem. The attach POC patch against >>>>>> LXC fixes the hang. The kernel is working as intended. >>>>>> >>>>>> #regzbot invalid: userspace programming error >>>>> >>>>> Hmmm, not sure if I like this. So yes, this might be a bug in LXC, but >>>>> afaics it's a bug that was exposed by kernel change in 5.17 (correct me >>>>> if I'm wrong!). The problem thus still qualifies as a kernel regression >>>>> that normally needs to be fixed, as can be seen my some of the quotes >>>>> from Linus in this file: >>>>> https://www.kernel.org/doc/html/latest/process/handling-regressions.html >>>> >>>> Sorry, but that's really BS in this particularly case. This could always >>>> have triggered, it's the way multishot works. Will we count eg timing >>>> changes as potential regressions, because an application relied on >>>> something there? That does not make it ABI. >>>> >>>> In general I agree with Linus on this, a change in behavior breaking >>>> something should be investigated and figured out (and reverted, if need >>>> be). This is not that. >>> >>> Sorry, I have to deal with various subsystems and a lot of regressions >>> reports. I can't know the details of each of issue and there are >>> developers around that are not that familiar with all the practical >>> implications of the "no regressions". That's why I was just trying to >>> ensure that this is something safe to ignore. If you say it is, than I'm >>> totally happy and now rest my case. :-D >> >> It's just a slippery slope that quickly leads to the fact that _any_ >> kernel change is a potential regressions, > > I know, don't worry, that's why I'm trying to be careful. But I also had > cases already where someone (even a proper subsystem maintainer) said > "this is not a regression, it's a userspace bug" and it clearly was a > kernel regression (and Linus wasn't happy when he found out). That why I I get where you're coming from, and that is indeed what most maintainers would say :-) -- Jens Axboe