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: <202301101354.43acf3b4-oliver.sang@intel.com>
Date:   Tue, 10 Jan 2023 15:52:54 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Pali Rohár <pali@...nel.org>
CC:     <oe-lkp@...ts.linux.dev>, <lkp@...el.com>,
        <linux-fsdevel@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
        "OGAWA Hirofumi" <hirofumi@...l.parknet.co.jp>,
        Jan Kara <jack@...e.cz>,
        "Alexander Viro" <viro@...iv.linux.org.uk>
Subject: Re: [RFC PATCH 3/3] nls: Replace default nls table by correct
 iso8859-1 table


Greeting,

FYI, we noticed RIP:strcmp due to commit (built with gcc-11):

commit: 038a8f31f4e69820aa6fd24d8d2f111998939a32 ("[RFC PATCH 3/3] nls: Replace default nls table by correct iso8859-1 table")
url: https://github.com/intel-lab-lkp/linux/commits/Pali-Roh-r/nls-Simplify-ASCII-implementation/20221226-225114
base: https://git.kernel.org/cgit/linux/kernel/git/jack/linux-fs.git for_next
patch link: https://lore.kernel.org/all/20221226144301.16382-4-pali@kernel.org/
patch subject: [RFC PATCH 3/3] nls: Replace default nls table by correct iso8859-1 table

in testcase: xfstests
version: xfstests-x86_64-fb6575e-1_20230102
with following parameters:

	disk: 4HDD
	fs: ext4
	fs2: smbv2
	test: generic-group-03

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: 8 threads Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (Skylake) with 16G 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/oe-lkp/202301101354.43acf3b4-oliver.sang@intel.com


[   88.513573][  T280]
[ 88.531906][ T1438] calling init_dns_resolver+0x0/0x1000 [dns_resolver] @ 1438 
[   88.539223][ T1438] Key type dns_resolver registered
[ 88.544178][ T1438] initcall init_dns_resolver+0x0/0x1000 [dns_resolver] returned 0 after 4968 usecs 
[ 88.915310][ T1438] calling init_cifs+0x0/0x1000 [cifs] @ 1438 
[   88.922793][ T1438] general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI
[   88.933987][ T1438] KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
[   88.942226][ T1438] CPU: 5 PID: 1438 Comm: modprobe Tainted: G S                 6.1.0-11704-g038a8f31f4e6 #1
[   88.952115][ T1438] Hardware name: HP HP Z240 SFF Workstation/802E, BIOS N51 Ver. 01.63 10/05/2017
[ 88.961049][ T1438] RIP: 0010:strcmp (kbuild/src/consumer/lib/string.c:281) 
[ 88.965481][ T1438] Code: df 41 54 55 53 48 89 fb 48 83 ec 08 eb 08 40 84 ed 74 5d 4c 89 e6 48 89 df 48 83 c3 01 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 <42> 0f b6 04 28 38 d0 7f 04 84 c0 75 50 48 89 f0 48 89 f2 0f b6 6b
All code
========
   0:	df 41 54             	filds  0x54(%rcx)
   3:	55                   	push   %rbp
   4:	53                   	push   %rbx
   5:	48 89 fb             	mov    %rdi,%rbx
   8:	48 83 ec 08          	sub    $0x8,%rsp
   c:	eb 08                	jmp    0x16
   e:	40 84 ed             	test   %bpl,%bpl
  11:	74 5d                	je     0x70
  13:	4c 89 e6             	mov    %r12,%rsi
  16:	48 89 df             	mov    %rbx,%rdi
  19:	48 83 c3 01          	add    $0x1,%rbx
  1d:	48 89 f8             	mov    %rdi,%rax
  20:	48 89 fa             	mov    %rdi,%rdx
  23:	48 c1 e8 03          	shr    $0x3,%rax
  27:	83 e2 07             	and    $0x7,%edx
  2a:*	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax		<-- trapping instruction
  2f:	38 d0                	cmp    %dl,%al
  31:	7f 04                	jg     0x37
  33:	84 c0                	test   %al,%al
  35:	75 50                	jne    0x87
  37:	48 89 f0             	mov    %rsi,%rax
  3a:	48 89 f2             	mov    %rsi,%rdx
  3d:	0f                   	.byte 0xf
  3e:	b6 6b                	mov    $0x6b,%dh

Code starting with the faulting instruction
===========================================
   0:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax
   5:	38 d0                	cmp    %dl,%al
   7:	7f 04                	jg     0xd
   9:	84 c0                	test   %al,%al
   b:	75 50                	jne    0x5d
   d:	48 89 f0             	mov    %rsi,%rax
  10:	48 89 f2             	mov    %rsi,%rdx
  13:	0f                   	.byte 0xf
  14:	b6 6b                	mov    $0x6b,%dh
[   88.984879][ T1438] RSP: 0018:ffffc90001217a88 EFLAGS: 00010246
[   88.990781][ T1438] RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff83589fe5
[   88.998591][ T1438] RDX: 0000000000000000 RSI: ffffffffa2121c00 RDI: 0000000000000000
[   89.006401][ T1438] RBP: ffffffffa2121c00 R08: 0000000000000001 R09: ffffc90001217a63
[   89.014209][ T1438] R10: fffff52000242f4c R11: 0000000000000001 R12: ffffffff861052e0
[   89.022016][ T1438] R13: dffffc0000000000 R14: 0000000000000026 R15: ffffffffa221efc0
[   89.029829][ T1438] FS:  00007f01fb961540(0000) GS:ffff888366a80000(0000) knlGS:0000000000000000
[   89.038582][ T1438] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   89.045004][ T1438] CR2: 000056437197c1a8 CR3: 000000013de10001 CR4: 00000000003706e0
[   89.052812][ T1438] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   89.060623][ T1438] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   89.068430][ T1438] Call Trace:
[   89.071572][ T1438]  <TASK>
[ 89.074365][ T1438] find_nls (kbuild/src/consumer/fs/nls/nls_base.c:280) 
[ 89.078284][ T1438] load_nls (kbuild/src/consumer/fs/nls/nls_base.c:293) 
[ 89.082114][ T1438] dfs_cache_init (kbuild/src/consumer/fs/cifs/dfs_cache.c:416) cifs
[ 89.087241][ T1438] init_cifs (kbuild/src/consumer/fs/cifs/./trace.h:70 (discriminator 6)) cifs


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://github.com/intel/lkp-tests



View attachment "config-6.1.0-11704-g038a8f31f4e6" of type "text/plain" (171966 bytes)

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

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

View attachment "xfstests" of type "text/plain" (168815 bytes)

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ