EXT4 panic at jbd2_journal_put_journal_head() in 3.9+
Quoted 18 lines
Hi all,
First of all I couldn't reproduce this regression in my sand box. So the following speculation is only my guess. I suspect that the commit (
ae4647fb) isn't root cause. It just uncover a potential bug that has been there for a long time. I look at the code, and found two suspicious stuff in jbd2. The first one is indo_get_write_access(). In this function we forgot to lock bh state when we checkb_jlist==BJ_Shadow. I generate a patch to fix it, and I really think it is the root cause. Further, in__journal_remove_journal_head()we checkb_jlist==BJ_None. But, when this function is called, bh state won't be locked sometimes. So I suspect this is why we hit a BUG injbd2_journal_put_journal_head(). But I don't have a good solution to fix this until now because I don't know whether we need to lock bh state here, or maybe we should remove this assertation.
Quoted 4 lines
So, generally, Tony, Eunbong, could you please try the following patch?
Thanks in advance,
- Zheng
Hi, I tested your patch. Unfortunately, the same problem was reproduced. Thanks.
Quoted 18 lines · EUNBONG SONG
Quoted 18 lines
Hi all,
First of all I couldn't reproduce this regression in my sand box. So the following speculation is only my guess. I suspect that the commit (
ae4647fb) isn't root cause. It just uncover a potential bug that has been there for a long time. I look at the code, and found two suspicious stuff in jbd2. The first one is indo_get_write_access(). In this function we forgot to lock bh state when we checkb_jlist==BJ_Shadow. I generate a patch to fix it, and I really think it is the root cause. Further, in__journal_remove_journal_head()we checkb_jlist==BJ_None. But, when this function is called, bh state won't be locked sometimes. So I suspect this is why we hit a BUG injbd2_journal_put_journal_head(). But I don't have a good solution to fix this until now because I don't know whether we need to lock bh state here, or maybe we should remove this assertation.
Quoted 8 lines
Quoted 4 lines
So, generally, Tony, Eunbong, could you please try the following patch?
Thanks in advance,
- ZhengHi, I tested your patch. Unfortunately, the same problem was reproduced. Thanks.
Thanks for trying this patch. Could you please repost the dmesg log for me? I want to make sure whether the second suspicious stuff causes this regression or not. Further, that would be great if you could try to comment this line as the following?
fs/jbd2/journal.c +0 -0
@@ -2453,7 +2453,7 @@ static void __journal_remove_journal_head(struct
buffer_head *bh)
J_ASSERT_JH(jh, jh->b_transaction == NULL);
J_ASSERT_JH(jh, jh->b_next_transaction == NULL);
J_ASSERT_JH(jh, jh->b_cp_transaction == NULL);
- J_ASSERT_JH(jh, jh->b_jlist == BJ_None);
+ /*J_ASSERT_JH(jh, jh->b_jlist == BJ_None);*/
J_ASSERT_BH(bh, buffer_jbd(bh));
J_ASSERT_BH(bh, jh2bh(jh) == bh);
BUFFER_TRACE(bh, "remove journal_head");Really thanks,
- Zheng
Quoted 25 lines · Zheng Liu
Quoted 24 lines · EUNBONG SONG
Quoted 22 lines
Hi all,
First of all I couldn't reproduce this regression in my sand box. So the following speculation is only my guess. I suspect that the commit (
ae4647fb) isn't root cause. It just uncover a potential bug that has been there for a long time. I look at the code, and found two suspicious stuff in jbd2. The first one is indo_get_write_access(). In this function we forgot to lock bh state when we checkb_jlist==BJ_Shadow. I generate a patch to fix it, and I really think it is the root cause. Further, in__journal_remove_journal_head()we checkb_jlist==BJ_None. But, when this function is called, bh state won't be locked sometimes. So I suspect this is why we hit a BUG injbd2_journal_put_journal_head(). But I don't have a good solution to fix this until now because I don't know whether we need to lock bh state here, or maybe we should remove this assertation.So, generally, Tony, Eunbong, could you please try the following patch?
Thanks in advance,
- Zheng
Quoted 7 lines
Quoted 2 lines
Hi, I tested your patch. Unfortunately, the same problem was reproduced. Thanks.
Thanks for trying this patch. Could you please repost the dmesg log for me? I want to make sure whether the second suspicious stuff causes this regression or not. Further, that would be great if you could try to comment this line as the following?
AFAIK following assertion was triggered jh->b_transaction != NULL
Quoted 22 lines
fs/jbd2/journal.c +1
-1@@ -2453,7 +2453,7 @@ static void __journal_remove_journal_head(struct buffer_head *bh) J_ASSERT_JH(jh, jh->b_transaction == NULL);J_ASSERT_JH (jh, jh->b_next_transaction ==NULL );J_ASSERT_JH (jh, jh->b_cp_transaction ==NULL ); -J_ASSERT_JH (jh, jh->b_jlist == BJ_None); +/*J_ASSERT_JH(jh, jh->b_jlist == BJ_None);*/ J_ASSERT_BH (bh,buffer_jbd (bh));J_ASSERT_BH (bh,jh2bh (jh) == bh);BUFFER_TRACE(bh, "remove journal_head");Really thanks,
- Zheng
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi, I just wonder. Is there no problem with endianess.
I mean usually bit field is defined with __BIG_ENDIAN_BITFIELD or __LITTLE_ENDIAN_BITFIELD. But b_jlist and b_modfied is defined with no pad.
It seems to be good but i just want to make sure.
Thanks.
2013/5/13 Dmitry Monakhov <[email protected]>:
Quoted 61 lines · Zheng Liu
Quoted 25 lines · EUNBONG SONG
Quoted 24 lines
Quoted 22 lines
Hi all,
First of all I couldn't reproduce this regression in my sand box. So the following speculation is only my guess. I suspect that the commit (
ae4647fb) isn't root cause. It just uncover a potential bug that has been there for a long time. I look at the code, and found two suspicious stuff in jbd2. The first one is indo_get_write_access(). In this function we forgot to lock bh state when we checkb_jlist==BJ_Shadow. I generate a patch to fix it, and I really think it is the root cause. Further, in__journal_remove_journal_head()we checkb_jlist==BJ_None. But, when this function is called, bh state won't be locked sometimes. So I suspect this is why we hit a BUG injbd2_journal_put_journal_head(). But I don't have a good solution to fix this until now because I don't know whether we need to lock bh state here, or maybe we should remove this assertation.So, generally, Tony, Eunbong, could you please try the following patch?
Thanks in advance,
- ZhengQuoted 7 lines
Quoted 2 lines
Hi, I tested your patch. Unfortunately, the same problem was reproduced. Thanks.
Thanks for trying this patch. Could you please repost the dmesg log for me? I want to make sure whether the second suspicious stuff causes this regression or not. Further, that would be great if you could try to comment this line as the following?
AFAIK following assertion was triggered
jh->b_transaction!= NULLQuoted 16 lines
fs/jbd2/journal.c +1
-1@@ -2453,7 +2453,7 @@ static void __journal_remove_journal_head(struct buffer_head *bh) J_ASSERT_JH(jh, jh->b_transaction == NULL);J_ASSERT_JH (jh, jh->b_next_transaction ==NULL );J_ASSERT_JH (jh, jh->b_cp_transaction ==NULL ); -J_ASSERT_JH (jh, jh->b_jlist == BJ_None); +/*J_ASSERT_JH(jh, jh->b_jlist == BJ_None);*/ J_ASSERT_BH (bh,buffer_jbd (bh));J_ASSERT_BH (bh,jh2bh (jh) == bh);BUFFER_TRACE(bh, "remove journal_head");Quoted 6 lines
Really thanks,
- Zheng
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/