2016-04-19 00:46:04

by kernel test robot

[permalink] [raw]
Subject: [lkp] [vfs] b413afd673: kernel BUG at arch/x86/mm/physaddr.c:26!

Hi,

Here is the test result for T3.

FYI, we noticed the below changes on

https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git T3
commit b413afd67397cfc175a9656fc9e0444597a753e0 ("i_dir_seq (__d_add() only, with sanity checks for dir)")


+-------------------------------------------------------+------------+------------+
| | 028d11dcb3 | b413afd673 |
+-------------------------------------------------------+------------+------------+
| boot_successes | 12 | 2 |
| boot_failures | 0 | 17 |
| kernel_BUG_at_arch/x86/mm/physaddr.c | 0 | 17 |
| invalid_opcode:#[##]SMP | 0 | 17 |
| RIP:__phys_addr | 0 | 17 |
| Kernel_panic-not_syncing:Fatal_exception_in_interrupt | 0 | 17 |
| backtrace:user_path_at_empty | 0 | 2 |
| backtrace:SyS_faccessat | 0 | 2 |
| backtrace:SyS_access | 0 | 2 |
| backtrace:smpboot_thread_fn | 0 | 14 |
+-------------------------------------------------------+------------+------------+



[ 18.982013] random: trinity urandom read with 38 bits of entropy available
[ 29.188187] sock: process `trinity-main' is using obsolete setsockopt SO_BSDCOMPAT
[ 85.216280] ------------[ cut here ]------------
[ 85.217271] kernel BUG at arch/x86/mm/physaddr.c:26!
[ 85.218421] invalid opcode: 0000 [#1] SMP
[ 85.219423] Modules linked in:
[ 85.220251] CPU: 0 PID: 3 Comm: ksoftirqd/0 Not tainted 4.6.0-rc1-00021-gb413afd #40
[ 85.221914] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[ 85.223673] task: ffff88001202a980 ti: ffff880012114000 task.ti: ffff880012114000
[ 85.225281] RIP: 0010:[<ffffffff81093861>] [<ffffffff81093861>] __phys_addr+0x4c/0x50
[ 85.227005] RSP: 0000:ffff880012117c98 EFLAGS: 00010287
[ 85.228010] RAX: 00007800000000a8 RBX: 00000000000000a8 RCX: 0000000000000001
[ 85.229197] RDX: 00000000800000a8 RSI: ffffffff8246abe0 RDI: 00000000000000a8
[ 85.230390] RBP: ffff880012117c98 R08: 00000000be162c32 R09: 0000000000000004
[ 85.231585] R10: ffff880012117c80 R11: 00000000001db068 R12: ffffea0000000000
[ 85.232790] R13: ffffffff811a752d R14: ffffffff811a7514 R15: ffff88000adf3848
[ 85.233987] FS: 0000000000000000(0000) GS:ffff880013400000(0000) knlGS:0000000000000000
[ 85.235670] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 85.236719] CR2: 0000000047eb9da0 CR3: 000000000b4f9000 CR4: 00000000000006f0
[ 85.237915] Stack:
[ 85.238574] ffff880012117cd0 ffffffff811e0d88 ffff88000bbcf4f8 ffff88000bbcf4f8
[ 85.240434] 00000000ffffffff ffffffff811a7514 ffff88000adf3848 ffff880012117ce8
[ 85.242310] ffffffff811a752d ffff8800135d7240 ffff880012117d68 ffffffff8110bbfb
[ 85.244168] Call Trace:
[ 85.244884] [<ffffffff811e0d88>] kfree+0x141/0x2d0
[ 85.245843] [<ffffffff811a7514>] ? shmem_destroy_inode+0x3b/0x3b
[ 85.246928] [<ffffffff811a752d>] shmem_destroy_callback+0x19/0x2f
[ 85.248023] [<ffffffff8110bbfb>] rcu_do_batch+0x540/0xd05
[ 85.249043] [<ffffffff8110c6f2>] rcu_process_callbacks+0x332/0x536
[ 85.250143] [<ffffffff81cb51d7>] __do_softirq+0x207/0x4d0
[ 85.251167] [<ffffffff810a4828>] run_ksoftirqd+0x25/0x62
[ 85.252179] [<ffffffff810c1a71>] smpboot_thread_fn+0x1cc/0x1e3
[ 85.253251] [<ffffffff810c18a5>] ? sort_range+0x22/0x22
[ 85.254252] [<ffffffff810be4e4>] kthread+0xfb/0x103
[ 85.255220] [<ffffffff81cae017>] ? wait_for_common+0x11f/0x153
[ 85.256287] [<ffffffff81cb2732>] ret_from_fork+0x22/0x50
[ 85.257314] [<ffffffff810be3e9>] ? kthread_create_on_node+0x1bd/0x1bd
[ 85.258443] Code: ff ff 1f 76 28 0f 0b 48 b8 00 00 00 00 00 78 00 00 48 01 f8 48 39 c2 72 12 0f b6 0d 53 e4 52 01 48 89 c2 48 d3 ea 48 85 d2 74 02 <0f> 0b 5d c3 66 66 66 66 90 b8 00 00 00 80 55 48 01 f8 48 89 e5
[ 85.265841] RIP [<ffffffff81093861>] __phys_addr+0x4c/0x50
[ 85.277157] RSP <ffff880012117c98>
[ 85.277992] ---[ end trace cf8d66f3e8f92296 ]---
[ 85.278944] Kernel panic - not syncing: Fatal exception in interrupt


vm-client-x5355-openwrt-ia32: 1 threads qemu-system-x86_64 -enable-kvm with 192M memory
vm-kbuild-yocto-ia32: 1 threads qemu-system-x86_64 -enable-kvm -cpu Westmere with 320M memory

FYI, raw QEMU command line is:

qemu-system-x86_64 -enable-kvm -cpu Westmere -kernel /pkg/linux/x86_64-nfsroot/gcc-5/b413afd67397cfc175a9656fc9e0444597a753e0/vmlinuz-4.6.0-rc1-00021-gb413afd -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-kbuild-yocto-ia32-19/rand_boot-1-yocto-minimal-i386.cgz-x86_64-nfsroot-b413afd67397cfc175a9656fc9e0444597a753e0-20160418-55305-1orgitb-0.yaml ARCH=x86_64 kconfig=x86_64-nfsroot branch=vfs/T3 commit=b413afd67397cfc175a9656fc9e0444597a753e0 BOOT_IMAGE=/pkg/linux/x86_64-nfsroot/gcc-5/b413afd67397cfc175a9656fc9e0444597a753e0/vmlinuz-4.6.0-rc1-00021-gb413afd max_uptime=600 RESULT_ROOT=/result/boot/1/vm-kbuild-yocto-ia32/yocto-minimal-i386.cgz/x86_64-nfsroot/gcc-5/b413afd67397cfc175a9656fc9e0444597a753e0/0 LKP_SERVER=inn earlyprintk=ttyS0,115200 systemd.log_level=err 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 rw ip=::::vm-kbuild-yocto-ia32-19::dhcp drbd.minor_count=8' -initrd /fs/sde1/initrd-vm-kbuild-yocto-ia32-19 -m 320 -smp 1 -device e1000,netdev=net0 -netdev user,id=net0 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -drive file=/fs/sde1/disk0-vm-kbuild-yocto-ia32-19,media=disk,if=virtio -pidfile /dev/shm/kboot/pid-vm-kbuild-yocto-ia32-19 -serial file:/dev/shm/kboot/serial-vm-kbuild-yocto-ia32-19 -daemonize -display none -monitor null





Thanks,
Kernel Test Robot


Attachments:
(No filename) (5.98 kB)
config-4.6.0-rc1-00021-gb413afd (107.35 kB)
dmesg.xz (13.87 kB)
Download all attachments

2016-04-19 02:42:22

by Al Viro

[permalink] [raw]
Subject: Re: [lkp] [vfs] b413afd673: kernel BUG at arch/x86/mm/physaddr.c:26!

On Tue, Apr 19, 2016 at 08:45:48AM +0800, kernel test robot wrote:
> Hi,
>
> Here is the test result for T3.
>
> FYI, we noticed the below changes on
>
> https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git T3
> commit b413afd67397cfc175a9656fc9e0444597a753e0 ("i_dir_seq (__d_add() only, with sanity checks for dir)")

Oh, I see... Try to add this (to be folded into the commit in original
branch):

diff --git a/mm/shmem.c b/mm/shmem.c
index 00d5d02..50447e6 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -3123,7 +3123,8 @@ static struct inode *shmem_alloc_inode(struct super_block *sb)
static void shmem_destroy_callback(struct rcu_head *head)
{
struct inode *inode = container_of(head, struct inode, i_rcu);
- kfree(inode->i_link);
+ if (S_ISLNK(inode->i_mode))
+ kfree(inode->i_link);
kmem_cache_free(shmem_inode_cachep, SHMEM_I(inode));
}