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]
Date:   Fri, 5 May 2023 17:37:22 +0800
From:   kernel test robot <yujie.liu@...el.com>
To:     Ajay Kaher <akaher@...are.com>
CC:     <oe-lkp@...ts.linux.dev>, <lkp@...el.com>,
        Steven Rostedt <rostedt@...dmis.org>,
        Ching-lin Yu <chinglinyu@...gle.com>,
        <linux-kernel@...r.kernel.org>,
        <linux-trace-kernel@...r.kernel.org>, <mhiramat@...nel.org>,
        <shuah@...nel.org>, <linux-kselftest@...r.kernel.org>,
        <namit@...are.com>, <srivatsab@...are.com>,
        <srivatsa@...il.mit.edu>, <amakhalov@...are.com>,
        <vsirnapalli@...are.com>, <tkundu@...are.com>,
        <er.ajay.kaher@...il.com>, Ajay Kaher <akaher@...are.com>
Subject: Re: [PATCH v2 8/9] eventfs: moving tracing/events to eventfs

Hello,

kernel test robot noticed "WARNING:at_fs/namei.c:#lookup_one_len" on:

commit: 2fe2002efb23a715f5eb7a58891ff85f4e37b084 ("[PATCH v2 8/9] eventfs: moving tracing/events to eventfs")
url: https://github.com/intel-lab-lkp/linux/commits/Ajay-Kaher/eventfs-introducing-struct-tracefs_inode/20230502-192949
base: https://git.kernel.org/cgit/linux/kernel/git/shuah/linux-kselftest.git next
patch link: https://lore.kernel.org/all/1683026600-13485-9-git-send-email-akaher@vmware.com/
patch subject: [PATCH v2 8/9] eventfs: moving tracing/events to eventfs

in testcase: stress-ng
version: stress-ng-x86_64-0.15.04-1_20230503
with following parameters:

	nr_threads: 100%
	testtime: 60s
	class: cpu
	test: uprobe
	cpufreq_governor: performance

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

(please refer to attached dmesg/kmsg for entire log/backtrace)


If you fix the issue, kindly add following tag
| Reported-by: kernel test robot <yujie.liu@...el.com>
| Link: https://lore.kernel.org/oe-lkp/202305051619.9a469a9a-yujie.liu@intel.com


[   49.551466][ T5878] ------------[ cut here ]------------
[ 49.557236][ T5878] WARNING: CPU: 68 PID: 5878 at fs/namei.c:2705 lookup_one_len (fs/namei.c:2705 (discriminator 1)) 
[   49.565959][ T5878] Modules linked in: intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp coretemp btrfs blake2b_generic xor raid6_pq libcrc32c sd_mod t10_pi kvm_intel crc64_rocksoft_generic crc64_rocksoft kvm crc64 irqbypass sg crct10dif_pclmul crc32_pclmul crc32c_intel ipmi_ssif ghash_clmulni_intel sha512_ssse3 rapl ahci acpi_ipmi intel_cstate libahci ast mei_me drm_shmem_helper ipmi_si drm_kms_helper ipmi_devintf ioatdma syscopyarea sysfillrect intel_uncore libata sysimgblt mei joydev dca wmi ipmi_msghandler acpi_pad acpi_power_meter drm fuse ip_tables
[   49.618899][ T5878] CPU: 68 PID: 5878 Comm: stress-ng-uprob Not tainted 6.3.0-rc1-00033-g2fe2002efb23 #1
[ 49.628810][ T5878] RIP: 0010:lookup_one_len (fs/namei.c:2705 (discriminator 1)) 
[ 49.634395][ T5878] Code: 83 c4 18 5d c3 cc cc cc cc 31 d2 48 89 ee 48 89 e7 e8 8a da ff ff 48 85 c0 75 d4 31 d2 48 89 ee 48 89 e7 e8 b8 db ff ff eb c5 <0f> 0b eb a6 e8 ad 85 ac 00 66 66 2e 0f 1f 84 00 00 00 00 00 66 66
All code
========
   0:	83 c4 18             	add    $0x18,%esp
   3:	5d                   	pop    %rbp
   4:	c3                   	ret
   5:	cc                   	int3
   6:	cc                   	int3
   7:	cc                   	int3
   8:	cc                   	int3
   9:	31 d2                	xor    %edx,%edx
   b:	48 89 ee             	mov    %rbp,%rsi
   e:	48 89 e7             	mov    %rsp,%rdi
  11:	e8 8a da ff ff       	call   0xffffffffffffdaa0
  16:	48 85 c0             	test   %rax,%rax
  19:	75 d4                	jne    0xffffffffffffffef
  1b:	31 d2                	xor    %edx,%edx
  1d:	48 89 ee             	mov    %rbp,%rsi
  20:	48 89 e7             	mov    %rsp,%rdi
  23:	e8 b8 db ff ff       	call   0xffffffffffffdbe0
  28:	eb c5                	jmp    0xffffffffffffffef
  2a:*	0f 0b                	ud2		<-- trapping instruction
  2c:	eb a6                	jmp    0xffffffffffffffd4
  2e:	e8 ad 85 ac 00       	call   0xac85e0
  33:	66 66 2e 0f 1f 84 00 	data16 cs nopw 0x0(%rax,%rax,1)
  3a:	00 00 00 00 
  3e:	66                   	data16
  3f:	66                   	data16

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2
   2:	eb a6                	jmp    0xffffffffffffffaa
   4:	e8 ad 85 ac 00       	call   0xac85b6
   9:	66 66 2e 0f 1f 84 00 	data16 cs nopw 0x0(%rax,%rax,1)
  10:	00 00 00 00 
  14:	66                   	data16
  15:	66                   	data16
[   49.654574][ T5878] RSP: 0018:ffa000002b207bb0 EFLAGS: 00010246
[   49.660865][ T5878] RAX: 0000000000000000 RBX: 00000000000041ed RCX: 0000000000000012
[   49.669066][ T5878] RDX: 0000000000000012 RSI: ff110010866cfec0 RDI: ff11000104c631c0
[   49.677271][ T5878] RBP: ff110010866cfec0 R08: ffffffff82268900 R09: ff11000104c631c0
[   49.685392][ T5878] R10: ff110020610bfc80 R11: 00000012d7445f9b R12: ff11000104c631c0
[   49.693516][ T5878] R13: ffffffff82268900 R14: ffffffff82268840 R15: 0000000000000000
[   49.701640][ T5878] FS:  00007fcddb229740(0000) GS:ff1100103fb00000(0000) knlGS:0000000000000000
[   49.710712][ T5878] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   49.717444][ T5878] CR2: 00007fcddb3704e0 CR3: 00000020628e0001 CR4: 0000000000771ee0
[   49.725566][ T5878] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   49.733686][ T5878] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   49.741807][ T5878] PKRU: 55555554
[   49.745507][ T5878] Call Trace:
[   49.748961][ T5878]  <TASK>
[ 49.752082][ T5878] eventfs_start_creating (fs/tracefs/inode.c:519) 
[ 49.757416][ T5878] eventfs_create_dir (fs/tracefs/event_inode.c:187 (discriminator 3)) 
[ 49.762488][ T5878] eventfs_root_lookup (fs/tracefs/event_inode.c:291) 
[ 49.767637][ T5878] __lookup_slow (fs/namei.c:1686) 
[ 49.772268][ T5878] walk_component (include/linux/fs.h:773 fs/namei.c:1704 fs/namei.c:1994) 
[ 49.777016][ T5878] link_path_walk+0x24e/0x3b0 
[ 49.783462][ T5878] ? path_init (fs/namei.c:2387) 
[ 49.788021][ T5878] path_openat (fs/namei.c:3711) 
[ 49.792463][ T5878] do_filp_open (fs/namei.c:3742) 
[ 49.797021][ T5878] ? __check_object_size (mm/memremap.c:107 mm/memremap.c:144) 
[ 49.803055][ T5878] do_sys_openat2 (fs/open.c:1348) 
[ 49.807740][ T5878] __x64_sys_openat (fs/open.c:1375) 
[ 49.812512][ T5878] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) 
[ 49.817068][ T5878] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) 
[   49.823092][ T5878] RIP: 0033:0x7fcddb3b84e7
[ 49.827584][ T5878] Code: 25 00 00 41 00 3d 00 00 41 00 74 47 64 8b 04 25 18 00 00 00 85 c0 75 6b 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 95 00 00 00 48 8b 4c 24 28 64 48 2b 0c 25
All code
========
   0:	25 00 00 41 00       	and    $0x410000,%eax
   5:	3d 00 00 41 00       	cmp    $0x410000,%eax
   a:	74 47                	je     0x53
   c:	64 8b 04 25 18 00 00 	mov    %fs:0x18,%eax
  13:	00 
  14:	85 c0                	test   %eax,%eax
  16:	75 6b                	jne    0x83
  18:	44 89 e2             	mov    %r12d,%edx
  1b:	48 89 ee             	mov    %rbp,%rsi
  1e:	bf 9c ff ff ff       	mov    $0xffffff9c,%edi
  23:	b8 01 01 00 00       	mov    $0x101,%eax
  28:	0f 05                	syscall
  2a:*	48 3d 00 f0 ff ff    	cmp    $0xfffffffffffff000,%rax		<-- trapping instruction
  30:	0f 87 95 00 00 00    	ja     0xcb
  36:	48 8b 4c 24 28       	mov    0x28(%rsp),%rcx
  3b:	64                   	fs
  3c:	48                   	rex.W
  3d:	2b                   	.byte 0x2b
  3e:	0c 25                	or     $0x25,%al

Code starting with the faulting instruction
===========================================
   0:	48 3d 00 f0 ff ff    	cmp    $0xfffffffffffff000,%rax
   6:	0f 87 95 00 00 00    	ja     0xa1
   c:	48 8b 4c 24 28       	mov    0x28(%rsp),%rcx
  11:	64                   	fs
  12:	48                   	rex.W
  13:	2b                   	.byte 0x2b
  14:	0c 25                	or     $0x25,%al
[   49.847467][ T5878] RSP: 002b:00007ffd43974260 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
[   49.855986][ T5878] RAX: ffffffffffffffda RBX: 00007ffd439743f0 RCX: 00007fcddb3b84e7
[   49.864089][ T5878] RDX: 0000000000000241 RSI: 00007ffd43976470 RDI: 00000000ffffff9c
[   49.872145][ T5878] RBP: 00007ffd43976470 R08: 00000000ffffffff R09: 00007ffd43974190
[   49.880191][ T5878] R10: 00000000000001b6 R11: 0000000000000246 R12: 0000000000000241
[   49.888227][ T5878] R13: 00007ffd43974360 R14: 00007ffd43977630 R15: 00007ffd43976470
[   49.896273][ T5878]  </TASK>
[   49.899371][ T5878] ---[ end trace 0000000000000000 ]---


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.3.0-rc1-00033-g2fe2002efb23" of type "text/plain" (157043 bytes)

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

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

View attachment "stress-ng" of type "text/plain" (27010 bytes)

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

View attachment "reproduce" of type "text/plain" (340 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ