Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp880877rdb; Wed, 1 Nov 2023 05:48:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGSHROXbD7aXY6rqFqvCjgESJNYQFWiEGqt2fTNt2iXD+fKaebIpk2CqoycR8JFY1fyoDc5 X-Received: by 2002:aa7:88cb:0:b0:6be:308:e61b with SMTP id k11-20020aa788cb000000b006be0308e61bmr16170899pff.10.1698842901657; Wed, 01 Nov 2023 05:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698842901; cv=none; d=google.com; s=arc-20160816; b=OSkw90WouiCSfzLlfNQ0GoYT42/l+Zq/qhW5QCg/54LF14tUp+tlIdDbqD8BoU0Smo sPhqkFzTKDn28/zFmDNK6rmLDkNA+upaqtj47Whezx8JfkPQOsxDKUxJkknt+hmuO8Rr s3+NJw5xTfKmK5EUhQcDHDahBWMz4edGPQAjiLWWb1uU98r08Vb2j7HABDWdrlvO46MP Lz0DIxI634BWnQEDEsHVqEhqKJYmJlimpkIJbk80vUkls3dmHKY3MUx4yFsXSZXXeBmi 5AmIeTye2EuPGLfDcsF7azpkfRoAuPKPX502YnGtPcU3j5Cu7MKhyZO64NUSNtJb295B cA5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=L18jqjZ/YFC+R7qqPrcdbK+tbLtkdiO++O5gj8jOKcw=; fh=tJzg+HS7h40eHqNkzRwhEU+9AXNs9K/PalP0tdW0fnE=; b=dERHW68++33aW2mVUUTWtRPTB8AtQufN58F962FjzKUrsiVHEToDdvGBgw0LfjkPOK oU3hM3Q0mwjn5cNWio942AuzQriiJ5ei2dpLoPxnaN7PuKwv1ZNNNJTb7+6cmLu20f5C hnGbwoEsid8qHXXWHWTsqWH9CmnWcEtExDOef8uV/Wbqu1a6WuUc7ZuD+7zWeXauMqWk 80E/ZyzW1p1yS2oAOZCRm6zeRfRt3tW+//WfzkIrT6EVJcZPZh53eWUWLn5jsNTuv/je 8b4DmHap+ezgtZv7Nj5Jf//I8mz8h+caEDOPvQRdihkAZEmwtr9QSb+7eerkbJA5Jlc6 lPfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PdmLmuX6; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id c6-20020a056a00008600b006be0278445esi1496469pfj.138.2023.11.01.05.48.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 05:48:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PdmLmuX6; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E243280A1E34; Wed, 1 Nov 2023 05:48:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235151AbjKAMsS (ORCPT + 99 others); Wed, 1 Nov 2023 08:48:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235137AbjKAMsS (ORCPT ); Wed, 1 Nov 2023 08:48:18 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D500613D for ; Wed, 1 Nov 2023 05:47:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698842843; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=L18jqjZ/YFC+R7qqPrcdbK+tbLtkdiO++O5gj8jOKcw=; b=PdmLmuX6e69O76KMBg86YgHverjauZuoC/N1zRpeGJlDHCtTZ8bF2/SDvxWDpVlx7tg1JL GECrIokmRQ/9QQ8FfoF6adpa16b3r4jpXGvRQooGPr7M9uWpF8bkW9DlcZXDMQaeokqRAv /5Xhp1AuWIiAOiyJxygO3LBxbFHhDoc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-210-9Mgdi-T9MmaKi_n3PhP7mA-1; Wed, 01 Nov 2023 08:47:20 -0400 X-MC-Unique: 9Mgdi-T9MmaKi_n3PhP7mA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7035E811E8F; Wed, 1 Nov 2023 12:47:19 +0000 (UTC) Received: from file1-rdu.file-001.prod.rdu2.dc.redhat.com (unknown [10.11.5.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D9A24C1290F; Wed, 1 Nov 2023 12:47:18 +0000 (UTC) Received: by file1-rdu.file-001.prod.rdu2.dc.redhat.com (Postfix, from userid 12668) id C096130C2A86; Wed, 1 Nov 2023 12:47:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by file1-rdu.file-001.prod.rdu2.dc.redhat.com (Postfix) with ESMTP id BDD333FB77; Wed, 1 Nov 2023 13:47:18 +0100 (CET) Date: Wed, 1 Nov 2023 13:47:18 +0100 (CET) From: Mikulas Patocka To: Linux regressions mailing list cc: Yureka , linux-crypto@vger.kernel.org, dm-devel@redhat.com, Boris Brezillon , Arnaud Ebalard , Srujana Challa , Eric Biggers , Herbert Xu , "David S. Miller" Subject: Re: [REGRESSION] dm_crypt essiv ciphers do not use async driver mv-aes-cbc anymore In-Reply-To: <070dd167-9278-42fa-aef5-66621a602fd3@leemhuis.info> Message-ID: <518e373e-673e-82a-24ff-b9e8b3927c85@redhat.com> References: <53f57de2-ef58-4855-bb3c-f0d54472dc4d@yuka.dev> <20230929224327.GA11839@google.com> <070dd167-9278-42fa-aef5-66621a602fd3@leemhuis.info> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 01 Nov 2023 05:48:18 -0700 (PDT) On Wed, 1 Nov 2023, Linux regression tracking (Thorsten Leemhuis) wrote: > > #regzbot introduced: b8aa7dc5c753 > > BTW: Eric, thx for this. > > Boris, Arnaud, Srujana, and Mikulas, could you maybe comment on this? I > understand that this is not some everyday regression due to deadlock > risk, but it nevertheless would be good to get this resolved somehow to > stay in line with our "no regressions" rule. > > Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) Hi The driver drivers/crypto/marvell/cesa/cipher.c uses GFP_ATOMIC allocations (see mv_cesa_skcipher_dma_req_init). So, it is not really safe to use it for dm-crypt. GFP_ATOMIC allocations may fail anytime (for example, they fill fail if the machine receives too many network packets in a short timeframe and runs temporarily out of memory). And when the GFP_ATOMIC allocation fails, you get a write I/O error and data corruption. It could be possible to change it to use GFP_NOIO allocations, then we would risk deadlock instead of data corruption. The best thing would be to convert the driver to use mempools. Mikulas