All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Ram Pai <linuxram@us.ibm.com>
Cc: dave.hansen@linux.intel.com, mhocko@kernel.org,
	Ulrich.Weigand@de.ibm.com, bauerman@linux.vnet.ibm.com,
	msuchanek@suse.de, linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] powerpc/pkeys: copy pkey-tracking-information at fork()
Date: Tue, 04 Dec 2018 14:00:07 +0100	[thread overview]
Message-ID: <87r2exih0o.fsf@oldenburg2.str.redhat.com> (raw)
In-Reply-To: <1543869802-15372-1-git-send-email-linuxram@us.ibm.com> (Ram Pai's message of "Mon, 3 Dec 2018 12:43:22 -0800")

* Ram Pai:

> +void arch_dup_pkeys(struct mm_struct *oldmm, struct mm_struct *mm)
> +{
> +	/* Duplicate the oldmm pkey state in mm: */
> +	mm_pkey_allocation_map(mm) = mm_pkey_allocation_map(oldmm);
> +	mm->context.execute_only_pkey = oldmm->context.execute_only_pkey;
> +}

Looks reasonable to me.

Thanks,
Florian (who is not a kernel developer though)

  parent reply	other threads:[~2018-12-04 13:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-03 20:43 [PATCH] powerpc/pkeys: copy pkey-tracking-information at fork() Ram Pai
2018-12-04  0:37 ` Thiago Jung Bauermann
2018-12-04 13:00 ` Florian Weimer [this message]
2018-12-20 13:19 ` Michael Ellerman
2018-12-20 19:01   ` Ram Pai
2018-12-20 20:03   ` [PATCH v2] " Ram Pai
2018-12-21  0:55     ` Michael Ellerman
2018-12-23 13:28     ` [v2] " Michael Ellerman

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=87r2exih0o.fsf@oldenburg2.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=Ulrich.Weigand@de.ibm.com \
    --cc=bauerman@linux.vnet.ibm.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=linuxram@us.ibm.com \
    --cc=mhocko@kernel.org \
    --cc=msuchanek@suse.de \
    /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.