Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13990169pxu; Mon, 4 Jan 2021 09:50:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcvLa4idyvBPNnlUQriNRIqxPeB4KMm/BrIHHBvAcjQRjo9ZR3DsgQC3y2KVj7VPOi7f/i X-Received: by 2002:a05:6402:31b5:: with SMTP id dj21mr73499433edb.90.1609782644654; Mon, 04 Jan 2021 09:50:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609782644; cv=none; d=google.com; s=arc-20160816; b=kVuere4HE+6v3UForM1x1RDlfdESPshEEUe5hNjJoSrPUpFGL0qAb1Km/55FugIWcj 0bgw5eKqeWHQU7hVR2dwiCfYK8Zzu1eMilppDRwnIUKhHD1fsCK0BSnBclBQHOdDk23l ljdZo8k/yrRPM7tAjoTmRlkvgSlnDQ+v+EK4u7WYIINaofMKTgisYsbVuW073ZbfACYj zADdrt9xoaCU01izTOOcWNpEOTzRY5/hRIj+CeQxU5IDo666rGzFIyJ5vk/DZ2csnyrz N0GIxHASmK/RMtwzYURVQXGZPRhFtc4DYA4YN817biaGJ16+UM8y0Le2s4WSsS27RtKh xECA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=65owITg5bptvn1j++cmPjkA/zjpHPF/EDZomkuXKGqY=; b=fYVreVrMtR6U9J3pn2m658UkyAN53io1rggVNlJ1ENRUC2ETjSMZvcD62lSKJQosE5 22r8yzgaJ3oCQPFhNaxE+MlKTf8/mEyNoG4RU9p+eMP3iJcH0ttD+TjelsSjWTMXlV7Q BgNSaZYvqPLnnv99p/NCcg/6Foo2kXsx5WmJk2nGYgHWXigo42kJFVxCLDQRpAxKsse8 C3iHnE1OoLJYWnlqtfSKe74Lb+a0jQRw4Ztkz54C4NegluQNRoFW+O3ckn6vv6L3idqT F35jHSQxeSHsBRLjZOjV1BIuYNIlWZ+jFrmkPr+QYI5Cz6VUI9K2e1qQ8y3g6RFrTozt FeIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxace-com.20150623.gappssmtp.com header.s=20150623 header.b="uY/UlD7z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si31976961edx.473.2021.01.04.09.50.21; Mon, 04 Jan 2021 09:50:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxace-com.20150623.gappssmtp.com header.s=20150623 header.b="uY/UlD7z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727566AbhADRtp (ORCPT + 99 others); Mon, 4 Jan 2021 12:49:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727529AbhADRto (ORCPT ); Mon, 4 Jan 2021 12:49:44 -0500 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1612C061796 for ; Mon, 4 Jan 2021 09:48:30 -0800 (PST) Received: by mail-pg1-x529.google.com with SMTP id z21so19510988pgj.4 for ; Mon, 04 Jan 2021 09:48:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxace-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=65owITg5bptvn1j++cmPjkA/zjpHPF/EDZomkuXKGqY=; b=uY/UlD7z90jZJguSr4Qov6hTFwNsacX2P0geVNecyR5ZH7ZJamw0DXTNljsbMPh9PS MFtO+9k1uqqfJPP4oxrzK1VHY59gJeN3JZOQsggZWLYox/RAcbwzjbXHZTbFVt/p2hXc 5PsPpT843IKgWkVa89xYlfbHBCRM9SdJW1eLo4vZRudTVCbP03yEes6Of/ssVlo1bwwD lPisb7pbEW5ixCwrXhMykOxku5XX94zl1lW46mkndO08IyIeRjTZFa0pUxIpRkCFgRPq ug5zNvBVQsrv3jFZjiOXLHjS9S5H7+LP8pFgaUWXRdyTsJ7CT9WbL3iRXfIFRSKMSDCy Sh6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=65owITg5bptvn1j++cmPjkA/zjpHPF/EDZomkuXKGqY=; b=PlqOSKaE2CGW/fmMxP6t8xQbfg9mqET3bf6dAYGYTxr8Za2XjRHLELxGbb5rtPx0sH uiFQu00CJ8ldDceP2fobULoXxZlsBgGt5VpfJGJoL92Oz0+cKm0Y67TVcRHTOO3YMykg eRNIEi0GiYYxV1pB8mCv4XiIA8/MuUJOLbjAXohDnLKKSIW+FgMJTcfUzKMZJZY5lsp4 3L2xWZKIu3NJ+qjlEOdagpq3K1DE95ZptmQuVG7vdTfsM/zWeQ+3NjKzdM4M+boXCcjP CrciMWuSzKDciEKmI/Yg0/uCXWcjNiFPSeg50sDkW2AwXivyMlM8JHderDgNzvFZ3VOM ++4A== X-Gm-Message-State: AOAM532najsnYSydkbQYvNFWVuFWE65+fkxLQGBaztGHYzI69kZxi84v vSHDB7P9paPoOZ2U0gVOGLt5oQ== X-Received: by 2002:a63:520e:: with SMTP id g14mr24089127pgb.378.1609782510541; Mon, 04 Jan 2021 09:48:30 -0800 (PST) Received: from home.linuxace.com (cpe-23-243-7-246.socal.res.rr.com. [23.243.7.246]) by smtp.gmail.com with ESMTPSA id p9sm34954pjb.3.2021.01.04.09.48.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 09:48:29 -0800 (PST) Date: Mon, 4 Jan 2021 09:48:26 -0800 From: Phil Oester To: Arnd Bergmann Cc: Arnd Bergmann , Kashyap Desai , Sumit Saxena , Shivasharan S , "James E.J. Bottomley" , "Martin K. Petersen" , Christoph Hellwig , "# 3.4.x" , Anand Lodnoor , Chandrakanth Patil , Hannes Reinecke , megaraidlinux.pdl@broadcom.com, linux-scsi , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 2/3] scsi: megaraid_sas: check user-provided offsets Message-ID: <20210104174826.GA76610@home.linuxace.com> References: <20200908213715.3553098-1-arnd@arndb.de> <20200908213715.3553098-2-arnd@arndb.de> <20201231001553.GB16945@home.linuxace.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 03, 2021 at 05:26:29PM +0100, Arnd Bergmann wrote: > Thank you for the report and bisecting the issue, and sorry this broke > your system! > > Fortunately, the patch is fairly small, so there are only a limited number > of things that could go wrong. I haven't tried to analyze that message, > but I have two ideas: > > a) The added ioc->sense_off check gets triggered and the code relies > on the data being written outside of the structure > > b) the address actually needs to always be written as a 64-bit value > regardless of the instance->consistent_mask_64bit flag, as the > driver did before. This looked like it was done in error. > > Can you try the patch below instead of the revert and see if that > resolves the regression, and if it triggers the warning message I > add? Thanks Arnd, I tried your patch and it resolves the regression. It does not trigger the warning message you added. Phil