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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191227142531.GF2760@shao2-debian>
Date:   Fri, 27 Dec 2019 22:25:31 +0800
From:   kernel test robot <lkp@...el.com>
To:     yu kuai <yukuai3@...wei.com>
Cc:     darrick.wong@...cle.com, bfoster@...hat.com, dchinner@...hat.com,
        sandeen@...deen.net, cmaiolino@...hat.com, hch@....de,
        linux-xfs@...r.kernel.org, linux-kernel@...r.kernel.org,
        yukuai3@...wei.com, zhengbin13@...wei.com, yi.zhang@...wei.com,
        houtao1@...wei.com, lkp@...ts.01.org
Subject: [xfs] 1c6c6a28e3: Assertion_failed

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

commit: 1c6c6a28e3cb24b087e39e4a2cf05373a03b1029 ("[PATCH 2/2] xfs: fix stale data exposure problem when punch hole, collapse range or zero range across a delalloc extent")
url: https://github.com/0day-ci/linux/commits/yu-kuai/fix-stale-data-exposure-problem/20191226-235515
base: https://git.kernel.org/cgit/fs/xfs/xfs-linux.git for-next

in testcase: xfstests
with following parameters:

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

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):


+------------------------------------------+------------+------------+
|                                          | b07d72b308 | 1c6c6a28e3 |
+------------------------------------------+------------+------------+
| boot_successes                           | 12         | 0          |
| boot_failures                            | 0          | 12         |
| Assertion_failed                         | 0          | 11         |
| kernel_BUG_at_fs/xfs/xfs_message.c       | 0          | 11         |
| invalid_opcode:#[##]                     | 0          | 11         |
| RIP:assfail[xfs]                         | 0          | 11         |
| Kernel_panic-not_syncing:Fatal_exception | 0          | 11         |
| BUG:kernel_hang_in_boot_stage            | 0          | 1          |
+------------------------------------------+------------+------------+


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



[   99.190858] xfs filesystem being mounted at /fs/vda supports timestamps until 2038 (0x7fffffff)
[   99.563545] XFS (vdd): Mounting V5 Filesystem
[   99.570185] XFS (vdd): Ending clean mount
[   99.573413] xfs filesystem being mounted at /fs/scratch supports timestamps until 2038 (0x7fffffff)
[  115.387776] XFS (vdd): Unmounting Filesystem
[  115.412903] XFS: Assertion failed: XFS_FORCED_SHUTDOWN(mp) || percpu_counter_sum(&mp->m_delalloc_blks) == 0, file: fs/xfs/xfs_super.c, line: 1037
[  115.417044] ------------[ cut here ]------------
[  115.419081] kernel BUG at fs/xfs/xfs_message.c:110!
[  115.421773] invalid opcode: 0000 [#1] SMP PTI
[  115.423698] CPU: 1 PID: 26348 Comm: umount Not tainted 5.5.0-rc1-00011-g1c6c6a28e3cb2 #3
[  115.431083] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[  115.438291] RIP: 0010:assfail+0x26/0x30 [xfs]
[  115.440301] Code: c3 0f 1f 00 66 66 66 66 90 41 89 c8 48 89 d1 48 89 f2 48 c7 c6 b0 6c 73 c0 e8 66 f9 ff ff 80 3d ab bf 0d 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
[  115.446597] RSP: 0018:ffffa861043bfe40 EFLAGS: 00010202
[  115.448838] RAX: 0000000000000000 RBX: ffff9711c9298000 RCX: 0000000000000000
[  115.451429] RDX: 00000000ffffffc0 RSI: 000000000000000a RDI: ffffffffc0729050
[  115.454041] RBP: ffff9711c92981a0 R08: 0000000000000000 R09: 0000000000000000
[  115.456742] R10: 0000000000000007 R11: f000000000000000 R12: ffffffff9032f4f0
[  115.459299] R13: ffff971228c8b1d8 R14: ffffffff90f8c860 R15: 0000000000000000
[  115.462264] FS:  00007f041d2d0e40(0000) GS:ffff97123fd00000(0000) knlGS:0000000000000000
[  115.465521] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  115.468070] CR2: 000055895cb3e4d8 CR3: 00000001c97dc000 CR4: 00000000000406e0
[  115.470806] Call Trace:
[  115.472591]  xfs_destroy_percpu_counters+0x6f/0x80 [xfs]
[  115.474747]  xfs_fs_put_super+0x51/0x80 [xfs]
[  115.476589]  generic_shutdown_super+0x6c/0x120
[  115.477765]  kill_block_super+0x21/0x50
[  115.478850]  deactivate_locked_super+0x3f/0x70
[  115.480006]  cleanup_mnt+0xb8/0x150
[  115.481107]  task_work_run+0xa3/0xe0
[  115.482149]  exit_to_usermode_loop+0xeb/0xf0
[  115.483166]  do_syscall_64+0x1c6/0x1f0
[  115.484366]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  115.485815] RIP: 0033:0x7f041cbb4d77
[  115.487145] Code: 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d f1 00 2b 00 f7 d8 64 89 01 48
[  115.492858] RSP: 002b:00007fffcff460f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
[  115.495279] RAX: 0000000000000000 RBX: 000055895cb34080 RCX: 00007f041cbb4d77
[  115.496926] RDX: 0000000000000001 RSI: 0000000000000000 RDI: 000055895cb3c520
[  115.498850] RBP: 000055895cb3c520 R08: 00007f041ce65b88 R09: 0000000000000020
[  115.500278] R10: 00000000000006b4 R11: 0000000000000246 R12: 00007f041d0b6e64
[  115.502255] R13: 0000000000000000 R14: 000055895cb34260 R15: 00007fffcff46380
[  115.503715] Modules linked in: xfs libcrc32c dm_mod sr_mod intel_rapl_msr cdrom sg intel_rapl_common crct10dif_pclmul crc32_pclmul crc32c_intel bochs_drm ghash_clmulni_intel ppdev drm_vram_helper ata_generic drm_ttm_helper pata_acpi ttm drm_kms_helper snd_pcm syscopyarea snd_timer sysfillrect sysimgblt snd fb_sys_fops aesni_intel drm crypto_simd soundcore cryptd ata_piix glue_helper pcspkr joydev libata serio_raw i2c_piix4 parport_pc floppy parport ip_tables
[  115.512543] ---[ end trace 073949715e403cad ]---
[  115.514429] RIP: 0010:assfail+0x26/0x30 [xfs]
[  115.524751] Code: c3 0f 1f 00 66 66 66 66 90 41 89 c8 48 89 d1 48 89 f2 48 c7 c6 b0 6c 73 c0 e8 66 f9 ff ff 80 3d ab bf 0d 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
[  115.530800] RSP: 0018:ffffa861043bfe40 EFLAGS: 00010202
[  115.533858] RAX: 0000000000000000 RBX: ffff9711c9298000 RCX: 0000000000000000
[  115.538918] RDX: 00000000ffffffc0 RSI: 000000000000000a RDI: ffffffffc0729050
[  115.543574] RBP: ffff9711c92981a0 R08: 0000000000000000 R09: 0000000000000000
[  115.548112] R10: 0000000000000007 R11: f000000000000000 R12: ffffffff9032f4f0
[  115.552138] R13: ffff971228c8b1d8 R14: ffffffff90f8c860 R15: 0000000000000000
[  115.556210] FS:  00007f041d2d0e40(0000) GS:ffff97123fd00000(0000) knlGS:0000000000000000
[  115.561037] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  115.565256] CR2: 000055895cb3e4d8 CR3: 00000001c97dc000 CR4: 00000000000406e0
[  115.568487] Kernel panic - not syncing: Fatal exception
[  115.572474] Kernel Offset: 0xe000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)

Elapsed time: 120


To reproduce:

        # build kernel
	cd linux
	cp config-5.5.0-rc1-00011-g1c6c6a28e3cb2 .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,
lkp


View attachment "config-5.5.0-rc1-00011-g1c6c6a28e3cb2" of type "text/plain" (202451 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ