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: <20150214232024.GA4959@wfg-t540p.sh.intel.com>
Date:	Sun, 15 Feb 2015 07:20:24 +0800
From:	Fengguang Wu <fengguang.wu@...el.com>
To:	Will Deacon <will.deacon@....com>
Cc:	LKP <lkp@...org>, iommu@...ts.linux-foundation.org,
	linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: [iommu] WARNING: CPU: 0 PID: 1 at drivers/iommu/io-pgtable-arm.c:406
 __arm_lpae_unmap()

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 revert-d347efeb16d3d5150cb7f8d50b05f388b572840e-fe4b991dcd84e0104cf2e29223a819335ed048a7

commit fe4b991dcd84e0104cf2e29223a819335ed048a7
Author:     Will Deacon <will.deacon@....com>
AuthorDate: Mon Nov 17 23:31:12 2014 +0000
Commit:     Will Deacon <will.deacon@....com>
CommitDate: Mon Jan 19 14:46:44 2015 +0000

    iommu: add self-consistency tests to ARM LPAE IO page table allocator
    
    This patch adds a series of basic self-consistency tests to the ARM LPAE
    IO page table allocator that exercise corner cases in map/unmap, as well
    as testing all valid configurations of pagesize, ias and stage.
    
    Signed-off-by: Will Deacon <will.deacon@....com>

===================================================
PARENT COMMIT NOT CLEAN. LOOK OUT FOR WRONG BISECT!
===================================================

Attached dmesg for the parent commit, too, to help confirm whether it is a noise error.

+--------------------------------------------------------------------+------------+------------+------------+
|                                                                    | e1d3c0fd70 | fe4b991dcd | 5df9cec997 |
+--------------------------------------------------------------------+------------+------------+------------+
| boot_successes                                                     | 0          | 0          | 0          |
| boot_failures                                                      | 80         | 20         | 12         |
| Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes   | 31         | 1          |            |
| backtrace:async_run_entry_fn                                       | 7          |            |            |
| backtrace:serio_handle_event                                       | 23         | 1          |            |
| backtrace:do_fork                                                  | 1          |            |            |
| backtrace:kthreadd                                                 | 1          |            |            |
| WARNING:at_net/netlink/genetlink.c:#genl_unbind()                  | 49         | 19         |            |
| backtrace:do_group_exit                                            | 49         | 19         |            |
| backtrace:SyS_exit_group                                           | 49         | 19         |            |
| backtrace:SYSC_socketcall                                          | 19         | 9          |            |
| backtrace:SyS_socketcall                                           | 19         | 9          |            |
| WARNING:at_drivers/iommu/io-pgtable-arm.c:#__arm_lpae_unmap()      | 0          | 20         | 12         |
| WARNING:at_drivers/iommu/io-pgtable-arm.c:#arm_lpae_do_selftests() | 0          | 20         | 12         |
| backtrace:arm_lpae_do_selftests                                    | 0          | 20         | 12         |
| backtrace:kernel_init_freeable                                     | 0          | 20         | 12         |
+--------------------------------------------------------------------+------------+------------+------------+

[    1.206747] arm-lpae io-pgtable: selftest: pgsize_bitmap 0x40201000, IAS 36
[    1.208654] arm-lpae io-pgtable: selftest: pgsize_bitmap 0x40201000, IAS 40
[    1.210010] ------------[ cut here ]------------
[    1.213340] WARNING: CPU: 0 PID: 1 at drivers/iommu/io-pgtable-arm.c:406 __arm_lpae_unmap+0xa8/0x321()
[    1.216671] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.19.0-rc4-00003-gfe4b991 #13
[    1.220002] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
[    1.222875]  00000000 00000000 d3485e08 c1531d71 00000000 d3485e24 c1039f0d 00000196
[    1.227986]  c12e00db d3541ab0 00000000 00000000 d3485e34 c1039faa 00000009 00000000
[    1.231315]  d3485e90 c12e00db 00000080 80000000 d3485ed0 0000000c d3603000 00600000
[    1.234642] Call Trace:
[    1.236674]  [<c1531d71>] dump_stack+0x48/0x60
[    1.240005]  [<c1039f0d>] warn_slowpath_common+0x7a/0x91
[    1.241548]  [<c12e00db>] ? __arm_lpae_unmap+0xa8/0x321
[    1.243098]  [<c1039faa>] warn_slowpath_null+0xf/0x13
[    1.243337]  [<c12e00db>] __arm_lpae_unmap+0xa8/0x321
[    1.244832]  [<c12dfe9f>] ? arm_lpae_map+0xa4/0xaf
[    1.246670]  [<c12e036f>] arm_lpae_unmap+0x1b/0x35
[    1.250004]  [<c18b8c71>] arm_lpae_do_selftests+0x1e0/0x394
[    1.253337]  [<c18b8a91>] ? arm_lpae_dump_ops+0x37/0x37
[    1.254867]  [<c1893c4f>] do_one_initcall+0x177/0x18a
[    1.256343]  [<c1893505>] ? repair_env_string+0x12/0x54
[    1.256670]  [<c1893400>] ? do_early_param+0x1e/0x73
[    1.258145]  [<c104b78c>] ? parse_args+0x28b/0x38c
[    1.260004]  [<c18934f3>] ? initcall_blacklist+0x9e/0x9e
[    1.261530]  [<c105dd11>] ? __wake_up+0x32/0x3b
[    1.263337]  [<c1893dc6>] kernel_init_freeable+0x164/0x1e1
[    1.266670]  [<c1893dc6>] ? kernel_init_freeable+0x164/0x1e1
[    1.270003]  [<c152eae3>] kernel_init+0x8/0xb8
[    1.271405]  [<c15375c1>] ret_from_kernel_thread+0x21/0x30
[    1.272983]  [<c152eadb>] ? rest_init+0x6d/0x6d
[    1.273345] ---[ end trace f84d29e8c6948694 ]---
[    1.274808] ------------[ cut here ]------------

git bisect start 5df9cec997d8ec7a9906587401d1cdc6548511d6 bfa76d49576599a4b9f9b7a71f23d73d6dcff735 --
git bisect  bad 77246d1c9e1faeb5772f5361d2d7ba8901f80916  # 05:42      0-      1  Merge 'kees/aslr/stack' into devel-roam-rand-201502150502
git bisect good 1261c83ef4f1fc6aa4589dac9dc8ee050b54e0c8  # 05:46     20+     11  0day base guard for 'devel-roam-rand-201502150502'
git bisect good b5596c896580a30afb55d9b449d5c434f2bad9b5  # 05:49     20+      0  Merge 'renesas/devel' into devel-roam-rand-201502150502
git bisect good c5ce28df0e7c01a1de23c36ebdefcd803f2b6cbb  # 05:52     20+     12  Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
git bisect good aa7ed01f93ff7e149cad46f13f66b269d59c9bc0  # 05:54     20+      1  Merge tag 'mmc-v3.20-1' of git://git.linaro.org/people/ulf.hansson/mmc
git bisect good 12df4289ee8e4dccf932b7186b391bb6d2b915fa  # 05:57     20+     20  Merge tag 'ktest-v3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest
git bisect  bad 802ea9d8645d33d24b7b4cd4537c14f3e698bde0  # 06:00      0-     20  Merge tag 'dm-3.20-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
git bisect  bad a26be149facb22d30cd92cadb26f651d6fe802c9  # 06:03      0-     20  Merge tag 'iommu-updates-v3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu
git bisect good 42cf0f203e877cc7e502883d43b3f72149033d86  # 06:06     20+      6  Merge branch 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm
git bisect  bad a20cc76b9efae10c20123049df361adcd7f0e0b3  # 06:08      0-      7  Merge branches 'arm/renesas', 'arm/smmu', 'arm/omap', 'ppc/pamu', 'x86/amd' and 'core' into next
git bisect  bad bb590c9011a7c4e195af486438ead666023f96bd  # 06:11      0-     12  iommu/ipmmu-vmsa: Fix IOMMU lookup when multiple IOMMUs are registered
git bisect  bad 16753322983bcca0eca6d81f20d23277df0d6cf7  # 06:14      0-     20  Merge branch 'for-joerg/arm-smmu/updates' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux into arm/smmu
git bisect  bad c896c132b01895fd1445d178e36155b671c6f9ee  # 06:16      0-     18  iommu: io-pgtable-arm: add non-secure quirk
git bisect good e1d3c0fd701df831169b116cd5c5d6203ac07f70  # 06:25     20+     20  iommu: add ARM LPAE page table allocator
git bisect  bad fe4b991dcd84e0104cf2e29223a819335ed048a7  # 06:27      0-      1  iommu: add self-consistency tests to ARM LPAE IO page table allocator
# first bad commit: [fe4b991dcd84e0104cf2e29223a819335ed048a7] iommu: add self-consistency tests to ARM LPAE IO page table allocator
git bisect good e1d3c0fd701df831169b116cd5c5d6203ac07f70  # 06:31     60+     80  iommu: add ARM LPAE page table allocator
# extra tests with DEBUG_INFO
git bisect good fe4b991dcd84e0104cf2e29223a819335ed048a7  # 06:37     60+     60  iommu: add self-consistency tests to ARM LPAE IO page table allocator
# extra tests on HEAD of linux-devel/devel-roam-rand-201502150502
git bisect  bad 5df9cec997d8ec7a9906587401d1cdc6548511d6  # 06:37      0-     12  0day head guard for 'devel-roam-rand-201502150502'
# extra tests on tree/branch linus/master
git bisect  bad d347efeb16d3d5150cb7f8d50b05f388b572840e  # 06:37      0-      2  mutex: remove unused field "name" in debug mode
# extra tests with first bad commit reverted
# extra tests on tree/branch linus/master
git bisect  bad d347efeb16d3d5150cb7f8d50b05f388b572840e  # 06:40      0-      2  mutex: remove unused field "name" in debug mode
# extra tests on tree/branch next/master
git bisect  bad b8acf73194186a5cba86812eb4ba17b897f0e13e  # 06:44      0-     20  Add linux-next specific files for 20150213


This script may reproduce the error.

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

kernel=$1
initrd=yocto-minimal-i386.cgz

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

kvm=(
	qemu-system-x86_64
	-cpu kvm64
	-enable-kvm
	-kernel $kernel
	-initrd $initrd
	-m 320
	-smp 1
	-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
	rd.udev.log-priority=err
	systemd.log_target=journal
	systemd.log_level=warning
	debug
	apic=debug
	sysrq_always_enabled
	rcupdate.rcu_cpu_stall_timeout=100
	panic=-1
	softlockup_panic=1
	nmi_watchdog=panic
	oops=panic
	load_ramdisk=2
	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-yocto-client1-20:20150215062606:i386-randconfig-r2-0215:3.19.0-rc4-00003-gfe4b991:13" of type "text/plain" (359863 bytes)

View attachment "dmesg-quantal-client6-18:20150215062334:i386-randconfig-r2-0215:3.19.0-rc4-00002-ge1d3c0f:526" of type "text/plain" (59731 bytes)

View attachment "config-3.19.0-rc4-00003-gfe4b991" of type "text/plain" (75537 bytes)

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ