All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Myers <bpm@sgi.com>
To: xfs@oss.sgi.com
Subject: xfs: assertion failed in xfs_file_dio_aio_write
Date: Thu, 17 May 2012 11:00:02 -0500	[thread overview]
Message-ID: <20120517160002.GL16099@sgi.com> (raw)

Hi Folks,

Here's an interesting assert that I hit overnight:

[89045.383286] XFS: Assertion failed: ret < 0 || ret == count, file: /root/xfs/fs/xfs/xfs_file.c, line: 705
[89045.392866] ------------[ cut here ]------------
[89045.396761] kernel BUG at /root/xfs/fs/xfs/xfs_message.c:100!
[89045.396761] invalid opcode: 0000 [#1] SMP 
[89045.396761] CPU 1 
[89045.408007] Modules linked in: xfs(O) exportfs af_packet fuse loop dm_mod e1000 shpchp iTCO_wdt tpm_tis sg pci_hotplug sr_mod iTCO_vendor_support intel_rng tpm tpm_bios e752x_edac mic
rocode floppy cdrom pcspkr serio_raw container edac_core i2c_i801 i2c_core button uhci_hcd ehci_hcd sd_mod crc_t10dif usbcore usb_common edd ext3 mbcache jbd fan processor ide_pci_generi
c piix ide_core ata_generic ata_piix libata aic79xx scsi_transport_spi scsi_mod thermal thermal_sys hwmon [last unloaded: xfs]
[89045.408007] 
[89045.408007] Pid: 26996, comm: dd Tainted: G           O 3.4.0-rc2-0.7-default+ #20 Supermicro X6DHR-8G/X6DHR-8GS/X6DHR-8G/X6DHR-8GS
[89045.408007] RIP: 0010:[<ffffffffa0309bdd>]  [<ffffffffa0309bdd>] assfail+0x1d/0x30 [xfs]
[89045.408007] RSP: 0000:ffff880220d3dcd8  EFLAGS: 00010296
[89045.408007] RAX: 0000000000000072 RBX: 0000000000000000 RCX: 0000000000000086
[89045.408007] RDX: 00000000000087ac RSI: 0000000000000046 RDI: 0000000000000246
[89045.408007] RBP: ffff880220d3dcd8 R08: 0000000000000000 R09: 0000000000000000
[89045.408007] R10: 00000000ffffffff R11: 0000000000000000 R12: 0000000000000000
[89045.408007] R13: ffff88022ee11388 R14: ffff88022ee11100 R15: 0000000000100000
[89045.408007] FS:  00007fc8e1342700(0000) GS:ffff88022fc80000(0000) knlGS:0000000000000000
[89045.408007] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[89045.408007] CR2: 00007fe7b0dc6a02 CR3: 0000000220cd9000 CR4: 00000000000007e0
[89045.408007] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[89045.408007] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[89045.408007] Process dd (pid: 26996, threadinfo ffff880220d3c000, task ffff880220c26080)
[89045.408007] Stack:
[89045.408007]  ffff880220d3dd58 ffffffffa02fffe7 0000000000100000 0000000000000029
[89045.408007]  ffff880220d3ded8 ffff880220d3ddf8 0000000020d3dd38 000000000e100000
[89045.408007]  0000000000000001 0000000000100000 0000000223c72e98 fffffffffffffffb
[89045.408007] Call Trace:
[89045.408007]  [<ffffffffa02fffe7>] xfs_file_dio_aio_write+0x147/0x290 [xfs]
[89045.408007]  [<ffffffffa030031a>] xfs_file_aio_write+0x1ea/0x1f0 [xfs]
[89045.408007]  [<ffffffff810e4b06>] ? __vm_enough_memory+0x36/0x170
[89045.408007]  [<ffffffff8110e5d9>] do_sync_write+0xd9/0x120
[89045.408007]  [<ffffffff81194bfd>] ? security_file_permission+0x1d/0xa0
[89045.408007]  [<ffffffff8110ec0b>] vfs_write+0xcb/0x180
[89045.408007]  [<ffffffff8110edb0>] sys_write+0x50/0x90
[89045.408007]  [<ffffffff813b27f9>] system_call_fastpath+0x16/0x1b
[89045.408007] Code: 00 00 00 48 89 45 c8 e8 72 fc ff ff c9 c3 55 41 89 d0 48 89 f1 48 89 fa 48 c7 c6 e0 a2 37 a0 31 ff 48 89 e5 31 c0 e8 93 ff ff ff <0f> 0b eb fe 90 90 90 90 90 90 90 9
0 90 90 90 90 90 90 90 55 4c 
[89045.408007] RIP  [<ffffffffa0309bdd>] assfail+0x1d/0x30 [xfs]
[89045.408007]  RSP <ffff880220d3dcd8>

This assertion failed while I was running xfstests -g auto in a loop.  Looks
like test 247 was running at the time of the crash. 

~/xfstests # while true
> do
> ./check -g auto
> done
SRC           -- /root/xfs
BRANCH        -- refs/heads/master
DESC          -- v3.4-rc2-54-g1307bbd
PATCHES:
/root/xfs/patches/xfs-fix-delalloc-quota-accounting-on-failure.patch
        md5sum:         edbb56145eedc2e79960821246b25425
        X-Patchwork-Id:
        Message-Id:     <1336474133-27732-1-git-send-email-david@fromorbit.com>
/root/xfs/patches/xfs-fix-memory-reclaim-deadlock-on-agi-buffer.patch
        md5sum:         6157ca5a97fbec939bf046cbd59faa66
        X-Patchwork-Id:
        Message-Id:     <1336421497-1554-1-git-send-email-treestem@gmail.com>
/root/xfs/patches/xfs-add-trace-points-for-log-forces.patch
        md5sum:         84bb6825bc550f47ebca16f5678d96f0
        X-Patchwork-Id:
        Message-Id:     <1335249220-22274-2-git-send-email-david@fromorbit.com>
/root/xfs/patches/xfs-use-iolock-on-xfs_ioc_allocsp-calls.patch
        md5sum:         19602e6e5ffcc242b2d2f5680bd9f708
        X-Patchwork-Id:
        Message-Id:     <1334051449-26631-1-git-send-email-david@fromorbit.com>
FSTYP         -- xfs (debug)
PLATFORM      -- Linux/x86_64 nfs10 3.4.0-rc2-0.7-default+
MKFS_OPTIONS  -- -f -bsize=4096 /dev/sdb4
MOUNT_OPTIONS -- /dev/sdb4 /mnt/scratch
...
243 1s ... 0s
244 2s ... 2s
245 0s ... 1s
246 0s ... 1s
247 31s ...Write failed: Broken pipe


 625 STATIC ssize_t
 626 xfs_file_dio_aio_write(
 627         struct kiocb            *iocb,
 628         const struct iovec      *iovp,
 629         unsigned long           nr_segs,
 630         loff_t                  pos,
 631         size_t                  ocount)
 632 {
...
 698         ret = generic_file_direct_write(iocb, iovp,
 699                         &nr_segs, pos, &iocb->ki_pos, count, ocount);
 700 
 701 out:
 702         xfs_rw_iunlock(ip, iolock);
 703 
 704         /* No fallback to buffered IO on errors for XFS. */
 705         ASSERT(ret < 0 || ret == count);
 706         return ret;
 707 }


Something to keep an eye out for.

Regards,
Ben

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

                 reply	other threads:[~2012-05-17 15:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120517160002.GL16099@sgi.com \
    --to=bpm@sgi.com \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.