Re: [PATCH v2] ARC: Send SIGSEGV if userspace process accesses kernel virtual memory

2019-05-13 Thread Vineet Gupta
On 5/13/19 10:28 AM, Eugeniy Paltsev wrote: > As of today if userspace process tries to access address which belongs > to kernel virtual memory area and kernel have mapping for this address > that process hangs instead of receiving SIGSEGV and being killed. > > Steps to reproduce: > Create userspa

[PATCH v2] ARC: Send SIGSEGV if userspace process accesses kernel virtual memory

2019-05-13 Thread Eugeniy Paltsev
As of today if userspace process tries to access address which belongs to kernel virtual memory area and kernel have mapping for this address that process hangs instead of receiving SIGSEGV and being killed. Steps to reproduce: Create userspace application which reads from the beginning of kernel-

Re: [PATCH] ARC: Send SIGSEGV if userspace process accesses kernel virtual memory

2019-05-13 Thread Vineet Gupta
On 5/13/19 7:41 AM, Eugeniy Paltsev wrote: > As of today if userspace process tries to access address which belongs > to kernel virtual memory area and kernel have mapping for this address > that process hangs instead of receiving SIGSEGV and being killed. > > Steps to reproduce: > Create userspace

[PATCH] ARC: Send SIGSEGV if userspace process accesses kernel virtual memory

2019-05-13 Thread Eugeniy Paltsev
As of today if userspace process tries to access address which belongs to kernel virtual memory area and kernel have mapping for this address that process hangs instead of receiving SIGSEGV and being killed. Steps to reproduce: Create userspace application which reads from the beginning of kernel-

Re: [PATCH v2] ARC: fix memory nodes topology in case of highmem enabled

2019-05-13 Thread Eugeniy Paltsev
Hi Vineet, ping. On Wed, 2019-04-17 at 13:46 +0300, Eugeniy Paltsev wrote: > Tweak generic node topology in case of CONFIG_HIGHMEM enabled to > prioritize allocations from ZONE_HIGHMEM to avoid ZONE_NORMAL > pressure. > > Here is example when we can see problems on ARC with currently > existing