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 EF35DC64EC7 for ; Tue, 14 Feb 2023 21:49:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232341AbjBNVtl (ORCPT ); Tue, 14 Feb 2023 16:49:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbjBNVti (ORCPT ); Tue, 14 Feb 2023 16:49:38 -0500 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AA5529E3F for ; Tue, 14 Feb 2023 13:49:37 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id r9-20020a17090a2e8900b00233ba727724so2203675pjd.1 for ; Tue, 14 Feb 2023 13:49:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=K24hJmuuzDCWGJfa7cedDOeMiqAh7XOOikUOicrsYLk=; b=Nop4t4j/Ezoqqr7Wxz59BFFcsJEksG49eS0wzKJYp0Ewg6CRR2Z56e7MIKXOcTQroZ jmH+t/mxjQ/cE3U0i3+oUfIcqKyoLXqpDUBtpmA/0ewOc3LRubdiII7zMuWfo6pP5zs/ U1qsI3khO4ndqEQ+91O3IXBhxmHP6OccfJk/Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=K24hJmuuzDCWGJfa7cedDOeMiqAh7XOOikUOicrsYLk=; b=GgxlEi7Arv1mzkRIefH7kDRwXblEqW6wBU3mxtooiRZ8EjZ/GITwNuLbFvVkmOMmLB J+ahHqxrofbMiFJ9hSvsLkVw7hQbLi7XO9ZXmyDTrMIyET8qfyM6o4qd/a0bKbHTtTI8 sDXAll9ZTT2XKR8bLQfGC9lRQp8LP40zhhwYYK4QI+oOmKXNySw+SdUFSJLP28u5GYil oll7AhXkXv+p8gJKkxWLiEekIDnhkiP4DTcRj/gnlgdMerB+4qI9zbmrsSFFJb3nmGk1 iaroPEpNRpNL98Q6K4vjSm7RySjNGxapySOCQSbVyskMzr5o54Clsa/XdySMUYSrhUvx ZijA== X-Gm-Message-State: AO0yUKX4fThj0aFnCl38uC9KDseGy+w9GzKmGl1ecvs/dxszyk5l7tit mZTbZldwZ2EyGKiN2JBspX4xpA== X-Google-Smtp-Source: AK7set9ijZSYts9u+A6XDClyLfPMQi8mabb6Pc9oedy/Kth90eU0jMozxH4xbvCYUALbaqjcfNSilA== X-Received: by 2002:a17:90b:4b42:b0:234:5eb:2177 with SMTP id mi2-20020a17090b4b4200b0023405eb2177mr403521pjb.9.1676411376902; Tue, 14 Feb 2023 13:49:36 -0800 (PST) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id q35-20020a17090a1b2600b002343bac52aesm30108pjq.7.2023.02.14.13.49.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 13:49:36 -0800 (PST) Message-ID: <63ec01f0.170a0220.94c76.011e@mx.google.com> X-Google-Original-Message-ID: <202302141348.@keescook> Date: Tue, 14 Feb 2023 13:49:35 -0800 From: Kees Cook To: Arnd Bergmann Cc: Brian King , "James E.J. Bottomley" , "Martin K. Petersen" , Nathan Chancellor , Nick Desaulniers , James Bottomley , Damien Le Moal , Arnd Bergmann , Niklas Cassel , John Garry , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] [v2] scsi: ipr: work around fortify-string warning References: <20230214132831.2118392-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230214132831.2118392-1-arnd@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 14, 2023 at 02:28:08PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The ipr_log_vpd_compact() function triggers a fortified memcpy() warning > about a potential string overflow with all versions of clang: Perhaps this is arch or config specific? I haven't been able to reproduce this for some reason. -- Kees Cook