Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp352675lqg; Thu, 11 Apr 2024 05:18:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFP0kvu7SWdWfNDoZODY6i8wB5UgZUx2LfpS1R04y02ahzZRuJbhF6wWAuVLHACAppW7mS0tWp0ux4nObx4WWD/hpLLPCnQVeRiH4BlQ== X-Google-Smtp-Source: AGHT+IFHek7nMJ7aJkYh56owkTGygMa2z2artxJgdkxBojMx787mreGmBr4FI5W5MvWkb0GijZwq X-Received: by 2002:a17:906:5acc:b0:a51:ad60:ea32 with SMTP id x12-20020a1709065acc00b00a51ad60ea32mr2955684ejs.27.1712837900644; Thu, 11 Apr 2024 05:18:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712837900; cv=pass; d=google.com; s=arc-20160816; b=dEWUOZ1ir/yCyhYyU4smg6ktVH6NHUvYInnSay67YciMxG7Af1jS+k1LnQxRLU2uiD Dp99rx3bvUagMv4RSdewX1LXWgcijBaZP7S6zLOrXcDQeXECmTaS5hdJ0wdGqhtPMClu 47oiIvLXBpmzwlPYCBpWOLmc884ryQrACQOMTD/B/e1qu/9crQwkhGrTE0ZdkYcKhrtm 7LOMxqjGQfDRofGi/BNRdDEyiNvV+53XK+cSm5FElO1d4sI0EZn7pXG/s3lI5IPnkNgt gF+v3t+BNf13OX5llqYEaA+fyQ71/+WzIH8glCqVC0LMZeBQ5+30uhLAQABJtq8q3cU9 cuqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=AOB43Y0s8QLE5iheLFUcfAf5B9OuigweA1Q7OQXtqJM=; fh=9E/iyWSEEM9LpO83i/xuMaEXQd4CNcvrtLzO0Nj+R7A=; b=qBqCP2GH+ukRLvK/MX/v3hwEgkYHCqvX5TVQV/UZnmXrWnuvMXSGjy0jDL2GRHtzJ8 a7j3p8rHyhEPGjl0pxIgn2xK9n6RpmN8eBkokp40Dxr6K4G8xBL5F95b546taMT1MPeY QfPtHGQ61g4qOfwspClGN0n01ygZumNLqSKYvghONt/KWax2iBkYVRWdHAL5HZVjwEut qJXdnAnTtB2Vo1MdX/sWgldMwlD7hk/qSQqJrFuHXNV4OFTz0uNqGTKJgnBYm3K9oUSU RN2bc/N1jfBxn1OE0jvc3lMrx1JroC+fouatjuHpXVlsx0li1Uvk9RRAUalqh6XcRrHF HMQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-140423-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140423-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r17-20020a1709060d5100b00a5203bb67c8si710672ejh.920.2024.04.11.05.18.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 05:18:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140423-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-140423-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140423-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5A5621F22272 for ; Thu, 11 Apr 2024 12:18:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B623C14D299; Thu, 11 Apr 2024 12:18:00 +0000 (UTC) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E389514C5B3; Thu, 11 Apr 2024 12:17:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712837880; cv=none; b=hc7GLVVrQM2kxnKAqdS6ZaKrH8iBNRksoOnpdTDtiiBzQX/aXNI3FF2LiP1EodFMliJGmpS5RO3f7wrQqI2zvwcFynet9AmN9bNKcSbalF3Lvuc4kiwR1CX6UggIp9YH6exVuKKBJ6WtH4oFpKnGAC5eCWDUCvxBRLM74yPk0bA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712837880; c=relaxed/simple; bh=cy6vEhb31ERfN0BuM1JGJrIcuc7i0gndmm34/Zjc+/s=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=K96DWQQekWHoW+K4l7Wq2I5WPPM1khDey28SCDlpOp0ZXtWZYV5ykXl6FMRTwAgNVHfXBBryQ/QN7E9mo5E0xqm2OxcjgVcuk5xr5qWakOyC/oh23pjmqJqVQJDq1kaBR8T/Gkwf4N4WXRvvHDt1Iv6DHc8qrPP+xkOuLdIbH4Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4VFdtk2QZPztSG4; Thu, 11 Apr 2024 20:15:10 +0800 (CST) Received: from dggpemd100001.china.huawei.com (unknown [7.185.36.94]) by mail.maildlp.com (Postfix) with ESMTPS id 2B30D140E9F; Thu, 11 Apr 2024 20:17:55 +0800 (CST) Received: from [10.174.179.155] (10.174.179.155) by dggpemd100001.china.huawei.com (7.185.36.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Thu, 11 Apr 2024 20:17:54 +0800 Message-ID: <1f9f1ea8-0a94-4d4c-cae3-983f307e6840@huawei.com> Date: Thu, 11 Apr 2024 20:17:53 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Thunderbird/104.0 Subject: Re: [PATCH 6.6] Revert "dm-crypt, dm-verity: disable tasklets" To: Greg KH CC: , , , , , , , , , , , , , , , , , References: <20240411091539.361470-1-lilingfeng3@huawei.com> <2024041103-reputable-bobsled-585f@gregkh> From: Li Lingfeng In-Reply-To: <2024041103-reputable-bobsled-585f@gregkh> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemd100001.china.huawei.com (7.185.36.94) There is no need to revert it in Linus's tree since the expanded workqueue can work like tasklet. https://lore.kernel.org/lkml/20240130091300.2968534-1-tj@kernel.org/ I'm not sure if the problem described in [1] could be triggered by a scenario I haven't considered. So I only send the revert patch to 6.6 mainly for comments. Of course, I think the other branches need it too. Thanks 在 2024/4/11 17:52, Greg KH 写道: > On Thu, Apr 11, 2024 at 05:15:39PM +0800, Li Lingfeng wrote: >> This reverts commit 5735a2671ffb70ea29ca83969fe01316ee2ed6fc which is >> commit 0a9bab391e336489169b95cb0d4553d921302189 upstream. >> >> Tasklet is thought to cause memory corruption [1], so it was disabled in >> dm-crypt and dm-verity. However, memory corruption may not happen since >> cc->io_queue is created without WQ_UNBOUND [2]. >> Revert commit 5735a2671ffb ("dm-crypt, dm-verity: disable tasklets") to >> bring tasklet back. >> >> [1] https://lore.kernel.org/all/d390d7ee-f142-44d3-822a-87949e14608b@suse.de/T/ >> [2] https://lore.kernel.org/all/4d331659-badd-749d-fba1-271543631a8a@huawei.com/ >> >> Signed-off-by: Li Lingfeng >> --- >> drivers/md/dm-crypt.c | 38 +++++++++++++++++++++++++++++++++-- >> drivers/md/dm-verity-target.c | 26 ++++++++++++++++++++++-- >> drivers/md/dm-verity.h | 1 + >> 3 files changed, 61 insertions(+), 4 deletions(-) > What is the commit id of this in Linus's tree? And why only 6.6.y? > > thanks, > > greg k-h >