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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 9 Jan 2009 08:55:59 +1100
From:	Neil Brown <neilb@...e.de>
To:	Linus Torvalds <torvalds@...ux-foundation.org>
Cc:	Al Viro <viro@....linux.org.uk>, Tejun Heo <tj@...nel.org>
Subject: [PULL request] md update for 2.6.29 (includes change to fs/block.c)


Hi Linus,
 here is my drivers/md pull request for the 2.6.29 merge window.

 The most interesting change is
      md: make devices disappear when they are no longer needed.
 which is functionality I have tried to add in the past and always got
 wrong.  I think it is right this time :-)

 It involves a change to fs/block_dev.c.
 The reason for this change is the there is a period between ->probe
 being called on a device, and ->open being call, where the gendisk is
 not reference counted but must not go away.
 This interacts badly which md's (questionable but historic) approach
 of devices being created by ->probe.
 The fs/block_dev.c change allows the open to fail in a new way
 (ERESTARTSYS) so that we loop back and call ->probe, so if the
 gendisk does get removed in that window, we handle the situation
 gracefully.   The changelog (and code) give more details.

 This was discussed on linux-kernel with Al Viro and Tejun Heo without
 a clear resolution.  There was a feeling that some sort of cleanup in
 the block layer could make this unnecessary and would fix other
 issues, but no clear direction on the cleanup was found, nor were
 any clear problems with my approach identified.


 Also of some note is 
         md: Allow md devices to be created by name.
 which provides a new way of creating md devices and allows us to
 provide the name for kernel-internal use, so it isn't always 
 md0 or md27, but can be md_bitbucket or md_scratch.

 Finally
       md: fix bitmap-on-external-file bug.
 fixes a bug that I let in to 2.6.28 fairly late due to insufficient
 testing.  It is flagged for -stable.

Thanks,
NeilBrown



The following changes since commit 9e42d0cf5020aaf217433cad1a224745241d212a:
  Linus Torvalds (1):
        Merge git://git.kernel.org/.../davem/sparc-2.6

are available in the git repository at:

  git://neil.brown.name/md/ for-linus

Andre Noll (9):
      md: raid0_make_request(): Replace chunksize_bits by chunksect_bits.
      md: raid0_make_request(): Remove local variable chunk_size.
      md: raid0_make_request(): Replace local variable block by sector.
      md: raid0: Represent device offset in sectors.
      md: raid0: Represent zone->zone_offset in sectors.
      md: raid0 create_strip_zones(): Make two local variables sector-based.
      md: raid0 create_strip_zones(): Add KERN_INFO/KERN_ERR to printk's.
      md: raid0: Represent the size of strip zones in sectors.
      md: raid0: make hash_spacing and preshift sector-based.

Cheng Renquan (2):
      md: use list_for_each_entry macro directly
      md: need another print_sb for mdp_superblock_1

NeilBrown (7):
      md: fix bitmap-on-external-file bug.
      md: use sysfs_notify_dirent to notify changes to md/sync_action.
      md: move allocation of ->queue from mddev_find to md_probe
      md: centralise all freeing of an 'mddev' in 'md_free'
      md: make devices disappear when they are no longer needed.
      md: Allow md devices to be created by name.
      md: don't retry recovery of raid1 that fails due to error on source drive.

 drivers/md/bitmap.c        |   11 +-
 drivers/md/faulty.c        |    3 +-
 drivers/md/linear.c        |    3 +-
 drivers/md/md.c            |  416 +++++++++++++++++++++++++++++++-------------
 drivers/md/multipath.c     |    3 +-
 drivers/md/raid0.c         |  178 ++++++++++----------
 drivers/md/raid1.c         |   11 +-
 drivers/md/raid10.c        |    3 +-
 drivers/md/raid5.c         |    8 +-
 fs/block_dev.c             |   14 ++
 include/linux/raid/md_k.h  |   20 ++-
 include/linux/raid/md_p.h  |    2 +
 include/linux/raid/raid0.h |   10 +-
 13 files changed, 435 insertions(+), 247 deletions(-)
--
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