[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20160530021252.GF1689@yexl-desktop>
Date: Mon, 30 May 2016 10:12:52 +0800
From: kernel test robot <xiaolong.ye@...el.com>
To: Linus Walleij <linus.walleij@...aro.org>
Cc: Ying Huang <ying.huang@...ux.intel.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Alan Cox <alan@...ux.intel.com>, Arnd Bergmann <arnd@...db.de>,
LKML <linux-kernel@...r.kernel.org>,
Linus Walleij <linus.walleij@...aro.org>,
linux-gpio@...r.kernel.org, lkp@...org
Subject: [lkp] [chrdev] 65e5b1e9eb: BUG: unable to handle kernel NULL pointer
dereference at 0000000000000034
FYI, we noticed the following commit:
https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git chrdev-warn
commit 65e5b1e9eb3f777ab7535b74b490e882eeec79d7 ("chrdev: allocate dynamic chardevs in all unused holes")
on test machine: vm-lkp-wsx03-2G: 2 threads qemu-system-x86_64 -enable-kvm -cpu host with 2G memory
caused below changes:
+------------------------------------------------------------------+------------+------------+
| | 7639dad93a | 65e5b1e9eb |
+------------------------------------------------------------------+------------+------------+
| boot_successes | 29 | 0 |
| boot_failures | 39 | 30 |
| Mem-Info | 4 | |
| Out_of_memory:Kill_process | 4 | |
| backtrace:__mm_populate | 3 | |
| backtrace:SyS_mlockall | 3 | |
| BUG:kernel_test_crashed | 1 | |
| invoked_oom-killer:gfp_mask=0x | 2 | |
| backtrace:SYSC_newfstatat | 1 | |
| backtrace:SyS_newfstatat | 1 | |
| Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes | 1 | |
| backtrace:_do_fork | 1 | |
| backtrace:SyS_clone | 1 | |
| Kernel_panic-not_syncing:Attempted_to_kill_init!exitcode= | 34 | |
| BUG:unable_to_handle_kernel | 0 | 30 |
| Oops | 0 | 30 |
| RIP:tty_port_link_device | 0 | 30 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 30 |
| backtrace:init | 0 | 30 |
| backtrace:kernel_init_freeable | 0 | 30 |
+------------------------------------------------------------------+------------+------------+
[ 21.363761] hub 1-0:1.0: USB hub found
[ 21.364285] hub 1-0:1.0: 1 port detected
[ 21.366121] userial_init: cannot register, err -16
[ 21.366730] BUG: unable to handle kernel NULL pointer dereference at 0000000000000034
[ 21.367741] IP: [<ffffffff99467a51>] tty_port_link_device+0x16/0x52
[ 21.368520] PGD 0
[ 21.368799] Oops: 0000 [#1] SMP DEBUG_PAGEALLOC
[ 21.369379] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.6.0-08908-g65e5b1e #1
[ 21.370227] task: ffff880075f78000 ti: ffff880075f54000 task.ti: ffff880075f54000
[ 21.371117] RIP: 0010:[<ffffffff99467a51>] [<ffffffff99467a51>] tty_port_link_device+0x16/0x52
[ 21.372226] RSP: 0000:ffff880075f57c90 EFLAGS: 00010296
[ 21.372863] RAX: 00000000ffffffff RBX: 0000000000000000 RCX: 0000000000000000
[ 21.373723] RDX: ffff880075f78000 RSI: 0000000000000000 RDI: ffff880059d9b000
[ 21.374616] RBP: ffff880075f57ca8 R08: 0000000000000002 R09: 0000000000716391
[ 21.375457] R10: ffff880075f57ce8 R11: 00000000001d53a0 R12: 0000000000000000
[ 21.376261] R13: ffff880059d9b000 R14: ffff880059c9a170 R15: ffff880059d9b000
[ 21.377094] FS: 0000000000000000(0000) GS:ffff880078400000(0000) knlGS:0000000000000000
[ 21.378064] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 21.378733] CR2: 0000000000000034 CR3: 000000001a406000 CR4: 00000000000006e0
[ 21.379614] Stack:
[ 21.379890] 0000000000000000 0000000000000000 0000000000000000 ffff880075f57cd8
[ 21.380844] ffffffff99467ab8 ffff880059d9b000 0000000000000000 ffffffff9c3e1d40
[ 21.381769] 0000000000000000 ffff880075f57d10 ffffffff9996a258 fffffffffffffff4
[ 21.382706] Call Trace:
[ 21.383020] [<ffffffff99467ab8>] tty_port_register_device+0x2b/0x41
[ 21.383766] [<ffffffff9996a258>] gserial_alloc_line+0x1b5/0x222
[ 21.384487] [<ffffffff999683da>] acm_alloc_instance+0x4a/0x8b
[ 21.385183] [<ffffffff9993faab>] usb_get_function_instance+0x64/0xc0
[ 21.386011] [<ffffffff9996b144>] serial_register_ports+0x66/0x173
[ 21.386877] [<ffffffff9996b33c>] gs_bind+0xeb/0x196
[ 21.387460] [<ffffffff9993f590>] composite_bind+0xa6/0x217
[ 21.388121] [<ffffffff99942ba6>] udc_bind_to_driver+0x38/0x107
[ 21.388817] [<ffffffff99943a74>] usb_gadget_probe_driver+0x17e/0x19c
[ 21.389554] [<ffffffff9a78c922>] ? set_debug_rodata+0x20/0x20
[ 21.390255] [<ffffffff9993f7b9>] usb_composite_probe+0xb8/0xc7
[ 21.390956] [<ffffffff9a7d490a>] ? obexmod_init+0x17/0x17
[ 21.391599] [<ffffffff9a7d49c2>] init+0xb8/0xba
[ 21.392199] [<ffffffff9a78d22c>] do_one_initcall+0xa2/0x14f
[ 21.392882] [<ffffffff9a78c922>] ? set_debug_rodata+0x20/0x20
[ 21.393557] [<ffffffff9a78d41f>] kernel_init_freeable+0x146/0x1ec
[ 21.394300] [<ffffffff99d8c409>] kernel_init+0xf/0x147
[ 21.394919] [<ffffffff99d9261f>] ret_from_fork+0x1f/0x40
[ 21.395556] [<ffffffff99d8c3fa>] ? rest_init+0xd1/0xd1
[ 21.396166] Code: b4 03 00 00 4c 1d 00 00 c7 83 bc 03 00 00 01 00 00 00 5b 5d c3 55 48 89 e5 41 55 41 54 53 49 89 f4 89 d3 49 89 fd e8 b2 f9 cd ff <41> 39 5c 24 34 77 18 e8 a6 f9 cd ff be 31 00 00 00 48 c7 c7 06
[ 21.399494] RIP [<ffffffff99467a51>] tty_port_link_device+0x16/0x52
[ 21.400273] RSP <ffff880075f57c90>
[ 21.400691] CR2: 0000000000000034
[ 21.401105] ---[ end trace 46d7785ef88d7377 ]---
[ 21.401657] Kernel panic - not syncing: Fatal exception
FYI, raw QEMU command line is:
qemu-system-x86_64 -enable-kvm -cpu host -kernel /pkg/linux/x86_64-randconfig-s4-05261647/gcc-6/65e5b1e9eb3f777ab7535b74b490e882eeec79d7/vmlinuz-4.6.0-08908-g65e5b1e -append 'root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-lkp-wsx03-2G-11/bisect_boot-1-debian-x86_64-2015-02-07.cgz-x86_64-randconfig-s4-05261647-65e5b1e9eb3f777ab7535b74b490e882eeec79d7-20160526-105676-cttolm-0.yaml ARCH=x86_64 kconfig=x86_64-randconfig-s4-05261647 branch=linux-devel/devel-hourly-2016052613 commit=65e5b1e9eb3f777ab7535b74b490e882eeec79d7 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-s4-05261647/gcc-6/65e5b1e9eb3f777ab7535b74b490e882eeec79d7/vmlinuz-4.6.0-08908-g65e5b1e max_uptime=600 RESULT_ROOT=/result/boot/1/vm-lkp-wsx03-2G/debian-x86_64-2015-02-07.cgz/x86_64-randconfig-s4-05261647/gcc-6/65e5b1e9eb3f777ab7535b74b490e882eeec79d7/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-lkp-wsx03-2G-11::dhcp' -initrd /fs/sdc1/initrd-vm-lkp-wsx03-2G-11 -m 2048 -smp 2 -device e1000,netdev=net0 -netdev user,id=net0,hostfwd=tcp::23630-:22 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -drive file=/fs/sdc1/disk0-vm-lkp-wsx03-2G-11,media=disk,if=virtio -drive file=/fs/sdc1/disk1-vm-lkp-wsx03-2G-11,media=disk,if=virtio -pidfile /dev/shm/kboot/pid-vm-lkp-wsx03-2G-11 -serial file:/dev/shm/kboot/serial-vm-lkp-wsx03-2G-11 -daemonize -display none -monitor null
Thanks,
Xiaolong
View attachment "config-4.6.0-08908-g65e5b1e" of type "text/plain" (97873 bytes)
Download attachment "dmesg.xz" of type "application/octet-stream" (11336 bytes)
Powered by blists - more mailing lists