Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3912974pxp; Wed, 23 Mar 2022 08:04:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTnArqE1DyEZLxuEIR/P3WTgOhdinxywQeUQvi7WPKwrTOWsCKhC9zO6oJio18zSR+HN/G X-Received: by 2002:ac8:5f12:0:b0:2e0:67f8:132d with SMTP id x18-20020ac85f12000000b002e067f8132dmr91833qta.417.1648047855436; Wed, 23 Mar 2022 08:04:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648047855; cv=none; d=google.com; s=arc-20160816; b=g/WJ4SIsUxeKgqLKPReCiqb3q4XgxAVsTCUEFY7CdSF9zMlpZWOT3mFXFyIEacKDpB lSR6/xfRbrvDqp19xBnl33/fbF8kEvs/ywfOFMbveNiIeY0Z4laX8CuPdzbgg0IK9ezg YxOkkpxaGkBlC+UuVTxo5ZY9g3eJU/gruK12W1pntxzumeCQWSwRI8imoMaHlERrIGw6 Ax6GyKAuSK6uUq+GG1IMpOV0JuYj/+/clvDIo+xJ64fLQIr8aiQHt52z1jyuoagg62ZG BEknWOqzMMMPPrbk7I97oYPdImGXeYTiMcdEtQLrvobEfv+lRFKoIttTnO1jVX0rhlpr nafQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=EAQR4VLZovREA8xuMopSIk/I7P3cg/gHcGgrZ8BDeEo=; b=mU1NGOHK2pXDLkOmkW3kynK3sGOXs+311WyLsNhiwyUDfFZL9waSY8rhTjcbvQudss 6UWDQHoN2AJrUj/eUfnC7apE8DczoZSueY1jbNMEJWriKmnA3w9LFDxVKCzNPvLUPJwA l7Smz2RIKRQeqKk1ZgagLNrcgbjiHkK1mfiL28ANLZJtzMWMaCsqMxwP6r7F4tM5hyKm XPPicU4vkxriO32yoGOZTfdmpgteSzbjKip2Xz2R4DHU7Ig+/gCaZh8jqk9XK/CX7mM+ 2PHz3eKSHrQPf0Yad3+IOlZDWF73dflKgcv5XJnKlU2yTiTy8xdQccj/9D4mdZ6LkaB9 hGKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d2-20020a05620a240200b0067e6d68c5afsi4697934qkn.679.2022.03.23.08.03.54; Wed, 23 Mar 2022 08:04:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231235AbiCWHPz (ORCPT + 99 others); Wed, 23 Mar 2022 03:15:55 -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) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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?