Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1921883rwl; Thu, 5 Jan 2023 22:35:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXsbMeqM1SLPnayvqw9ftewQyIkkKdBzfyfFF/Z6dqpCLcAZRA2iLMGuYG9QG/bZUKBCRpmd X-Received: by 2002:a50:fe94:0:b0:48e:a9a1:c584 with SMTP id d20-20020a50fe94000000b0048ea9a1c584mr11193496edt.35.1672986900176; Thu, 05 Jan 2023 22:35:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672986900; cv=none; d=google.com; s=arc-20160816; b=sIxKf4vM7NKoLuHn9ZKeQyo4cJZzcQmaEFc5/9Y5kYQ1OSwa8aqIehTIkgMBJhOZPI VxG3VsRmKgdXzRZu3wWmQ3jZKdhBeKYRrXXpmUHq9urQaR1lRg+PThvPKvbK7o96K3NN hRNPFWh70wOOG/f4G2BBfvSMCJlo6TDKzHdQyaZWXY6bUdm8dK1TeVfJf51xmRiF22wS RKTV26Z4y4E/iQPnTnGSAOLzgovk4Fzx2UIdiAT9tX7QEdDMnzDZ67qIo2D8fEAfPd+l ESYYVP4zIRUY80VXec3Saz8OuYvsVJ4AceXqVyATpZdeyH9ughPkQS6bZ0CTRGCrsRXF vpAA== 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=P3P39B3+R/DWnUo27dj0CuajbLtQj508AlEFbLQeeco=; b=RC8aD7AZKEkoCqUc6kPmmmx+qIIHL7jMELuLzHMV0xqcTI3/hpgH//rqcCbTSq36H3 /oWlW9h5HHMbmh0vwuNa0zuGanF13sVW7HjsgXwY5grpKBLX5VIzImKlAzjgbi9VbGth L70b8THiFiuCYH85bBpwMGvjmbNQ7W6TJEgZ9MGyI3qGQNdKTGS/Z5q7uvi0r3prLh0/ mHomWAwYgDF/Cr4G2N0xsLhm5OOKzpBXhof4RCaQl9r/iBjOo0v2fLvvJdAQBW2hi0K4 scDW2Cn5HnMy/FlTmDyqBdHJ2h+PuYnWtsiLz/Jy9gye8k/BE0TRiRtF8CSBmXCqJ4S/ 9oYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gFfwNN2c; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m20-20020a056402511400b0045a1dbedd92si760632edd.35.2023.01.05.22.34.47; Thu, 05 Jan 2023 22:35:00 -0800 (PST) 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; dkim=pass header.i=@chromium.org header.s=google header.b=gFfwNN2c; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231561AbjAFGWH (ORCPT + 54 others); Fri, 6 Jan 2023 01:22:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230369AbjAFGWG (ORCPT ); Fri, 6 Jan 2023 01:22:06 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43937654D for ; Thu, 5 Jan 2023 22:22:05 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id d9so740098pll.9 for ; Thu, 05 Jan 2023 22:22:05 -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:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=P3P39B3+R/DWnUo27dj0CuajbLtQj508AlEFbLQeeco=; b=gFfwNN2cBsPVNqo5NLC1hz0fbBDjCCVekPUQUzDXQiNrz3vaAbuoC2l2Rcv5KDD1BR GGUDQU1BU/ZGDR7W9+LH+2DU1RDh1tJ3gm2EJRk9EzScNFktUgzFV4suePITtV+8chsg 2hXm3VHigwfCzIzwicjfr2JbSL9rgoJAREUDI= 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:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=P3P39B3+R/DWnUo27dj0CuajbLtQj508AlEFbLQeeco=; b=UMNI8bpo1hWHuyoe46TQpyTJAUSkNXKKdVZaojGRfoNUPq5tXG6d6pzU+dFNYpk+0H W1sLattw99cskWSydaIbIr1/OCrdd56qNg4uo22GeIR9X3xKtuV4V3nQk8YVfmX7iIqM WAkzkEmN89fTdsz+Jb8kj5ZbFTOM4DIPH7ttKWopfrKEdfoUp5KydUW8pZNV/pyABJW5 eyINLSRGQ/3BNBB3teioYB9Od2zqvd6KOFTTpcPY2dZvUdm+dZM6JKOVEJBdRmMP9a2c ZpP5b9SeRqXHgAjf1Y+rSQ34YWkT0Jn+Rf5GqSyoRiDnRZ9kOYhUSg6z22xYUjS9GcLr tIwg== X-Gm-Message-State: AFqh2kpWIu1rkty1PcT8vRkT3oOgIdH3+2ZxPPuyvgoCygXu08g7tuMU FNJvC6+u1bPyU/WfKZZwq5F1ew== X-Received: by 2002:a17:90a:d78b:b0:219:34cb:477e with SMTP id z11-20020a17090ad78b00b0021934cb477emr57605129pju.44.1672986124780; Thu, 05 Jan 2023 22:22:04 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id y128-20020a633286000000b004768ce9e4fasm257954pgy.59.2023.01.05.22.22.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 22:22:04 -0800 (PST) Date: Thu, 5 Jan 2023 22:22:03 -0800 From: Kees Cook To: Thorsten Leemhuis Cc: "regressions@lists.linux.dev" , linux-bcache@vger.kernel.org, LKML Subject: Re: [regression] =?iso-8859-1?Q?Bug=A02167?= =?iso-8859-1?Q?85_-_=22memcpy=3A_detected_field-spannin?= =?iso-8859-1?Q?g?= write..." warnings with bcache #forregzbot Message-ID: <202301052218.042D2BFE@keescook> References: <19200730-a3ba-6f4f-bb81-71339bdbbf73@leemhuis.info> <2e4e65a8-87b4-fac6-ef89-76b118b0cec4@leemhuis.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2e4e65a8-87b4-fac6-ef89-76b118b0cec4@leemhuis.info> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 On Thu, Dec 15, 2022 at 08:11:06AM +0100, Thorsten Leemhuis wrote: > [Note: this mail contains only information for Linux kernel regression > tracking. Mails like these contain '#forregzbot' in the subject to make > then easy to spot and filter out. The author also tried to remove most > or all individuals from the list of recipients to spare them the hassle.] > > On 08.12.22 15:53, Thorsten Leemhuis wrote: > > https://bugzilla.kernel.org/show_bug.cgi?id=216785 : > > > >> Alexandre Pereira 2022-12-07 18:51:55 UTC > >> > >> Testing linux kernel 6.1-rc8, I have several kernel erros regarding bcache. > >> > >> For context, I have a bcache configuration that is working without issues on 6.0.x and previous versions. > >> > >> The errors: > >> > >> dez 07 18:33:45 stormtrooper kernel: ------------[ cut here ]------------ > >> dez 07 18:33:45 stormtrooper kernel: memcpy: detected field-spanning write (size 264) of single field "&i->j" at drivers/md/bcache/journal.c:152 (size 240) > > #regzbot inconclusive: stop tracking field-spanning write warnings, they > come from a new security feature > > https://lore.kernel.org/all/20210727205855.411487-1-keescook@chromium.org/ > > Tracking them would cost time I better spend on more important things > for now FWIW, I'd find it handy to see these. I've been trying to track and fix them. To that end, I've just sent out the following patches: https://lore.kernel.org/lkml/20230106045327.never.413-kees@kernel.org/ https://lore.kernel.org/lkml/20230106053153.never.999-kees@kernel.org/ https://lore.kernel.org/lkml/20230106060229.never.047-kees@kernel.org/ https://lore.kernel.org/lkml/20230106061659.never.817-kees@kernel.org/ Thanks! -Kees -- Kees Cook