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, 16 Sep 2019 09:50:45 +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@...org
Subject: [xfs] 3878a5a0e4: Assertion_failed

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

commit: 3878a5a0e442b2e8111d65dee5b29c1ac14bb829 ("xfs: repair damaged symlinks")
https://kernel.googlesource.com/pub/scm/linux/kernel/git/djwong/xfs-linux.git rough-fixes

in testcase: xfstests
with following parameters:

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

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 4G

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


+------------------------------------------------+------------+------------+
|                                                | d54d20e33a | 3878a5a0e4 |
+------------------------------------------------+------------+------------+
| boot_successes                                 | 256        | 357        |
| boot_failures                                  | 4          | 15         |
| Mem-Info                                       | 1          |            |
| invoked_oom-killer:gfp_mask=0x                 | 1          |            |
| BUG:soft_lockup-CPU##stuck_for#s               | 1          |            |
| RIP:__memcpy                                   | 1          |            |
| Kernel_panic-not_syncing:softlockup:hung_tasks | 1          |            |
| BUG:unable_to_handle_page_fault_for_address    | 1          |            |
| Oops:#[##]                                     | 1          |            |
| Kernel_panic-not_syncing:Fatal_exception       | 1          | 13         |
| BUG:kernel_hang_in_boot_stage                  | 1          | 2          |
| Assertion_failed                               | 0          | 13         |
| kernel_BUG_at_fs/xfs/xfs_message.c             | 0          | 13         |
| invalid_opcode:#[##]                           | 0          | 13         |
| RIP:assfail[xfs]                               | 0          | 13         |
+------------------------------------------------+------------+------------+


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


[  137.972384] XFS (vdd): Corruption not fixed during online repair.  Unmount and run xfs_repair.
[  137.975454] XFS (vdd): Injecting error (false) at file fs/xfs/scrub/scrub.c, line 527, on filesystem "vdd"
[  137.981275] XFS (vdd): Corruption not fixed during online repair.  Unmount and run xfs_repair.
[  137.986341] XFS (vdd): Corruption not fixed during online repair.  Unmount and run xfs_repair.
[  137.989482] XFS (vdd): Corruption not fixed during online repair.  Unmount and run xfs_repair.
[  138.170199] XFS: Assertion failed: !(ip->i_df.if_flags & XFS_IFINLINE), file: fs/xfs/xfs_symlink.c, line: 116
[  138.174302] ------------[ cut here ]------------
[  138.175994] kernel BUG at fs/xfs/xfs_message.c:102!
[  138.177531] invalid opcode: 0000 [#1] SMP PTI
[  138.179143] CPU: 0 PID: 7162 Comm: fsstress Not tainted 5.3.0-rc7-00062-g3878a5a0e442b #1
[  138.181642] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[  138.183655] RIP: 0010:assfail+0x34/0x40 [xfs]
[  138.185016] Code: d0 48 c7 c6 d0 73 52 c0 48 89 fa 31 ff e8 54 f9 ff ff 80 3d 11 ca 0e 00 00 75 0f 48 c7 c7 00 74 52 c0 e8 bd d5 c4 ec 0f 0b c3 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 66 66 66 90 48 63 f6 6a 01
[  138.188873] RSP: 0018:ffffacbbc0d2fe40 EFLAGS: 00010202
[  138.190373] RAX: 0000000000000000 RBX: ffff8c80f6185c00 RCX: 0000000000000000
[  138.192003] RDX: 00000000ffffffc0 RSI: 000000000000000a RDI: ffffffffc051980c
[  138.193660] RBP: ffff8c80f5dffd80 R08: 0000000000000000 R09: 0000000000000000
[  138.195511] R10: ffffacbbc0d2fee0 R11: f000000000000000 R12: ffff8c80facfc000
[  138.197117] R13: ffff8c80ffc1f000 R14: 0000000000001000 R15: 00007fff24a2ad30
[  138.198871] FS:  00007fce14a08b40(0000) GS:ffff8c81bfc00000(0000) knlGS:0000000000000000
[  138.201052] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  138.202660] CR2: 00007fce13b1f000 CR3: 0000000073d3a000 CR4: 00000000000406f0
[  138.204361] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  138.206115] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  138.207791] Call Trace:
[  138.208873]  xfs_readlink+0xd3/0x140 [xfs]
[  138.210243]  xfs_vn_get_link+0x50/0xa0 [xfs]
[  138.211566]  vfs_readlink+0x65/0x120
[  138.212745]  do_readlinkat+0xfd/0x120
[  138.213998]  __x64_sys_readlink+0x1b/0x20
[  138.215228]  do_syscall_64+0x5b/0x1f0
[  138.216365]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  138.217709] RIP: 0033:0x7fce13f09087
[  138.218910] Code: 73 01 c3 48 8b 0d 11 be 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 59 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e1 bd 2b 00 f7 d8 64 89 01 48
[  138.222747] RSP: 002b:00007fff24a2abb8 EFLAGS: 00000206 ORIG_RAX: 0000000000000059
[  138.224366] RAX: ffffffffffffffda RBX: 00007fff24a2ad20 RCX: 00007fce13f09087
[  138.226053] RDX: 0000000000001000 RSI: 00007fff24a2ad30 RDI: 0000560c276ec1c0
[  138.227699] RBP: 00000000000000c4 R08: 0000000000000020 R09: 00007fff24a2ad1c
[  138.229221] R10: 0000000000000078 R11: 0000000000000206 R12: 00007fff24a2ad30
[  138.230860] R13: 0000000000001000 R14: 00007fff24a2bdb0 R15: 0000560c26da0d80
[  138.232316] Modules linked in: sd_mod xfs libcrc32c dm_mod intel_rapl_msr intel_rapl_common crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel sr_mod cdrom sg ata_generic pata_acpi bochs_drm drm_vram_helper ttm ppdev drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops snd_pcm drm aesni_intel snd_timer snd crypto_simd ata_piix cryptd glue_helper joydev soundcore libata serio_raw pcspkr parport_pc i2c_piix4 parport floppy ip_tables [last unloaded: scsi_debug]
[  138.269956] ---[ end trace f9066920b78098c0 ]---
[  138.271427] RIP: 0010:assfail+0x34/0x40 [xfs]
[  138.272821] Code: d0 48 c7 c6 d0 73 52 c0 48 89 fa 31 ff e8 54 f9 ff ff 80 3d 11 ca 0e 00 00 75 0f 48 c7 c7 00 74 52 c0 e8 bd d5 c4 ec 0f 0b c3 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 66 66 66 66 90 48 63 f6 6a 01
[  138.280369] RSP: 0018:ffffacbbc0d2fe40 EFLAGS: 00010202
[  138.282278] RAX: 0000000000000000 RBX: ffff8c80f6185c00 RCX: 0000000000000000
[  138.285382] RDX: 00000000ffffffc0 RSI: 000000000000000a RDI: ffffffffc051980c
[  138.287191] RBP: ffff8c80f5dffd80 R08: 0000000000000000 R09: 0000000000000000
[  138.290672] R10: ffffacbbc0d2fee0 R11: f000000000000000 R12: ffff8c80facfc000
[  138.292959] R13: ffff8c80ffc1f000 R14: 0000000000001000 R15: 00007fff24a2ad30
[  138.296613] FS:  00007fce14a08b40(0000) GS:ffff8c81bfc00000(0000) knlGS:0000000000000000
[  138.298468] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  138.301665] CR2: 00007fce13b1f000 CR3: 0000000073d3a000 CR4: 00000000000406f0
[  138.304083] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  138.307384] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  138.309084] Kernel panic - not syncing: Fatal exception
[  138.310862] Kernel Offset: 0x2c000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)

Elapsed time: 140

qemu-img create -f qcow2 disk-vm-snb-4G-c7bcc2fa9533-0 256G


To reproduce:

        # build kernel
	cd linux
	cp config-5.3.0-rc7-00062-g3878a5a0e442b .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.3.0-rc7-00062-g3878a5a0e442b" of type "text/plain" (199452 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ