lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 21 Oct 2019 16:50:19 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     "Darrick J. Wong" <darrick.wong@...cle.com>
Cc:     LKML <linux-kernel@...r.kernel.org>,
        "Darrick J. Wong" <darrick.wong@...cle.com>, lkp@...ts.01.org
Subject: [xfs] 11bfe2874e: Assertion_failed

FYI, we noticed the following commit (built with gcc-7):

commit: 11bfe2874e3e739889e2b54728988d925760e1a8 ("xfs: convert if () { XFS_ERROR_REPORT to if (XFS_CORRUPT_ON...")
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git report-corruption

in testcase: xfstests
with following parameters:

	disk: 4HDD
	fs: xfs
	test: xfs-group19

test-description: xfstests is a regression test suite for xfs and other files ystems.
test-url: git://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git


on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


+--------------------------------------------------+------------+------------+
|                                                  | 1f50dc47e7 | 11bfe2874e |
+--------------------------------------------------+------------+------------+
| boot_successes                                   | 1          | 2          |
| boot_failures                                    | 1          | 114        |
| WARNING:at_kernel/workqueue.c:#destroy_workqueue | 1          |            |
| RIP:destroy_workqueue                            | 1          |            |
| Assertion_failed                                 | 0          | 114        |
| kernel_BUG_at_fs/xfs/xfs_message.c               | 0          | 114        |
| invalid_opcode:#[##]                             | 0          | 114        |
| RIP:assfail[xfs]                                 | 0          | 114        |
| Kernel_panic-not_syncing:Fatal_exception         | 0          | 114        |
+--------------------------------------------------+------------+------------+


If you fix the issue, kindly add following tag
Reported-by: kernel test robot <rong.a.chen@...el.com>



[  168.208859] 00000070: 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00  ................
[  168.215101] XFS (vdd): Unmounting Filesystem
[  168.307301] XFS (vdd): Mounting V5 Filesystem
[  168.315637] XFS (vdd): Ending clean mount
[  168.319544] Mounted xfs file system at /fs/scratch supports timestamps until 2038 (0x7fffffff)
[  168.330806] XFS (vdd): Assertion failed: rval != 0 && args->dp->i_d.di_size != args->geo->blksize, file: fs/xfs/libxfs/xfs_dir2.c, line: 607
[  168.334135] ------------[ cut here ]------------
[  168.335371] kernel BUG at fs/xfs/xfs_message.c:102!
[  168.336887] invalid opcode: 0000 [#1] SMP PTI
[  168.338284] CPU: 1 PID: 15479 Comm: ls Not tainted 5.4.0-rc3-00151-g11bfe2874e3e7 #1
[  168.340897] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[  168.343560] RIP: 0010:assfail+0x26/0x30 [xfs]
[  168.345188] Code: c3 0f 1f 00 66 66 66 66 90 41 89 c8 48 89 d1 48 89 f2 48 c7 c6 b0 49 4f c0 e8 66 f9 ff ff 80 3d 53 9f 0f 00 00 75 03 0f 0b c3 <0f> 0b 0f 1f 84 00 00 00 00 00 66 66 66 66 90 48 63 f6 6a 01 49 89
[  168.350891] RSP: 0018:ffffb55e00cf3d88 EFLAGS: 00010202
[  168.352809] RAX: 0000000000000000 RBX: ffffb55e00cf3dc0 RCX: 0000000000000000
[  168.355102] RDX: 00000000ffffffc0 RSI: 000000000000000a RDI: ffffffffc04e6058
[  168.357526] RBP: ffffb55e00cf3dbc R08: 0000000000000000 R09: 0000000000000000
[  168.359858] R10: ffffb55e00cf3e50 R11: f000000000000000 R12: ffffb55e00cf3ec0
[  168.362047] R13: 0000000000000004 R14: ffff9743993ce000 R15: 0000000000000001
[  168.363670] FS:  00007fe99cbbef40(0000) GS:ffff9743ffd00000(0000) knlGS:0000000000000000
[  168.365390] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  168.366843] CR2: 000055906ceead68 CR3: 00000001922ac000 CR4: 00000000000406e0
[  168.368475] Call Trace:
[  168.369528]  xfs_dir2_isblock+0x96/0xb0 [xfs]
[  168.370878]  xfs_readdir+0xe1/0x1d0 [xfs]
[  168.372077]  iterate_dir+0x8d/0x1a0
[  168.373722]  __x64_sys_getdents+0xd1/0x180
[  168.375008]  ? verify_dirent_name+0x40/0x40
[  168.376220]  ? do_syscall_64+0x5b/0x1d0
[  168.377390]  ? __ia32_sys_getdents+0x170/0x170
[  168.378741]  do_syscall_64+0x5b/0x1d0
[  168.379924]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  168.381239] RIP: 0033:0x7fe99c491f2b
[  168.382413] Code: fc ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 41 57 41 56 48 63 ff 41 55 41 54 b8 4e 00 00 00 55 53 48 89 f3 48 83 ec 08 0f 05 <48> 3d 00 f0 ff ff 77 55 48 8d 2c 06 49 89 c4 48 39 ee 73 34 90 44
[  168.386330] RSP: 002b:00007fffffc54000 EFLAGS: 00000206 ORIG_RAX: 000000000000004e
[  168.388091] RAX: ffffffffffffffda RBX: 000055906cee2d60 RCX: 00007fe99c491f2b
[  168.389769] RDX: 0000000000008000 RSI: 000055906cee2d60 RDI: 0000000000000004
[  168.391488] RBP: 000055906cee2d60 R08: 0000000000000003 R09: 0000000000008040
[  168.393128] R10: 000000000000008d R11: 0000000000000206 R12: fffffffffffffeb0
[  168.394837] R13: 0000000000000000 R14: 000055906cee2d10 R15: 000055906b1e6595
[  168.396525] Modules linked in: dm_delay xfs libcrc32c dm_mod intel_rapl_msr intel_rapl_common crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel sr_mod cdrom sg ppdev ata_generic pata_acpi snd_pcm aesni_intel snd_timer crypto_simd bochs_drm snd drm_vram_helper ttm cryptd glue_helper drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops soundcore pcspkr drm joydev i2c_piix4 serio_raw ata_piix parport_pc parport floppy ip_tables
[  168.404943] ---[ end trace 9e1dbc26c49a4256 ]---
[  168.406392] RIP: 0010:assfail+0x26/0x30 [xfs]
[  168.407758] Code: c3 0f 1f 00 66 66 66 66 90 41 89 c8 48 89 d1 48 89 f2 48 c7 c6 b0 49 4f c0 e8 66 f9 ff ff 80 3d 53 9f 0f 00 00 75 03 0f 0b c3 <0f> 0b 0f 1f 84 00 00 00 00 00 66 66 66 66 90 48 63 f6 6a 01 49 89
[  168.413519] RSP: 0018:ffffb55e00cf3d88 EFLAGS: 00010202
[  168.415481] RAX: 0000000000000000 RBX: ffffb55e00cf3dc0 RCX: 0000000000000000
[  168.417927] RDX: 00000000ffffffc0 RSI: 000000000000000a RDI: ffffffffc04e6058
[  168.420242] RBP: ffffb55e00cf3dbc R08: 0000000000000000 R09: 0000000000000000
[  168.422544] R10: ffffb55e00cf3e50 R11: f000000000000000 R12: ffffb55e00cf3ec0
[  168.424974] R13: 0000000000000004 R14: ffff9743993ce000 R15: 0000000000000001
[  168.427337] FS:  00007fe99cbbef40(0000) GS:ffff9743ffd00000(0000) knlGS:0000000000000000
[  168.430125] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  168.432159] CR2: 000055906ceead68 CR3: 00000001922ac000 CR4: 00000000000406e0
[  168.434730] Kernel panic - not syncing: Fatal exception
[  168.437456] Kernel Offset: 0x2200000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)

Elapsed time: 170

qemu-img create -f qcow2 disk-vm-snb-49316eae392f-0 256G


To reproduce:

        # build kernel
	cd linux
	cp config-5.4.0-rc3-00151-g11bfe2874e3e7 .config
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir> modules_install
	cd <mod-install-dir>
	find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz


        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in this email



Thanks,
Rong Chen


View attachment "config-5.4.0-rc3-00151-g11bfe2874e3e7" of type "text/plain" (200562 bytes)

View attachment "job-script" of type "text/plain" (5461 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (20160 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ