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: <20230902053646.GK3390869@ZenIV>
Date:   Sat, 2 Sep 2023 06:36:46 +0100
From:   Al Viro <viro@...iv.linux.org.uk>
To:     Takashi Iwai <tiwai@...e.de>
Cc:     alsa-devel@...a-project.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 06/25] ALSA: emu8000: Convert to generic PCM copy ops

On Tue, Aug 15, 2023 at 09:01:17PM +0200, Takashi Iwai wrote:
> +		else if (copy_from_iter(&sval, 2, iter) != 2)		\
> +			return -EFAULT;					\

copy_from_iter_full()?

> -static int emu8k_pcm_copy_kernel(struct snd_pcm_substream *subs,
> -				 int voice, unsigned long pos,
> -				 void *src, unsigned long count)
> -{
> -	struct snd_emu8k_pcm *rec = subs->runtime->private_data;
> -
> -	/* convert to word unit */
> -	pos = (pos << 1) + rec->loop_start[voice];
> -	count <<= 1;
> -	LOOP_WRITE(rec, pos, src, count, COPY_KERNEL);
> +	LOOP_WRITE(rec, pos, src, count);
>  	return 0;
>  }
>  
> @@ -483,16 +456,15 @@ static int emu8k_pcm_silence(struct snd_pcm_substream *subs,
>  	/* convert to word unit */
>  	pos = (pos << 1) + rec->loop_start[voice];
>  	count <<= 1;
> -	LOOP_WRITE(rec, pos, NULL, count, FILL_SILENCE);
> +	LOOP_WRITE(rec, pos, USER_SOCKPTR(NULL), count);

USER_SOCKPTR?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ