From patchwork Fri May 28 18:13:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 12287365 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0EB3AC2B9F7 for ; Fri, 28 May 2021 18:13:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E5BBB613C9 for ; Fri, 28 May 2021 18:13:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229629AbhE1SPX (ORCPT ); Fri, 28 May 2021 14:15:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbhE1SPT (ORCPT ); Fri, 28 May 2021 14:15:19 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2389C061761 for ; Fri, 28 May 2021 11:13:42 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id q25so3866538pfn.1 for ; Fri, 28 May 2021 11:13:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LhCOa1GkQ+RkJ6+ROCyG5Y6gGwAVgI1Bik3Ds034L48=; b=JW2PU4A6nuh+DvIHLIFnraf8gdYYaWUVRnlVUAKY+7hnV9yXkWRYjD/U+ktMQcHjpd vOY8Yw7T+EBNq4mgCKqPutAFoyDT6oO8/YSDwz9YvW9iwG/YepPU6OwrZwQv4sfwLf9d lxF9Gjuu7HqH6SuNnrvFp2UybC+8VERl8IRf4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LhCOa1GkQ+RkJ6+ROCyG5Y6gGwAVgI1Bik3Ds034L48=; b=FcsAWB3ubzYY+ZCkEOpiAJLXyXWp01WtV4Lc4q5P2JNGHUDEJK3C/9fIDP/43p0sZv 96+8/5tXGPTB5csKjF5wRJfNhz50uNps/xUTWefHjAaxibKIfR7QoARPD8qhV1AgGvRE qC9CfWxQ4YnN4GJc2XfzUapzmu74MeGjKNc3iVpJhmpceG+2bVXiSoyG/vDaGfeEdCwf Cg8PtKW2pg1h3vWsXf2brqxtChxjXieD9nol3pb0SGFmr9IMzLrEwoDRBqDCZ/Vi+4Kr k45uMJjyZSpEFk4EEqGa89a08F3IwfPQilj8rqzA9FVQ5OxSY4eRZQuA6EQrUFZHkLgQ YAlA== X-Gm-Message-State: AOAM531SmX8Weo2cS5ezQv9VC1LNmlvhR7Ou2k8r5qT735MqBXmMYjoU eyEaqGqoIH4GZmkxSihDUnC9+w== X-Google-Smtp-Source: ABdhPJyT8dhG0KylcaBFSiur++TUJ1qmtq/5M9hRb9MA9KxTEj0O/X7td0RTRvYZTbk0I5Xxuji+Ng== X-Received: by 2002:a05:6a00:1a4f:b029:2e0:754b:88c2 with SMTP id h15-20020a056a001a4fb02902e0754b88c2mr5111414pfv.65.1622225622395; Fri, 28 May 2021 11:13:42 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id d12sm4590562pfv.190.2021.05.28.11.13.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 11:13:40 -0700 (PDT) From: Kees Cook To: "Martin K . Petersen" Cc: Kees Cook , Hannes Reinecke , "James E.J. Bottomley" , "Gustavo A. R. Silva" , Bradley Grove , Artur Paszkiewicz , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH 0/3] scsi: Fix a handful of memcpy() field overflows Date: Fri, 28 May 2021 11:13:34 -0700 Message-Id: <20210528181337.792268-1-keescook@chromium.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org While working on improving FORTIFY_SOURCE's memcpy() coverage, there are a few fixes that don't require any helper changes, etc. -Kees Kees Cook (3): scsi: fcoe: Statically initialize flogi_maddr scsi: esas2r: Switch to flexible array member scsi: isci: Use correctly sized target buffer for memcpy() drivers/scsi/esas2r/atioctl.h | 2 +- drivers/scsi/fcoe/fcoe.c | 6 ++---- drivers/scsi/isci/task.c | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-)