lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zj2PX6Fy3BEnQc50@visitorckw-System-Product-Name>
Date: Fri, 10 May 2024 11:07:11 +0800
From: Kuan-Wei Chiu <visitorckw@...il.com>
To: Kent Overstreet <kent.overstreet@...ux.dev>
Cc: Coly Li <colyli@...e.de>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Linux Next Mailing List <linux-next@...r.kernel.org>,
	Matthew Mirvish <matthew@...2.xyz>
Subject: Re: linux-next: manual merge of the refactor-heap tree with the
 block tree

On Thu, May 09, 2024 at 07:16:31PM -0400, Kent Overstreet wrote:
> 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.

Oh, sorry for the misunderstanding I caused. When I mentioned "bug" [1]
earlier, I was referring to the bug addressed in
3a861560ccb3 ("bcache: fix variable length array abuse in btree_iter"),
not a merge conflict.

Here are the results after the rebase:
https://github.com/visitorckw/linux.git refactor-heap

[1]: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2039368

Regards,
Kuan-Wei

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ