Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1562331ybj; Wed, 6 May 2020 00:36:05 -0700 (PDT) X-Google-Smtp-Source: APiQypLI+UUEbD3Jip0x2BrWehxTcbY5+xQWsQPesJLx2JDxommWZ+PSitsq9x6zSQyddeIoeyq0 X-Received: by 2002:a17:906:5601:: with SMTP id f1mr6065635ejq.152.1588750565688; Wed, 06 May 2020 00:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588750565; cv=none; d=google.com; s=arc-20160816; b=TM+EpnmL45GzKlmWZxFfV1ffSUxegKYRgkqW3Ua2vCO4LZ3HIE2zinZWzjxoENmNyK TW8lvXwKquX0Dn7ea350Mddxwm3I1g1VCk4P9ObS/p38/np4jsI9BoIxp/uND5RrVGG6 cywZ3+uwsOKhXIZv9sZXEXxTKIEEIs0wh/A7/FejxmBT9O4Bww+LHtQEmGfRsq9nIVDp yEkgQg+dXcsrI8CJGhzvmB5MJYVr301rbaUAElidGcakcZ96yFIn/n3lXbf7C2gzVjSj aVku3nwKYIWD8g8c4ThiqRXwUbOpW6uxW7x2fj41WFPhW4VTOhgfM/MCHUWy+Qeq3pqi hyMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=gqSLq5hYK1kARvrcxx2IEp0kLmYkQSACn9sSHMJ82lA=; b=zTePG6hrQQg24CBFosOKE3dXyq9W0UxOeWEWmGgK2QEH62RCQibJpq368vw8DZheuQ 6FQYlR41107IR9bvtn1hrJyKahvmDpWyfPVJl2uFdelDPazGmlRnYo2wals0r+MR1Yia p07mxLkDxxgb5Kj5AV8EZZVu/CMacY1iO+NMnqLIMHO9uKbjAW/ohxIngMRH0SfdP/BP 8phYEmUaZgJu4MD74o5NM/sL3LxPXo5sxN/x6jIXBbPQN3e/zlos5/8JnngmpeJFVF4H Y2dEXQbkVv0q+o93H1iLeZXxUrkbGI4ZTPPH/MAQ/0w9dL7PA9Qn+ujs7ewP5TyIvZBs xYYQ== ARC-Authentication-Results: i=1; mx.google.com; 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 n21si677075ejc.113.2020.05.06.00.35.41; Wed, 06 May 2020 00:36:05 -0700 (PDT) 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; 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 S1728279AbgEFHd0 (ORCPT + 99 others); Wed, 6 May 2020 03:33:26 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:43535 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727067AbgEFHdZ (ORCPT ); Wed, 6 May 2020 03:33:25 -0400 Received: by mail-lj1-f196.google.com with SMTP id l19so1226301lje.10; Wed, 06 May 2020 00:33:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=gqSLq5hYK1kARvrcxx2IEp0kLmYkQSACn9sSHMJ82lA=; b=cG01hUdx0W+Qz+g3Sm/LwC7kw4wedKfV32eGSWMeT4rYrSbRjehbjDksptZVgyUDvY YQEzUQIfxbavJ5TpQTqmHbcI+5QXSgjd99hSwM8MEECYPHERh34yIOZz/qtpEavvcj6O xLMDYNUBo0a3OqlKQXG7mJ7E25X5fbc+lc92tuJfwaYzgN62iCq4UsFZZDMX/mKGiy9N KXcZ8ZO7DM/PRFkbolGtjp6m+bDYUXhyQTUlQeSrLDGA2WH5wAAVtsJCeMKkDClrGo5z BbmF3yLGvtG5R5TtS+Y+munQBhhUkUgF9kmvRo1a88f5MGvrhvvDLwjU3GR04eoAWDfS Pr/Q== X-Gm-Message-State: AGi0PubsLYlSgQmwZd7vIk5+616HM+bfLJkKyL1b24lsCqCpghP76n34 9tdGKnondacUs7f3gk+nhIMIV1mGjk8= X-Received: by 2002:a2e:9e4f:: with SMTP id g15mr4229689ljk.78.1588750401642; Wed, 06 May 2020 00:33:21 -0700 (PDT) Received: from [192.168.8.104] ([213.87.156.203]) by smtp.gmail.com with ESMTPSA id t5sm923459lfc.69.2020.05.06.00.33.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 May 2020 00:33:21 -0700 (PDT) Subject: Re: [PATCH v3 0/4] floppy: suppress UBSAN warning in setup_rw_floppy() To: linux-block@vger.kernel.org Cc: Willy Tarreau , Christoph Hellwig , Joe Perches , linux-kernel@vger.kernel.org References: <20200501134416.72248-1-efremov@linux.com> From: Denis Efremov Autocrypt: addr=efremov@linux.com; keydata= mQINBFsJUXwBEADDnzbOGE/X5ZdHqpK/kNmR7AY39b/rR+2Wm/VbQHV+jpGk8ZL07iOWnVe1 ZInSp3Ze+scB4ZK+y48z0YDvKUU3L85Nb31UASB2bgWIV+8tmW4kV8a2PosqIc4wp4/Qa2A/ Ip6q+bWurxOOjyJkfzt51p6Th4FTUsuoxINKRMjHrs/0y5oEc7Wt/1qk2ljmnSocg3fMxo8+ y6IxmXt5tYvt+FfBqx/1XwXuOSd0WOku+/jscYmBPwyrLdk/pMSnnld6a2Fp1zxWIKz+4VJm QEIlCTe5SO3h5sozpXeWS916VwwCuf8oov6706yC4MlmAqsQpBdoihQEA7zgh+pk10sCvviX FYM4gIcoMkKRex/NSqmeh3VmvQunEv6P+hNMKnIlZ2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R2Uxsski8q6x+LxU1aHS0FFkSl0m8SiazA Gd1zy4pXC2HhCHstF24Nu5iVLPRwlxFS/+o3nB1ZWTwu8I6s2ZF5TAgBfEONV5MIYH3fOb5+ r/HYPye7puSmQ2LCXy7X5IIsnAoxSrcFYq9nGfHNcXhm5x6WjYC0Kz8l4lfwWo8PIpZ8x57v gTH1PI5R4WdRQijLxLCW/AaiuoEYuOLAoW481XtZb0GRRe+Tm9z/fCbkEveyPiDK7oZahBM7 QdWEEV8mqJoOZ3xxqMlJrxKM9SDF+auB4zWGz5jGzCDAx/0qMUrVn2+v8i4oEKW6IUdV7axW Nk9a+EF5JSTbfv0JBYeSHK3WRklSYLdsMRhaCKhSbwo8Xgn/m6a92fKd3NnObvRe76iIEMSw 60iagNE6AFFzuF/GvoIHb2oDUIX4z+/D0TBWH9ADNptmuE+LZnlPUAAEzRgUFtlN5LtJP8ph Message-ID: <958ca9dc-e912-54cb-8193-45c79b8ca0f0@linux.com> Date: Wed, 6 May 2020 10:33:18 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200501134416.72248-1-efremov@linux.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/1/20 4:44 PM, Denis Efremov wrote > > The first patch removes pr_cont() in setup_DMA() and prints the contents of > cmd buffer with print_hex_dump(). The last patch also touches these lines > and changes cmd buffer to fullcmd. The 2,3 patches introduce defines to > make it more clear why cmd_count in struct floppy_raw_cmd allows > out-of-bounds access for cmd, reply_count, reply fields. Last patch > handles the warning. Applied, https://github.com/evdenis/linux-floppy/tree/cleanups Denis