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-next>] [day] [month] [year] [list]
Date:	Mon,  1 Feb 2016 15:51:51 +0100
From:	Roman Pen <roman.penyaev@...fitbricks.com>
To:	unlisted-recipients:; (no To-header on input)
Cc:	Roman Pen <roman.penyaev@...fitbricks.com>,
	"Martin K. Petersen" <martin.petersen@...cle.com>,
	"Rafael J. Wysocki" <rjw@...ysocki.net>,
	Alexander Viro <viro@...iv.linux.org.uk>,
	Dan Williams <dan.j.williams@...el.com>,
	Gi-Oh Kim <gi-oh.kim@...fitbricks.com>,
	Jens Axboe <axboe@...nel.dk>, Len Brown <len.brown@...el.com>,
	Ming Lei <tom.leiming@...il.com>, Pavel Machek <pavel@....cz>,
	Sagi Grimberg <sagig@...lanox.com>, Tejun Heo <tj@...nel.org>,
	Vishal Verma <vishal.l.verma@...el.com>,
	linux-block@...r.kernel.org, linux-fsdevel@...r.kernel.org,
	linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org
Subject: [PATCH 0/4] introduce new put_getdisk() call

Hello.

In this patchset in the first patch I fixed module reference leak inside
blk-cgroup.c.  In other patches I switched to a new put_getdisk() call,
which should be used if the disk was received by get_disk() or get_gendisk()
functions, which internally increase module reference.

The idea is to avoid confusion in the future and to have symmetric calls:

	alloc_disk() -> put_disk() [as it is done in all the block drivers]

and

	get_gendisk() -> put_gendisk() [if you need to find a disk by minor,major]

The second sequence internally increases disk owner module reference on
get and decreases it on put.

Roman Pen (4):
  block: fix module reference leak on put_disk() call for cgroups
    throttle
  block: introduce new call put_gendisk() in genhd.c
  block,fs: switch to a new put_gendisk() call
  hibernate: fix disk and module leak on successfull resume

 block/blk-cgroup.c       |  6 ++---
 block/genhd.c            | 59 +++++++++++++++++++++++++++++++++++++++++++++---
 fs/block_dev.c           | 24 ++++++--------------
 include/linux/genhd.h    |  1 +
 kernel/power/hibernate.c |  5 +++-
 5 files changed, 71 insertions(+), 24 deletions(-)

Cc: "Martin K. Petersen" <martin.petersen@...cle.com>
Cc: "Rafael J. Wysocki" <rjw@...ysocki.net>
Cc: Alexander Viro <viro@...iv.linux.org.uk>
Cc: Dan Williams <dan.j.williams@...el.com>
Cc: Gi-Oh Kim <gi-oh.kim@...fitbricks.com>
Cc: Jens Axboe <axboe@...nel.dk>
Cc: Len Brown <len.brown@...el.com>
Cc: Ming Lei <tom.leiming@...il.com>
Cc: Pavel Machek <pavel@....cz>
Cc: Sagi Grimberg <sagig@...lanox.com>
Cc: Tejun Heo <tj@...nel.org>
Cc: Vishal Verma <vishal.l.verma@...el.com>
Cc: linux-block@...r.kernel.org
Cc: linux-fsdevel@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
Cc: linux-pm@...r.kernel.org

-- 
2.6.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ