Big thanks on review, Al!
2016-09-03 3:20 GMT+03:00 Al Viro :
> On Thu, Aug 25, 2016 at 06:21:08PM +0300, Dmitry Safonov wrote:
>> + unsigned long n_addr = mmap_region(vdso_file_64, text_start,
>> + image->size, VM_READ|VM_EXEC|
>>
Big thanks on review, Al!
2016-09-03 3:20 GMT+03:00 Al Viro :
> On Thu, Aug 25, 2016 at 06:21:08PM +0300, Dmitry Safonov wrote:
>> + unsigned long n_addr = mmap_region(vdso_file_64, text_start,
>> + image->size, VM_READ|VM_EXEC|
>> +
On Thu, Aug 25, 2016 at 06:21:08PM +0300, Dmitry Safonov wrote:
> + unsigned long n_addr = mmap_region(vdso_file_64, text_start,
> + image->size, VM_READ|VM_EXEC|
> + VM_DONTEXPAND|VM_SOFTDIRTY|
> +
On Thu, Aug 25, 2016 at 06:21:08PM +0300, Dmitry Safonov wrote:
> + unsigned long n_addr = mmap_region(vdso_file_64, text_start,
> + image->size, VM_READ|VM_EXEC|
> + VM_DONTEXPAND|VM_SOFTDIRTY|
> +
On Tue, Aug 30, 2016 at 04:33:12PM +0200, Oleg Nesterov wrote:
> > + inode = ramfs_get_inode(sb, NULL, S_IFREG | S_IRUGO | S_IXUGO, 0);
> Not sure... I think alloc_anon_inode() makes more sense.
Compared to this, you mean? It's going to give you the wrong
permissions/i_op/a_ops, and
On Tue, Aug 30, 2016 at 04:33:12PM +0200, Oleg Nesterov wrote:
> > + inode = ramfs_get_inode(sb, NULL, S_IFREG | S_IRUGO | S_IXUGO, 0);
> Not sure... I think alloc_anon_inode() makes more sense.
Compared to this, you mean? It's going to give you the wrong
permissions/i_op/a_ops, and
On Mon, Aug 29, 2016 at 02:28:08AM -0700, Andy Lutomirski wrote:
> On Thu, Aug 25, 2016 at 8:21 AM, Dmitry Safonov
> wrote:
> > I added here a new in-kernel fs with ramfs-like options.
> > Created vdso file in this fs (yet for testing, only 64-bit vdso).
> > Mapped this
On Mon, Aug 29, 2016 at 02:28:08AM -0700, Andy Lutomirski wrote:
> On Thu, Aug 25, 2016 at 8:21 AM, Dmitry Safonov
> wrote:
> > I added here a new in-kernel fs with ramfs-like options.
> > Created vdso file in this fs (yet for testing, only 64-bit vdso).
> > Mapped this file to process's mm on
On Mon, Aug 29, 2016 at 2:50 AM, Dmitry Safonov wrote:
> On 08/29/2016 12:28 PM, Andy Lutomirski wrote:
>>
>> On Thu, Aug 25, 2016 at 8:21 AM, Dmitry Safonov
>> wrote:
>>>
>>> I added here a new in-kernel fs with ramfs-like options.
>>> Created
On Mon, Aug 29, 2016 at 2:50 AM, Dmitry Safonov wrote:
> On 08/29/2016 12:28 PM, Andy Lutomirski wrote:
>>
>> On Thu, Aug 25, 2016 at 8:21 AM, Dmitry Safonov
>> wrote:
>>>
>>> I added here a new in-kernel fs with ramfs-like options.
>>> Created vdso file in this fs (yet for testing, only 64-bit
2016-08-30 17:33 GMT+03:00 Oleg Nesterov :
> On 08/25, Dmitry Safonov wrote:
>>
>> +static __init struct file *init_vdso_file(const struct vdso_image
>> *vdso_image,
>> + const char *name)
>> +{
>> + struct super_block *sb;
>> + struct
2016-08-30 17:33 GMT+03:00 Oleg Nesterov :
> On 08/25, Dmitry Safonov wrote:
>>
>> +static __init struct file *init_vdso_file(const struct vdso_image
>> *vdso_image,
>> + const char *name)
>> +{
>> + struct super_block *sb;
>> + struct qstr name_str;
>>
On 08/25, Dmitry Safonov wrote:
>
> +static __init struct file *init_vdso_file(const struct vdso_image
> *vdso_image,
> + const char *name)
> +{
> + struct super_block *sb;
> + struct qstr name_str;
> + struct inode *inode;
> + struct path path;
On 08/25, Dmitry Safonov wrote:
>
> +static __init struct file *init_vdso_file(const struct vdso_image
> *vdso_image,
> + const char *name)
> +{
> + struct super_block *sb;
> + struct qstr name_str;
> + struct inode *inode;
> + struct path path;
On 08/29/2016 12:28 PM, Andy Lutomirski wrote:
On Thu, Aug 25, 2016 at 8:21 AM, Dmitry Safonov wrote:
I added here a new in-kernel fs with ramfs-like options.
Created vdso file in this fs (yet for testing, only 64-bit vdso).
Mapped this file to process's mm on
On 08/29/2016 12:28 PM, Andy Lutomirski wrote:
On Thu, Aug 25, 2016 at 8:21 AM, Dmitry Safonov wrote:
I added here a new in-kernel fs with ramfs-like options.
Created vdso file in this fs (yet for testing, only 64-bit vdso).
Mapped this file to process's mm on setup_additional_pages.
Just for
On 08/28/2016 11:14 PM, Cyrill Gorcunov wrote:
On Thu, Aug 25, 2016 at 06:21:08PM +0300, Dmitry Safonov wrote:
I added here a new in-kernel fs with ramfs-like options.
Created vdso file in this fs (yet for testing, only 64-bit vdso).
Mapped this file to process's mm on setup_additional_pages.
On 08/28/2016 11:14 PM, Cyrill Gorcunov wrote:
On Thu, Aug 25, 2016 at 06:21:08PM +0300, Dmitry Safonov wrote:
I added here a new in-kernel fs with ramfs-like options.
Created vdso file in this fs (yet for testing, only 64-bit vdso).
Mapped this file to process's mm on setup_additional_pages.
On Thu, Aug 25, 2016 at 8:21 AM, Dmitry Safonov wrote:
> I added here a new in-kernel fs with ramfs-like options.
> Created vdso file in this fs (yet for testing, only 64-bit vdso).
> Mapped this file to process's mm on setup_additional_pages.
> Just for testing purpose
On Thu, Aug 25, 2016 at 8:21 AM, Dmitry Safonov wrote:
> I added here a new in-kernel fs with ramfs-like options.
> Created vdso file in this fs (yet for testing, only 64-bit vdso).
> Mapped this file to process's mm on setup_additional_pages.
> Just for testing purpose it's done only for
On Thu, Aug 25, 2016 at 06:21:08PM +0300, Dmitry Safonov wrote:
> I added here a new in-kernel fs with ramfs-like options.
> Created vdso file in this fs (yet for testing, only 64-bit vdso).
> Mapped this file to process's mm on setup_additional_pages.
> Just for testing purpose it's done only for
On Thu, Aug 25, 2016 at 06:21:08PM +0300, Dmitry Safonov wrote:
> I added here a new in-kernel fs with ramfs-like options.
> Created vdso file in this fs (yet for testing, only 64-bit vdso).
> Mapped this file to process's mm on setup_additional_pages.
> Just for testing purpose it's done only for
On 08/25/2016 10:49 PM, Dmitry Safonov wrote:
2016-08-25 18:21 GMT+03:00 Dmitry Safonov :
+static char *vdso_vma_name(struct dentry *dentry, char *buffer, int buflen)
+{
+ return "[vdso]";
It should be:
+ return dynamic_dname(dentry, buffer, buflen,
On 08/25/2016 10:49 PM, Dmitry Safonov wrote:
2016-08-25 18:21 GMT+03:00 Dmitry Safonov :
+static char *vdso_vma_name(struct dentry *dentry, char *buffer, int buflen)
+{
+ return "[vdso]";
It should be:
+ return dynamic_dname(dentry, buffer, buflen, "[vdso]");
returned pointer
2016-08-25 18:21 GMT+03:00 Dmitry Safonov :
> +static char *vdso_vma_name(struct dentry *dentry, char *buffer, int buflen)
> +{
> + return "[vdso]";
It should be:
+ return dynamic_dname(dentry, buffer, buflen, "[vdso]");
returned pointer should be inside
2016-08-25 18:21 GMT+03:00 Dmitry Safonov :
> +static char *vdso_vma_name(struct dentry *dentry, char *buffer, int buflen)
> +{
> + return "[vdso]";
It should be:
+ return dynamic_dname(dentry, buffer, buflen, "[vdso]");
returned pointer should be inside buffer.
--
I added here a new in-kernel fs with ramfs-like options.
Created vdso file in this fs (yet for testing, only 64-bit vdso).
Mapped this file to process's mm on setup_additional_pages.
Just for testing purpose it's done only for specific UID.
Signed-off-by: Dmitry Safonov
I added here a new in-kernel fs with ramfs-like options.
Created vdso file in this fs (yet for testing, only 64-bit vdso).
Mapped this file to process's mm on setup_additional_pages.
Just for testing purpose it's done only for specific UID.
Signed-off-by: Dmitry Safonov
---
28 matches
Mail list logo