Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1581242
| From | Will Deacon <will.deacon@arm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] arm64: fix warning about swapper_pg_dir overflow |
| Date | 2017-02-15 12:40 +0100 |
| Message-ID | <tb66e-7Lf-35@gated-at.bofh.it> (permalink) |
| References | <taSPE-72f-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Feb 14, 2017 at 10:27:01PM +0100, Arnd Bergmann wrote: > With 4 levels of 16KB pages, we get this warning about the fact that we are > copying a whole page into an array that is declared as having only two pointers > for the top level of the page table: > > arch/arm64/mm/mmu.c: In function 'paging_init': > arch/arm64/mm/mmu.c:528:2: error: 'memcpy' writing 16384 bytes into a region of size 16 overflows the destination [-Werror=stringop-overflow=] > > This is harmless since we actually reserve a whole page in the definition of the > array that comes from, and just the extern declaration is short. The pgdir > is initialized to zero either way, so copying the actual entries here seems > like the best solution. Thanks, I'll queue this up for 4.11 with the acks. Will
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] arm64: fix warning about swapper_pg_dir overflow Arnd Bergmann <arnd@arndb.de> - 2017-02-14 22:30 +0100
Re: [PATCH] arm64: fix warning about swapper_pg_dir overflow Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2017-02-14 22:40 +0100
Re: [PATCH] arm64: fix warning about swapper_pg_dir overflow Arnd Bergmann <arnd@arndb.de> - 2017-02-14 23:10 +0100
Re: [PATCH] arm64: fix warning about swapper_pg_dir overflow Will Deacon <will.deacon@arm.com> - 2017-02-15 12:40 +0100
csiph-web