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]
Message-ID: <202309050916.58201dc6-oliver.sang@intel.com>
Date:   Tue, 5 Sep 2023 10:18:21 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Ajay Kaher <akaher@...are.com>
CC:     <oe-lkp@...ts.linux.dev>, <lkp@...el.com>,
        <linux-kernel@...r.kernel.org>,
        Steven Rostedt <rostedt@...dmis.org>,
        Ching-lin Yu <chinglinyu@...gle.com>,
        <linux-trace-kernel@...r.kernel.org>, <oliver.sang@...el.com>
Subject: [linus:master] [eventfs]  ba37ff75e0:
 WARNING:at_mm/slab.h:#cache_from_obj



Hello,

kernel test robot noticed "WARNING:at_mm/slab.h:#cache_from_obj" on:

commit: ba37ff75e04be7df5fa19dcd86f81c984294a37b ("eventfs: Implement tracefs_inode_cache")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

[test failed on linux-next/master a47fc304d2b678db1a5d760a7d644dac9b067752]

in testcase: boot

compiler: gcc-11
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

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



If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <oliver.sang@...el.com>
| Closes: https://lore.kernel.org/oe-lkp/202309050916.58201dc6-oliver.sang@intel.com


[   45.215521][    C1] ------------[ cut here ]------------
[   45.216692][    C1] cache_from_obj: Wrong slab cache. tracefs_inode_cache but object is from inode_cache
[ 45.218391][ C1] WARNING: CPU: 1 PID: 21 at mm/slab.h:661 cache_from_obj (mm/slab.h:661 (discriminator 1)) 
[   45.219836][    C1] Modules linked in:
[   45.220610][    C1] CPU: 1 PID: 21 Comm: ksoftirqd/1 Not tainted 6.5.0-rc4-00007-gba37ff75e04b #1
[   45.220941][    T1] DLM installed
[   45.221672][    C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 45.224683][ C1] RIP: 0010:cache_from_obj (mm/slab.h:661 (discriminator 1)) 
[   45.225440][    T1] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 45.225468][ C1] Code: 8d 72 ff 83 e2 01 48 0f 45 c6 eb b5 4d 8b 45 58 48 8b 51 58 48 c7 c6 f0 b1 56 87 48 c7 c7 40 88 be 88 4c 89 c1 e8 8c 82 80 ff <0f> 0b 4c 89 e6 4c 89 ef e8 0f c4 ff ff 4c 89 e8 41 5c 41 5d 5d c3
All code
========
   0:	8d 72 ff             	lea    -0x1(%rdx),%esi
   3:	83 e2 01             	and    $0x1,%edx
   6:	48 0f 45 c6          	cmovne %rsi,%rax
   a:	eb b5                	jmp    0xffffffffffffffc1
   c:	4d 8b 45 58          	mov    0x58(%r13),%r8
  10:	48 8b 51 58          	mov    0x58(%rcx),%rdx
  14:	48 c7 c6 f0 b1 56 87 	mov    $0xffffffff8756b1f0,%rsi
  1b:	48 c7 c7 40 88 be 88 	mov    $0xffffffff88be8840,%rdi
  22:	4c 89 c1             	mov    %r8,%rcx
  25:	e8 8c 82 80 ff       	call   0xffffffffff8082b6
  2a:*	0f 0b                	ud2		<-- trapping instruction
  2c:	4c 89 e6             	mov    %r12,%rsi
  2f:	4c 89 ef             	mov    %r13,%rdi
  32:	e8 0f c4 ff ff       	call   0xffffffffffffc446
  37:	4c 89 e8             	mov    %r13,%rax
  3a:	41 5c                	pop    %r12
  3c:	41 5d                	pop    %r13
  3e:	5d                   	pop    %rbp
  3f:	c3                   	ret

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2
   2:	4c 89 e6             	mov    %r12,%rsi
   5:	4c 89 ef             	mov    %r13,%rdi
   8:	e8 0f c4 ff ff       	call   0xffffffffffffc41c
   d:	4c 89 e8             	mov    %r13,%rax
  10:	41 5c                	pop    %r12
  12:	41 5d                	pop    %r13
  14:	5d                   	pop    %rbp
  15:	c3                   	ret
[   45.230147][    C1] RSP: 0000:ffffc9000016fc20 EFLAGS: 00010286
[   45.231208][    C1] RAX: dffffc0000000000 RBX: ffff8881286e3150 RCX: 0000000000000100
[   45.232570][    C1] RDX: ffff8881003c9a00 RSI: ffffffff8126acd8 RDI: 0000000000000003
[   45.234058][    C1] RBP: ffffc9000016fc30 R08: 0000000000000000 R09: 0000000000000000
[   45.235160][    T1] utf8_selftest: All 154 tests passed
[   45.235410][    C1] R10: 0000000000000001 R11: 0000000000000001 R12: ffff8881286e3150
[   45.237775][    T1] ksmbd: The ksmbd server is experimental
[   45.238094][    C1] R13: ffff8881000de640 R14: ffffc9000016fd50 R15: 0000000000000001
[   45.238861][    T1] ntfs: driver 2.1.32 [Flags: R/O DEBUG].
[   45.239349][    T1] efs: 1.0a - http://aeschi.ch.eu.org/efs/
[   45.239964][    C1] FS:  0000000000000000(0000) GS:ffff8883ae700000(0000) knlGS:0000000000000000
[   45.240951][    T1] qnx6: QNX6 filesystem 1.0.0 registered.
[   45.241460][    C1] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   45.243778][    T1] JFS: nTxBlock = 8192, nTxLock = 65536
[   45.244480][    C1] CR2: 0000000000000000 CR3: 00000000090fa000 CR4: 00000000000406e0
[   45.249527][    C1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   45.251125][    C1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   45.252621][    C1] Call Trace:
[   45.253384][    C1]  <TASK>
[ 45.254011][ C1] ? show_regs (arch/x86/kernel/dumpstack.c:479) 
[ 45.254861][ C1] ? __warn (kernel/panic.c:673) 
[ 45.255707][ C1] ? write_comp_data (kernel/kcov.c:236) 
[ 45.256710][ C1] ? cache_from_obj (mm/slab.h:661 (discriminator 1)) 
[ 45.257982][ C1] ? report_bug (include/linux/context_tracking.h:153 lib/bug.c:220) 
[ 45.258865][ C1] ? handle_bug (arch/x86/kernel/traps.c:324) 
[ 45.259756][ C1] ? exc_invalid_op (arch/x86/kernel/traps.c:345 (discriminator 1)) 
[ 45.260670][ C1] ? asm_exc_invalid_op (arch/x86/include/asm/idtentry.h:568) 
[ 45.262016][ C1] ? __warn_printk (kernel/panic.c:712) 
[ 45.262982][ C1] ? cache_from_obj (mm/slab.h:661 (discriminator 1)) 
[ 45.263914][ C1] kmem_cache_free (mm/slub.c:3820) 
[   45.264756][    T1] NILFS version 2 loaded
[ 45.264827][ C1] ? inode_free_by_rcu (security/security.c:1495) 
[   45.265394][    T1] befs: version: 0.9.3
[ 45.266034][ C1] ? kmem_cache_free (mm/slub.c:3801 mm/slub.c:3823) 
[   45.267414][    T1] ocfs2: Registered cluster interface o2cb
[ 45.267526][ C1] tracefs_free_inode (fs/tracefs/inode.c:49) 
[   45.268980][    T1] ocfs2: Registered cluster interface user
[ 45.269267][ C1] ? tracefs_show_options (fs/tracefs/inode.c:47) 
[ 45.269316][ C1] i_callback (fs/inode.c:252) 
[ 45.269347][ C1] rcu_do_batch (include/linux/rcupdate.h:308 kernel/rcu/tree.c:2137) 
[ 45.269394][ C1] ? cond_synchronize_rcu_expedited_full (kernel/rcu/tree.c:2066) 
[ 45.269473][ C1] ? rcu_report_qs_rdp (kernel/rcu/tree.c:2008) 
[ 45.269509][ C1] rcu_core (kernel/rcu/tree.c:2401) 
[ 45.269543][ C1] rcu_core_si (kernel/rcu/tree.c:2417) 
[ 45.269567][ C1] __do_softirq (arch/x86/include/asm/jump_label.h:27 include/linux/jump_label.h:207 include/trace/events/irq.h:142 kernel/softirq.c:554) 
[ 45.269597][ C1] ? __probestub_softirq_exit (kernel/softirq.c:914) 
[ 45.269627][ C1] run_ksoftirqd (kernel/softirq.c:410 kernel/softirq.c:922 kernel/softirq.c:913) 
[ 45.269650][ C1] smpboot_thread_fn (kernel/smpboot.c:164 (discriminator 3)) 
[ 45.269691][ C1] kthread (kernel/kthread.c:389) 
[ 45.269716][ C1] ? sort_range (kernel/smpboot.c:107) 
[ 45.269742][ C1] ? kthread_complete_and_exit (kernel/kthread.c:342) 
[ 45.269774][ C1] ret_from_fork (arch/x86/kernel/process.c:151) 
[ 45.269805][ C1] ? kthread_complete_and_exit (kernel/kthread.c:342) 
[ 45.269833][ C1] ret_from_fork_asm (arch/x86/entry/entry_64.S:312) 
[   45.269885][    C1]  </TASK>
[   45.269894][    C1] irq event stamp: 318254
[ 45.269903][ C1] hardirqs last enabled at (318260): console_trylock_spinning (arch/x86/include/asm/irqflags.h:42 (discriminator 1) arch/x86/include/asm/irqflags.h:77 (discriminator 1) arch/x86/include/asm/irqflags.h:135 (discriminator 1) kernel/printk/printk.c:1961 (discriminator 1)) 
[ 45.270030][ C1] hardirqs last disabled at (318265): console_trylock_spinning (kernel/printk/printk.c:1940 (discriminator 1)) 
[ 45.270071][ C1] softirqs last enabled at (317598): __do_softirq (arch/x86/include/asm/preempt.h:27 kernel/softirq.c:400 kernel/softirq.c:582) 
[ 45.270100][ C1] softirqs last disabled at (317603): run_ksoftirqd (kernel/softirq.c:410 kernel/softirq.c:922 kernel/softirq.c:913) 
[   45.270132][    C1] ---[ end trace 0000000000000000 ]---
[   45.271786][    T1] OCFS2 User DLM kernel interface loaded
[   45.271905][    C1] ==================================================================
[   45.277835][    T1] gfs2: GFS2 installed


The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20230905/202309050916.58201dc6-oliver.sang@intel.com



-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ