From: kmcmarti@redhat.com (Kyle McMartin) Date: Thu, 13 Nov 2014 10:14:08 -0500 Subject: [PATCH] arm64: __clear_user: handle exceptions on strb In-Reply-To: <20141113150624.GB18494@e104818-lin.cambridge.arm.com> References: <20141112210744.GC6869@redacted.bos.redhat.com> <20141113150624.GB18494@e104818-lin.cambridge.arm.com> Message-ID: <20141113151407.GG6869@redacted.bos.redhat.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Nov 13, 2014 at 03:06:25PM +0000, Catalin Marinas wrote: > On Wed, Nov 12, 2014 at 09:07:44PM +0000, Kyle McMartin wrote: > > ARM64 currently doesn't fix up faults on the single-byte (strb) case of > > __clear_user... which means that we can cause a nasty kernel panic as an > > ordinary user with any multiple PAGE_SIZE+1 read from /dev/zero. > > i.e.: dd if=/dev/zero of=foo ibs=1 count=1 (or ibs=65537, etc.) > > Thanks for this, it's been like this for a while. Applied. > Thanks Catalin, if it's not too late, I forgot to add a Reported-by: Milo? Prchl?k for the initial report of the panic. regards, Kyle