Re: [PATCH] mm: add MM_SWAPENTS and page table when calculate tasksize in lowmem_scan()

2016-02-16 Thread David Rientjes
On Tue, 16 Feb 2016, Greg Kroah-Hartman wrote: > On Tue, Feb 16, 2016 at 05:37:05PM +0800, Xishi Qiu wrote: > > Currently tasksize in lowmem_scan() only calculate rss, and not include > > swap. > > But usually smart phones enable zram, so swap space actually use ram. > > Yes, but does that

Re: [PATCH v2] android: binder: Sanity check at binder ioctl

2016-01-19 Thread David Rientjes
On Tue, 19 Jan 2016, Chen Feng wrote: > When a process fork a child process, we should not allow the > child process use the binder which opened by parent process. > > But if the binder-object creater is a thread of one process who exit, > the other thread can also use this binder-object

[patch] android, lmk: avoid setting TIF_MEMDIE if process has already exited

2015-04-02 Thread David Rientjes
before setting TIF_MEMDIE by way of mark_tsk_oom_victim(). Cc: Arve Hjønnevåg a...@android.com Cc: Riley Andrews riandr...@android.com Acked-by: Michal Hocko mho...@suse.cz Signed-off-by: David Rientjes rient...@google.com --- drivers/staging/android/lowmemorykiller.c | 17 - 1