On Mon, 13 Jan 2014, Weijie Yang wrote:
> On Mon, Jan 13, 2014 at 2:27 PM, Mateusz Guzik wrote:
> >
> > Newly introduced window:
> >
> > p->swap_map == NULL && (p->flags & SWP_USED)
> >
> > breaks swap_info_get:
> > if (!(p->flags & SWP_USED))
> > goto bad_device;
> >
On Thu, 9 Jan 2014, Weijie Yang wrote:
> swapoff clear swap_info's SWP_USED flag prematurely and free its resources
> after that. A concurrent swapon will reuse this swap_info while its previous
> resources are not cleared completely.
>
> These late freed resources are:
> - p->percpu_cluster
> -
On Mon, Jan 13, 2014 at 2:27 PM, Mateusz Guzik wrote:
> On Mon, Jan 13, 2014 at 11:51:42AM +0800, Weijie Yang wrote:
>> On Mon, Jan 13, 2014 at 11:27 AM, Andrew Morton
>> wrote:
>> > On Mon, 13 Jan 2014 11:08:58 +0800 Weijie Yang
>> > wrote:
>> >
>> >> >> --- a/mm/swapfile.c
>> >> >> +++ b/mm/s
On Mon, Jan 13, 2014 at 11:51:42AM +0800, Weijie Yang wrote:
> On Mon, Jan 13, 2014 at 11:27 AM, Andrew Morton
> wrote:
> > On Mon, 13 Jan 2014 11:08:58 +0800 Weijie Yang
> > wrote:
> >
> >> >> --- a/mm/swapfile.c
> >> >> +++ b/mm/swapfile.c
> >> >> @@ -1922,7 +1922,6 @@ SYSCALL_DEFINE1(swapoff,
On Mon, Jan 13, 2014 at 11:27 AM, Andrew Morton
wrote:
> On Mon, 13 Jan 2014 11:08:58 +0800 Weijie Yang
> wrote:
>
>> >> --- a/mm/swapfile.c
>> >> +++ b/mm/swapfile.c
>> >> @@ -1922,7 +1922,6 @@ SYSCALL_DEFINE1(swapoff, const char __user *,
>> >> specialfile)
>> >> p->swap_map = NULL;
>>
On Mon, 13 Jan 2014 11:08:58 +0800 Weijie Yang wrote:
> >> --- a/mm/swapfile.c
> >> +++ b/mm/swapfile.c
> >> @@ -1922,7 +1922,6 @@ SYSCALL_DEFINE1(swapoff, const char __user *,
> >> specialfile)
> >> p->swap_map = NULL;
> >> cluster_info = p->cluster_info;
> >> p->cluster_info
On Sat, Jan 11, 2014 at 9:11 AM, Andrew Morton
wrote:
> On Thu, 09 Jan 2014 13:39:55 +0800 Weijie Yang
> wrote:
>
>> swapoff clear swap_info's SWP_USED flag prematurely and free its resources
>> after that. A concurrent swapon will reuse this swap_info while its previous
>> resources are not cle
On Thu, 09 Jan 2014 13:39:55 +0800 Weijie Yang wrote:
> swapoff clear swap_info's SWP_USED flag prematurely and free its resources
> after that. A concurrent swapon will reuse this swap_info while its previous
> resources are not cleared completely.
>
> These late freed resources are:
> - p->per
On Thu, 09 Jan 2014 13:39:55 +0800 Weijie Yang wrote:
> swapoff clear swap_info's SWP_USED flag prematurely and free its resources
> after that. A concurrent swapon will reuse this swap_info while its previous
> resources are not cleared completely.
>
> These late freed resources are:
> - p->per
swapoff clear swap_info's SWP_USED flag prematurely and free its resources
after that. A concurrent swapon will reuse this swap_info while its previous
resources are not cleared completely.
These late freed resources are:
- p->percpu_cluster
- swap_cgroup_ctrl[type]
- block_device setting
- inode-
10 matches
Mail list logo