[Devel] [PATCH rh7 v2] mm/tcache: invalidate existing page during cleancache_put_page().

2018-01-18 Thread Andrey Ryabinin
We ->put_page() into tcache twice w/o ->get_page() in between, resulting in: WARNING: CPU: 1 PID: 1936 at mm/tcache.c:752 tcache_attach_page+0x218/0x240 Call Trace: dump_stack+0x19/0x1b add_taint+0x32/0x70 __warn+0xaa/0x100 warn_slowpath_null+0x1d/0x20 tcache_attach_page+0x218/0x240 tcache_

Re: [Devel] [PATCH rh7 v2] mm/tcache: invalidate existing page during cleancache_put_page().

2018-01-18 Thread Kirill Tkhai
On 18.01.2018 18:07, Andrey Ryabinin wrote: > We ->put_page() into tcache twice w/o ->get_page() in between, resulting in: > > WARNING: CPU: 1 PID: 1936 at mm/tcache.c:752 tcache_attach_page+0x218/0x240 > > Call Trace: > dump_stack+0x19/0x1b > add_taint+0x32/0x70 > __warn+0xaa/0x100 > warn_sl