[x86-32] BUG: unable to handle kernel NULL pointer dereference at 0000000000000880
by Fengguang Wu
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
https://github.com/fyu1/linux.git test
commit da12e1dc716f77937779215f74bfbfe42c5b3709
Author: Fenghua Yu <fenghua.yu(a)intel.com>
AuthorDate: Wed Dec 10 14:00:44 2014 -0800
Commit: Fenghua Yu <fenghua.yu(a)intel.com>
CommitDate: Thu Dec 11 10:40:03 2014 -0800
x86-32: Allocate pgd in paravirt for XEN
In non-XEN or non-PAE case, still allocate 4KB pgd.
For other cases
Signed-off-by: Fenghua Yu <fenghua.yu(a)intel.com>
+------------------------------------------+------------+------------+------------+
| | 92a578b064 | da12e1dc71 | 4263d929cf |
+------------------------------------------+------------+------------+------------+
| boot_successes | 63 | 0 | 0 |
| boot_failures | 2 | 20 | 12 |
| BUG:kernel_boot_hang | 1 | | |
| BUG:kernel_test_crashed | 1 | | |
| BUG:unable_to_handle_kernel | 0 | 20 | 12 |
| Oops | 0 | 20 | 12 |
| RIP:pgd_alloc | 0 | 20 | 12 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 15 | 7 |
| backtrace:mm_init | 0 | 15 | 7 |
| backtrace:do_execve | 0 | 15 | 7 |
| backtrace:run_init_process | 0 | 15 | 7 |
+------------------------------------------+------------+------------+------------+
[ 42.296661] Write protecting the kernel read-only data: 28672k
[ 42.382977] Freeing unused kernel memory: 700K (ffff880005951000 - ffff880005a00000)
[ 42.563098] Freeing unused kernel memory: 988K (ffff880006109000 - ffff880006200000)
[ 42.773320] BUG: unable to handle kernel NULL pointer dereference at 0000000000000880
[ 42.774231] IP: [<ffffffff84644a52>] pgd_alloc+0x52/0x1f0
[ 42.774231] PGD 0
[ 42.774231] Oops: 0002 [#1] PREEMPT
[ 42.774231] CPU: 0 PID: 1 Comm: swapper Not tainted 3.18.0-gda12e1d #29
[ 42.774231] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
[ 42.774231] task: ffff880012458000 ti: ffff880012460000 task.ti: ffff880012460000
[ 42.774231] RIP: 0010:[<ffffffff84644a52>] [<ffffffff84644a52>] pgd_alloc+0x52/0x1f0
[ 42.774231] RSP: 0000:ffff880012463e78 EFLAGS: 00010293
[ 42.774231] RAX: 000000000664e067 RBX: 0000000000000000 RCX: fffffffffffffff8
[ 42.774231] RDX: 0000000080000000 RSI: ffffffff8620e880 RDI: 0000000000000888
[ 42.774231] RBP: ffff880012463e88 R08: ffffffff85f50f13 R09: ffff880011ff2300
[ 42.774231] R10: 0000000000000090 R11: 0000000000000000 R12: ffff880013348000
[ 42.774231] R13: ffffffff862151c0 R14: ffffffff86215080 R15: 00000000132c5a00
[ 42.774231] FS: 0000000000000000(0000) GS:ffffffff8621f000(0000) knlGS:0000000000000000
[ 42.774231] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 42.774231] CR2: 0000000000000880 CR3: 000000000620e000 CR4: 00000000000006f0
[ 42.774231] Stack:
[ 42.774231] ffff880013348000 ffff880012458000 ffff880012463ea8 ffffffff8469bff9
[ 42.774231] ffff880013351000 ffff8800132c5900 ffff880012463eb8 ffffffff8469c2cb
[ 42.774231] ffff880012463f28 ffffffff84762920 ffff880012463f08 ffffffff847654e9
[ 42.774231] Call Trace:
[ 42.774231] [<ffffffff8469bff9>] mm_init+0x139/0x1b0
[ 42.774231] [<ffffffff8469c2cb>] mm_alloc+0x5b/0x70
[ 42.774231] [<ffffffff84762920>] do_execve+0x1e0/0x5f0
[ 42.774231] [<ffffffff847654e9>] ? getname_kernel+0x39/0x80
[ 42.774231] [<ffffffff8594e607>] ? bad_gs+0x265/0x81e
[ 42.774231] [<ffffffff85927fd0>] ? rest_init+0x80/0x80
[ 42.774231] [<ffffffff84602026>] run_init_process+0x26/0x30
[ 42.774231] [<ffffffff85928008>] kernel_init+0x38/0xf0
[ 42.774231] [<ffffffff8594c7ba>] ret_from_fork+0x7a/0xb0
[ 42.774231] [<ffffffff85927fd0>] ? rest_init+0x80/0x80
[ 42.774231] Code: 79 07 00 48 8b 05 4f 9e bc 01 48 8d bb 88 08 00 00 48 8d 8b 80 08 00 00 48 c7 c6 80 e8 20 86 ba 00 00 00 80 48 83 e7 f8 48 29 f9 <48> 89 83 80 08 00 00 48 8b 05 98 a5 bc 01 48 29 ce 81 c1 80 07
[ 42.774231] RIP [<ffffffff84644a52>] pgd_alloc+0x52/0x1f0
[ 42.774231] RSP <ffff880012463e78>
[ 42.774231] CR2: 0000000000000880
[ 42.774231] ---[ end trace 486b1714a42d9464 ]---
[ 42.774231] Kernel panic - not syncing: Fatal exception
git bisect start 4263d929cffaef10489f2e8077a2a0d0fdff4701 b2776bf7149bddd1f4161f14f79520f17fc1d71d --
git bisect bad b248a1a8129e68ec740e7d70af6b97ccfa0eea49 # 03:08 0- 1 Merge 'cgroup/tmp' into devel-lkp-nhm1-smoke-201412130236
git bisect good 2a54451092753dbe3f345ca624c0239af3ab4fe2 # 03:24 20+ 0 Merge 'microblaze/xnext/fpga-v4' into devel-lkp-nhm1-smoke-201412130236
git bisect good 6464a271776a1650eda1b52a5b98f9fc40e497af # 03:32 20+ 0 Merge 'pm/master' into devel-lkp-nhm1-smoke-201412130236
git bisect bad 33e2b62d1e5656f0ff104ea405191dcd2be9add1 # 03:36 0- 1 Merge 'fenghua/test' into devel-lkp-nhm1-smoke-201412130236
git bisect bad 2b0da4faea14f23879f9ca704c11f763129a1283 # 03:43 0- 3 x86-32: Different pgd allocation for Xen Dom0 and DomU in PAE mode
git bisect bad da12e1dc716f77937779215f74bfbfe42c5b3709 # 03:54 0- 20 x86-32: Allocate pgd in paravirt for XEN
# first bad commit: [da12e1dc716f77937779215f74bfbfe42c5b3709] x86-32: Allocate pgd in paravirt for XEN
git bisect good 92a578b064d0227a3a7fbbdb9e29dbab7f8d400e # 03:59 60+ 2 Merge tag 'pm+acpi-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
# extra tests on HEAD of linux-devel/devel-lkp-nhm1-smoke-201412130236
git bisect bad 4263d929cffaef10489f2e8077a2a0d0fdff4701 # 03:59 0- 12 0day head guard for 'devel-lkp-nhm1-smoke-201412130236'
# extra tests on tree/branch fenghua/test
git bisect bad 2b0da4faea14f23879f9ca704c11f763129a1283 # 03:59 0- 20 x86-32: Different pgd allocation for Xen Dom0 and DomU in PAE mode
# extra tests on tree/branch linus/master
git bisect good 6ce4436c9cbe903af935291aa219fd6f4c85722d # 04:08 60+ 0 Merge tag 'please-pull-morepstore' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux
# extra tests on tree/branch next/master
git bisect good f4aec88d2134e8ace530be28db614e383961b9c8 # 04:13 60+ 0 Add linux-next specific files for 20141212
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/raw/master/initrd/$initrd
kvm=(
qemu-system-x86_64
-cpu kvm64
-enable-kvm
-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=-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
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
7 years, 8 months
[ext4] fdfe0739876: Failed to mount
by Huang Ying
FYI, we noticed the below changes on
After the commit, the file system failed to mount as in stderr file attached.
git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev
commit fdfe073987619ec375da8d8a2701ab271d1b1339 ("ext4: fix potential use after free during resize")
testbox/testcase/testparams: nhm4/fsmark/performance-1x-32t-1HDD-ext4-16MB-60G-NoSync-16d-256fpd
2f2d74ef698b163a fdfe073987619ec375da8d8a27
---------------- --------------------------
fail:runs %reproduction fail:runs
| | |
:20 80% 16:20 stderr.mount:wrong_fs_type,bad_option,bad_superblock_on/dev/sda1
:20 80% 16:20 stderr.missing_codepage_or_helper_program,or_other_error
:20 80% 16:20 stderr.In_some_cases_useful_info_is_found_in_syslog-try
:20 80% 16:20 stderr.dmesg|tail_or_so
:20 80% 16:20 last_state.fs.exit_code.32
:20 80% 16:20 last_state.has_stderr
:20 15% 3:20 last_state.running
4:20 -20% :20 last_state.booting
nhm4: Nehalem
Memory: 4G
To reproduce:
apt-get install ruby ruby-oj
git clone git://git.kernel.org/pub/scm/linux/kernel/git/wfg/lkp-tests.git
cd lkp-tests
bin/setup-local job.yaml # the job file attached in this email
bin/run-local job.yaml
Disclaimer:
Results have been estimated based on internal Intel analysis and are provided
for informational purposes only. Any difference in system hardware or software
design or configuration may affect actual performance.
Thanks,
Fengguang
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
7 years, 8 months
[ftrace/fgraph/x86] BUG: unable to handle kernel paging request at 3d00c17d
by Fengguang Wu
Hi Steven,
0day kernel testing robot got the below dmesg and the first bad commit is
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
commit 6a06bdbf7f9c669743f58084991ba280f2925586
Author: Steven Rostedt (Red Hat) <rostedt(a)goodmis.org>
AuthorDate: Mon Nov 24 21:00:34 2014 -0500
Commit: Steven Rostedt <rostedt(a)goodmis.org>
CommitDate: Mon Dec 1 14:08:58 2014 -0500
ftrace/fgraph/x86: Have prepare_ftrace_return() take ip as first parameter
The function graph helper function prepare_ftrace_return() which does the work
to hijack the parent pointer has that parent pointer as its first parameter.
Instead, if we make it the second parameter and have ip as the first parameter
(self_addr), then it can use the %rdi from save_mcount_regs that loads it
already.
Link: http://lkml.kernel.org/r/[email protected]
Reviewed-by: Thomas Gleixner <tglx(a)linutronix.de>
Signed-off-by: Steven Rostedt <rostedt(a)goodmis.org>
+------------------------------------------+------------+------------+---------------+
| | f1ab00af81 | 6a06bdbf7f | next-20141209 |
+------------------------------------------+------------+------------+---------------+
| boot_successes | 60 | 0 | 0 |
| boot_failures | 0 | 20 | 30 |
| BUG:unable_to_handle_kernel | 0 | 20 | 30 |
| Oops | 0 | 20 | 30 |
| EIP_is_at_core_kernel_data | 0 | 20 | |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 20 | 30 |
| backtrace:event_create_dir | 0 | 20 | 30 |
| backtrace:event_trace_init | 0 | 20 | 30 |
| backtrace:kernel_init_freeable | 0 | 20 | 30 |
| EIP_is_at_core_kernel_text | 0 | 0 | 30 |
+------------------------------------------+------------+------------+---------------+
[ 2.063848] Switched to clocksource kvm-clock
[ 2.063848] Warning: could not register all branches stats
[ 2.063848] Warning: could not register annotated branches stats
[ 2.064779] BUG: unable to handle kernel paging request at 3d00c17d
[ 2.064779] IP: [<c108cc63>] core_kernel_data+0x3/0x40
[ 2.064779] *pdpt = 0000000000000000 *pde = 0000000000000000
[ 2.064779] Oops: 0002 [#1] PREEMPT SMP
[ 2.064779] Modules linked in:
[ 2.064779] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.18.0-rc1-00052-g6a06bdb #22
[ 2.064779] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 2.064779] task: d4080000 ti: d4084000 task.ti: d4084000
[ 2.064779] EIP: 0060:[<c108cc63>] EFLAGS: 00010246 CPU: 0
[ 2.064779] EIP is at core_kernel_data+0x3/0x40
[ 2.064779] EAX: c197ffb1 EBX: c1a40200 ECX: 00000000 EDX: 0380ab00
[ 2.064779] ESI: d424a270 EDI: d4153e00 EBP: d4085eb4 ESP: d4085eb4
[ 2.064779] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
[ 2.064779] CR0: 80050033 CR2: 3d00c17d CR3: 01d2a000 CR4: 000406b0
[ 2.064779] Stack:
[ 2.064779] d4085eec c113c2f3 00000246 c1d62d00 c1801000 d424a1a0 c1d62d70 c197ffb1
[ 2.064779] c1d62d00 d3c19130 01000000 c1d62d00 00000000 d4153e00 d4085f0c c1ca11fa
[ 2.064779] c1d62d78 00000000 009bc940 c1ca0f8e c1a3f200 d424a1a0 d4085f80 c10004bf
[ 2.064779] Call Trace:
[ 2.064779] [<c113c2f3>] event_create_dir+0x3b3/0x660
[ 2.064779] [<c1ca11fa>] event_trace_init+0x26c/0x325
[ 2.064779] [<c1ca0f8e>] ? event_trace_self_tests_init+0xbe/0xbe
[ 2.064779] [<c10004bf>] do_one_initcall+0xcf/0x2a0
[ 2.064779] [<c1ca0f8e>] ? event_trace_self_tests_init+0xbe/0xbe
[ 2.064779] [<c1c7c5a7>] ? repair_env_string+0x29/0x96
[ 2.064779] [<c1c7ced3>] kernel_init_freeable+0xe8/0x1aa
[ 2.064779] [<c17beee1>] kernel_init+0x11/0x170
[ 2.064779] [<c17cf781>] ret_from_kernel_thread+0x21/0x30
[ 2.064779] [<c17beed0>] ? rest_init+0x80/0x80
[ 2.064779] Code: ae c1 5b 5d 83 c0 01 89 04 95 08 ac ae c1 8b 04 95 1c ac ae c1 83 c0 01 89 04 95 1c ac ae c1 89 d0 c3 8d b6 00 00 00 00 55 89 e5 <19> 05 7d c1 00 3d 00 50 a3 c1 72 21 3d 80 ad c7 c1 0f 92 c0 0f
[ 2.064779] EIP: [<c108cc63>] core_kernel_data+0x3/0x40 SS:ESP 0068:d4085eb4
[ 2.064779] CR2: 000000003d00c17d
[ 2.064779] ---[ end trace 2cbe3ab4e55bc997 ]---
[ 2.064779] Kernel panic - not syncing: Fatal exception
git bisect start 5348e33950aad8d5ab06d83cb7ac4e6b4198f773 b2776bf7149bddd1f4161f14f79520f17fc1d71d --
git bisect good a17bfd544286e8dc9e31eaa5c105601f7626621a # 03:29 20+ 0 Merge remote-tracking branch 'crypto/master'
git bisect bad eda592b7693fe76f7137bef0816a658846a499dc # 04:03 0- 10 Merge remote-tracking branch 'kvm/linux-next'
git bisect good 20b20b1c70835b799c0f5e2dc104998e8d2ec72b # 05:17 20+ 0 Merge remote-tracking branch 'regulator/for-next'
git bisect good 6ab50a54d362f7b075744e1ff3cfa1f12c981b97 # 05:59 20+ 0 Merge remote-tracking branch 'devicetree/devicetree/next'
git bisect good 0634cdfae87ba1318f45b0f12d92547ef1b2b70a # 06:46 20+ 0 Merge remote-tracking branch 'edac/linux_next'
git bisect good 309c0750fce03028565307dc8e369ceed56e295a # 07:25 20+ 0 Merge remote-tracking branch 'irqchip/irqchip/for-next'
git bisect bad 9d6ada6afa5f8a4f78e562c7b435ec7fd804df7b # 08:48 0- 9 Merge remote-tracking branch 'ftrace/for-next'
git bisect good 9b77215382b42ef9c5b34293ad3a95332e5b71ef # 10:24 20+ 0 seq_buf: Add seq_buf_can_fit() helper function
git bisect good 07f1bc7f8cec0f3493731c8f83ad037f50f7e785 # 10:34 20+ 0 Merge branch 'for-next/ftrace/core' into trace/for-next
git bisect bad eabb8980a96cff42ae70cc6ab143f4003f02c874 # 11:09 0- 20 tracing: Allow NOT to filter AND and OR clauses
git bisect good 527aa75b333f90f4f90ac1730762156680a42fe8 # 11:11 20+ 0 ftrace/x86: Simplify save_mcount_regs on getting RIP
git bisect good f1ab00af816ec8e1ad53229963c863fdd6bcf222 # 11:11 20+ 0 ftrace/x86: Get rid of ftrace_caller_setup
git bisect bad e12c09cf3087b5a184ffeb55ca368e8aa436a3a2 # 11:59 0- 20 tracing: Add NOT to filtering logic
git bisect bad 6a06bdbf7f9c669743f58084991ba280f2925586 # 11:59 0- 20 ftrace/fgraph/x86: Have prepare_ftrace_return() take ip as first parameter
# first bad commit: [6a06bdbf7f9c669743f58084991ba280f2925586] ftrace/fgraph/x86: Have prepare_ftrace_return() take ip as first parameter
git bisect good f1ab00af816ec8e1ad53229963c863fdd6bcf222 # 12:02 60+ 0 ftrace/x86: Get rid of ftrace_caller_setup
# extra tests on HEAD of next/master
git bisect bad 5348e33950aad8d5ab06d83cb7ac4e6b4198f773 # 12:02 0- 30 Add linux-next specific files for 20141209
# extra tests on tree/branch next/master
git bisect bad 5348e33950aad8d5ab06d83cb7ac4e6b4198f773 # 12:02 0- 30 Add linux-next specific files for 20141209
# extra tests on tree/branch linus/master
git bisect good a0e4467726cd26bacb16f13d207ffcfa82ffc07d # 12:37 60+ 0 Merge tag 'asm-generic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
# extra tests on tree/branch next/master
git bisect bad 5348e33950aad8d5ab06d83cb7ac4e6b4198f773 # 12:37 0- 30 Add linux-next specific files for 20141209
Thanks,
Fengguang
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
7 years, 8 months
[virtio] Out of memory: Kill process 2924 (time) score 999 or sacrifice child
by Huang Ying
FYI, we noticed the below changes on
commit 8faeb529b2dabb9df691d614dda18910a43d05c9 ("virtio-scsi: fix various bad behavior on aborted requests")
Some test crashes are fixed by this commit, but we found OOM at the same time. The test case is xfstests.
testbox/testcase/testparams: vm-kbuild-1G/xfstests/4HDD-ext4-generic-slow2
cdda0e5acbb78f7b 8faeb529b2dabb9df691d614dd
---------------- --------------------------
fail:runs %reproduction fail:runs
| | |
:30 100% 30:30 dmesg.Out_of_memory:Kill_process
:30 36% 11:30 last_state.xfstests.exit_code.9
:30 3% 1:30 last_state.xfstests.kill_code.9
25:30 -83% :30 dmesg.BUG:kernel_test_crashed
5:30 -16% :30 dmesg.kernel_BUG_at_block/blk-core.c
5:30 -16% :30 dmesg.invalid_opcode
5:30 -16% :30 dmesg.RIP:blk_finish_request
5:30 -16% :30 dmesg.Kernel_panic-not_syncing:Fatal_exception_in_interrupt
[ 178.290439] sda: WRITE SAME failed. Manually zeroing.
[ 180.488061] EXT4-fs (sdd): mounted filesystem with ordered data mode. Opts: acl,user_xattr
[ 184.689327] EXT4-fs (sda): mounted filesystem with ordered data mode. Opts: acl,user_xattr
[ 186.720974] 224 invoked oom-killer: gfp_mask=0x200da, order=0, oom_score_adj=0
[ 186.722943] 224 cpuset=/ mems_allowed=0
[ 186.724090] CPU: 0 PID: 4904 Comm: 224 Not tainted 3.18.0-gb2776bf #1
[ 186.725321] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 186.726476] 0000000000000000 ffff880015a739d8 ffffffff819f1bb0 0000000000002695
[ 186.728892] ffff880036969bc0 ffff880015a73a58 ffffffff819f028b ffff880015a73a38
[ 186.731138] ffffffff814ac2bb 000000000000b7bc 000000000000b800 0000000000000000
[ 186.733173] Call Trace:
[ 186.733949] [<ffffffff819f1bb0>] dump_stack+0x4e/0x68
[ 186.735021] [<ffffffff819f028b>] dump_header+0xa3/0x224
[ 186.736140] [<ffffffff814ac2bb>] ? trace_hardirqs_on_thunk+0x3a/0x3c
[ 186.737381] [<ffffffff8119f1ef>] oom_kill_process+0x73/0x36b
[ 186.738543] [<ffffffff8119ef25>] ? oom_unkillable_task+0xc0/0xe2
[ 186.739737] [<ffffffff810f1ed1>] ? has_ns_capability_noaudit+0x1f/0x2e
[ 186.740999] [<ffffffff8119fa86>] out_of_memory+0x42b/0x446
[ 186.742121] [<ffffffff811a42d2>] __alloc_pages_nodemask+0x860/0x8a9
[ 186.743335] [<ffffffff811dd88e>] alloc_pages_vma+0x10b/0x15f
[ 186.744521] [<ffffffff811c1c02>] do_wp_page+0x40a/0x772
[ 186.745612] [<ffffffff811c4b73>] handle_mm_fault+0xc0f/0xeae
[ 186.746762] [<ffffffff81073561>] __do_page_fault+0x38b/0x4c3
[ 186.748249] [<ffffffff81073712>] ? trace_do_page_fault+0x52/0xb7
[ 186.749443] [<ffffffff814ac2bb>] ? trace_hardirqs_on_thunk+0x3a/0x3c
[ 186.750674] [<ffffffff819f83f7>] ? _raw_spin_lock_irq+0x1a/0x50
[ 186.752310] [<ffffffff810f7f55>] ? do_sigaction+0xa2/0x171
[ 186.754150] [<ffffffff810f429b>] ? recalc_sigpending+0x17/0x4c
[ 186.755560] [<ffffffff81073712>] trace_do_page_fault+0x52/0xb7
[ 186.756766] [<ffffffff8106dd57>] do_async_page_fault+0x31/0x67
[ 186.757942] [<ffffffff819fa838>] async_page_fault+0x28/0x30
[ 186.766685] Mem-Info:
[ 186.767419] Node 0 DMA per-cpu:
[ 186.768350] CPU 0: hi: 0, btch: 1 usd: 0
Thanks,
Fengguang
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
7 years, 8 months
[sched] BUG: unable to handle kernel NULL pointer dereference at 0000003c
by Huang Ying
FYI, we noticed the below changes on
https://git.linaro.org/people/mturquette/linux.git eas-next
commit 1fadb581b0be9420b143e43ff2f4a07ea7e45f6c ("sched: Make usage and load tracking cpu scale-invariant")
+-------------------------------------------------------+------------+------------+
| | e754569101 | 1fadb581b0 |
+-------------------------------------------------------+------------+------------+
| boot_successes | 20 | 0 |
| early-boot-hang | 1 | |
| boot_failures | 0 | 10 |
| BUG:unable_to_handle_kernel | 0 | 8 |
| Oops | 0 | 8 |
| EIP_is_at_default_scale_cpu_capacity | 0 | 8 |
| Kernel_panic-not_syncing:Fatal_exception_in_interrupt | 0 | 8 |
| backtrace:acpi_load_tables | 0 | 7 |
| backtrace:acpi_early_init | 0 | 7 |
| backtrace:acpi_ds_auto_serialize_method | 0 | 1 |
| backtrace:acpi_ds_init_one_object | 0 | 1 |
| BUG:kernel_boot_crashed | 0 | 2 |
| backtrace:vfs_kern_mount | 0 | 1 |
| backtrace:mnt_init | 0 | 1 |
| backtrace:vfs_caches_init | 0 | 1 |
+-------------------------------------------------------+------------+------------+
[ 0.008000] Calibrating delay loop (skipped) preset value.. 5387.12 BogoMIPS (lpj=10774248)
[ 0.008000] pid_max: default: 32768 minimum: 301
[ 0.008000] ACPI: Core revision 20140926
[ 0.008008] BUG: unable to handle kernel NULL pointer dereference at 0000003c
[ 0.008941] IP: [<cb2854bf>] default_scale_cpu_capacity+0xb/0x3f
[ 0.009921] *pdpt = 0000000000000000 *pde = f000ff53f000ff53
[ 0.010656] Oops: 0000 [#1] PREEMPT SMP
[ 0.011229] Modules linked in:
[ 0.011641] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.18.0-00170-g02b1eae #75
[ 0.012000] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 0.012000] task: cbd02320 ti: cbcfc000 task.ti: cbcfc000
[ 0.012000] EIP: 0060:[<cb2854bf>] EFLAGS: 00210046 CPU: 0
[ 0.012000] EIP is at default_scale_cpu_capacity+0xb/0x3f
[ 0.012000] EAX: 00000000 EBX: 00000400 ECX: 00000000 EDX: 00000000
[ 0.012000] ESI: 00000000 EDI: cbd02320 EBP: d4409ed4 ESP: d4409ed0
[ 0.012000] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
[ 0.012000] CR0: 80050033 CR2: 0000003c CR3: 0c01f000 CR4: 000406b0
[ 0.012000] Stack:
[ 0.012000] 00000400 d4409edc cb285e66 d4409eec cb285e88 00000000 cbd02364 d4409f50
[ 0.012000] cb286be9 00000000 00000000 00000000 cb281a77 d4409f34 d48ce760 00000000
[ 0.012000] d4409f34 0029e5eb d48ce278 d48ce220 007a15c4 00000000 00000000 00000000
[ 0.012000] Call Trace:
[ 0.012000] [<cb285e66>] arch_scale_cpu_capacity+0xd/0xf
[ 0.012000] [<cb285e88>] contrib_scale_factor+0x20/0x2a
[ 0.012000] [<cb286be9>] task_tick_fair+0x10c/0x6f5
[ 0.012000] [<cb281a77>] ? sched_clock_cpu+0x1b2/0x1da
[ 0.012000] [<cb27ba14>] scheduler_tick+0x48/0x75
[ 0.012000] [<cb2c24d9>] update_process_times+0x62/0x6e
[ 0.012000] [<cb2d181f>] tick_periodic+0xb3/0xb5
[ 0.012000] [<cb2d1ac7>] tick_handle_periodic+0x21/0xa5
[ 0.012000] [<cb205f94>] timer_interrupt+0x12/0x19
[ 0.012000] [<cb2a5fea>] handle_irq_event_percpu+0x104/0x374
[ 0.012000] [<cb2a628b>] handle_irq_event+0x31/0x48
[ 0.012000] [<cb2aa39a>] handle_level_irq+0xeb/0x12c
[ 0.012000] [<cb2aa2af>] ? unmask_irq+0x3a/0x3a
[ 0.012000] [<cb20581a>] handle_irq+0x10d/0x161
[ 0.012000] <IRQ>
[ 0.012000] [<cb205283>] do_IRQ+0x42/0xfa
[ 0.012000] [<cb8bad2e>] common_interrupt+0x2e/0x34
[ 0.012000] [<cb54007b>] ? acpi_tb_allocate_owner_id+0x4e/0x5d
[ 0.012000] [<cb4d7d20>] ? check_preemption_disabled+0x9/0x172
[ 0.012000] [<cb4d7e9b>] debug_smp_processor_id+0x12/0x14
[ 0.012000] [<cb37d2dc>] kmem_cache_alloc+0x66/0x2af
[ 0.012000] [<cb279c8d>] ? preempt_count_sub+0xe7/0x1b0
[ 0.012000] [<cb54560e>] acpi_ut_allocate_object_desc_dbg+0x3a/0x74
[ 0.012000] [<cb5456bb>] acpi_ut_create_internal_object_dbg+0x18/0xa4
[ 0.012000] [<cb521384>] acpi_ds_create_operand+0x2e5/0x374
[ 0.012000] [<cb279c8d>] ? preempt_count_sub+0xe7/0x1b0
[ 0.012000] [<cb521490>] acpi_ds_create_operands+0x7d/0xd1
[ 0.012000] [<cb53d12c>] ? acpi_ps_init_op+0x8/0x12
[ 0.012000] [<cb53ad8f>] ? acpi_ps_get_next_simple_arg+0xd7/0xe2
[ 0.012000] [<cb522694>] acpi_ds_load1_end_op+0x274/0x309
[ 0.012000] [<cb53ba9c>] acpi_ps_parse_loop+0x811/0x89a
[ 0.012000] [<cb53cad5>] acpi_ps_parse_aml+0x104/0x42d
[ 0.012000] [<cb536472>] acpi_ns_one_complete_parse+0x1a3/0x1b7
[ 0.012000] [<cb5364a3>] acpi_ns_parse_table+0x1d/0x63
[ 0.012000] [<cb535b04>] acpi_ns_load_table+0x8e/0xf5
[ 0.012000] [<cbfb445d>] acpi_load_tables+0xd2/0x1cd
[ 0.012000] [<cbfb3279>] acpi_early_init+0xd1/0x1b6
[ 0.012000] [<cbf78df7>] start_kernel+0x444/0x49e
[ 0.012000] [<cbf782c2>] i386_start_kernel+0x90/0x94
[ 0.012000] Code: 10 8b 14 95 a0 37 f7 cb 89 bc 10 90 00 00 00 eb 07 31 c0 e9 b0 fd ff ff 83 c4 1c 5b 5e 5f 5d c3 55 89 e5 53 e8 e7 5c 63 00 31 c9 <f6> 40 3c 80 89 c3 74 09 31 c9 83 78 68 01 0f 97 c1 8b 04 8d e8
[ 0.012000] EIP: [<cb2854bf>] default_scale_cpu_capacity+0xb/0x3f SS:ESP 0068:d4409ed0
[ 0.012000] CR2: 000000000000003c
[ 0.012000] ---[ end trace 361e6bc79614a98d ]---
[ 0.012000] Kernel panic - not syncing: Fatal exception in interrupt
Thanks,
Huang, Ying
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
7 years, 8 months
[kprobes] WARNING: at kernel/trace/trace_kprobe.c:1393 kprobe_trace_self_tests_init()
by Fengguang Wu
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
commit 003002e04ed38618fc37b92ba128f5ca79d39f4f
Author: Masami Hiramatsu <masami.hiramatsu.pt(a)hitachi.com>
AuthorDate: Wed Jun 5 12:12:16 2013 +0900
Commit: Ingo Molnar <mingo(a)kernel.org>
CommitDate: Thu Jun 20 14:25:48 2013 +0200
kprobes: Fix arch_prepare_kprobe to handle copy insn failures
Fix arch_prepare_kprobe() to handle failures in copy instruction
correctly. This fix is related to the previous fix: 8101376
which made __copy_instruction return an error result if failed,
but caller site was not updated to handle it. Thus, this is the
other half of the bugfix.
This fix is also related to the following bug-report:
https://bugzilla.redhat.com/show_bug.cgi?id=910649
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt(a)hitachi.com>
Acked-by: Steven Rostedt <rostedt(a)goodmis.org>
Tested-by: Jonathan Lebon <jlebon(a)redhat.com>
Cc: Frank Ch. Eigler <fche(a)redhat.com>
Cc: systemtap(a)sourceware.org
Cc: yrl.pp-manager.tt(a)hitachi.com
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <mingo(a)kernel.org>
+------------------------------------------------------------------------+------------+------------+--------------+
| | f1a527899e | 003002e04e | v3.18_121022 |
+------------------------------------------------------------------------+------------+------------+--------------+
| boot_successes | 60 | 0 | 0 |
| boot_failures | 0 | 20 | 12 |
| WARNING:at_kernel/trace/trace_kprobe.c:#kprobe_trace_self_tests_init() | 0 | 20 | 12 |
| backtrace:kprobe_trace_self_tests_init | 0 | 20 | 12 |
| backtrace:warn_slowpath_null | 0 | 20 | 12 |
| backtrace:kernel_init_freeable | 0 | 20 | 12 |
+------------------------------------------------------------------------+------------+------------+--------------+
[ 9.302086] Testing kprobe tracing:
[ 9.304225] Could not insert probe at kprobe_trace_selftest_target+0: -22
[ 9.305509] ------------[ cut here ]------------
[ 9.306204] WARNING: at kernel/trace/trace_kprobe.c:1393 kprobe_trace_self_tests_init+0x69/0x7f0()
[ 9.307812] Modules linked in:
[ 9.308313] CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.0-rc3-00005-g003002e #25
[ 9.309436] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.7.5-20140531_083030-gandalf 04/01/2014
[ 9.311039] 0000000000000009 ffff880013445e78 ffffffff814c1621 ffff880013445eb0
[ 9.312241] ffffffff81078a3c ffffffff81c84624 0000000000000007 0000000000000000
[ 9.313388] 0000000000000000 0000000000000000 ffff880013445ec0 ffffffff81078a95
[ 9.314561] Call Trace:
[ 9.314933] [<ffffffff814c1621>] dump_stack+0x27/0x30
[ 9.315799] [<ffffffff81078a3c>] warn_slowpath_common+0x8c/0xc0
[ 9.316793] [<ffffffff81c84624>] ? init_kprobe_trace+0xe8/0xe8
[ 9.317665] [<ffffffff81078a95>] warn_slowpath_null+0x25/0x30
[ 9.318480] [<ffffffff81c8468d>] kprobe_trace_self_tests_init+0x69/0x7f0
[ 9.319385] [<ffffffff81c84624>] ? init_kprobe_trace+0xe8/0xe8
[ 9.320256] [<ffffffff810021aa>] do_one_initcall+0x1aa/0x260
[ 9.321092] [<ffffffff81c605e9>] kernel_init_freeable+0x23d/0x327
[ 9.322026] [<ffffffff814b2010>] ? rest_init+0x230/0x230
[ 9.322845] [<ffffffff814b2021>] kernel_init+0x11/0x240
[ 9.323674] [<ffffffff814d757a>] ret_from_fork+0x7a/0xb0
[ 9.324509] [<ffffffff814b2010>] ? rest_init+0x230/0x230
[ 9.325230] ---[ end trace d5b21dab2503848a ]---
[ 9.325955] error on probing function entry.
git bisect start v3.10 v3.9 --
git bisect good ff89acc563a0bd49965674f56552ad6620415fe2 # 06:44 20+ 21 Merge branch 'rcu/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
git bisect good e4327859341f2d3a93b4b6fef2ea483eac1c270c # 06:56 20+ 0 Merge branch 'for-3.10' of git://git.samba.org/sfrench/cifs-2.6
git bisect good 2601ded7fd8827ddbcc450cbfb153b3f3c59b443 # 07:08 20+ 0 Merge tag 'sound-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
git bisect good 9e895ace5d82df8929b16f58e9f515f6d54ab82d # 07:12 20+ 0 Linux 3.10-rc7
git bisect bad 1a506e473576cdcb922d339aea76b67d0fe344f7 # 07:16 0- 3 Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
git bisect good 78750f1908869c3bfcbf2a1f1f00f078f2948271 # 07:33 20+ 0 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
git bisect bad 54faf77d065926adbcc2a49e6df3559094cc93ba # 07:39 0- 7 Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good de6e1317f746fbc527a73976c58b4119e506ff7c # 07:59 20+ 0 Merge tag 'critical_fix_for_3.9' of git://git.kernel.org/pub/scm/linux/kernel/git/rwlove/fcoe
git bisect good e3ff91143eb2a6eaaab4831c85a2837a95fbbea3 # 08:11 20+ 0 Merge branch 'fixes' of git://git.linaro.org/people/rmk/linux-arm
git bisect bad 8b4d801b2b123b6c09742f861fe44a8527b84d47 # 08:29 0- 1 hw_breakpoint: Fix cpu check in task_bp_pinned(cpu)
git bisect bad 003002e04ed38618fc37b92ba128f5ca79d39f4f # 08:38 0- 20 kprobes: Fix arch_prepare_kprobe to handle copy insn failures
# first bad commit: [003002e04ed38618fc37b92ba128f5ca79d39f4f] kprobes: Fix arch_prepare_kprobe to handle copy insn failures
git bisect good f1a527899ef0a8a241eb3bea619eb2e29d797f44 # 09:07 60+ 0 perf/x86: Fix broken PEBS-LL support on SNB-EP/IVB-EP
# extra tests on HEAD of linux-devel/devel-hourly-2014121022
git bisect bad 876ed1468bfdd84f401fb63a0e76a3619665fa28 # 09:07 0- 12 0day head guard for 'devel-hourly-2014121022'
# extra tests on tree/branch linus/master
git bisect bad 3a5dc1fafb016560315fe45bb4ef8bde259dd1bc # 09:07 0- 24 Merge branch 'x86-microcode-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
# extra tests on tree/branch linus/master
git bisect bad 3a5dc1fafb016560315fe45bb4ef8bde259dd1bc # 09:07 0- 24 Merge branch 'x86-microcode-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
# extra tests on tree/branch next/master
git bisect bad 12fd07251e19050ca979d9ce5d4b6bcb41dc00e9 # 09:07 0- 24 Add linux-next specific files for 20141210
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=yocto-minimal-x86_64.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
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
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
7 years, 8 months
[net: sock] BUG: unable to handle kernel NULL pointer dereference at 0000000000000007
by Fengguang Wu
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
commit 89aa075832b0da4402acebd698d0411dcc82d03e
Author: Alexei Starovoitov <ast(a)plumgrid.com>
AuthorDate: Mon Dec 1 15:06:35 2014 -0800
Commit: David S. Miller <davem(a)davemloft.net>
CommitDate: Fri Dec 5 21:47:32 2014 -0800
net: sock: allow eBPF programs to be attached to sockets
introduce new setsockopt() command:
setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd, sizeof(prog_fd))
where prog_fd was received from syscall bpf(BPF_PROG_LOAD, attr, ...)
and attr->prog_type == BPF_PROG_TYPE_SOCKET_FILTER
setsockopt() calls bpf_prog_get() which increments refcnt of the program,
so it doesn't get unloaded while socket is using the program.
The same eBPF program can be attached to multiple sockets.
User task exit automatically closes socket which calls sk_filter_uncharge()
which decrements refcnt of eBPF program
Signed-off-by: Alexei Starovoitov <ast(a)plumgrid.com>
Signed-off-by: David S. Miller <davem(a)davemloft.net>
+------------------------------------------+------------+------------+------------+
| | ddd872bc30 | 89aa075832 | 6c702fab62 |
+------------------------------------------+------------+------------+------------+
| boot_successes | 900 | 292 | 20 |
| boot_failures | 0 | 8 | 2 |
| BUG:unable_to_handle_kernel | 0 | 8 | 2 |
| Oops | 0 | 8 | 2 |
| RIP:sk_attach_bpf | 0 | 8 | 2 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 8 | 2 |
| backtrace:sock_setsockopt | 0 | 8 | 2 |
| backtrace:SyS_setsockopt | 0 | 8 | 2 |
+------------------------------------------+------------+------------+------------+
[init] Kernel was tainted on startup. Will ignore flags that are already set.
[init] Started watchdog process, PID is 9354
[main] Main thread is alive.
[ 21.233581] BUG: unable to handle kernel NULL pointer dereference at 0000000000000007
[ 21.234709] IP: [<ffffffff8156ebda>] sk_attach_bpf+0x39/0xc2
[ 21.235503] PGD b12c067 PUD b12d067 PMD 0
[ 21.236124] Oops: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC
[ 21.236902] Modules linked in:
[ 21.237347] CPU: 1 PID: 318 Comm: trinity-main Not tainted 3.18.0-rc6-g89aa075 #214
[ 21.238371] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 21.239146] task: ffff8800001e0000 ti: ffff8800001e4000 task.ti: ffff8800001e4000
[ 21.240145] RIP: 0010:[<ffffffff8156ebda>] [<ffffffff8156ebda>] sk_attach_bpf+0x39/0xc2
[ 21.241252] RSP: 0018:ffff8800001e7ea8 EFLAGS: 00010282
[ 21.241970] RAX: 00000000ffffffea RBX: ffff88000af305c0 RCX: 0000000000000000
[ 21.242107] RDX: 0000000000000000 RSI: 0000000000004000 RDI: 0000000000000000
[ 21.242107] RBP: ffff8800001e7ec8 R08: 0000000000003601 R09: 0000000000000209
[ 21.242107] R10: 0000000000000000 R11: 0000000000000206 R12: 00000000fffffff2
[ 21.242107] R13: fffffffffffffff7 R14: 0000000000000c01 R15: 0000000000000004
[ 21.242107] FS: 00007f035d5ed700(0000) GS:ffff880012500000(0000) knlGS:0000000000000000
[ 21.242107] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 21.242107] CR2: 0000000000000007 CR3: 000000000b141000 CR4: 00000000000406e0
[ 21.242107] Stack:
[ 21.242107] 0000000000000000 ffff88000af305c0 00000000fffffff2 0000000000000c01
[ 21.242107] ffff8800001e7f28 ffffffff8154cca3 00000032011e7ef8 00000000008a3000
[ 21.242107] ffff880000000c01 ffff8800001e0000 ffff8800001e7f38 ffff88000b7bb780
[ 21.242107] Call Trace:
[ 21.242107] [<ffffffff8154cca3>] sock_setsockopt+0x447/0x5ef
[ 21.242107] [<ffffffff81548dfd>] SyS_setsockopt+0x61/0x94
[ 21.242107] [<ffffffff8158ed69>] system_call_fastpath+0x12/0x17
[ 21.242107] Code: 40 00 0f 85 ab 00 00 00 55 48 89 e5 41 55 41 54 53 51 48 89 f3 e8 bf 82 b7 ff 49 89 c5 b8 ea ff ff ff 4d 85 ed 0f 84 81 00 00 00 <49> 8b 45 10 83 78 08 01 74 0f 4c 89 ef e8 60 82 b7 ff b8 ea ff
[ 21.242107] RIP [<ffffffff8156ebda>] sk_attach_bpf+0x39/0xc2
[ 21.242107] RSP <ffff8800001e7ea8>
[ 21.242107] CR2: 0000000000000007
[ 21.292711] ---[ end trace 5196e3a283419924 ]---
[ 21.293361] Kernel panic - not syncing: Fatal exception
git bisect start 6c702fab626328c33b539b0c618a5511aed23bed 61ed53deb1c6a4386d8710dbbfcee8779c381931 --
git bisect good d7990b0c34623cd54475a0562c607efbaba4899d # 18:30 75+ 0 cxgb4i/cxgb4 : Refactor macros to conform to uniform standards
git bisect good 8b7f8a99906fc21c287ad63ad3a89cf662b0293e # 18:53 75+ 0 Merge branch 'tipc-next'
git bisect bad 7ee813653e34209a148d928c81d4495dff3a879f # 19:09 0- 3 Merge branch 'cxgb4-next'
git bisect bad 60c04aecd8a72a84869308bdf2289a7aabb9a88c # 19:13 11- 1 udp: Neaten and reduce size of compute_score functions
git bisect good 244ebd9f8fa8beb7b37bdeebd6c5308b61f98aef # 19:29 130+ 0 Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next
git bisect good f51a5e82ea9aaf05106c00d976e772ca384a9199 # 19:42 130+ 0 tun/macvtap: use consume_skb() instead of kfree_skb() when needed
git bisect bad 6867b17b26d80cfd419e491141feb75082915979 # 20:10 0- 1 test: bpf: expand DIV_KX to DIV_MOD_KX
git bisect bad 8d0c4697534a739725e429ff062dea393d8860d1 # 20:22 1- 2 Merge branch 'ebpf-next'
git bisect bad 03f4723ed7a52bd31da26eefe2cdde563ea0f468 # 20:35 66- 1 samples: bpf: example of stateful socket filtering
git bisect bad 89aa075832b0da4402acebd698d0411dcc82d03e # 20:47 0- 1 net: sock: allow eBPF programs to be attached to sockets
git bisect good ddd872bc3098f9d9abe1680a6b2013e59e3337f7 # 21:11 300+ 0 bpf: verifier: add checks for BPF_ABS | BPF_IND instructions
# first bad commit: [89aa075832b0da4402acebd698d0411dcc82d03e] net: sock: allow eBPF programs to be attached to sockets
git bisect good ddd872bc3098f9d9abe1680a6b2013e59e3337f7 # 21:41 900+ 0 bpf: verifier: add checks for BPF_ABS | BPF_IND instructions
# extra tests on HEAD of netdev-next/master
git bisect bad 6c702fab626328c33b539b0c618a5511aed23bed # 21:41 0- 2 dummy: use MODULE_VERSION
# extra tests on tree/branch next/master
git bisect bad 12fd07251e19050ca979d9ce5d4b6bcb41dc00e9 # 21:45 0- 2 Add linux-next specific files for 20141210
# extra tests on tree/branch linus/master
git bisect good 86c6a2fddf0b89b494c7616f2c06cf915c4bff01 # 22:25 900+ 0 Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
# extra tests on tree/branch next/master
git bisect bad 12fd07251e19050ca979d9ce5d4b6bcb41dc00e9 # 22:25 0- 17 Add linux-next specific files for 20141210
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/raw/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=-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
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
7 years, 8 months
[PATCH] kthread: kthread_bind fails to enforce CPU affinity (fixes kernel BUG at kernel/smpboot.c:134!)
by Anton Blanchard
I have a busy ppc64le KVM box where guests sometimes hit the infamous
"kernel BUG at kernel/smpboot.c:134!" issue during boot:
BUG_ON(td->cpu != smp_processor_id());
Basically a per CPU hotplug thread scheduled on the wrong CPU. The oops
output confirms it:
CPU: 0
Comm: watchdog/130
The issue is in kthread_bind where we set the cpus_allowed mask, but do
not touch task_thread_info(p)->cpu. The scheduler assumes the previously
scheduled CPU is in the cpus_allowed mask, but in this case we are
moving a thread to another CPU so it is not.
We used to call set_task_cpu which sets task_thread_info(p)->cpu (in fact
kthread_bind still has a comment suggesting this). That was removed in
e2912009fb7b ("sched: Ensure set_task_cpu() is never called on blocked
tasks").
Since we cannot call set_task_cpu (the task is in a sleeping state),
just do an explicit set of task_thread_info(p)->cpu.
Fixes: e2912009fb7b ("sched: Ensure set_task_cpu() is never called on blocked tasks")
Cc: stable(a)vger.kernel.org
Signed-off-by: Anton Blanchard <anton(a)samba.org>
---
kernel/kthread.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kernel/kthread.c b/kernel/kthread.c
index 10e489c..e40ab1d 100644
--- a/kernel/kthread.c
+++ b/kernel/kthread.c
@@ -327,13 +327,14 @@ EXPORT_SYMBOL(kthread_create_on_node);
static void __kthread_bind(struct task_struct *p, unsigned int cpu, long state)
{
- /* Must have done schedule() in kthread() before we set_task_cpu */
+ /* Must have done schedule() in kthread() before we change affinity */
if (!wait_task_inactive(p, state)) {
WARN_ON(1);
return;
}
/* It's safe because the task is inactive. */
do_set_cpus_allowed(p, cpumask_of(cpu));
+ task_thread_info(p)->cpu = cpu;
p->flags |= PF_NO_SETAFFINITY;
}
--
2.1.0
7 years, 8 months
[drm/fb] f5ef139cbe5: *ERROR* not all connectors configured
by Yuanhan Liu
FYI, we noticed the below changes on
git://people.freedesktop.org/~airlied/linux.git radeon-mst-hacks
commit f5ef139cbe5dbd755dab3706022d7147800099a8 ("drm/fb: add support for tiled monitor configurations.")
testbox/testcase/testparams: vm-kbuild-1G/xfstests/4HDD-btrfs-generic-113
9cf13203b1fd7cc3 f5ef139cbe5dbd755dab370602
---------------- --------------------------
fail:runs %reproduction fail:runs
| | |
:10 100% 10:10 kmsg.drm:drm_setup_crtcs[drm_kms_helper]]*ERROR*not_all_connectors_configured
vm-kbuild-1G: qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap
Memory: 1G
To reproduce:
apt-get install ruby ruby-oj
git clone git://git.kernel.org/pub/scm/linux/kernel/git/wfg/lkp-tests.git
cd lkp-tests
bin/setup-local job.yaml # the job file attached in this email
bin/run-local job.yaml
Disclaimer:
Results have been estimated based on internal Intel analysis and are provided
for informational purposes only. Any difference in system hardware or software
design or configuration may affect actual performance.
--yliu
7 years, 8 months
[mm] BUG: unable to handle kernel paging request at c2446ffc
by Fengguang Wu
Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
commit 1e491e9be4c97229a3a88763aada9582e37c7eaf
Author: Joonsoo Kim <iamjoonsoo.kim(a)lge.com>
AuthorDate: Thu Nov 27 11:09:34 2014 +1100
Commit: Stephen Rothwell <sfr(a)canb.auug.org.au>
CommitDate: Thu Nov 27 11:09:34 2014 +1100
mm/debug-pagealloc: prepare boottime configurable on/off
Until now, debug-pagealloc needs extra flags in struct page, so we need to
recompile whole source code when we decide to use it. This is really
painful, because it takes some time to recompile and sometimes rebuild is
not possible due to third party module depending on struct page. So, we
can't use this good feature in many cases.
Now, we have the page extension feature that allows us to insert extra
flags to outside of struct page. This gets rid of third party module
issue mentioned above. And, this allows us to determine if we need extra
memory for this page extension in boottime. With these property, we can
avoid using debug-pagealloc in boottime with low computational overhead in
the kernel built with CONFIG_DEBUG_PAGEALLOC. This will help our
development process greatly.
This patch is the preparation step to achive above goal. debug-pagealloc
originally uses extra field of struct page, but, after this patch, it will
use field of struct page_ext. Because memory for page_ext is allocated
later than initialization of page allocator in CONFIG_SPARSEMEM, we should
disable debug-pagealloc feature temporarily until initialization of
page_ext. This patch implements this.
Signed-off-by: Joonsoo Kim <iamjoonsoo.kim(a)lge.com>
Cc: Mel Gorman <mgorman(a)suse.de>
Cc: Johannes Weiner <hannes(a)cmpxchg.org>
Cc: Minchan Kim <minchan(a)kernel.org>
Cc: Dave Hansen <dave(a)sr71.net>
Cc: Michal Nazarewicz <mina86(a)mina86.com>
Cc: Jungsoo Son <jungsoo.son(a)lge.com>
Cc: Ingo Molnar <mingo(a)redhat.com>
Cc: Joonsoo Kim <iamjoonsoo.kim(a)lge.com>
Signed-off-by: Andrew Morton <akpm(a)linux-foundation.org>
Attached dmesg for the parent commit, too, to help confirm whether it is a noise error.
+-------------------------------------------------+------------+------------+---------------+
| | 34bf7903e1 | 1e491e9be4 | next-20141127 |
+-------------------------------------------------+------------+------------+---------------+
| boot_successes | 95 | 26 | 11 |
| boot_failures | 10 | 9 | 3 |
| BUG:kernel_early_hang_without_any_printk_output | 10 | 8 | |
| BUG:unable_to_handle_kernel | 0 | 1 | 3 |
| Oops | 0 | 1 | 3 |
| EIP_is_at__free_pages_ok | 0 | 1 | 3 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 1 | 3 |
| backtrace:put_tty_driver | 0 | 1 | 3 |
| backtrace:rp_init | 0 | 1 | 3 |
| backtrace:kernel_init_freeable | 0 | 1 | 3 |
+-------------------------------------------------+------------+------------+---------------+
[ 13.206984] RocketPort device driver module, version 2.09, 12-June-2003
[ 13.208641] No rocketport ports found; unloading driver
[ 13.208641] No rocketport ports found; unloading driver
[ 13.213422] BUG: unable to handle kernel
[ 13.213422] BUG: unable to handle kernel paging requestpaging request at c2446ffc
at c2446ffc
[ 13.214380] IP:
[ 13.214380] IP: [<b11ab6fe>] __free_pages_ok+0x376/0x62c
[<b11ab6fe>] __free_pages_ok+0x376/0x62c
[ 13.214380] *pde = 123ca067
[ 13.214380] *pde = 123ca067 *pte = 12446060 *pte = 12446060
[ 13.214380] Oops: 0000 [#1]
[ 13.214380] Oops: 0000 [#1] SMP SMP DEBUG_PAGEALLOCDEBUG_PAGEALLOC
[ 13.214380] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.18.0-rc6-00201-g1e491e9 #14
[ 13.214380] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.18.0-rc6-00201-g1e491e9 #14
[ 13.214380] task: c1c40000 ti: c1c48000 task.ti: c1c48000
[ 13.214380] task: c1c40000 ti: c1c48000 task.ti: c1c48000
[ 13.214380] EIP: 0060:[<b11ab6fe>] EFLAGS: 00010097 CPU: 0
[ 13.214380] EIP: 0060:[<b11ab6fe>] EFLAGS: 00010097 CPU: 0
[ 13.214380] EIP is at __free_pages_ok+0x376/0x62c
[ 13.214380] EIP is at __free_pages_ok+0x376/0x62c
[ 13.214380] EAX: c2446ffc EBX: c2513200 ECX: 00000004 EDX: c2447000
[ 13.214380] EAX: c2446ffc EBX: c2513200 ECX: 00000004 EDX: c2447000
[ 13.214380] ESI: c2513300 EDI: 00000004 EBP: c1c49e94 ESP: c1c49e64
[ 13.214380] ESI: c2513300 EDI: 00000004 EBP: c1c49e94 ESP: c1c49e64
[ 13.214380] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
[ 13.214380] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
[ 13.214380] CR0: 8005003b CR2: c2446ffc CR3: 02729000 CR4: 00000690
[ 13.214380] CR0: 8005003b CR2: c2446ffc CR3: 02729000 CR4: 00000690
[ 13.214380] Stack:
[ 13.214380] Stack:
[ 13.214380] 00000008
[ 13.214380] 00000008 b26054ec b26054ec b2605440 b2605440 00000246 00000246 00000010 00000010 00000000 00000000 c2513000 c2513000 00000000 00000000
[ 13.214380] 00000003
[ 13.214380] 00000003 00000000 00000000 c2513300 c2513300 00000000 00000000 c1c49e9c c1c49e9c b11aba32 b11aba32 c1c49ea4 c1c49ea4 b11abc52 b11abc52
[ 13.214380] c1c49ec4
[ 13.214380] c1c49ec4 b1204fb5 b1204fb5 c1c49ebc c1c49ebc b10deca7 b10deca7 b0018000 b0018000 bbf20984 bbf20984 00000100 00000100 bbf20980 bbf20980
[ 13.214380] Call Trace:
[ 13.214380] Call Trace:
[ 13.214380] [<b11aba32>] __free_pages+0x7e/0x8e
[ 13.214380] [<b11aba32>] __free_pages+0x7e/0x8e
[ 13.214380] [<b11abc52>] __free_kmem_pages+0x16/0x26
[ 13.214380] [<b11abc52>] __free_kmem_pages+0x16/0x26
[ 13.214380] [<b1204fb5>] kfree+0x292/0x4e1
[ 13.214380] [<b1204fb5>] kfree+0x292/0x4e1
[ 13.214380] [<b10deca7>] ? debug_mutex_unlock+0x2f3/0x398
[ 13.214380] [<b10deca7>] ? debug_mutex_unlock+0x2f3/0x398
[ 13.214380] [<b14f5c36>] destruct_tty_driver+0xee/0x158
[ 13.214380] [<b14f5c36>] destruct_tty_driver+0xee/0x158
[ 13.214380] [<b14f5fe5>] tty_driver_kref_put+0xb4/0xc6
[ 13.214380] [<b14f5fe5>] tty_driver_kref_put+0xb4/0xc6
[ 13.214380] [<b14f6121>] put_tty_driver+0x16/0x26
[ 13.214380] [<b14f6121>] put_tty_driver+0x16/0x26
[ 13.214380] [<b26aa177>] rp_init+0xc04/0xc23
[ 13.214380] [<b26aa177>] rp_init+0xc04/0xc23
[ 13.214380] [<b12050e9>] ? kfree+0x3c6/0x4e1
[ 13.214380] [<b12050e9>] ? kfree+0x3c6/0x4e1
[ 13.214380] [<b26a9573>] ? register_PCI+0x1091/0x1091
[ 13.214380] [<b26a9573>] ? register_PCI+0x1091/0x1091
[ 13.214380] [<b26469d2>] do_one_initcall+0x1ed/0x356
[ 13.214380] [<b26469d2>] do_one_initcall+0x1ed/0x356
[ 13.214380] [<b2646d8b>] kernel_init_freeable+0x250/0x3ab
[ 13.214380] [<b2646d8b>] kernel_init_freeable+0x250/0x3ab
[ 13.214380] [<b1d95dd0>] kernel_init+0x16/0x1e7
[ 13.214380] [<b1d95dd0>] kernel_init+0x16/0x1e7
[ 13.214380] [<b1dcdd01>] ret_from_kernel_thread+0x21/0x30
[ 13.214380] [<b1dcdd01>] ret_from_kernel_thread+0x21/0x30
[ 13.214380] [<b1d95dba>] ? rest_init+0x15b/0x15b
[ 13.214380] [<b1d95dba>] ? rest_init+0x15b/0x15b
[ 13.214380] Code:
[ 13.214380] Code: 31 31 d0 d0 29 29 d0 d0 c1 c1 e0 e0 05 05 80 80 3d 3d 00 00 30 30 64 64 b2 b2 00 00 8d 8d 14 14 03 03 74 74 71 71 83 83 05 05 28 28 90 90 da da b2 b2 01 01 89 89 d0 d0 89 89 55 55 e8 e8 83 83 15 15 2c 2c 90 90 da da b2 b2 00 00 e8 e8 67 67 d9 d9 05 05 00 00 <8b> <8b> 00 00 83 83 05 05 30 30 90 90 da da b2 b2 01 01 83 83 15 15 34 34 90 90 da da b2 b2 00 00 a8 a8 02 02 8b 8b 55 55 e8 e8
[ 13.214380] EIP: [<b11ab6fe>]
[ 13.214380] EIP: [<b11ab6fe>] __free_pages_ok+0x376/0x62c__free_pages_ok+0x376/0x62c SS:ESP 0068:c1c49e64
SS:ESP 0068:c1c49e64
[ 13.214380] CR2: 00000000c2446ffc
[ 13.214380] CR2: 00000000c2446ffc
[ 13.214380] ---[ end trace fe261d43ae421f43 ]---
[ 13.214380] ---[ end trace fe261d43ae421f43 ]---
git bisect start 3bcf494d225fd193d02e8cb2e2c3fe3cc476ff3f 5d01410fe4d92081f349b013a2e7a95429e4f2c9 --
git bisect good 14692f2c9f01c7f21f83d41a8cb99fea1e4f803f # 10:20 35+ 0 Merge remote-tracking branch 'dlm/next'
git bisect good 17623427488fe306376e18e0ee63c2c1bcbf5612 # 10:42 35+ 0 Merge remote-tracking branch 'edac-amd/for-next'
git bisect good 6acfd0c5752274ad5099152d9a00c99f81c273b5 # 10:54 35+ 0 Merge remote-tracking branch 'char-misc/char-misc-next'
git bisect good 574733068e280900745b7241a51f26815f25ca64 # 11:24 35+ 5 Merge remote-tracking branch 'userns/for-next'
git bisect good d3d6c2b2574a1700a33c3f40a8adcd11db728926 # 11:36 35+ 11 Merge remote-tracking branch 'llvmlinux/for-next'
git bisect good 749230afd0fa54770f95063071b1bdfb6dee9bc2 # 11:45 35+ 13 Merge remote-tracking branch 'y2038/y2038'
git bisect bad 35cc8c3f978f75a04ac96b3cb72b8f7630ea04f4 # 11:50 0- 1 Merge branch 'akpm-current/current'
git bisect bad 6aab9099af555bf5a464f318d312ba5baa5cf516 # 11:59 0- 1 stacktrace: introduce snprint_stack_trace for buffer output
git bisect good 15c2416b0e6f21f17152e0ba32202bb1354394e3 # 12:10 35+ 18 mm-compaction-more-focused-lru-and-pcplists-draining-fix
git bisect good c5c825302103a196aa94efa121c011121ffff14b # 12:17 35+ 2 uprobes: share the i_mmap_rwsem
git bisect good b225ec73923a04a6d00dd28c6372c167780921b8 # 12:24 35+ 0 hugetlb: hugetlb_register_all_nodes(): add __init marker
git bisect good 4fb10ba778d4c4ccefee3ce833e487a6695068b1 # 12:32 35+ 1 mm: support madvise(MADV_FREE)
git bisect good 0aba43a2670028ec26cfeb59d3c2610ab0ee140b # 12:42 35+ 4 arm64: add pmd_[dirty|mkclean] for THP
git bisect bad 1e491e9be4c97229a3a88763aada9582e37c7eaf # 12:51 0- 1 mm/debug-pagealloc: prepare boottime configurable on/off
git bisect good 34bf7903e195347898a225220357f3a49dd65e7e # 12:57 35+ 0 mm/page_ext: resurrect struct page extending code for debugging
# first bad commit: [1e491e9be4c97229a3a88763aada9582e37c7eaf] mm/debug-pagealloc: prepare boottime configurable on/off
git bisect good 34bf7903e195347898a225220357f3a49dd65e7e # 13:01 105+ 10 mm/page_ext: resurrect struct page extending code for debugging
# extra tests on HEAD of next/master
git bisect bad 3bcf494d225fd193d02e8cb2e2c3fe3cc476ff3f # 13:01 0- 3 Add linux-next specific files for 20141127
# extra tests on tree/branch next/master
git bisect bad 3bcf494d225fd193d02e8cb2e2c3fe3cc476ff3f # 13:01 0- 3 Add linux-next specific files for 20141127
# extra tests on tree/branch linus/master
git bisect good 98e8d2e094de67315f786cd81b1dccb4ac040cc2 # 13:11 105+ 21 Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
# extra tests on tree/branch next/master
git bisect bad 3bcf494d225fd193d02e8cb2e2c3fe3cc476ff3f # 13:11 0- 3 Add linux-next specific files for 20141127
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=quantal-core-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 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=-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
_______________________________________________
LKP mailing list
LKP(a)linux.intel.com
7 years, 8 months