All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@bugzilla.kernel.org
To: linux-ext4@vger.kernel.org
Subject: [Bug 118041] My tricky script involving zram and device mapper hangs on "mount"
Date: Tue, 17 May 2016 18:59:47 +0000	[thread overview]
Message-ID: <bug-118041-13602-dUd4qd9pt9@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-118041-13602@https.bugzilla.kernel.org/>

https://bugzilla.kernel.org/show_bug.cgi?id=118041

--- Comment #4 from Navin <navinp1912@gmail.com> ---
Not related to ext4 . I can reproduce this with below script and i think 
dm-devel@redhat.com should be contacted.


I tested on Linux junk-foo 4.2.0-35-generic from Ubuntu (15.10 ) x64.
Linux junk-foo 4.2.0-35-generic #40-Ubuntu SMP Tue Mar 15 22:15:45 UTC 2016
x86_64 x86_64 x86_64 GNU/Linux



Here is a script that crashes the kernel for me with out of memory. Looks to be
a dm problem because it occurs with dd,mkfs.xfs,mkfs.vat ,without zram ie with
losetup.

Here is the script.Should be run as root for losetup and dmsetup permissions.


#!/bin/bash

fallocate -l 50M 50M_file_unused
fallocate -l 60M 60M_file_unused
losetup  /dev/loop4 50M_file_unused
losetup  /dev/loop5 60M_file_unused

MS=$(blockdev --getsize /dev/loop4)
WS=$(blockdev --getsize /dev/loop5)
echo "0 $MS linear /dev/loop4 0 \n $MS $WS linear /dev/loop5 0" | dmsetup
create cryptie4-ff
DS=$(blockdev --getsize /dev/mapper/cryptie4-ff)
MN=$(printf '%d:%d' `stat -Lc '0x%t 0x%T' /dev/loop4`)
WN=$(printf '%d:%d' `stat -Lc '0x%t 0x%T' /dev/loop5`)
DN=$(printf '%d:%d' `stat -Lc '0x%t 0x%T'  /dev/mapper/cryptie4-ff`)

#pv /dev/mapper/cryptie4-ff | hashed_update /dev/stdin NULL /dev/zram0
/tmp/ff.md5 65536
pv /dev/mapper/cryptie4-ff 
dmsetup create ff --table "0 $MS snapshot-origin $MN"


After this  doing this 
dd if=/dev/zero of=/dev/mapper/ff
or
mkfs.xfs /mkfs.ext4 on /dev/mapper/ff will fail.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

      parent reply	other threads:[~2016-05-17 18:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-11 21:22 [Bug 118041] New: My tricky script involving zram and device mapper hangs on "mount" bugzilla-daemon
2016-05-17 16:27 ` [Bug 118041] " bugzilla-daemon
2016-05-17 16:48 ` bugzilla-daemon
2016-05-17 17:55 ` bugzilla-daemon
2016-05-17 18:59 ` bugzilla-daemon [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-118041-13602-dUd4qd9pt9@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@bugzilla.kernel.org \
    --cc=linux-ext4@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.