Re: Fix interval_tree_iter_first() to check root node value

2023-08-09 Thread Richard Henderson
On 8/9/23 08:53, Helge Deller wrote: On 8/9/23 17:23, Richard Henderson wrote: On 8/9/23 08:11, Helge Deller wrote: Fix a crash in qemu-user when running cat /proc/self/maps in a chroot, where /proc isn't mounted. The problem was introduced by commit 3ce3dd8ca965 ("util/selfmap: Rewrite

Re: Fix interval_tree_iter_first() to check root node value

2023-08-09 Thread Helge Deller
On 8/9/23 17:23, Richard Henderson wrote: On 8/9/23 08:11, Helge Deller wrote: Fix a crash in qemu-user when running cat /proc/self/maps in a chroot, where /proc isn't mounted. The problem was introduced by commit 3ce3dd8ca965 ("util/selfmap: Rewrite using qemu/interval-tree.h") where in

Re: Fix interval_tree_iter_first() to check root node value

2023-08-09 Thread Richard Henderson
On 8/9/23 08:11, Helge Deller wrote: Fix a crash in qemu-user when running cat /proc/self/maps in a chroot, where /proc isn't mounted. The problem was introduced by commit 3ce3dd8ca965 ("util/selfmap: Rewrite using qemu/interval-tree.h") where in open_self_maps_1() the function read_self_

Fix interval_tree_iter_first() to check root node value

2023-08-09 Thread Helge Deller
Fix a crash in qemu-user when running cat /proc/self/maps in a chroot, where /proc isn't mounted. The problem was introduced by commit 3ce3dd8ca965 ("util/selfmap: Rewrite using qemu/interval-tree.h") where in open_self_maps_1() the function read_self_maps() is called and which returns NULL