Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp145650lqo; Thu, 9 May 2024 15:44:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXB8v1xAxLhCQx/B56MOzLgI/4iXW0xY/taH4fekwfPyesGN2/D9uEWlY2aDvVKm367CfNHWpSgnSGJNrqMPxGNwmH+aFxDJi10GCCvOQ== X-Google-Smtp-Source: AGHT+IGdNb/1UsR4UBzr0U9nvNUFO9Q7SQmpIBeMjgYiDdXR1VvP65pVylbP3LoBne/qofEwWIXH X-Received: by 2002:a50:9f21:0:b0:572:6249:96bc with SMTP id 4fb4d7f45d1cf-5734d67eea4mr561693a12.32.1715294686738; Thu, 09 May 2024 15:44:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715294686; cv=pass; d=google.com; s=arc-20160816; b=whuMda9ZlvZme/FAHB6pxh6SQZYT8BvwiCk+Lyo8qWUFt730oq1zVMWwdOukWi0Ejz 2z+jEBfqTj2B0Pbgt2h3d4wbChxEzUeRoqdRa5eYAiUFc2hossMVdUijOIiGfzALO3Bk uHg9oVIYApm9tvz4Gn7JFiEDjpnreWjWSfbguqPD2mvym3pMNVDUFtdljl5dtfExnHZE +sUvG4e1w174GSBg6trywGRkTtHga0H+WsGCAmwpYr6gGDObJ+lbBehaAh3ElNaxttpN D1q63wPFjJ8FJlTwFTR+Dzk+ee6HKSftdjUcOR1AhXUL6/+EHX5NOdomcStVso++j4nY PWdg== 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:date:dkim-signature; bh=fEss7WBKPS6InHboF+8g/mtU9WWArZNA0eoVPu7Y/lE=; fh=qem326LrNQ4l9TJfnn4xggM11gc8alGwJwyU1cKaLOQ=; b=OUBnNjxVg3Jze6OqXtajnePZnyYcNQuTTF2TsWY5MbcpB2F8w95TX6CIMYYCMRbca/ VxgNgKbn907Adz6rGm3TNM7qO+rYyKmqPLR2+QnRFrrBo0VBi1FWXiEcGgst4QuxH9Qd RRWOdh9YAKJa8YvXSsl92WORp5S1CNCVWymXCfmWSEMXxkXGUQFKhhBO/yoOlFjDJrKi 64Gj9LUlkrWFP5Zo2uesaTxsEdFHbQezqRcZa6vG86ycME1xp4t7+6RL91CqBbviS42t duaoXU7q+TIKMHbbO4g2dxHd7oCpvaH15Cu6i4M4RgnqHRUdTJT2LNRzARslTAuASS2W tawQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DQ4Rhmyh; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-175048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175048-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c36e524si1170300a12.566.2024.05.09.15.44.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 15:44:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DQ4Rhmyh; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-175048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175048-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 4EE441F22F54 for ; Thu, 9 May 2024 22:44:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 573A912D215; Thu, 9 May 2024 22:44:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DQ4Rhmyh" Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F223770E0; Thu, 9 May 2024 22:44:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715294678; cv=none; b=uFwfZEPVoZ2DnSOoBqXOqvflJjSB62FE/cgtBmbYqT7W3IO5f2cggUxS3RKHQ3+QrlnfQncTPhcQ1V2/oYM5npM7COcLifVbn1iIROlqVUPygYP+/FABOTK9LtvCSQghf2VWiOaAuM0bvcSG2OxPZek8WEPRaKB+5Ywj7Udt9PE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715294678; c=relaxed/simple; bh=c+nbQXyOehEhG7ZjFayikevPi5/rcN82iRVA1iKV0Go=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jMTxn3/LJvlbvpiUcvNwqdTMMcbQFIJTxACqoEy8jF0ryeaLjjC1llSpFb19RiwgNarExcT+yrtQWB34/lMT3gJ1B3+6C73zkRR09OQbV3ulO/526RIH+40Emh9shAkly5t+YcaryOHibG2+KpfDvAvE22vo7ZcpDwgQDYcVVDk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DQ4Rhmyh; arc=none smtp.client-ip=209.85.216.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-2af71daeec1so406403a91.0; Thu, 09 May 2024 15:44:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715294676; x=1715899476; darn=vger.kernel.org; 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=fEss7WBKPS6InHboF+8g/mtU9WWArZNA0eoVPu7Y/lE=; b=DQ4RhmyhLSu7Lgzv0Q2HMjQBS9tYiHnoUGz7uMrX7Gy7YBdPoLpNLA6yIgsIme4FAp PWnKn9ELBRyg3N971JHqUTPEMGZ38qjp9pqrj7qaxF5tWIuO45WjpSYVlv+eeV5ZSlJO Myp0lEI3j8yG7MeDbBDMasKROeuf5HlipDJaxLZ2UWqpqoTBI9vlpLHm2y2OyUA8IauI 1KP+V76TfqWcjNWWVtAkdtp8gt91FLBMSMUSTHmN5o7TL/K5ylYwc9sk6nQun5sOuG+c Tn4/mgjsVFCc1t/vx/gTwL57eL0JhBzHkovIwbpcChli2XI16uTTq8NXcI0L3IMgHRT8 dbqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715294676; x=1715899476; 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=fEss7WBKPS6InHboF+8g/mtU9WWArZNA0eoVPu7Y/lE=; b=O+kFp1LpQih2FK3d/71RASIFYPfsn2YSDDTl483ORiPJJfuRdoFS5bfgqNZwwBFit6 rVDnDL56GXKxR4I1MHGPcXt3M1mXNlIH9zsG848YiMWxCoEHJwgjx/+DCHy47zglVfaQ k35wCxOA1iy/AsAo81tCZfK9Eau/f8Nz9XtodEpwnhCZGnPf8srvb0Xi7U/FScmfgJoa jgJH7k9yPYSjuTi5aWFHGqa+Q20ynCbrd/QWrR5BOIqN0AEbzP65m0CaMEbvQMWwqjyC Ns6hwFXFJRU6lIpHFEIpvkiguF/cXgT9p080VyQSWIR9lZY+k6bnrA+ip0CsfuG7F3Gp ZjLw== X-Forwarded-Encrypted: i=1; AJvYcCXrWtelUSYiEGYL3ChhCv6h+g06tx3CQqJYmRmhRZ1mPrm02K5eG0SwblaYdfiLx5tDtYCVAwrnzaAJvPxJHUo7HLhhWL1/Jx9fq4dLjlhdjVQScZQAaTUozsdcNQewWpG3qa0BAyQG2A== X-Gm-Message-State: AOJu0YxCZ5cUVKLXpTE74jep3dYUUnSAdT07rbqEVlyH5FCLF/q9uphP mLHSOpeDVBBI5iRHfutJsRvQGIooMwnofUT1NN+rLk3qW53U4lH/oRHqtg== X-Received: by 2002:a17:90a:130a:b0:2b5:1cdc:9ac8 with SMTP id 98e67ed59e1d1-2b6cd305bd2mr846049a91.4.1715294676346; Thu, 09 May 2024 15:44:36 -0700 (PDT) Received: from visitorckw-System-Product-Name ([140.113.216.168]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2b67116629asm2028112a91.19.2024.05.09.15.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 15:44:35 -0700 (PDT) Date: Fri, 10 May 2024 06:44:29 +0800 From: Kuan-Wei Chiu To: Kent Overstreet , Coly Li Cc: Stephen Rothwell , Jens Axboe , 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: 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? Regards, Kuan-Wei