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: <633f5f40-481f-4063-ab5d-f383e981b0fe@web.de>
Date: Mon, 29 Jul 2024 13:38:06 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Inochi Amaoto <inochiama@...look.com>, dmaengine@...r.kernel.org,
 devicetree@...r.kernel.org, linux-riscv@...ts.infradead.org,
 Albert Ou <aou@...s.berkeley.edu>, Chen Wang <unicorn_wang@...look.com>,
 Conor Dooley <conor+dt@...nel.org>,
 Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
 Palmer Dabbelt <palmer@...belt.com>, Paul Walmsley
 <paul.walmsley@...ive.com>, Rob Herring <robh@...nel.org>,
 Vinod Koul <vkoul@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
 Jingbao Qiu <qiujingbao.dlmu@...il.com>, Jisheng Zhang <jszhang@...nel.org>,
 Liu Gui <kenneth.liu@...hgo.com>, Yixun Lan <dlan@...too.org>
Subject: Re: [PATCH v8 3/3] dmaengine: add driver for Sophgo CV18XX/SG200X
 dmamux

…
> +++ b/drivers/dma/cv1800-dmamux.c
> @@ -0,0 +1,259 @@
…
> +static void cv1800_dmamux_free(struct device *dev, void *route_data)
> +{
…
> +	unsigned long flags;
> +
> +	spin_lock_irqsave(&dmamux->lock, flags);
…
> +	spin_unlock_irqrestore(&dmamux->lock, flags);
…

Under which circumstances would you become interested to apply a statement
like “guard(spinlock_irqsave)(&dmamux->lock);”?
https://elixir.bootlin.com/linux/v6.10.2/source/include/linux/spinlock.h#L574

Regards,
Markus

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ