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-next>] [day] [month] [year] [list]
Date:   Wed, 20 Apr 2022 15:37:17 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Andrei Vagin <avagin@...il.com>
Cc:     Linus Torvalds <torvalds@...ux-foundation.org>,
        Dmitry Safonov <0x7f454c46@...il.com>,
        Alexander Viro <viro@...iv.linux.org.uk>,
        Andrew Morton <akpm@...ux-foundation.org>,
        LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org,
        lkp@...el.com
Subject: [fs/pipe]  5a519c8fe4: WARNING:at_mm/page_alloc.c:#__alloc_pages



Greeting,

FYI, we noticed the following commit (built with clang-15):

commit: 5a519c8fe4d620912385f94372fc8472fa98c662 ("fs/pipe: use kvcalloc to allocate a pipe_buffer array")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

in testcase: trinity
version: trinity-static-i386-x86_64-1c734c75-1_2020-01-06
with following parameters:

	runtime: 300s
	group: group-04

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):



If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang@...el.com>


[   32.170781][ T3729] WARNING: The mand mount option has been deprecated and
[   32.170781][ T3729]          and is ignored by this kernel. Remove the mand
[   32.170781][ T3729]          option from the mount to silence this warning.
[   32.170781][ T3729] =======================================================
[   32.763485][ T3736] _warn_unseeded_randomness: 547 callbacks suppressed
[ 32.763492][ T3736] random: get_random_u32 called from arch_pick_mmap_layout+0x4b/0x110 with crng_init=1 
[ 32.763503][ T3736] random: get_random_u32 called from randomize_stack_top+0x1a/0x40 with crng_init=1 
[ 32.763510][ T3736] random: get_random_u32 called from arch_align_stack+0x23/0x40 with crng_init=1 
[   33.428192][    C0] random: crng init done
[   33.428690][    C0] random: 33 get_random_xx warning(s) missed due to ratelimiting
[   35.180590][ T3728] raw_sendmsg: trinity-c4 forgot to set AF_INET. Fix it!
[  224.552132][ T3730] ------------[ cut here ]------------
[ 224.552771][ T3730] WARNING: CPU: 1 PID: 3730 at mm/page_alloc.c:5364 __alloc_pages (mm/page_alloc.c:5364) 
[  224.553628][ T3730] Modules linked in: crc32_pclmul evdev serio_raw
[  224.554257][ T3730] CPU: 1 PID: 3730 Comm: trinity-c6 Not tainted 5.17.0-00020-g5a519c8fe4d6 #1 b54824caf35f46f3e2520057d525606ee99ab517
[  224.555542][ T3730] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[ 224.558294][ T3730] EIP: __alloc_pages (mm/page_alloc.c:5364) 
[ 224.558801][ T3730] Code: 74 42 89 d9 89 fa ff 75 e4 56 e8 61 1f 00 00 83 c4 08 89 d8 83 c4 1c 5e 5f 5b 5d 31 c9 31 d2 c3 31 db f7 c6 00 20 00 00 75 e8 <0f> 0b eb e4 a9 00 00 08 00 75 2a a9 00 00 04 00 74 29 81 e6 7f ff
All code
========
   0:	74 42                	je     0x44
   2:	89 d9                	mov    %ebx,%ecx
   4:	89 fa                	mov    %edi,%edx
   6:	ff 75 e4             	pushq  -0x1c(%rbp)
   9:	56                   	push   %rsi
   a:	e8 61 1f 00 00       	callq  0x1f70
   f:	83 c4 08             	add    $0x8,%esp
  12:	89 d8                	mov    %ebx,%eax
  14:	83 c4 1c             	add    $0x1c,%esp
  17:	5e                   	pop    %rsi
  18:	5f                   	pop    %rdi
  19:	5b                   	pop    %rbx
  1a:	5d                   	pop    %rbp
  1b:	31 c9                	xor    %ecx,%ecx
  1d:	31 d2                	xor    %edx,%edx
  1f:	c3                   	retq   
  20:	31 db                	xor    %ebx,%ebx
  22:	f7 c6 00 20 00 00    	test   $0x2000,%esi
  28:	75 e8                	jne    0x12
  2a:*	0f 0b                	ud2    		<-- trapping instruction
  2c:	eb e4                	jmp    0x12
  2e:	a9 00 00 08 00       	test   $0x80000,%eax
  33:	75 2a                	jne    0x5f
  35:	a9 00 00 04 00       	test   $0x40000,%eax
  3a:	74 29                	je     0x65
  3c:	81                   	.byte 0x81
  3d:	e6 7f                	out    %al,$0x7f
  3f:	ff                   	.byte 0xff

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2    
   2:	eb e4                	jmp    0xffffffffffffffe8
   4:	a9 00 00 08 00       	test   $0x80000,%eax
   9:	75 2a                	jne    0x35
   b:	a9 00 00 04 00       	test   $0x40000,%eax
  10:	74 29                	je     0x3b
  12:	81                   	.byte 0x81
  13:	e6 7f                	out    %al,$0x7f
  15:	ff                   	.byte 0xff
[  224.560750][ T3730] EAX: 00040dc0 EBX: 00000000 ECX: 00000000 EDX: 0000000b
[  224.561496][ T3730] ESI: 00040dc0 EDI: 00000002 EBP: bb457dd4 ESP: bb457dac
[  224.562277][ T3730] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 EFLAGS: 00010246
[  224.564399][ T3730] CR0: 80050033 CR2: 0000000e CR3: 7ec7b000 CR4: 00040690
[  224.565092][ T3730] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[  224.565777][ T3730] DR6: fffe0ff0 DR7: 00000400
[  224.566305][ T3730] Call Trace:
[ 224.567299][ T3730] kmalloc_order (include/linux/gfp.h:572 include/linux/gfp.h:595 include/linux/gfp.h:609 mm/slab_common.c:944) 
[ 224.567707][ T3730] kmalloc_order_trace (mm/slab_common.c:960) 
[ 224.568173][ T3730] __kmalloc (include/linux/slab.h:510 mm/slub.c:4413) 
[ 224.568571][ T3730] iter_file_splice_write (include/linux/slab.h:? include/linux/slab.h:652 fs/splice.c:628) 
[ 224.569069][ T3730] ? lock_acquire (kernel/locking/lockdep.c:5639) 
[ 224.569563][ T3730] ? splice_from_pipe (fs/splice.c:620) 
[ 224.570060][ T3730] do_splice (fs/splice.c:767 fs/splice.c:1079) 
[ 224.570487][ T3730] ? rcu_read_lock_sched_held (kernel/rcu/update.c:125) 
[ 224.571073][ T3730] ? rcu_lock_acquire (include/linux/rcupdate.h:272) 
[ 224.572386][ T3730] __ia32_sys_splice (fs/splice.c:1144 fs/splice.c:1350 fs/splice.c:1332 fs/splice.c:1332) 
[ 224.572869][ T3730] ? syscall_enter_from_user_mode (arch/x86/include/asm/irqflags.h:45 arch/x86/include/asm/irqflags.h:80 kernel/entry/common.c:107) 
[ 224.573469][ T3730] do_int80_syscall_32 (arch/x86/entry/common.c:112 arch/x86/entry/common.c:132) 
[ 224.573933][ T3730] ? irqentry_exit (kernel/entry/common.c:441) 
[ 224.574406][ T3730] ? irqentry_exit_to_user_mode (kernel/entry/common.c:316) 
[ 224.575003][ T3730] ? irqentry_exit (kernel/entry/common.c:441) 
[ 224.575461][ T3730] ? sysvec_call_function_single (arch/x86/kernel/apic/apic.c:1097) 
[ 224.576048][ T3730] entry_INT80_32 (init_task.c:?) 
[  224.576536][ T3730] EIP: 0x80a3392
[ 224.576891][ T3730] Code: 89 c8 c3 90 8d 74 26 00 85 c0 c7 01 01 00 00 00 75 d8 a1 c8 a9 ac 08 eb d1 66 90 66 90 66 90 66 90 66 90 66 90 66 90 90 cd 80 <c3> 8d b6 00 00 00 00 8d bc 27 00 00 00 00 8b 10 a3 f0 a9 ac 08 85
All code
========
   0:	89 c8                	mov    %ecx,%eax
   2:	c3                   	retq   
   3:	90                   	nop
   4:	8d 74 26 00          	lea    0x0(%rsi,%riz,1),%esi
   8:	85 c0                	test   %eax,%eax
   a:	c7 01 01 00 00 00    	movl   $0x1,(%rcx)
  10:	75 d8                	jne    0xffffffffffffffea
  12:	a1 c8 a9 ac 08 eb d1 	movabs 0x9066d1eb08aca9c8,%eax
  19:	66 90 
  1b:	66 90                	xchg   %ax,%ax
  1d:	66 90                	xchg   %ax,%ax
  1f:	66 90                	xchg   %ax,%ax
  21:	66 90                	xchg   %ax,%ax
  23:	66 90                	xchg   %ax,%ax
  25:	66 90                	xchg   %ax,%ax
  27:	90                   	nop
  28:	cd 80                	int    $0x80
  2a:*	c3                   	retq   		<-- trapping instruction
  2b:	8d b6 00 00 00 00    	lea    0x0(%rsi),%esi
  31:	8d bc 27 00 00 00 00 	lea    0x0(%rdi,%riz,1),%edi
  38:	8b 10                	mov    (%rax),%edx
  3a:	a3                   	.byte 0xa3
  3b:	f0                   	lock
  3c:	a9                   	.byte 0xa9
  3d:	ac                   	lods   %ds:(%rsi),%al
  3e:	08                   	.byte 0x8
  3f:	85                   	.byte 0x85

Code starting with the faulting instruction
===========================================
   0:	c3                   	retq   
   1:	8d b6 00 00 00 00    	lea    0x0(%rsi),%esi
   7:	8d bc 27 00 00 00 00 	lea    0x0(%rdi,%riz,1),%edi
   e:	8b 10                	mov    (%rax),%edx
  10:	a3                   	.byte 0xa3
  11:	f0                   	lock
  12:	a9                   	.byte 0xa9
  13:	ac                   	lods   %ds:(%rsi),%al
  14:	08                   	.byte 0x8
  15:	85                   	.byte 0x85


To reproduce:

        # build kernel
	cd linux
	cp config-5.17.0-00020-g5a519c8fe4d6 .config
	make HOSTCC=clang-15 CC=clang-15 ARCH=i386 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=clang-15 CC=clang-15 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-5.17.0-00020-g5a519c8fe4d6" of type "text/plain" (134620 bytes)

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

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ