Kernel panic on xfs_bmap_extents_to_btree() function

Solution Verified - Updated -

Issue

  • Kernel panics on xfs_bmap_extents_to_btree() function

  • Kernel ring buffer:

---[ end trace b369e44ad2458932 ]---
BUG: unable to handle kernel NULL pointer dereference at 0000000000000168
IP: [<ffffffffc05c4bfa>] xfs_bmap_extents_to_btree+0x21a/0x5c0 [xfs]
PGD 0 
Oops: 0002 [#1] SMP 
Modules linked in: nfsv3 binfmt_misc veth rpcsec_gss_krb5 nfsv4 nfs fscache nf_conntrack_netlink nfnetlink xt_statistic xt_nat xt_recent xt_mark xt_comment br_netfilter bridge stp llc rbd libceph dns_resolver ipt_REJECT nf_reject_ipv4 xt_conntrack iptable_filter ipt_MASQUERADE nf_nat_masquerade_ipv4 xt_addrtype iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack dm_thin_pool dm_persistent_data dm_bio_prison dm_bufio ppdev iosf_mbi crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul glue_helper ablk_helper cryptd joydev parport_pc virtio_balloon parport i2c_piix4 pcspkr nfsd auth_rpcgss nfs_acl lockd grace sunrpc ip_tables xfs libcrc32c virtio_net virtio_blk ata_generic pata_acpi cirrus drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm drm
 ata_piix libata crct10dif_pclmul crct10dif_common crc32c_intel virtio_pci virtio_ring serio_raw i2c_core virtio floppy dm_mirror dm_region_hash dm_log dm_mod
CPU: 4 PID: 50240 Comm: redis-server Kdump: loaded Tainted: G        W      ------------   3.10.0-862.29.1.el7.x86_64 #1
Hardware name: Red Hat OpenStack Compute, BIOS 1.9.1-5.el7_3.3 04/01/2014
task: ffff9e3735dd8000 ti: ffff9e368f5a4000 task.ti: ffff9e368f5a4000
RIP: 0010:[<ffffffffc05c4bfa>]  [<ffffffffc05c4bfa>] xfs_bmap_extents_to_btree+0x21a/0x5c0 [xfs]
RSP: 0018:ffff9e368f5a7768  EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff9e61d02dd000 RCX: 0000000007309317
RDX: 0000000007309316 RSI: 0000000000000000 RDI: ffff9e343fd44d00
RBP: ffff9e368f5a7870 R08: 000000000001c2f0 R09: ffffffffc05fa7b7
R10: ffff9e913ef1c2f0 R11: fffffeb54a8a9300 R12: ffff9e589154d680
R13: ffff9e589154d640 R14: ffff9e368f5a7b40 R15: ffff9e5477fc56a8
FS:  00007f8415090f00(0000) GS:ffff9e913ef00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000168 CR3: 00000015e0eac000 CR4: 00000000003606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 [<ffffffffc05ca0fe>] xfs_bmap_add_extent_delay_real+0x199e/0x1b80 [xfs]
 [<ffffffffc05cdde8>] xfs_bmapi_write+0x748/0xaa0 [xfs]
 [<ffffffffc060a2d5>] xfs_iomap_write_allocate+0x185/0x3a0 [xfs]
 [<ffffffffc05f45a6>] xfs_map_blocks+0x1a6/0x220 [xfs]
 [<ffffffffc05f59bc>] xfs_do_writepage+0x16c/0x510 [xfs]
 [<ffffffffa45a2b14>] write_cache_pages+0x254/0x4e0
 [<ffffffffc05f5850>] ? xfs_aops_discard_page+0x150/0x150 [xfs]
 [<ffffffffc05f565d>] xfs_vm_writepages+0xbd/0xe0 [xfs]
 [<ffffffffa45a3e91>] do_writepages+0x21/0x50
 [<ffffffffa4598705>] __filemap_fdatawrite_range+0x65/0x80
 [<ffffffffa4598851>] filemap_write_and_wait_range+0x41/0x90
 [<ffffffffc05ffaf6>] xfs_file_fsync+0x66/0x1e0 [xfs]
 [<ffffffffa46539e7>] do_fsync+0x67/0xb0
 [<ffffffffa4653cd0>] SyS_fsync+0x10/0x20
 [<ffffffffa4b2679b>] system_call_fastpath+0x22/0x27
Code: 01 00 00 01 e8 88 ac 06 00 48 8b 9d 48 ff ff ff 48 8b 95 78 ff ff ff 31 c9 4c 89 fe 48 89 df e8 8d cf 00 00 48 89 85 10 ff ff ff <48> c7 80 68 01 00 00 00 f3 63 c0 48 8b 80 a0 00 00 00 48 89 85 
RIP  [<ffffffffc05c4bfa>] xfs_bmap_extents_to_btree+0x21a/0x5c0 [xfs]
 RSP <ffff9e368f5a7768>

Environment

  • Red Hat Enterprise Linux 7
  • xfs filesystem

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content