From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8D93C433E0 for ; Fri, 19 Jun 2020 13:33:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 85E22207FC for ; Fri, 19 Jun 2020 13:33:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592573616; bh=9boUMjsNlxjbiDnv0ezwM+aEMFSkhT6Fi2pxMFkAUfc=; h=Subject:To:Cc:From:Date:List-ID:From; b=Hvf7JoDgAiTmZuEuFnXZdmTen2mpDa5pJ6dTHxvt20gQT6mnAhhX+Q6j31whursap 8Tfwm5Cu6xeV8sGh5TLzA9X39VbaSz6wczhXAahxiGW1O5wfSHq4/zMK8/aVTRNAXT TkcCvWrQtuB9wxwqWihg9kuVBnWE2ppQ8XXk91t0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732035AbgFSNdg (ORCPT ); Fri, 19 Jun 2020 09:33:36 -0400 Received: from forward5-smtp.messagingengine.com ([66.111.4.239]:54405 "EHLO forward5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729134AbgFSNdf (ORCPT ); Fri, 19 Jun 2020 09:33:35 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 8B66419455A0; Fri, 19 Jun 2020 09:33:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 19 Jun 2020 09:33:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=YR4GgX 6R94nSZii7hVShSZLxh4eLaAPd/DTLvPR8BuU=; b=uSjVpCcbJiaUVt6ocZH0gj +Phe5flefgoXXJFoWyCXbTN0wRXv1E77H5mkB80F7UzyLUtjK0okDCcbHMWZ7DZx MzulOofSosBgppuBxOTZYT5jKKsGdzyR8pdS8+KEZVbx3lUaEKrPMDdQbjf8+C1l CINrRQXCmineL8qMuh4El1sLQjSjIw3M6leUvJNzXIX9965C+SXfwbER3p1eRSW2 OxkszUo4N6dhxKtW5QapCgnrPYRwLDIPCd4C3IMGTaNuoJrPnhY7rbAKRqzJrbdU me4wmMV62Nf13Dy1pwy2xs6AEBJQ0scmigySweN4rQ1tq62HUitnD5dSm551AB9A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudejiedgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecuggftrfgrthhtvghrnhepieetveehuedvhfdtgfdvieeiheehfeelveevheejud etveeuveeludejjefgteehnecukfhppeekfedrkeeirdekledruddtjeenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhh drtghomh X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id DC52A3280065; Fri, 19 Jun 2020 09:33:33 -0400 (EDT) Subject: FAILED: patch "[PATCH] dm crypt: avoid truncating the logical block size" failed to apply to 4.4-stable tree To: ebiggers@google.com, mpatocka@redhat.com, snitzer@redhat.com Cc: From: Date: Fri, 19 Jun 2020 15:33:31 +0200 Message-ID: <159257361122324@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 4.4-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 64611a15ca9da91ff532982429c44686f4593b5f Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 4 Jun 2020 12:01:26 -0700 Subject: [PATCH] dm crypt: avoid truncating the logical block size queue_limits::logical_block_size got changed from unsigned short to unsigned int, but it was forgotten to update crypt_io_hints() to use the new type. Fix it. Fixes: ad6bf88a6c19 ("block: fix an integer overflow in logical block size") Cc: stable@vger.kernel.org Signed-off-by: Eric Biggers Reviewed-by: Mikulas Patocka Signed-off-by: Mike Snitzer diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index 71c651465bdd..000ddfab5ba0 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c @@ -3312,7 +3312,7 @@ static void crypt_io_hints(struct dm_target *ti, struct queue_limits *limits) limits->max_segment_size = PAGE_SIZE; limits->logical_block_size = - max_t(unsigned short, limits->logical_block_size, cc->sector_size); + max_t(unsigned, limits->logical_block_size, cc->sector_size); limits->physical_block_size = max_t(unsigned, limits->physical_block_size, cc->sector_size); limits->io_min = max_t(unsigned, limits->io_min, cc->sector_size);