kernel BUG at jbd2_journal_put_journal_head+0x44

Solution Verified - Updated -

Issue

  • Kernel crashes with following logs:
[418463.288651] loop: module loaded
[418493.468761] EXT4-fs (loop0): barriers disabled
[418493.473777] [EXT4 FS bs=1024, gc=2, bpg=8192, ipg=2048, mo=c000c41c, mo2=0002]
[418493.475636] EXT4-fs (loop0): mounted filesystem with journalled data mode. Opts: (null)
[418859.151530] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
[418859.156835] IP: [<ffffffffc03f5934>] jbd2_journal_put_journal_head+0x44/0x146 [jbd2]
[418859.158334] PGD 8000000230445067 PUD 22f6e8067 PMD 0 
[418859.159354] Oops: 0000 [#1] SMP 
[418859.160021] Modules linked in: ext4 mbcache jbd2 loop sunrpc nfit libnvdimm iosf_mbi crc32_pclmul ghash_clmulni_intel ppdev aesni_intel lrw gf128mul glue_helper ablk_helper parport_pc cryptd joydev pcspkr parport virtio_balloon i2c_piix4 ip_tables xfs libcrc32c ata_generic pata_acpi ata_piix virtio_net qxl net_failover virtio_blk failover drm_kms_helper libata syscopyarea sysfillrect sysimgblt fb_sys_fops ttm crct10dif_pclmul crct10dif_common drm crc32c_intel serio_raw virtio_pci virtio_ring virtio drm_panel_orientation_quirks floppy dm_mirror dm_region_hash dm_log dm_mod
[418859.170713] CPU: 1 PID: 22024 Comm: dd Kdump: loaded Not tainted 3.10.0-1127.el7.x86_64 #1
[418859.172335] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011
[418859.173485] task: ffff886efaf5d230 ti: ffff88707050c000 task.ti: ffff88707050c000
[418859.174846] RIP: 0010:[<ffffffffc03f5934>]  [<ffffffffc03f5934>] jbd2_journal_put_journal_head+0x44/0x146 [jbd2]
[418859.176814] RSP: 0018:ffff88707050f888  EFLAGS: 00010246
[418859.177920] RAX: 0000000000000000 RBX: ffff88705283ed00 RCX: ffff886eeb78a460
[418859.179378] RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff886eeb78a460
[418859.180691] RBP: ffff88707050f898 R08: ffff886eeb78a460 R09: ffff886eeb71cd00
[418859.182002] R10: 781fbfda87876040 R11: 0000000000000200 R12: 0000000000000000
[418859.183311] R13: ffff88705283ed00 R14: 0000000000000001 R15: ffff886ebec050f0
[418859.184625] FS:  00007f3ad543c740(0000) GS:ffff887079d00000(0000) knlGS:0000000000000000
[418859.186158] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[418859.187225] CR2: 0000000000000008 CR3: 00000001ca700000 CR4: 00000000007606e0
[418859.188768] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[418859.190249] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[418859.191716] PKRU: 55555554
[418859.192303] Call Trace:
[418859.192852]  [<ffffffffc03eef1b>] __jbd2_journal_remove_checkpoint+0x5b/0x160 [jbd2]
[418859.194444]  [<ffffffffc03ef28a>] jbd2_log_do_checkpoint+0x26a/0x4d0 [jbd2]
[418859.195876]  [<ffffffffc03ef56f>] __jbd2_log_wait_for_space+0x7f/0x1f0 [jbd2]
[418859.197356]  [<ffffffffc03e93d3>] add_transaction_credits+0x2d3/0x2f0 [jbd2]
[418859.198731]  [<ffffffffc03e95e1>] start_this_handle+0x1a1/0x430 [jbd2]
[418859.199969]  [<ffffffffb618c104>] ? __radix_tree_lookup+0x84/0xf0
[418859.201154]  [<ffffffffb60287f2>] ? kmem_cache_alloc+0x1c2/0x1f0
[418859.202418]  [<ffffffffc03e9a93>] jbd2__journal_start+0xf3/0x1f0 [jbd2]
[418859.203740]  [<ffffffffc0497276>] ? ext4_write_begin+0x116/0x440 [ext4]
[418859.204986]  [<ffffffffc04c5759>] __ext4_journal_start_sb+0x69/0xe0 [ext4]
[418859.206309]  [<ffffffffc0497276>] ext4_write_begin+0x116/0x440 [ext4]
[418859.207576]  [<ffffffffb5fbdfef>] generic_file_buffered_write+0x10f/0x270
[418859.209007]  [<ffffffffb5ec7780>] ? wake_up_atomic_t+0x30/0x30
[418859.210105]  [<ffffffffb5fc0872>] __generic_file_aio_write+0x1e2/0x400
[418859.211304]  [<ffffffffb5fc0ae9>] generic_file_aio_write+0x59/0xa0
[418859.212443]  [<ffffffffc048c5c8>] ext4_file_write+0x348/0x600 [ext4]
[418859.213613]  [<ffffffffb5fbe6fb>] ? unlock_page+0x2b/0x30
[418859.214624]  [<ffffffffb604c663>] do_sync_write+0x93/0xe0
[418859.215745]  [<ffffffffb604d150>] vfs_write+0xc0/0x1f0
[418859.216738]  [<ffffffffb604df1f>] SyS_write+0x7f/0xf0
[418859.217713]  [<ffffffffb6592ed2>] system_call_fastpath+0x25/0x2a
[418859.218824] Code: 85 bc 00 00 00 8b 47 08 85 c0 0f 8e af 00 00 00 83 e8 01 85 c0 89 47 08 74 0d f0 80 63 02 7f 5b 41 5c 5d c3 0f 1f 00 4c 8b 63 40 <41> 8b 54 24 08 85 d2 0f 88 9a 00 00 00 49 83 7c 24 28 00 0f 85 
[418859.224039] RIP  [<ffffffffc03f5934>] jbd2_journal_put_journal_head+0x44/0x146 [jbd2]
[418859.225489]  RSP <ffff88707050f888>
[418859.226154] CR2: 0000000000000008

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In