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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9925CC433FE for ; Mon, 3 Jan 2022 16:35:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234584AbiACQfg (ORCPT ); Mon, 3 Jan 2022 11:35:36 -0500 Received: from verein.lst.de ([213.95.11.211]:47213 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233987AbiACQfg (ORCPT ); Mon, 3 Jan 2022 11:35:36 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id DDA9668AFE; Mon, 3 Jan 2022 17:35:32 +0100 (CET) Date: Mon, 3 Jan 2022 17:35:32 +0100 From: Christoph Hellwig To: Lukas Bulwahn Cc: Christoph Hellwig , Jens Axboe , linux-block@vger.kernel.org, Linux Kernel Mailing List , kernel-janitors Subject: Re: Potentially broken error path in bio_map_user_iov() Message-ID: <20220103163532.GB3151@lst.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lukas, we can just remove the queue_dma_alignment check entirely, the caller already ensures bio_copy_user_iov is called instead of this case.