All of lore.kernel.org
 help / color / mirror / Atom feed
From: christophe.hauser@supelec.fr (Christophe Hauser)
To: kernelnewbies@lists.kernelnewbies.org
Subject: mmap
Date: Thu, 23 Aug 2012 15:06:17 +0200	[thread overview]
Message-ID: <20120823130617.GF14639@Latty> (raw)

Hi all,

When tracking mmaps from LSM with the following hook:

static int file_mmap(struct file *file, unsigned long reqprot,
        unsigned long prot, unsigned long flags,
                unsigned long addr, unsigned long addr_only);

I often get:
file = NULL
flags = 0x0 (MAP_FILE)
prot = 0x0 (PROT_NONE)

I am wondering what is the use for mmap with MAP_FILE and PROT_NONE together ?
Not sure how to interpret that ?

-- 
Christophe

             reply	other threads:[~2012-08-23 13:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-23 13:06 Christophe Hauser [this message]
2012-08-23 14:18 ` mmap Mulyadi Santosa
  -- strict thread matches above, loose matches on Subject: below --
2011-12-02 12:20 mmap Sébastien Paumier
2011-12-02 14:45 ` mmap Eric Dumazet
2006-10-26  0:48 mmap Sudharsan Rangarajan
2006-10-26  1:02 ` mmap Ian McDonald
2006-10-26  1:02 ` mmap Hagen Paul Pfeifer
2006-01-05 10:03 mmap Fillod Stephane
2006-01-05  6:16 mmap Brett McNerney
2001-07-02 14:00 mmap mdaljeet
2001-07-03 17:47 ` mmap Jens Axboe
2001-05-15 10:08 mmap mdaljeet
2001-05-15  6:47 mmap mdaljeet
2001-05-15  7:33 ` mmap Gerd Knorr
2001-05-15  9:42 ` mmap Alan Cox

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=20120823130617.GF14639@Latty \
    --to=christophe.hauser@supelec.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.