From: thibaut@sautereau.fr (Thibaut SAUTEREAU)
To: kernelnewbies@lists.kernelnewbies.org
Subject: A question on vma_address()
Date: Tue, 17 Oct 2017 10:54:48 +0700 [thread overview]
Message-ID: <20171017035445.GC734@gandi.net> (raw)
In-Reply-To: <15f25e507d6.12927547e3137.3117448538573306284@zoho.com>
Hi Perr,
On Mon, Oct 16, 2017 at 11:54:47PM +0800, Perr Zhang wrote:
> Why should we use the function max() on 'start' and 'vma->vm_start'?
> Could the 'start' be less than 'vma->vm_start'? If it is so, isn't it
> wrong to just return vma->vm_start but report an error?
The vma_address() function was recently changed in commit a8fa41ad2f6f7.
In the previous version, having the return value of __vma_address()
lower than vma->vm_start was actually triggering a VM_BUG_ON_VMA.
Taking a look at this commit and understanding why such changes had to
be done might help you find an answer to your question :)
--
Thibaut SAUTEREAU
prev parent reply other threads:[~2017-10-17 3:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-16 15:54 A question on vma_address() Perr Zhang
2017-10-17 3:54 ` Thibaut SAUTEREAU [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171017035445.GC734@gandi.net \
--to=thibaut@sautereau.fr \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.