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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Wed, 30 Jul 2014 12:01:44 +0800
From:	Fengguang Wu <fengguang.wu@...el.com>
To:	Herbert Xu <herbert@...dor.apana.org.au>
Cc:	Jet Chen <jet.chen@...el.com>, Su Tao <tao.su@...el.com>,
	Yuanhan Liu <yuanhan.liu@...el.com>, LKP <lkp@...org>,
	linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [cryptd] BUG: Bad page state in process cryptomgr_test  pfn:0e0d0

Greetings,

0day kernel testing robot got the below dmesg and the first bad commit is

git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
commit b2bac6acf86d05d8af0499f37d91ecac15722803
Author:     Herbert Xu <herbert@...dor.apana.org.au>
AuthorDate: Fri Aug 19 16:11:23 2011 +0800
Commit:     Herbert Xu <herbert@...dor.apana.org.au>
CommitDate: Sat Aug 20 16:08:03 2011 +0800

    crypto: cryptd - Use subsys_initcall to prevent races with aesni
    
    As cryptd is depeneded on by other algorithms such as aesni-intel,
    it needs to be registered before them.  When everything is built
    as modules, this occurs naturally.  However, for this to work when
    they are built-in, we need to use subsys_initcall in cryptd.
    
    Tested-by: Josh Boyer <jwboyer@...hat.com>
    Signed-off-by: Herbert Xu <herbert@...dor.apana.org.au>

+----------------------------------------------------------------------------+------------+------------+
|                                                                            | 4619b6bdb7 | b2bac6acf8 |
+----------------------------------------------------------------------------+------------+------------+
| boot_successes                                                             | 1000       | 863        |
| boot_failures                                                              | 0          | 37         |
| BUG:Bad_page_state_in_process                                              | 0          | 15         |
| general_protection_fault                                                   | 0          | 11         |
| RIP:slob_alloc                                                             | 0          | 6          |
| Kernel_panic-not_syncing:Attempted_to_kill_init                            | 0          | 10         |
| backtrace:cryptomgr_test                                                   | 0          | 8          |
| backtrace:i2c_register_driver                                              | 0          | 1          |
| backtrace:adp8870_init                                                     | 0          | 1          |
| BUG:kernel_boot_hang                                                       | 0          | 4          |
| kernel_BUG_at_include/linux/mm.h                                           | 0          | 5          |
| invalid_opcode                                                             | 0          | 7          |
| RIP:put_page                                                               | 0          | 5          |
| backtrace:pcie_port_bus_register                                           | 0          | 1          |
| backtrace:pcie_portdrv_init                                                | 0          | 2          |
| RIP:set_slob                                                               | 0          | 1          |
| BUG:sleeping_function_called_from_invalid_context_at_mm/memory.c           | 0          | 4          |
| INFO:lockdep_is_turned_off                                                 | 0          | 12         |
| BUG:unable_to_handle_kernel_NULL_pointer_dereference                       | 0          | 6          |
| Oops                                                                       | 0          | 8          |
| RIP:__lock_acquire                                                         | 0          | 3          |
| BUG:scheduling_while_atomic                                                | 0          | 9          |
| INFO:trying_to_register_non-static_key                                     | 0          | 4          |
| BUG:unable_to_handle_kernel_paging_request                                 | 0          | 2          |
| RIP:__fsnotify_update_child_dentry_flags                                   | 0          | 1          |
| RIP:slob_page_alloc                                                        | 0          | 1          |
| backtrace:platform_driver_register                                         | 0          | 1          |
| backtrace:max8925_backlight_init                                           | 0          | 1          |
| backtrace:acpi_walk_namespace                                              | 0          | 1          |
| backtrace:acpi_memory_device_init                                          | 0          | 1          |
| backtrace:list_sort_test                                                   | 0          | 5          |
| RIP:__d_lookup                                                             | 0          | 2          |
| BUG:sleeping_function_called_from_invalid_context_at_kernel/rwsem.c        | 0          | 9          |
| backtrace:__pci_register_driver                                            | 0          | 1          |
| BUG:spinlock_lockup_on_CPU                                                 | 0          | 1          |
| backtrace:spi_register_driver                                              | 0          | 1          |
| backtrace:tdo24m_init                                                      | 0          | 1          |
| RIP:__d_lookup_rcu                                                         | 0          | 2          |
| WARNING:at_kernel/lockdep.c:__bfs()                                        | 0          | 1          |
| RIP:__bfs                                                                  | 0          | 1          |
| kernel_BUG_at_kernel/cred.c                                                | 0          | 2          |
| RIP:__invalid_creds                                                        | 0          | 2          |
| Kernel_panic-not_syncing:Fatal_exception_in_interrupt                      | 0          | 2          |
| Kernel_panic-not_syncing:CRED:put_cred_rcu()sees_with_mag,put,usage,subscr | 0          | 2          |
| backtrace:printk                                                           | 0          | 1          |
| backtrace:dquot_init                                                       | 0          | 1          |
| backtrace:setup_per_zone_wmarks                                            | 0          | 2          |
| backtrace:init_per_zone_wmark_min                                          | 0          | 2          |
| RIP:path_lookupat                                                          | 0          | 1          |
+----------------------------------------------------------------------------+------------+------------+

[    1.434023] start plist test
[    1.436544] end plist test
[    1.436544] end plist test
[    1.437709] BUG: Bad page state in process cryptomgr_test  pfn:0e0d0
[    1.437709] BUG: Bad page state in process cryptomgr_test  pfn:0e0d0
[    1.440425] list_sort_test: start testing list_sort()
[    1.440425] list_sort_test: start testing list_sort()
[    1.443425] page:ffff880011f0fd80 count:0 mapcount:0 mapping:ffff005a0e0d11c8 index:0x0

git bisect start v3.2 v3.1 --
git bisect  bad 6aaf05f472c97ebceff47d9eef464574f1a55727  # 08:42     39-     41  Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6
git bisect  bad 3f8ddb032afa729d4bad1bf2965d3ec068de6b72  # 08:48    557-    558  Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad/hwspinlock
git bisect good 37be944a0270402f9cda291a930b0286f6dc92f5  # 08:52    900+    900  Merge branch 'drm-core-next' of git://people.freedesktop.org/~airlied/linux
git bisect  bad dc47d3810cdcb4f32bfa31d50f26af97aced0638  # 08:54    552-    557  Merge git://github.com/herbertx/crypto
git bisect good acff987d94cbdb4049f3706bed1f1792f8ef6837  # 09:01    900+    900  Merge branch 'fbdev-next' of git://github.com/schandinat/linux-2.6
git bisect good 1a4ceab195e66bce9c1638fdded6d92988100ba4  # 09:06    900+    900  Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
git bisect good 32087d4eeca14b82660dab288b1d659963b954bd  # 09:19    900+    900  Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6
git bisect good c87d5d594736dd8b56df67e31846c7d7b8c41a8f  # 09:32    900+    900  Merge Qualcom Hexagon architecture
git bisect good f6d90b4f9ce018bff429d6e01ee672de712b8641  # 10:05    900+    900  sysfs: Make sysfs_rename safe with sysfs_dirents in rbtrees.
git bisect  bad 22e5b20be72e2e166c3ba915b01a59a8eb2dc71f  # 10:19      6-      6  crypto: Export crypto_remove_final
git bisect  bad 3f2a5d2d42e0784b6aa96c2e5dcdd64e28e838d6  # 10:29     13-      8  crypto: blowfish - rename C-version to blowfish_generic
git bisect good 7c390170b49337477985be7a624015160ffeb056  # 10:58    900+      0  crypto: sha1 - export sha1_update for reuse
git bisect good 4619b6bdb71362d95810f475cc61a6de9d0b1904  # 11:58    900+      0  crypto: sha - Fix build error due to crypto_sha1_update
git bisect  bad 52ba867c8c23dcb24865f80a95c191501e101b9f  # 12:03     34-      6  crypto: blowfish - split generic and common c code
git bisect  bad b2bac6acf86d05d8af0499f37d91ecac15722803  # 12:06      2-      3  crypto: cryptd - Use subsys_initcall to prevent races with aesni
# first bad commit: [b2bac6acf86d05d8af0499f37d91ecac15722803] crypto: cryptd - Use subsys_initcall to prevent races with aesni
git bisect good 4619b6bdb71362d95810f475cc61a6de9d0b1904  # 12:12   1000+      0  crypto: sha - Fix build error due to crypto_sha1_update
git bisect  bad dc9944d6bf7da8089c440b9f018767ddab4ce389  # 12:16      0-      4  0day head guard for 'devel-hourly-2014072422'
git bisect  bad 82e13c71bc655b6dc7110da4e164079dadb44892  # 12:19     46-     13  Merge branch 'for-3.16' of git://linux-nfs.org/~bfields/linux
git bisect  bad 1a58d9909611972fd1c081bb04a9f7dc2571e612  # 12:23      7-     18  Add linux-next specific files for 20140724


This script may reproduce the error.

----------------------------------------------------------------------------
#!/bin/bash

kernel=$1
initrd=quantal-core-x86_64.cgz

wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/blob/master/initrd/$initrd

kvm=(
	qemu-system-x86_64
	-enable-kvm
	-cpu Haswell,+smep,+smap
	-kernel $kernel
	-initrd $initrd
	-m 320
	-smp 2
	-net nic,vlan=1,model=e1000
	-net user,vlan=1
	-boot order=nc
	-no-reboot
	-watchdog i6300esb
	-rtc base=localtime
	-serial stdio
	-display none
	-monitor null 
)

append=(
	hung_task_panic=1
	earlyprintk=ttyS0,115200
	debug
	apic=debug
	sysrq_always_enabled
	rcupdate.rcu_cpu_stall_timeout=100
	panic=10
	softlockup_panic=1
	nmi_watchdog=panic
	prompt_ramdisk=0
	console=ttyS0,115200
	console=tty0
	vga=normal
	root=/dev/ram0
	rw
	drbd.minor_count=8
)

"${kvm[@]}" --append "${append[*]}"
----------------------------------------------------------------------------

Thanks,
Fengguang

View attachment "dmesg-quantal-kbuild-23:20140725120419:x86_64-randconfig-s1-07250306:3.0.0-03694-gb2bac6a:14" of type "text/plain" (64739 bytes)

Download attachment "x86_64-randconfig-s1-07250306-dc9944d6bf7da8089c440b9f018767ddab4ce389-general-protection-fault:------80459.log" of type "application/octet-stream" (179610 bytes)

View attachment "config-3.0.0-03694-gb2bac6a" of type "text/plain" (54913 bytes)

_______________________________________________
LKP mailing list
LKP@...ux.intel.com

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ