lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100530200834.GB25545@gvim.org>
Date:	Sun, 30 May 2010 13:08:34 -0700
From:	mark gross <640e9920@...il.com>
To:	"Rafael J. Wysocki" <rjw@...k.pl>
Cc:	markgross@...gnar.org, linux-pm@...ts.linux-foundation.org,
	linux-kernel@...r.kernel.org
Subject: Re: [patch] complain when users abuse the pm_qos API

On Sat, May 29, 2010 at 10:08:04PM +0200, Rafael J. Wysocki wrote:
> On Saturday 29 May 2010, mark gross wrote:
> > The following patch is to help clean up API abusers of pm_qos where
> > they call update_request before registering a request.
> > 
> > --mgross
> > 
> > --Signed-off-by: markgross <markgross@...gnar.org>
> 
> Will there be a big issue if I push this during the next merge window?

No big issue.  it can wait.

--mgross

> 
> Rafael
> 
> 
> > From a0813007ddc7b72cb3da7a533fefba9889aab1d8 Mon Sep 17 00:00:00 2001
> > From: mgross <mgross@...oss-desktop.(none)>
> > Date: Fri, 28 May 2010 21:36:06 -0700
> > Subject: [PATCH] complain when users abuse the pm_qos API by updating a request that
> >  isn't registered yet.
> > 
> > ---
> >  kernel/pm_qos_params.c |    4 ++++
> >  1 files changed, 4 insertions(+), 0 deletions(-)
> > 
> > diff --git a/kernel/pm_qos_params.c b/kernel/pm_qos_params.c
> > index f42d3f7..8e55bf1 100644
> > --- a/kernel/pm_qos_params.c
> > +++ b/kernel/pm_qos_params.c
> > @@ -266,6 +266,10 @@ void pm_qos_update_request(struct pm_qos_request_list *pm_qos_req,
> >  		spin_unlock_irqrestore(&pm_qos_lock, flags);
> >  		if (pending_update)
> >  			update_target(pm_qos_req->pm_qos_class);
> > +	} else {
> > +		WARN(true, "pm_qos: updating an unregistered request "
> > +				"does nothing");
> > +		dump_stack();
> >  	}
> >  }
> >  EXPORT_SYMBOL_GPL(pm_qos_update_request);
> > 
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ