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>] [day] [month] [year] [list]
Date:	Fri, 28 May 2010 02:35:20 +0400
From:	Sergey Temerkhanov <temerkhanov@...dex.ru>
To:	"linux-aio" <linux-aio@...ck.org>,
	LKML <linux-kernel@...r.kernel.org>
Subject: [PATCHv2 2/3] [RFC] AIO: Add aio_put_req() calls to io_cancel() and aio_cancel_all()

Signed-off-by: Sergey Temerkhanov<temerkhanov@...ronik.ru>

This patch fixes reference counting in aio_cancel_all()
and io_cancel()

diff -r 74c172a99cdb fs/aio.c
--- a/fs/aio.c	Tue Mar 16 18:55:59 2010 +0300
+++ b/fs/aio.c	Wed Mar 17 17:42:47 2010 +0300
@@ -1036,6 +1036,7 @@
 			cancel(iocb, &res);
 			spin_lock_irq(&ctx->ctx_lock);
 		}
+		__aio_put_req(ctx, iocb);
 	}
 	spin_unlock_irq(&ctx->ctx_lock);
 }
@@ -1792,6 +1793,7 @@
 	} else
 		ret = -EINVAL;
 
+	aio_put_req(kiocb);
 	put_ioctx(ctx);
 
 	return ret;
--
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