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] [day] [month] [year] [list]
Message-Id: <20091102175409.3fad4d64.akpm@linux-foundation.org>
Date:	Mon, 2 Nov 2009 17:54:09 -0800
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Rodolfo Giometti <giometti@...ux.it>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] pps: locking scheme fix up for PPS_GETPARAMS.

On Sat, 31 Oct 2009 17:03:23 +0100
Rodolfo Giometti <giometti@...ux.it> wrote:

> Signed-off-by: Rodolfo Giometti <giometti@...ux.it>
> Tested-by: Reg Clemens <clemens@....com>

Please don't send unchangelogged patches.

> 
> diff --git a/drivers/pps/pps.c b/drivers/pps/pps.c
> index fea17e7..ca5183b 100644
> --- a/drivers/pps/pps.c
> +++ b/drivers/pps/pps.c
> @@ -71,9 +71,14 @@ static long pps_cdev_ioctl(struct file *file,
>  	case PPS_GETPARAMS:
>  		pr_debug("PPS_GETPARAMS: source %d\n", pps->id);
>  
> -		/* Return current parameters */
> -		err = copy_to_user(uarg, &pps->params,
> -						sizeof(struct pps_kparams));
> +		spin_lock_irq(&pps->lock);
> +
> +		/* Get the current parameters */
> +		params = pps->params;
> +
> +		spin_unlock_irq(&pps->lock);
> +
> +		err = copy_to_user(uarg, &params, sizeof(struct pps_kparams));
>  		if (err)
>  			return -EFAULT;
>  

OK, I can see what the patch does and I can guess what sort of
situations would trigger it.  But that's really not good enough.

Put yourself in the position of someone who is hitting a PPS bug and
wants to work out if your patch might fix it.  Because the patch fails
to describe the user-visible symptoms (ie: the bug) then that person is
in the dark.

Also, someone (ie: me) needs to decide if this fix is to be backported
into earlier kernels.  With no description of the end-user impact, how
can I possibly do that?
--
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