Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp5289756rdb; Sat, 30 Dec 2023 14:41:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHk4Xg3q6N2U2bKAOvuMCFNWA53BW7Om4fmYQ2iBw2HOZYxe35WjD/Es5ly628DElq0sr2E X-Received: by 2002:a05:600c:2308:b0:40d:5fc7:7a74 with SMTP id 8-20020a05600c230800b0040d5fc77a74mr2873658wmo.188.1703976074060; Sat, 30 Dec 2023 14:41:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703976074; cv=none; d=google.com; s=arc-20160816; b=S3D8nQ0/OwTmp6J+CfTPHtiSRfqvVO04EKONv+iQsLpbSYt9H/6dSJp1GmeZaBApmj g7VtoLg4voB5xsPhBvJxF/kAugrw0OC0DejIPo/UgGHc2wWii4Q9Pl915XX3FnuDM4cR ygdZSvOM/AX5WOn6KsZhUguWIHswZy7lg7jffD7HPvP26fLH9STCy+vo2xNWawsxeRtT cH5oh21bXf0BHURSomrnCsCCPUvd0GV0X3cptgy6aFI69aWFVCDLJia0j8MjmbGqiPsd HFkDGPI3tHl41ily8ZI7rDjIeIedzdjFvfO1wqvgjuF55tnwcFTFNzFWpHTjm8DYLpHa U+rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=aPL9HjNhcVqPD8dzsIKc0xX7K6T9gIH6eRuhKS9PZT4=; fh=2h7mtSTI8A3PQ9bXyg3YuJsb796zJygFcs4ZX01wbeQ=; b=MEwDXZh1gc4/WAzqib9he4xkfxwS58RqnM3bO46je3OCosfepdJfXxnunTf8Z6Pbcl xTSsn51iIUwLJ9g8uDHTEcKOjWgla+VuAA9HS26x3OiFgzIcLxJSoLAlJg7Z2hZv45PU eCasc1zQ5UGi4gVHs1tAnItJf374t4P1y6EId59+OGlyJnFCLysQQa3/T//UqKgylud7 sPiw3BRMdVAOzU63YuYKwKsVOIS2HPG1ge2yZYC+Mjrw0UZSKt8xNvIfx6TsbiBxQx+/ aOyY+1vIZKgrsMaiTjJJZ3rQFy4upNl/3RfmV09Uola6vW+6LFzQcTFIYQzkiTekF+R7 M2lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="Su/iHtyh"; spf=pass (google.com: domain of linux-kernel+bounces-13603-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13603-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qu25-20020a170907111900b00a2313f7e165si8829792ejb.723.2023.12.30.14.41.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Dec 2023 14:41:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13603-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="Su/iHtyh"; spf=pass (google.com: domain of linux-kernel+bounces-13603-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13603-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CDAFA1F214E2 for ; Sat, 30 Dec 2023 22:41:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10810E546; Sat, 30 Dec 2023 22:41:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Su/iHtyh" X-Original-To: linux-kernel@vger.kernel.org Received: from out-183.mta0.migadu.com (out-183.mta0.migadu.com [91.218.175.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC672D30B for ; Sat, 30 Dec 2023 22:41:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Sat, 30 Dec 2023 17:40:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1703976061; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aPL9HjNhcVqPD8dzsIKc0xX7K6T9gIH6eRuhKS9PZT4=; b=Su/iHtyheno4Z5KoWaDx1NjXQoKhZQy0RGX/pUoKnpNHF5/EF1cUEPQCOjEIJ/Q/knE1+v s/yN2qRZ3JsdkBS4umWulBuCazHROxEaV1AQy5jrsIqa0jMXErwH6jK/HoHLEsjJU2cwqC U27SIjX9pteeQ6EfZghdScH00Z/zmAA= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Daniel J Blueman Cc: linux-bcachefs@vger.kernel.org, Linux Kernel Subject: Re: Stack corruption in bch2_nocow_write Message-ID: <2g6gw7ybne5d5u2ewsbfpsoxslw5vie3d6whlhrcmbombkyzqs@dd6tr3se6fu7> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT On Fri, Dec 29, 2023 at 07:43:13PM +0800, Daniel J Blueman wrote: > Hi Kent et al, > > On Linux 6.7-rc7 from bcachefs master SHA f3608cbdfd built with UBSAN > [1], with a crafted workload [2] I'm able to trigger stack corruption > in bch2_nocow_write [3]. > > Let me know if you can't reproduce it and I'll check reproducibility > on another platform, and let me know for any patch testing. Can you give the bcachefs-testing branch a try?