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  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]
Date:	Tue, 7 Oct 2014 13:58:38 -0500
From:	Chuck Ebbert <>
To:	Arnaldo Carvalho de Melo <>
Cc:	Namhyung Kim <>,
	Stephane Eranian <>,,,,,
Subject: Re: [PATCH v2] perf tools: fix off-by-one error in maps

On Tue, 7 Oct 2014 11:00:50 -0300
Arnaldo Carvalho de Melo <> wrote:

> I keep thinking that this change is making things unclear.
> I.e. the _start_ of a map (map->start) is _in_ the map, and the _end_
> of a map (map->end) is _in_ the map as well.
> 	if (addr > m->end)
> is shorter than:
> 	if (addr >= m->end)
> "start" and "end" should have the same rule applied, i.e. if one is in,
> the other is in as well.
> Etc.

But the convention used in the memory management code is that "end" is
the next byte after the memory region. This gives you:

  size = end - start
  end = start + size

Using a different convention here will just confuse people used to the
way it's done everywhere else.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists