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>] [day] [month] [year] [list]
Message-ID: <ae1c82500804151313h7339b5b1ufc02790544898e50@mail.gmail.com>
Date:	Tue, 15 Apr 2008 22:13:08 +0200
From:	"Robert Obryk" <robryk@...il.com>
To:	linux-kernel@...r.kernel.org
Subject: Changing vma's vm_file

Hello everyone,

Can a file_ops mmap routine change the vm_file in the vma? I assume
the file_ops of the substituted file won't break -- question is
whether anything else can.

The only thing during mmap syscall I can notice to depend on the value
of vm_file prior to call to f_op->mmap is the whole VM_DENYWRITE
stuff. It confuses me somewhat, while it appears to do something,
while manual for mmap states that MAP_DENYWRITE is ignored. What does
it do now?

The problem I am trying to solve is creating a file which will, upon
being mmaped, duplicate a mapping belonging to a different process. I
plan to do this by substituting vm_file and calling proper f_op->mmap
in my file's f_op->mmap.

Thanks in advance for any advice,
Robert Obryk
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ