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 47562C433EF for ; Wed, 23 Mar 2022 07:14:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231468AbiCWHP4 (ORCPT ); Wed, 23 Mar 2022 03:15:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242091AbiCWHPp (ORCPT ); Wed, 23 Mar 2022 03:15:45 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66C826E8C6 for ; Wed, 23 Mar 2022 00:14:16 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id B511D68B05; Wed, 23 Mar 2022 08:14:10 +0100 (CET) Date: Wed, 23 Mar 2022 08:14:10 +0100 From: Christoph Hellwig To: kernel test robot Cc: Christoph Hellwig , "Martin K. Petersen" , Bart Van Assche , John Garry , LKML , lkp@lists.01.org, lkp@intel.com, Kees Cook Subject: Re: [scsi] 6aded12b10: kernel_BUG_at_mm/usercopy.c Message-ID: <20220323071409.GA25480@lst.de> References: <20220320143453.GD6208@xsang-OptiPlex-9020> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220320143453.GD6208@xsang-OptiPlex-9020> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The actual warning is; [ 34.496096][ T331] usercopy: Kernel memory overwrite attempt detected to spans multiple pages (off set 0, size 6)! This is for the cmnd field in struct scsi_cmnd, which is allocated by the block layer as part of the request allocator. So with a specific packing it can legitimately span pages. Kees: how can we annotate that this is ok?