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:   Tue, 13 Sep 2022 11:46:41 +0800
From:   kernel test robot <yujie.liu@...el.com>
To:     Waiman Long <longman@...hat.com>
CC:     <lkp@...ts.01.org>, <lkp@...el.com>,
        <linux-kernel@...r.kernel.org>, "Ingo Molnar" <mingo@...hat.com>,
        Peter Zijlstra <peterz@...radead.org>,
        Juri Lelli <juri.lelli@...hat.com>,
        Vincent Guittot <vincent.guittot@...aro.org>,
        Dietmar Eggemann <dietmar.eggemann@....com>,
        Steven Rostedt <rostedt@...dmis.org>,
        Ben Segall <bsegall@...gle.com>, Mel Gorman <mgorman@...e.de>,
        Daniel Bristot de Oliveira <bristot@...hat.com>,
        "Valentin Schneider" <vschneid@...hat.com>,
        Tejun Heo <tj@...nel.org>, Zefan Li <lizefan.x@...edance.com>,
        Johannes Weiner <hannes@...xchg.org>,
        Will Deacon <will@...nel.org>,
        Linus Torvalds <torvalds@...ux-foundation.org>,
        "Lai Jiangshan" <jiangshanlai@...il.com>,
        Waiman Long <longman@...hat.com>
Subject: [sched] 780cf3491a: WARNING:at_kernel/sched/core.c:#affine_move_task

Greeting,

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

commit: 780cf3491aa2d469051f5866edc05e860a6a1471 ("[PATCH v8 3/7] sched: Enforce user requested affinity")
url: https://github.com/intel-lab-lkp/linux/commits/Waiman-Long/sched-Persistent-user-requested-affinity/20220909-034411
base: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git 506357871c18e06565840d71c2ef9f818e19f460
patch link: https://lore.kernel.org/lkml/20220908194121.858462-4-longman@redhat.com

in testcase: trinity
version: trinity-i386-4d2343bd-1_20200320
with following parameters:

	runtime: 300s
	group: group-01

test-description: Trinity is a linux system call fuzz tester.
test-url: http://codemonkey.org.uk/projects/trinity/


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

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


[   43.950395][ T3659] ------------[ cut here ]------------
[   43.950868][ T3659] WARNING: CPU: 1 PID: 3659 at kernel/sched/core.c:2778 affine_move_task+0x2c0/0x4c0
[   43.951597][ T3659] Modules linked in: af_alg(E) fcrypt(E) pcbc(E) rxrpc(E) crypto_user(E) scsi_transport_iscsi(E) x\
frm_user(E) xfrm_algo(E) llc2(E) llc(E) dccp_ipv6(E) sctp(E) ip6_udp_tunnel(E) udp_tunnel(E) libcrc32c(E) crc32c_generi\
c(E) dccp_ipv4(E) dccp(E) intel_rapl_msr(E) intel_rapl_common(E) crc32_pclmul(E) crc32c_intel(E) bochs(E) drm_vram_help\
er(E) drm_ttm_helper(E) ttm(E) aesni_intel(E) crypto_simd(E) drm_kms_helper(E) syscopyarea(E) sysfillrect(E) sysimgblt(\
E) fb_sys_fops(E) ata_generic(E) cryptd(E) ppdev(E) rapl(E) ata_piix(E) evdev(E) psmouse(E) serio_raw(E) drm(E) i2c_pii\
x4(E) libata(E) floppy(E) parport_pc(E) parport(E) qemu_fw_cfg(E) button(E) autofs4(E)
[   43.955974][ T3659] CPU: 1 PID: 3659 Comm: trinity-c0 Tainted: G            E      6.0.0-rc4-00140-g780cf3491aa2 #1
[   43.956777][ T3659] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.0-debian-1.16.0-4 04/01/2014
[   43.957547][ T3659] EIP: affine_move_task+0x2c0/0x4c0
[   43.957960][ T3659] Code: 76 00 8b 45 88 c7 40 04 04 00 00 00 e9 23 fe ff ff 8d b4 26 00 00 00 00 66 90 c7 83 58 03 \
00 00 00 00 00 00 e9 60 ff ff ff 90 <0f> 0b 8b 45 90 83 b8 e0 05 00 00 02 76 0a 8b 45 88 c7 40 04 04 00
[   43.959422][ T3659] EAX: 00000004 EBX: ee3ad200 ECX: 00000000 EDX: ee3ad200
[   43.959902][ T3659] ESI: 00000000 EDI: 00000000 EBP: ee117c20 ESP: ee117ba8
[   43.960412][ T3659] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 EFLAGS: 00010046
[   43.960994][ T3659] CR0: 80050033 CR2: 00000004 CR3: 2e03c000 CR4: 000406f0
[   43.961541][ T3659] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[   43.962053][ T3659] DR6: fffe0ff0 DR7: 00000400
[   43.962358][ T3659] Call Trace:
[   43.962603][ T3659]  __set_cpus_allowed_ptr_locked+0x11b/0x180
[   43.963014][ T3659]  __set_cpus_allowed_ptr+0x50/0xc0
[   43.963408][ T3659]  migrate_enable+0x40/0xc0
[   43.963733][ T3659]  kunmap_local_indexed+0xd0/0x140
[   43.964102][ T3659]  follow_page_pte+0x3ba/0x540
[   43.964536][ T3659]  ? merge_sched_in+0x1f1/0x440
[   43.964931][ T3659]  follow_pmd_mask+0x116/0x400
[   43.965250][ T3659]  follow_page_mask+0xcf/0x100
[   43.965608][ T3659]  __get_user_pages+0x1a6/0x400
[   43.965978][ T3659]  __get_user_pages_remote+0xc0/0x380
[   43.966387][ T3659]  pin_user_pages_remote+0x2e/0x80
[   43.966749][ T3659]  process_vm_rw_single_vec+0xba/0x240
[   43.967235][ T3659]  process_vm_rw_core+0x115/0x240
[   43.967707][ T3659]  ? _copy_from_user+0x69/0xc0
[   43.968103][ T3659]  ? iovec_from_user+0x48/0x1c0
[   43.968519][ T3659]  ? iovec_from_user+0x27/0x80
[   43.968885][ T3659]  process_vm_rw+0xc7/0x100
[   43.969247][ T3659]  ? proc_sys_write+0x40/0x40
[   43.969602][ T3659]  ? kvm_clock_get_cycles+0x15/0x40
[   43.970011][ T3659]  ? ktime_get_ts64+0x5d/0x1c0
[   43.970357][ T3659]  ? __might_sleep+0x33/0x80
[   43.970715][ T3659]  ? syscall_trace_enter+0x1a0/0x1c0
[   43.971197][ T3659]  ? put_old_timespec32+0x32/0x80
[   43.971618][ T3659]  __ia32_sys_process_vm_readv+0x20/0x40
[   43.972060][ T3659]  __do_fast_syscall_32+0x5b/0x100
[   43.972459][ T3659]  do_fast_syscall_32+0x29/0x80
[   43.972830][ T3659]  do_SYSENTER_32+0x15/0x40
[   43.973180][ T3659]  entry_SYSENTER_32+0x98/0xf1
[   43.973524][ T3659] EIP: 0xb7eec589
[   43.973802][ T3659] Code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 \
00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d 76 00 58 b8 77 00 00 00 cd 80 90 8d 76
[   43.975153][ T3659] EAX: ffffffda EBX: 00000e4b ECX: 01ad7150 EDX: 00000077
[   43.975677][ T3659] ESI: 01ad7510 EDI: 000000ef EBP: 00000000 ESP: bfb8151c
[   43.976188][ T3659] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b EFLAGS: 00000296
[   43.976697][ T3659] ---[ end trace 0000000000000000 ]---


If you fix the issue, kindly add following tag
Reported-by: kernel test robot <yujie.liu@...el.com>
Link: https://lore.kernel.org/r/202209131154.ecde234b-yujie.liu@intel.com


To reproduce:

        # build kernel
	cd linux
	cp config-6.0.0-rc4-00140-g780cf3491aa2 .config
	make HOSTCC=gcc-11 CC=gcc-11 ARCH=i386 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=gcc-11 CC=gcc-11 ARCH=i386 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

        # 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-00140-g780cf3491aa2" of type "text/plain" (145655 bytes)

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

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

View attachment "trinity" of type "text/plain" (7041 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ