Re: hfsplus BUG: Bad page state in process du pfn:07759 (Re: hfsplus corruption, failed fsck, journalling and zero'ing extent record on delete)
From: Hin-Tak Leung <hidden>
Date: 2012-09-24 20:10:08
Hi Vyacheslav,
--- On Mon, 24/9/12, Vyacheslav Dubeyko <slava@dubeyko.com> wrote:
<snipped>
So, you use journaled HFS+ partition when the issue takes place. Am I correct?
That's correct - it is also the case-sensitive version. <snipped>
As I can understand: 1. You had corrupted journaled HFS+ partition. 2. You modify metadata by hand. 3. Then you check this partition by fsck.hfsplus. And fsck.hfsplus ends checking without any error message. 4. But it takes place BUG message after trying to mount this partition. Am I correct in this description?
That's also correct. About item 3, I actually ran it three times - "fsck.hfsplus -d -D 0x0033 -f -n -l /dev/sdb5" once "fsck.hfsplus -d -D 0x0033 -f /dev/sdb5" then twice. The first was just to verify that there are fewer critical errors (the "Overlapping extents" type) after modifying the the metadata by hand, without further change; the 2nd to actually fix the fixable errors; and the 3rd time to see that it is clean. (I piped to "tee" and kept the logs if you feel like looking at them - the last one was the least interesting, of course). Regards, Hin-Tak <snipped>
quoted
--- On Mon, 24/9/12, Vyacheslav Dubeyko <slava@dubeyko.com>wrote:quoted
quoted
Hi Hin-Tak, Could you describe the way of issue reproduction inmorequoted
quoted
details? I need to know: 1. What kernel version do you use? 2. Do you have some special configuration of thesystemquoted
quoted
([103022.536649] SELinux: initialized (dev sdb5, type hfsplus),usesquoted
quoted
genfs_contexts)? 3. How did you generate small files? How small isit (I meanquoted
quoted
size)? Sorry, but currently I haven't clear understandinghow toquoted
quoted
reproduce this issue from your description. With the best regards, Vyacheslav Dubeyko. On Mon, 2012-09-24 at 08:30 +0100, Hin-Tak Leungwrote:quoted
quoted
quoted
Argh, the BUG() seems to be a genuine bug -running duquoted
quoted
on the recently "fsck.hfsplus -f" clean disk,mountingquoted
quoted
read-only with unmod'ed distro hfsplus driver:(see, "notquoted
quoted
Tainted"...)quoted
================= [103022.493765] hfs: write access to ajournaledquoted
quoted
filesystem is not supported, use the force optionat yourquoted
quoted
own risk, mounting read-only.quoted
[103022.536649] SELinux: initialized (dev sdb5,typequoted
quoted
hfsplus), uses genfs_contextsquoted
[111015.478171] BUG: Bad page state in processduquoted
quoted
pfn:07759quoted
[111015.478182] page:ffffea00001dd640 count:0mapcount:0 mapping:(null)quoted
quoted
index:0x1935quoted
[111015.478185] page flags:0x20000000000004(referenced)quoted
[111015.478189] Modules linked in: usb_storagetcp_lpquoted
quoted
nls_utf8 hfsplus fuse ip6table_filter ip6_tablesebtable_natquoted
quoted
ebtables ipt_MASQUERADEquoted
iptable_nat nf_nat xt_CHECKSUM iptable_manglebridgequoted
quoted
stp llc xt_LOG xt_physdev nf_conntrack_ipv4nf_defrag_ipv4quoted
quoted
xt_state nf_conntrack arc4quoted
rtl8187 eeprom_93cx6 mac80211 cfg80211snd_hda_codec_realtek joydev vhost_net tun macvtapmacvlanquoted
quoted
kvm_amd kvm edac_core edac_mce_amd k8tempquoted
r592 memstick sp5100_tcosnd_hda_intelquoted
quoted
snd_hda_codec snd_hwdep snd_pcm snd_page_allocsnd_timer sndquoted
quoted
soundcore i2c_piix4 r8169 mii shpchp tquoted
oshiba_acpi sparse_keymap rfkill wmi ecryptfssha256_generic encrypted_keys nfsd nfs_aclauth_rpcgss lockdquoted
quoted
sunrpc uinput binfmt_misc trustequoted
d tpm tpm_bios ata_generic pata_acpifirewire_ohciquoted
quoted
sdhci_pci sdhci firewire_core crc_itu_t mmc_corepata_atiixpquoted
quoted
video radeon i2c_algo_bit dquoted
rm_kms_helper ttm drm i2c_core [last unloaded:scsi_wait_scan]quoted
[111015.478274] Pid: 23364, comm: du Nottaintedquoted
quoted
3.5.4-1.fc17.x86_64 #1quoted
[111015.478277] Call Trace: [111015.478291][<ffffffff81604213>]quoted
quoted
bad_page+0xe6/0xfbquoted
[111015.478299][<ffffffff8112dd8e>]quoted
quoted
get_page_from_freelist+0x77e/0x940quoted
[111015.478305][<ffffffff8112e0fd>]quoted
quoted
__alloc_pages_nodemask+0x1ad/0x970quoted
[111015.478318][<ffffffffa05e5719>] ?quoted
quoted
hfsplus_bnode_read+0x89/0x100 [hfsplus]quoted
[111015.478324][<ffffffffa05e5775>] ?quoted
quoted
hfsplus_bnode_read+0xe5/0x100 [hfsplus]quoted
[111015.478329][<ffffffff811699e0>]quoted
quoted
alloc_pages_current+0xb0/0x120quoted
[111015.478334][<ffffffff811721b8>]quoted
quoted
new_slab+0x268/0x320quoted
[111015.478339][<ffffffff8160546e>]quoted
quoted
__slab_alloc+0x36e/0x4c8quoted
[111015.478344][<ffffffffa05df11a>] ?quoted
quoted
hfsplus_alloc_inode+0x1a/0x40 [hfsplus]quoted
[111015.478349][<ffffffffa05df11a>] ?quoted
quoted
hfsplus_alloc_inode+0x1a/0x40 [hfsplus]quoted
[111015.478354][<ffffffff811733f8>]quoted
quoted
kmem_cache_alloc+0x108/0x160quoted
[111015.478359][<ffffffffa05e7d40>] ?quoted
quoted
__hplusfs_brec_find+0xa0/0x180 [hfsplus]quoted
[111015.478364][<ffffffffa05df11a>]quoted
quoted
hfsplus_alloc_inode+0x1a/0x40 [hfsplus]quoted
[111015.478371][<ffffffff811a0606>]quoted
quoted
alloc_inode+0x26/0xa0quoted
[111015.478375][<ffffffff811a1c78>]quoted
quoted
iget_locked+0xb8/0x190quoted
[111015.478380][<ffffffffa05df715>]quoted
quoted
hfsplus_iget+0x15/0x230 [hfsplus]quoted
[111015.478386][<ffffffffa05e7c8f>] ?quoted
quoted
hfsplus_find_exit+0x2f/0x40 [hfsplus]quoted
[111015.478391][<ffffffffa05e467f>]quoted
quoted
hfsplus_lookup+0x20f/0x2d0 [hfsplus]quoted
[111015.478397][<ffffffff8119ed84>] ?quoted
quoted
__d_alloc+0x34/0x180quoted
[111015.478402][<ffffffffa05d701a>] ?quoted
quoted
char2uni+0x1a/0x50 [nls_utf8]quoted
[111015.478406][<ffffffff81173321>] ?quoted
quoted
kmem_cache_alloc+0x31/0x160quoted
[111015.478410][<ffffffff8119ed84>] ?quoted
quoted
__d_alloc+0x34/0x180quoted
[111015.478413][<ffffffff8119ee9c>] ?quoted
quoted
__d_alloc+0x14c/0x180quoted
[111015.478419][<ffffffff811928e1>]quoted
quoted
__lookup_hash+0x61/0x120quoted
[111015.478423][<ffffffff81194b49>] ?quoted
quoted
lookup_fast+0x219/0x310quoted
[111015.478427][<ffffffff81605959>]quoted
quoted
lookup_slow+0x47/0xabquoted
[111015.478431][<ffffffff81196ac6>]quoted
quoted
path_lookupat+0x716/0x750quoted
[111015.478436][<ffffffff81173321>] ?quoted
quoted
kmem_cache_alloc+0x31/0x160quoted
[111015.478440][<ffffffff81196b31>]quoted
quoted
do_path_lookup+0x31/0xc0quoted
[111015.478444][<ffffffff81192b33>] ?quoted
quoted
getname_flags+0x53/0xf0quoted
[111015.478448][<ffffffff8119787d>]quoted
quoted
user_path_at_empty+0x5d/0xa0quoted
[111015.478454][<ffffffff8127973a>] ?quoted
quoted
inode_has_perm.isra.31.constprop.61+0x2a/0x30quoted
[111015.478459][<ffffffff8127d835>] ?quoted
quoted
selinux_inode_getattr+0x45/0x50quoted
[111015.478464][<ffffffff8118c910>] ?quoted
quoted
cp_new_stat+0x120/0x140quoted
[111015.478468][<ffffffff811978d1>]quoted
quoted
user_path_at+0x11/0x20quoted
[111015.478472][<ffffffff8118cba5>]quoted
quoted
vfs_fstatat+0x35/0x70quoted
[111015.478475][<ffffffff8118ceaa>]quoted
quoted
sys_newfstatat+0x1a/0x40quoted
[111015.478482][<ffffffff81614e29>]quoted
quoted
system_call_fastpath+0x16/0x1bquoted
[111015.478485] Disabling lock debugging due tokernelquoted
quoted
taintquoted
============================--- On Mon, 24/9/12, Hin-Tak Leung <htl10@users.sourceforge.net>wrote:quoted
<snipped>quoted
I mentioned briefly some days ago that Imanagedquoted
quoted
to corruptquoted
quoted
an HFS+ paritition while experimenting withthequoted
quoted
journallingquoted
quoted
code, to the extent thatfsck_hfs/fsck.hfsplusquoted
quoted
(Apple'squoted
quoted
diskdev_cmds tool) refuses to fix. Andthatquoted
quoted
partition, withquoted
quoted
the unmodified module used ready-only canget thequoted
quoted
kernel toquoted
quoted
BUG() "reliably" by just doing "du" on it(and Iquoted
quoted
wasquoted
quoted
thinking whether BUG()'ing on corrupteddisk is aquoted
quoted
bug toquoted
quoted
file...).-- To unsubscribe from this list: send the line"unsubscribe linux-fsdevel" inquoted
the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html-- To unsubscribe from this list: send the line"unsubscribe linux-fsdevel" inquoted
the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
-- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html