Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp160069lqo; Thu, 9 May 2024 16:18:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWuNW+xh7b0ujEoMNLBMvnzmLklbh5s2Hiw452NmhQn7hYFzZ/IxkicKDKFtEnXZmmR4mx3Eh6QU/Tb+8C+JZl0gJm8fL8ABL58sKOnxQ== X-Google-Smtp-Source: AGHT+IHBz+V5OR/5dUs1dQ90yrh4T4X0KYazI+QxDyr8k6ClG11CHFHPs97D/sp2BDphYBZ+vTBD X-Received: by 2002:a05:6358:948c:b0:189:8b22:b95 with SMTP id e5c5f4694b2df-193bd2f8f54mr89962855d.29.1715296692372; Thu, 09 May 2024 16:18:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715296692; cv=pass; d=google.com; s=arc-20160816; b=gtvLJlkN76pLwwyIBfAXIgzJqPmNPWLtu0DpShJizwhe9tCnIYpLSgkKT10apW0Pki Jvdu7BWkGDEcPFAi609Lpf379jiPVwEonJFW52H/ofnN8VfWTvc/dIbZMGd5E55eR0MY iV4RhQZz+ZR4ZBsDb2l8CyUH9//7bEgwM/Q9C/W5ab8+8981Lco2Z+R0XompwFHZyfNb MfRd3d9I2w65g6rjSEB8UBpzZWNnKfKes042225ccWC2vxzZEWr59nXbrwsXE0pByoBI Wb03g85tU+UrmI3k72EtjccMoqz+CC3pBuPLqALxi+QqRugm25d/YxFsiObX3KAY3rR4 ZpuA== ARC-Message-Signature: i=2; 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=kmpq4qsm9xW2KmIJo1KKqXkICsV8ykT2VohgeRvZUpE=; fh=yxd0cXKyGP4wfTAnghf3DviZcSWiIyRki+0m3Iex5EM=; b=Az7ztW3B/g8lYyKAmT9TD1SsYjORERw0wojQu/tRd48Y/w7gckoTTWgLF93Fn6Kucs Ph8ZmOF68bDCiLeqDN0YJLIAWy5Vw6op55rkUo+JvQmmWQAmzRXPDFKViP3BZUH0512d aDpWfbTvXHwfwbLtV758YINdTf76sByniJ/dlPSf/Q4WygYFpfrwzLhnJvQxueqWTfIA OjfIBM05xCoYLMkZlAfn0dGlT5Kd74Pe0DrO6Jfqvmc0Cn3hYbE4hwcfPm1ZSjwb9e8G r7ADeoQh3glkUFoWdXruWJ31mEsMAPyrjt13RukhkoAeo0y5MpZjolYP9FqMhrag8Bc6 yj7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=PVZktpqa; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-175068-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175068-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-63412c36a1bsi2303465a12.726.2024.05.09.16.18.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 16:18:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175068-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=PVZktpqa; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-175068-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175068-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8C949B219C5 for ; Thu, 9 May 2024 23:16:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D0A112DD94; Thu, 9 May 2024 23:16:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="PVZktpqa" Received: from out-182.mta1.migadu.com (out-182.mta1.migadu.com [95.215.58.182]) (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 2CD7FDDD9 for ; Thu, 9 May 2024 23:16:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715296600; cv=none; b=ipvn3GYXrnyqahSNDav0B/e1KcsTw6ZfnFujp5ZjFBdgA3xlDz9V6F/5YiyKQMOq3kGDNVU1g0y5RCxd5kzQNkL7Z1wmwM69tAVPJP4nZROnsY6So/82zhWjHsdlOXBX3zC6hXl+rnb/oO6uFd4OIke1P68h5RMO0xRW9K4ehIQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715296600; c=relaxed/simple; bh=EeYIzLBvQx4IKziEV7PvM+S0Fz+Q37VPJh9CDGswnNk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=l7lvADbdcGD31sOpMqYt9dKTdJSG3shMTZ7JJWIvmrI6R1Hzg8uKS6r3os6HDbH+XVc92a4zm0latXM8pSC5NwrG0zDV/VsoAYJHQn9m6THq/AyupVpTZeOrPA8+IIyh+6DrsvZsRphi+2xE+aNvDBVvwiV10notuh3Ws3pIWZE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=PVZktpqa; arc=none smtp.client-ip=95.215.58.182 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: Thu, 9 May 2024 19:16:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1715296596; 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=kmpq4qsm9xW2KmIJo1KKqXkICsV8ykT2VohgeRvZUpE=; b=PVZktpqaWPH59fBEmkwmQwAHIESxbhgQZ2sI9DcZUUDPorK+mT98KD5bPX8VOyvfz8cjR5 RrX5xQFwQQOIsC1VbXIDtFPaqdYUsI0nkfhBrjuwBU0FNEfNW9B3g54vTpTBeylot8HHx4 6qtS6SoeFGA+jBnCbShkBhUHdw+LF2s= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Kuan-Wei Chiu Cc: Coly Li , Linux Kernel Mailing List , Linux Next Mailing List , Matthew Mirvish Subject: Re: linux-next: manual merge of the refactor-heap tree with the block tree Message-ID: References: <20240509152745.08af752f@canb.auug.org.au> 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, May 10, 2024 at 06:44:29AM +0800, Kuan-Wei Chiu wrote: > On Thu, May 09, 2024 at 03:58:57PM -0400, Kent Overstreet wrote: > > On Thu, May 09, 2024 at 03:27:45PM +1000, Stephen Rothwell wrote: > > > Hi all, > > > > > > Today's linux-next merge of the refactor-heap tree got conflicts in: > > > > > > drivers/md/bcache/bset.c > > > drivers/md/bcache/bset.h > > > drivers/md/bcache/btree.c > > > drivers/md/bcache/writeback.c > > > > > > between commit: > > > > > > 3a861560ccb3 ("bcache: fix variable length array abuse in btree_iter") > > > > > > from the block tree and commit: > > > > > > afa5721abaaa ("bcache: Remove heap-related macros and switch to generic min_heap") > > > > > > from the refactor-heap tree. > > > > > > Ok, these conflicts are too extensive, so I am dropping the refactor-heap > > > tree for today. I suggest you all get together and sort something out. > > > > Coli and Kuan, you guys will need to get this sorted out quick if we > > want refactor-heap to make the merge window > > Hi Coli and Kent, > > If I understand correctly, the reported bug is because we attempted to > point (heap)->data to a dynamically allocated memory , but at that time > (heap)->data was not a regular pointer but a fixed size array with a > length of MAX_BSETS. > > In my refactor heap patch series, I introduced a preallocated array and > decided in min_heap_init() whether the data pointer should point to an > incoming pointer or to the preallocated array. Therefore, I am > wondering if my patch might have unintentionally fixed this bug? > > I am unsure how to reproduce the reported issue. Could you assist me in > verifying whether my assumption is correct? This is a merge conflict, not a runtime. Can you rebase onto Coli's tree? We'll have to retest.