Skip to contentSkip to conversation

Can someone confirm ext4 BUG_ON on latest kernel build?

DISCUSSION halfdog 3 participants 3 messages Jun 19, 2011 – Jun 20, 2011

lore
Share & tools
lore

halfdog

author
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sorry, I do not have latest kernel. Can someone confirm this on latest? At least bugtracker does not know about it, and to my understanding of source, should be still here.

dd if=/dev/zero bs=1M count=64 of=test
mkfs.ext4 -F test
echo -n " " | dd of=test bs=1 count=1 seek=297195 conv=notrunc mount -o loop test /mnt/test
dmesg -c

On ubuntu natty with latest kernel, it seems, that fs/ext4/super.c:__save_error_info calls mod_timer before timer->function is set at end of fs/ext4/super.c:ext4_fill_super via
sbi->s_err_report.function = print_daily_error_info;

This causes BUG_ON(!timer->function) in kernel/timer.c:__mod_timer Device is stuck, not usable any more.

Thanks

- --
http://www.halfdog.net/
PGP: 156A AE98 B91F 0114 FE88 2BD8 C459 9386 feed a bee -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFN/cvFxFmThv7tq+4RAgfvAJ97N9bnKq4kN99XneTMyJZ5Hha9MQCfcguN L4trkTeOsIqDWF8m6VUqcgc=
=zvYY
-----END PGP SIGNATURE-----

#1 lore raw

[adding ext4 mailing list]

Quoted 30 lines · On Sun, 19 Jun 2011 10:13:52 +0000 halfdog wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sorry, I do not have latest kernel. Can someone confirm this on latest? At least bugtracker does not know about it, and to my understanding of source, should be still here.

dd if=/dev/zero bs=1M count=64 of=test
mkfs.ext4 -F test
echo -n " " | dd of=test bs=1 count=1 seek=297195 conv=notrunc mount -o loop test /mnt/test
dmesg -c

On ubuntu natty with latest kernel, it seems, that fs/ext4/super.c:__save_error_info calls mod_timer before timer->function is set at end of fs/ext4/super.c:ext4_fill_super via
sbi->s_err_report.function = print_daily_error_info;

This causes BUG_ON(!timer->function) in kernel/timer.c:__mod_timer Device is stuck, not usable any more.

Thanks

- --
http://www.halfdog.net/
PGP: 156A AE98 B91F 0114 FE88 2BD8 C459 9386 feed a bee -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

Quoted 9 lines

iD8DBQFN/cvFxFmThv7tq+4RAgfvAJ97N9bnKq4kN99XneTMyJZ5Hha9MQCfcguN L4trkTeOsIqDWF8m6VUqcgc=
=zvYY
-----END PGP SIGNATURE-----
--
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/

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

#2 lore raw
In reply to halfdog
Quoted 11 lines · halfdog

Sorry, I do not have latest kernel. Can someone confirm this on latest? At least bugtracker does not know about it, and to my understanding of source, should be still here.

dd if=/dev/zero bs=1M count=64 of=test
mkfs.ext4 -F test
echo -n " " | dd of=test bs=1 count=1 seek=297195 conv=notrunc mount -o loop test /mnt/test
dmesg -c

Quoted 7 lines

On ubuntu natty with latest kernel, it seems, that fs/ext4/super.c:__save_error_info calls mod_timer before timer->function is set at end of fs/ext4/super.c:ext4_fill_super via
sbi->s_err_report.function = print_daily_error_info;

This causes BUG_ON(!timer->function) in kernel/timer.c:__mod_timer Device is stuck, not usable any more.

This problem is fixed in 2.6.39 (via commit 0449641130f5, which landed in mainline in 2.6.39-rc3).

Regards,

- Ted