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] [day] [month] [year] [list]
Date:   Thu, 15 Sep 2022 15:41:47 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Stephen Zhang <starzhangzsd@...il.com>
CC:     <lkp@...ts.01.org>, <lkp@...el.com>,
        Shida Zhang <zhangshida@...inos.cn>,
        <linux-xfs@...r.kernel.org>, <djwong@...nel.org>,
        <dchinner@...hat.com>, <chandan.babu@...cle.com>,
        <starzhangzsd@...il.com>, <linux-kernel@...r.kernel.org>
Subject: [xfs]  [confidence: ] 505313cbc0: Assertion_failed


Greeting,

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

commit: 505313cbc048583d7be1ace80e9eff78fe504fa6 ("[PATCH] xfs: remove the redundant check in xfs_bmap_first_unused")
url: https://github.com/intel-lab-lkp/linux/commits/Stephen-Zhang/xfs-remove-the-redundant-check-in-xfs_bmap_first_unused/20220909-111228
patch link: https://lore.kernel.org/lkml/20220909030756.3916297-1-zhangshida@kylinos.cn

in testcase: fsmark
version: fsmark-x86_64-698ee57-1_20220517
with following parameters:

	iterations: 1x
	nr_threads: 1t
	disk: 1HDD
	fs: xfs
	filesize: 4K
	test_size: 100M
	sync_method: fsyncBeforeClose
	nr_files_per_directory: 1fpd
	cpufreq_governor: performance

test-description: The fsmark is a file system benchmark to test synchronous write workloads, for example, mail servers workload.
test-url: https://sourceforge.net/projects/fsmark/


on test machine: 128 threads 2 sockets Intel(R) Xeon(R) Platinum 8358 CPU @ 2.60GHz (Ice Lake) with 128G memory

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



If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang@...el.com>
Link: https://lore.kernel.org/r/202209151542.91c8983f-oliver.sang@intel.com


[   44.710825][ T1533]
[   44.719150][ T1533]   { wakeup_events, wakeup_watermark } 1
[   44.719151][ T1533]
[   44.728051][ T1533] ------------------------------------------------------------
[   44.728052][ T1533]
[   73.443038][ T6040] XFS: Assertion failed: index == leafhdr.count || be32_to_cpu(ents[index].hashval) >= args->hashval, file: fs/xfs/libxfs/xfs_dir2_node.c, line: 537
[   73.458270][ T6040] ------------[ cut here ]------------
[   73.463715][ T6040] kernel BUG at fs/xfs/xfs_message.c:102!
[   73.469417][ T6040] invalid opcode: 0000 [#1] SMP NOPTI
[   73.474773][ T6040] CPU: 100 PID: 6040 Comm: fs_mark Not tainted 6.0.0-rc4-00001-g505313cbc048 #1
[ 73.483780][ T6040] RIP: 0010:assfail (kbuild/src/consumer/fs/xfs/./xfs_trace.h:143) xfs
[ 73.489068][ T6040] Code: 00 00 49 89 d0 41 89 c9 48 c7 c2 08 77 3e a1 48 89 f1 48 89 fe 48 c7 c7 c3 97 3d a1 e8 3a fe ff ff 80 3d e1 4b 0b 00 00 74 02 <0f> 0b 0f 0b c3 cc cc cc cc 48 8d 45 10 48 89 e2 4c 89 e6 48 89 1c
All code
========
   0:	00 00                	add    %al,(%rax)
   2:	49 89 d0             	mov    %rdx,%r8
   5:	41 89 c9             	mov    %ecx,%r9d
   8:	48 c7 c2 08 77 3e a1 	mov    $0xffffffffa13e7708,%rdx
   f:	48 89 f1             	mov    %rsi,%rcx
  12:	48 89 fe             	mov    %rdi,%rsi
  15:	48 c7 c7 c3 97 3d a1 	mov    $0xffffffffa13d97c3,%rdi
  1c:	e8 3a fe ff ff       	callq  0xfffffffffffffe5b
  21:	80 3d e1 4b 0b 00 00 	cmpb   $0x0,0xb4be1(%rip)        # 0xb4c09
  28:	74 02                	je     0x2c
  2a:*	0f 0b                	ud2    		<-- trapping instruction
  2c:	0f 0b                	ud2    
  2e:	c3                   	retq   
  2f:	cc                   	int3   
  30:	cc                   	int3   
  31:	cc                   	int3   
  32:	cc                   	int3   
  33:	48 8d 45 10          	lea    0x10(%rbp),%rax
  37:	48 89 e2             	mov    %rsp,%rdx
  3a:	4c 89 e6             	mov    %r12,%rsi
  3d:	48                   	rex.W
  3e:	89                   	.byte 0x89
  3f:	1c                   	.byte 0x1c

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2    
   2:	0f 0b                	ud2    
   4:	c3                   	retq   
   5:	cc                   	int3   
   6:	cc                   	int3   
   7:	cc                   	int3   
   8:	cc                   	int3   
   9:	48 8d 45 10          	lea    0x10(%rbp),%rax
   d:	48 89 e2             	mov    %rsp,%rdx
  10:	4c 89 e6             	mov    %r12,%rsi
  13:	48                   	rex.W
  14:	89                   	.byte 0x89
  15:	1c                   	.byte 0x1c
[   73.508838][ T6040] RSP: 0018:ffa000000ce23ba0 EFLAGS: 00010202
[   73.514929][ T6040] RAX: 0000000000000000 RBX: ff11001085896400 RCX: 000000007fffffff
[   73.522931][ T6040] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa13d97c3
[   73.530934][ T6040] RBP: ff11001084634080 R08: 0000000000000000 R09: 000000000000000a
[   73.538938][ T6040] R10: 000000000000000a R11: f000000000000000 R12: ff11001085b08300
[   73.546943][ T6040] R13: ff1100206f937000 R14: 0000000000000000 R15: ff1100206f937040
[   73.554955][ T6040] FS:  00007f69443de640(0000) GS:ff11002002d00000(0000) knlGS:0000000000000000
[   73.563919][ T6040] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   73.570551][ T6040] CR2: 0000555bd87a3ab2 CR3: 0000002076e68003 CR4: 0000000000771ee0
[   73.578582][ T6040] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   73.586610][ T6040] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   73.594638][ T6040] PKRU: 55555554
[   73.598248][ T6040] Call Trace:
[   73.601607][ T6040]  <TASK>
[ 73.604609][ T6040] xfs_dir2_leafn_add (kbuild/src/consumer/fs/xfs/libxfs/xfs_dir2_node.c:537 (discriminator 2)) xfs
[ 73.610280][ T6040] ? xfs_da3_blk_link (kbuild/src/consumer/fs/xfs/libxfs/xfs_da_btree.c:1890) xfs
[ 73.615933][ T6040] xfs_dir2_leafn_split (kbuild/src/consumer/fs/xfs/libxfs/xfs_dir2_node.c:1463) xfs
[ 73.621744][ T6040] ? xfs_dir2_leafn_add (kbuild/src/consumer/fs/xfs/libxfs/xfs_dir2_node.c:518) xfs


To reproduce:

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        sudo bin/lkp install job.yaml           # job file is attached in this email
        bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
        sudo bin/lkp run generated-yaml-file

        # if come across any failure that blocks the test,
        # please remove ~/.lkp and /lkp dir to run from a clean state.



-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



View attachment "config-6.0.0-rc4-00001-g505313cbc048" of type "text/plain" (164774 bytes)

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

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

View attachment "job.yaml" of type "text/plain" (5664 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ