[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20151203175436.GD11394@treble.redhat.com>
Date: Thu, 3 Dec 2015 11:54:36 -0600
From: Josh Poimboeuf <jpoimboe@...hat.com>
To: Seth Jennings <sjenning@...hat.com>,
Jiri Kosina <jikos@...nel.org>,
Vojtech Pavlik <vojtech@...e.com>
Cc: linux-kernel@...r.kernel.org, live-patching@...r.kernel.org,
Rusty Russell <rusty@...tcorp.com.au>,
Miroslav Benes <mbenes@...e.cz>
Subject: Re: [PATCH v3] livepatch: Cleanup module page permission changes
On Thu, Dec 03, 2015 at 11:07:28AM -0600, Josh Poimboeuf wrote:
> Calling set_memory_rw() and set_memory_ro() for every iteration of the
> loop in klp_write_object_relocations() is messy, inefficient, and
> error-prone.
>
> Change all the read-only pages to read-write before the loop and convert
> them back to read-only again afterwards.
>
> Suggested-by: Miroslav Benes <mbenes@...e.cz>
> Signed-off-by: Josh Poimboeuf <jpoimboe@...hat.com>
> ---
>
> Based on linux-next.
>
> - v3: use new module_{disable,enable}_ro() functions (in linux-next)
Please ignore this patch. I just realized that it conflicts with
Chris's patch set. I'll post v4 after Chris's gets merged.
--
Josh
--
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