Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #64186
| From | YunQiang Su <wzssyqa@gmail.com> |
|---|---|
| Newsgroups | linux.debian.bugs.dist, linux.debian.kernel |
| Subject | Bug#929366: linux-image-4.19.0-5-octeon: usercopy: Kernel memory overwrite attempt detected (in systemd-timedated) |
| Date | 2019-05-28 08:50 +0200 |
| Message-ID | <y2E5P-7C1-3@gated-at.bofh.it> (permalink) |
| References | <y2E5P-7C1-5@gated-at.bofh.it> <y0z0B-3ke-7@gated-at.bofh.it> <y2E5P-7C1-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Cross-posted to 2 groups.
Paul Burton <paul.burton@mips.com> 于2019年5月26日周日 上午7:22写道:
>
> Hi YunQiang,
>
> Could you try the following kernel patch & let me know if it works for
> you?
>
> My theory is that this is fallout from commit 517e1fbeb65f
> ("mm/usercopy: Drop extra is_vmalloc_or_module() check") which went into
> Linux v4.12. I guess this shows our test systems don't have hardened
> usercopy enabled - I'll go change that!
>
> Thanks,
> Paul
>
> ---
> diff --git a/arch/mips/mm/mmap.c b/arch/mips/mm/mmap.c
> index 2f616ebeb7e0..01b2eadd28bd 100644
> --- a/arch/mips/mm/mmap.c
> +++ b/arch/mips/mm/mmap.c
> @@ -203,6 +203,11 @@ unsigned long arch_randomize_brk(struct mm_struct *mm)
>
> int __virt_addr_valid(const volatile void *kaddr)
> {
> + unsigned long vaddr = (unsigned long)vaddr;
> +
> + if ((vaddr < PAGE_OFFSET) || (vaddr >= MAP_BASE))
> + return false;
> +
> return pfn_valid(PFN_DOWN(virt_to_phys(kaddr)));
> }
> EXPORT_SYMBOL_GPL(__virt_addr_valid);
It works well at least on my Loongson 3 laptop.
I tried to reinstall all packages with gz'ed mannual pages.
No of this problem happens again.
--
YunQiang Su
Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#929366: linux-image-4.19.0-5-octeon: usercopy: Kernel memory overwrite attempt detected (in systemd-timedated) Julien Cristau <jcristau@debian.org> - 2019-05-22 15:00 +0200 Bug#929366: linux-image-4.19.0-5-octeon: usercopy: Kernel memory overwrite attempt detected (in systemd-timedated) YunQiang Su <wzssyqa@gmail.com> - 2019-05-23 16:30 +0200 Bug#929366: linux-image-4.19.0-5-octeon: usercopy: Kernel memory overwrite attempt detected (in systemd-timedated) YunQiang Su <wzssyqa@gmail.com> - 2019-05-28 08:50 +0200 Bug#929366: marked as done (linux-image-4.19.0-5-octeon: usercopy: Kernel memory overwrite attempt detected (in systemd-timedated)) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2019-06-18 13:20 +0200
csiph-web