4.14.68-stable review
Subsystems (9)
Greg Kroah-Hartman
maintainerPATCH 76/165 memcg: remove memcg_cgroup::id from IDR on mem_cgroup_css_alloc() failure
In reply to Greg Kroah-Hartman4.14-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kirill Tkhai <[email protected]>
[ Upstream commit 7e97de0b033bcac4fa9a35cef72e0c06e6a22c67 ]
In case of memcg_online_kmem() failure, memcg_cgroup::id remains hashed in mem_cgroup_idr even after memcg memory is freed. This leads to leak of ID in mem_cgroup_idr.
This patch adds removal into mem_cgroup_css_alloc(), which fixes the problem. For better readability, it adds a generic helper which is used in mem_cgroup_alloc() and mem_cgroup_id_put_many() as well.
Fixes 73f576c04b94 ("mm: memcontrol: fix cgroup creation failure after many small jobs")
--- mm/memcontrol.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-)
mm/memcontrol.c +11 -4
@@ -4110,6 +4110,14 @@ static struct cftype mem_cgroup_legacy_fstatic DEFINE_IDR (mem_cgroup_idr); +static void mem_cgroup_id_remove (struct mem_cgroup *memcg) +{ +if (memcg->id.id >0 ) { +idr_remove (&mem_cgroup_idr, memcg->id.id); + memcg->id.id =0 ; + } +} +static void mem_cgroup_id_get_many (struct mem_cgroup *memcg,unsigned int n) {VM_BUG_ON (atomic_read (&memcg->id.ref) <=0 );
@@ -4120,8 +4128,7 @@ static void mem_cgroup_id_put_many(struc {VM_BUG_ON (atomic_read (&memcg->id.ref) < n);if (atomic_sub_and_test (n, &memcg->id.ref)) { -idr_remove (&mem_cgroup_idr, memcg->id.id); - memcg->id.id =0 ; +mem_cgroup_id_remove (memcg);/* Memcg ID pins CSS */ css_put (&memcg->css);
@@ -4258,8 +4265,7 @@ static struct mem_cgroup *mem_cgroup_allidr_replace (&mem_cgroup_idr, memcg, memcg->id.id);return memcg; fail: -if (memcg->id.id >0 ) -idr_remove (&mem_cgroup_idr, memcg->id.id); +mem_cgroup_id_remove (memcg);__mem_cgroup_free (memcg);return NULL ; }
@@ -4318,6 +4324,7 @@ mem_cgroup_css_alloc(struct cgroup_subsyreturn &memcg->css; fail: +mem_cgroup_id_remove (memcg);mem_cgroup_free (memcg);return ERR_PTR (-ENOMEM ); }
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.68 release. There are 165 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed Sep 5 16:56:19 UTC 2018. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.14.68-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-4.14.y
and the diffstat can be found below.thanks,
greg k-h
Running kselftest
selftests: bpf: test_tunnel.sh reported kernel crash on i386 device running 4.14.68-rc1
and similar issue reported on 4.18.6-rc1.
[ 92.244007] low stack detected by irq handler [ 92.244145] BUG: unable to handle kernel paging request at c4fb1f64 [ 92.244161] IP: __call_rcu.constprop.76+0x27/0x4b0 [ 92.244164] *pde = 35c05063 *pte = 04fb1161 [ 92.244172] Oops: 0003 [#1] SMP [ 92.244176] Modules linked in: veth x86_pkg_temp_thermal fuse [ 92.244187] CPU: 2 PID: 19 Comm: ksoftirqd/2 Not tainted 4.14.68-rc1 #1 [ 92.244190] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.0b 07/27/2017 [ 92.244192] task: f5db8000 task.stack: f5db4000 [ 92.244198] EIP: __call_rcu.constprop.76+0x27/0x4b0 [ 92.244201] EFLAGS: 00210246 CPU: 2 [ 92.244204] EAX: 00000000 EBX: c4fb17a0 ECX: c5c2d640 EDX: c4fb17a0 [ 92.244206] ESI: c4fb1f60 EDI: c4fb1f60 EBP: f5db5ee4 ESP: f5db5eb0 [ 92.244209] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 92.244212] CR0: 80050033 CR2: c4fb1f64 CR3: 05dff000 CR4: 003406d0 [ 92.244215] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000 [ 92.244216] DR6: fffe0ff0 DR7: 00000400 [ 92.244218] Call Trace: [ 92.244228] ? rcu_process_callbacks+0x200/0xdd0 [ 92.244234] ? __lock_is_held+0x48/0x80 [ 92.244242] ? tlb_table_flush.part.118+0x10/0x30 [ 92.244248] call_rcu_sched+0x14/0x20 [ 92.244252] tlb_table_flush.part.118+0x1d/0x30 [ 92.244257] ? rcu_process_callbacks+0x254/0xdd0 [ 92.244264] ? finish_task_switch+0x87/0x1d0 [ 92.244276] __do_softirq+0xac/0x426 [ 92.244288] run_ksoftirqd+0x1f/0x60 [ 92.244295] smpboot_thread_fn+0x120/0x1d0 [ 92.244300] kthread+0xfa/0x110 [ 92.244305] ? sort_range+0x20/0x20 [ 92.244310] ? kthread_create_on_node+0x20/0x20 [ 92.244316] ret_from_fork+0x2e/0x38 [ 92.244325] Code: 00 00 00 00 3e 8d 74 26 00 55 89 e5 57 56 53 89 c6 89 d3 83 ec 28 8b 45 08 f7 c6 03 00 00 00 89 4d ec 89 45 e4 0f 85 39 03 00 00 <89> 5e 04 c7 06 00 00 00 00 9c 8f 45 f0 fa e8 66 69 fd ff 8b 55 [ 92.244413] EIP: __call_rcu.constprop.76+0x27/0x4b0 SS:ESP: 0068:f5db5eb0 [ 92.244415] CR2: 00000000c4fb1f64 [ 92.244425] ---[ end trace df3b7c276e7f3926 ]--- [ 92.244427] Kernel panic - not syncing: Fatal exception in interrupt [ 92.432150] CPU: 0 PID: 2388 Comm: named Tainted: G D 4.14.68-rc1 #1 [ 92.439620] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.0b 07/27/2017 [ 92.447090] Call Trace: [ 92.449535] <IRQ> [ 92.451547] dump_stack+0x66/0x92 [ 92.454865] print_stack_overflow+0x17/0x30 [ 92.459052] call_on_stack+0x45/0x50 [ 92.462628] </IRQ> [ 92.464730] Kernel Offset: 0x3e00000 from 0xc1000000 (relocation range: 0xc0000000-0xf7bfdfff) [ 92.473333] ---[ end Kernel panic - not syncing: Fatal exception in interrupt [ 92.480458] sched: Unexpected reschedule of offline CPU#3! [ 92.485943] ------------[ cut here ]------------ [ 92.490563] WARNING: CPU: 2 PID: 19 at /srv/oe/build/tmp-rpb-glibc/work-shared/intel-core2-32/kernel-source/arch/x86/kernel/smp.c:128 native_smp_send_reschedule+0x33/0x40 [ 92.505752] Modules linked in: veth x86_pkg_temp_thermal fuse [ 92.511490] CPU: 2 PID: 19 Comm: ksoftirqd/2 Tainted: G D 4.14.68-rc1 #1 [ 92.519305] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.0b 07/27/2017 [ 92.526779] task: f5db8000 task.stack: f5db4000 [ 92.531303] EIP: native_smp_send_reschedule+0x33/0x40 [ 92.536355] EFLAGS: 00210086 CPU: 2 [ 92.539837] EAX: 0000002e EBX: 00000003 ECX: f61d9900 EDX: f61d2d34 [ 92.546095] ESI: f5d85500 EDI: f5d85500 EBP: f5db5b44 ESP: f5db5b3c [ 92.552352] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 92.557744] CR0: 80050033 CR2: c4fb1f64 CR3: 05dff000 CR4: 003406d0 [ 92.563998] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000 [ 92.570256] DR6: fffe0ff0 DR7: 00000400 [ 92.574087] Call Trace: [ 92.576534] resched_curr+0x59/0x180 [ 92.580112] check_preempt_curr+0x8d/0xb0 [ 92.584115] ttwu_do_wakeup+0x17/0x240 [ 92.587857] ? activate_task+0x52/0xc0 [ 92.591602] ttwu_do_activate+0x6c/0x90 [ 92.595433] try_to_wake_up+0x2ed/0x570 [ 92.599265] default_wake_function+0x10/0x20 [ 92.603536] autoremove_wake_function+0x14/0x40 [ 92.608059] __wake_up_common+0x68/0x110 [ 92.611978] __wake_up_common_lock+0x57/0x80 [ 92.616243] __wake_up+0x12/0x20 [ 92.619476] wake_up_klogd_work_func+0x3c/0x60 [ 92.623920] irq_work_run_list+0x38/0x60 [ 92.627836] irq_work_tick+0x31/0x40 [ 92.631408] update_process_times+0x3a/0x50 [ 92.635586] tick_sched_handle+0x40/0x60 [ 92.639511] tick_sched_timer+0x38/0x90 [ 92.643342] __hrtimer_run_queues+0xe0/0x490 [ 92.647606] ? tick_sched_do_timer+0x60/0x60 [ 92.651878] hrtimer_interrupt+0x8f/0x190 [ 92.655884] smp_apic_timer_interrupt+0x68/0x290 [ 92.660501] apic_timer_interrupt+0x3a/0x40 [ 92.664678] EIP: panic+0x186/0x1cc [ 92.668073] EFLAGS: 00200246 CPU: 2 [ 92.671558] EAX: c5ad3108 EBX: 00000000 ECX: f61d2d30 EDX: 00000000 [ 92.677815] ESI: 00000000 EDI: 00000000 EBP: f5db5d8c ESP: f5db5d78 [ 92.684072] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 92.689465] ? freeze_processes+0x3b/0xe0 [ 92.693477] oops_end+0xa3/0xb0 [ 92.696614] no_context+0xd9/0x200 [ 92.700010] ? tlb_table_flush.part.118+0x14/0x30 [ 92.704706] ? find_busiest_group+0x29/0x520 [ 92.708971] ? tlb_table_flush.part.118+0x14/0x30 [ 92.713668] __bad_area_nosemaphore+0xa4/0x130 [ 92.718107] bad_area_nosemaphore+0x12/0x20 [ 92.722284] __do_page_fault+0xb5/0x4b0 [ 92.726116] ? __lock_acquire+0x1fe/0x1130 [ 92.730213] ? tlb_table_flush.part.118+0x14/0x30 [ 92.734910] ? tlb_table_flush.part.118+0x14/0x30 [ 92.739607] do_page_fault+0x20/0x240 [ 92.743265] ? tlb_flush_mmu_free+0x50/0x50 [ 92.747442] ? tlb_table_flush.part.118+0x10/0x30 [ 92.752138] ? __do_page_fault+0x4b0/0x4b0 [ 92.756229] common_exception+0x7c/0x82 [ 92.760061] EIP: __call_rcu.constprop.76+0x27/0x4b0 [ 92.764930] EFLAGS: 00210246 CPU: 2 [ 92.768415] EAX: 00000000 EBX: c4fb17a0 ECX: c5c2d640 EDX: c4fb17a0 [ 92.774671] ESI: c4fb1f60 EDI: c4fb1f60 EBP: f5db5ee4 ESP: f5db5eb0 [ 92.780928] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 92.786320] ? tlb_flush_mmu_free+0x50/0x50 [ 92.790497] ? tlb_flush_mmu_free+0x50/0x50 [ 92.794674] ? tlb_table_flush.part.118+0x10/0x30 [ 92.799371] ? tlb_table_flush.part.118+0x10/0x30 [ 92.804069] ? __init_swait_queue_head+0x3b/0x40 [ 92.808686] ? __do_page_fault+0x4b0/0x4b0 [ 92.812778] ? rcu_process_callbacks+0x200/0xdd0 [ 92.817388] ? __lock_is_held+0x48/0x80 [ 92.821219] ? tlb_table_flush.part.118+0x10/0x30 [ 92.825916] call_rcu_sched+0x14/0x20 [ 92.829574] tlb_table_flush.part.118+0x1d/0x30 [ 92.834098] ? rcu_process_callbacks+0x254/0xdd0 [ 92.838715] ? finish_task_switch+0x87/0x1d0 [ 92.842981] __do_softirq+0xac/0x426 [ 92.846551] run_ksoftirqd+0x1f/0x60 [ 92.850122] smpboot_thread_fn+0x120/0x1d0 [ 92.854213] kthread+0xfa/0x110 [ 92.857359] ? sort_range+0x20/0x20 [ 92.860840] ? kthread_create_on_node+0x20/0x20 [ 92.865365] ret_from_fork+0x2e/0x38 [ 92.868938] Code: 0f a3 05 dc da ce c5 73 17 8b 0d 20 d6 ba c5 ba fd 00 00 00 ff 51 58 c9 c3 8d b4 26 00 00 00 00 50 68 e0 cc ac c5 e8 0a fa 07 00 <0f> 0b 58 5a c9 c3 8d b4 26 00 00 00 00 3e 8d 74 26 00 8b 15 f0 [ 92.887724] ---[ end trace df3b7c276e7f3927 ]---
Details for test full run,
4.14 run,
https://lkft.validation.linaro.org/scheduler/job/404796
4.18.6-rc1 run,
https://lkft.validation.linaro.org/scheduler/job/404027#L3244
Best regards
Naresh Kamboju
Greg Kroah-Hartman
maintainerPATCH 79/165 scsi: fcoe: drop frames in ELS LOGO error path
In reply to Greg Kroah-Hartman4.14-stable review patch. If anyone has any objections, please let me know.
------------------
From: Johannes Thumshirn <[email protected]>
[ Upstream commit 63d0e3dffda311e77b9a8c500d59084e960a824a ]
Drop the frames in the ELS LOGO error path instead of just returning an error.
This fixes the following kmemleak report:
unreferenced object 0xffff880064cb1000 (size 424):
comm "kworker/0:2", pid 24, jiffies 4294904293 (age 68.504s) hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<(____ptrval____)>] _fc_frame_alloc+0x2c/0x180 [libfc]
[<(____ptrval____)>] fc_lport_enter_logo+0x106/0x360 [libfc]
[<(____ptrval____)>] fc_fabric_logoff+0x8c/0xc0 [libfc]
[<(____ptrval____)>] fcoe_if_destroy+0x79/0x3b0 [fcoe]
[<(____ptrval____)>] fcoe_destroy_work+0xd2/0x170 [fcoe]
[<(____ptrval____)>] process_one_work+0x7ff/0x1420
[<(____ptrval____)>] worker_thread+0x87/0xef0
[<(____ptrval____)>] kthread+0x2db/0x390
[<(____ptrval____)>] ret_from_fork+0x35/0x40
[<(____ptrval____)>] 0xffffffffffffffffwhich can be triggered by issuing
echo eth0 > /sys/bus/fcoe/ctlr_destroy
--- drivers/scsi/fcoe/fcoe_ctlr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/fcoe/fcoe_ctlr.c +2 -2
@@ -754,9 +754,9 @@ int fcoe_ctlr_els_send(struct fcoe_ctlrcase ELS_LOGO :if (fip->mode ==FIP_MODE_VN2VN ) {if (fip->state !=FIP_ST_VNMP_UP ) -return -EINVAL ; + goto drop;if (ntoh24 (fh->fh_d_id) ==FC_FID_FLOGI ) -return -EINVAL ; + goto drop; }else {if (fip->state !=FIP_ST_ENABLED )return 0 ;
Greg Kroah-Hartman
maintainerQuoted 5 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.68 release. There are 165 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Quoted 8 lines
Responses should be made by Wed Sep 5 16:56:19 UTC 2018. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.14.68-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-4.14.y
and the diffstat can be found below.
I have released a -rc2 kernel to fix a reported problem in -rc1:
https://www.kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.14.68-rc2.gz
Greg Kroah-Hartman
maintainerQuoted 174 lines · Naresh Kamboju
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.68 release. There are 165 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed Sep 5 16:56:19 UTC 2018. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.14.68-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-4.14.y
and the diffstat can be found below.thanks,
greg k-h
Running kselftest
selftests: bpf:test_tunnel.shreported kernel crash on i386 device running 4.14.68-rc1
and similar issue reported on 4.18.6-rc1.[ 92.244007] low stack detected by irq handler [ 92.244145] BUG: unable to handle kernel paging request at c4fb1f64 [ 92.244161] IP: __call_rcu.constprop.76+0x27/0x4b0 [ 92.244164] *pde = 35c05063 *pte = 04fb1161 [ 92.244172] Oops: 0003 [#1] SMP [ 92.244176] Modules linked in: veth x86_pkg_temp_thermal fuse [ 92.244187] CPU: 2 PID: 19 Comm: ksoftirqd/2 Not tainted 4.14.68-rc1 #1 [ 92.244190] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.0b 07/27/2017 [ 92.244192] task: f5db8000 task.stack: f5db4000 [ 92.244198] EIP: __call_rcu.constprop.76+0x27/0x4b0 [ 92.244201] EFLAGS: 00210246 CPU: 2 [ 92.244204] EAX: 00000000 EBX: c4fb17a0 ECX: c5c2d640 EDX: c4fb17a0 [ 92.244206] ESI: c4fb1f60 EDI: c4fb1f60 EBP: f5db5ee4 ESP: f5db5eb0 [ 92.244209] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 92.244212] CR0: 80050033 CR2: c4fb1f64 CR3: 05dff000 CR4: 003406d0 [ 92.244215] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000 [ 92.244216] DR6: fffe0ff0 DR7: 00000400 [ 92.244218] Call Trace: [ 92.244228] ? rcu_process_callbacks+0x200/0xdd0 [ 92.244234] ? __lock_is_held+0x48/0x80 [ 92.244242] ? tlb_table_flush.part.118+0x10/0x30 [ 92.244248] call_rcu_sched+0x14/0x20 [ 92.244252] tlb_table_flush.part.118+0x1d/0x30 [ 92.244257] ? rcu_process_callbacks+0x254/0xdd0 [ 92.244264] ? finish_task_switch+0x87/0x1d0 [ 92.244276] __do_softirq+0xac/0x426 [ 92.244288] run_ksoftirqd+0x1f/0x60 [ 92.244295] smpboot_thread_fn+0x120/0x1d0 [ 92.244300] kthread+0xfa/0x110 [ 92.244305] ? sort_range+0x20/0x20 [ 92.244310] ? kthread_create_on_node+0x20/0x20 [ 92.244316] ret_from_fork+0x2e/0x38 [ 92.244325] Code: 00 00 00 00 3e 8d 74 26 00 55 89 e5 57 56 53 89 c6 89 d3 83 ec 28 8b 45 08 f7 c6 03 00 00 00 89 4d ec 89 45 e4 0f 85 39 03 00 00 <89> 5e 04 c7 06 00 00 00 00 9c 8f 45 f0 fa e8 66 69 fd ff 8b 55 [ 92.244413] EIP: __call_rcu.constprop.76+0x27/0x4b0 SS:ESP: 0068:f5db5eb0 [ 92.244415] CR2: 00000000c4fb1f64 [ 92.244425] ---[ end trace df3b7c276e7f3926 ]--- [ 92.244427] Kernel panic - not syncing: Fatal exception in interrupt [ 92.432150] CPU: 0 PID: 2388 Comm: named Tainted: G D 4.14.68-rc1 #1 [ 92.439620] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.0b 07/27/2017 [ 92.447090] Call Trace: [ 92.449535] <IRQ> [ 92.451547] dump_stack+0x66/0x92 [ 92.454865] print_stack_overflow+0x17/0x30 [ 92.459052] call_on_stack+0x45/0x50 [ 92.462628] </IRQ> [ 92.464730] Kernel Offset: 0x3e00000 from 0xc1000000 (relocation range: 0xc0000000-0xf7bfdfff) [ 92.473333] ---[ end Kernel panic - not syncing: Fatal exception in interrupt [ 92.480458] sched: Unexpected reschedule of offline CPU#3! [ 92.485943] ------------[ cut here ]------------ [ 92.490563] WARNING: CPU: 2 PID: 19 at /srv/oe/build/tmp-rpb-glibc/work-shared/intel-core2-32/kernel-source/arch/x86/kernel/smp.c:128 native_smp_send_reschedule+0x33/0x40 [ 92.505752] Modules linked in: veth x86_pkg_temp_thermal fuse [ 92.511490] CPU: 2 PID: 19 Comm: ksoftirqd/2 Tainted: G D 4.14.68-rc1 #1 [ 92.519305] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.0b 07/27/2017 [ 92.526779] task: f5db8000 task.stack: f5db4000 [ 92.531303] EIP: native_smp_send_reschedule+0x33/0x40 [ 92.536355] EFLAGS: 00210086 CPU: 2 [ 92.539837] EAX: 0000002e EBX: 00000003 ECX: f61d9900 EDX: f61d2d34 [ 92.546095] ESI: f5d85500 EDI: f5d85500 EBP: f5db5b44 ESP: f5db5b3c [ 92.552352] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 92.557744] CR0: 80050033 CR2: c4fb1f64 CR3: 05dff000 CR4: 003406d0 [ 92.563998] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000 [ 92.570256] DR6: fffe0ff0 DR7: 00000400 [ 92.574087] Call Trace: [ 92.576534] resched_curr+0x59/0x180 [ 92.580112] check_preempt_curr+0x8d/0xb0 [ 92.584115] ttwu_do_wakeup+0x17/0x240 [ 92.587857] ? activate_task+0x52/0xc0 [ 92.591602] ttwu_do_activate+0x6c/0x90 [ 92.595433] try_to_wake_up+0x2ed/0x570 [ 92.599265] default_wake_function+0x10/0x20 [ 92.603536] autoremove_wake_function+0x14/0x40 [ 92.608059] __wake_up_common+0x68/0x110 [ 92.611978] __wake_up_common_lock+0x57/0x80 [ 92.616243] __wake_up+0x12/0x20 [ 92.619476] wake_up_klogd_work_func+0x3c/0x60 [ 92.623920] irq_work_run_list+0x38/0x60 [ 92.627836] irq_work_tick+0x31/0x40 [ 92.631408] update_process_times+0x3a/0x50 [ 92.635586] tick_sched_handle+0x40/0x60 [ 92.639511] tick_sched_timer+0x38/0x90 [ 92.643342] __hrtimer_run_queues+0xe0/0x490 [ 92.647606] ? tick_sched_do_timer+0x60/0x60 [ 92.651878] hrtimer_interrupt+0x8f/0x190 [ 92.655884] smp_apic_timer_interrupt+0x68/0x290 [ 92.660501] apic_timer_interrupt+0x3a/0x40 [ 92.664678] EIP: panic+0x186/0x1cc [ 92.668073] EFLAGS: 00200246 CPU: 2 [ 92.671558] EAX: c5ad3108 EBX: 00000000 ECX: f61d2d30 EDX: 00000000 [ 92.677815] ESI: 00000000 EDI: 00000000 EBP: f5db5d8c ESP: f5db5d78 [ 92.684072] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 92.689465] ? freeze_processes+0x3b/0xe0 [ 92.693477] oops_end+0xa3/0xb0 [ 92.696614] no_context+0xd9/0x200 [ 92.700010] ? tlb_table_flush.part.118+0x14/0x30 [ 92.704706] ? find_busiest_group+0x29/0x520 [ 92.708971] ? tlb_table_flush.part.118+0x14/0x30 [ 92.713668] __bad_area_nosemaphore+0xa4/0x130 [ 92.718107] bad_area_nosemaphore+0x12/0x20 [ 92.722284] __do_page_fault+0xb5/0x4b0 [ 92.726116] ? __lock_acquire+0x1fe/0x1130 [ 92.730213] ? tlb_table_flush.part.118+0x14/0x30 [ 92.734910] ? tlb_table_flush.part.118+0x14/0x30 [ 92.739607] do_page_fault+0x20/0x240 [ 92.743265] ? tlb_flush_mmu_free+0x50/0x50 [ 92.747442] ? tlb_table_flush.part.118+0x10/0x30 [ 92.752138] ? __do_page_fault+0x4b0/0x4b0 [ 92.756229] common_exception+0x7c/0x82 [ 92.760061] EIP: __call_rcu.constprop.76+0x27/0x4b0 [ 92.764930] EFLAGS: 00210246 CPU: 2 [ 92.768415] EAX: 00000000 EBX: c4fb17a0 ECX: c5c2d640 EDX: c4fb17a0 [ 92.774671] ESI: c4fb1f60 EDI: c4fb1f60 EBP: f5db5ee4 ESP: f5db5eb0 [ 92.780928] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 92.786320] ? tlb_flush_mmu_free+0x50/0x50 [ 92.790497] ? tlb_flush_mmu_free+0x50/0x50 [ 92.794674] ? tlb_table_flush.part.118+0x10/0x30 [ 92.799371] ? tlb_table_flush.part.118+0x10/0x30 [ 92.804069] ? __init_swait_queue_head+0x3b/0x40 [ 92.808686] ? __do_page_fault+0x4b0/0x4b0 [ 92.812778] ? rcu_process_callbacks+0x200/0xdd0 [ 92.817388] ? __lock_is_held+0x48/0x80 [ 92.821219] ? tlb_table_flush.part.118+0x10/0x30 [ 92.825916] call_rcu_sched+0x14/0x20 [ 92.829574] tlb_table_flush.part.118+0x1d/0x30 [ 92.834098] ? rcu_process_callbacks+0x254/0xdd0 [ 92.838715] ? finish_task_switch+0x87/0x1d0 [ 92.842981] __do_softirq+0xac/0x426 [ 92.846551] run_ksoftirqd+0x1f/0x60 [ 92.850122] smpboot_thread_fn+0x120/0x1d0 [ 92.854213] kthread+0xfa/0x110 [ 92.857359] ? sort_range+0x20/0x20 [ 92.860840] ? kthread_create_on_node+0x20/0x20 [ 92.865365] ret_from_fork+0x2e/0x38 [ 92.868938] Code: 0f a3 05 dc da ce c5 73 17 8b 0d 20 d6 ba c5 ba fd 00 00 00 ff 51 58 c9 c3 8d b4 26 00 00 00 00 50 68 e0 cc ac c5 e8 0a fa 07 00 <0f> 0b 58 5a c9 c3 8d b4 26 00 00 00 00 3e 8d 74 26 00 8b 15 f0 [ 92.887724] ---[ end trace df3b7c276e7f3927 ]---
Quoted 7 lines
Details for test full run,
4.14 run,
https://lkft.validation.linaro.org/scheduler/job/4047964.18.6-rc1 run,
https://lkft.validation.linaro.org/scheduler/job/404027#L3244
I have pushed out a -rc2 to hopefully fix this problem.
thanks,
greg k-h
Shuah Khan
maintainerQuoted 177 lines · Greg Kroah-Hartman
Quoted 176 lines · Naresh Kamboju
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.68 release. There are 165 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed Sep 5 16:56:19 UTC 2018. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.14.68-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-4.14.y
and the diffstat can be found below.thanks,
greg k-h
Running kselftest
selftests: bpf:test_tunnel.shreported kernel crash on i386 device running 4.14.68-rc1
and similar issue reported on 4.18.6-rc1.[ 92.244007] low stack detected by irq handler [ 92.244145] BUG: unable to handle kernel paging request at c4fb1f64 [ 92.244161] IP: __call_rcu.constprop.76+0x27/0x4b0 [ 92.244164] *pde = 35c05063 *pte = 04fb1161 [ 92.244172] Oops: 0003 [#1] SMP [ 92.244176] Modules linked in: veth x86_pkg_temp_thermal fuse [ 92.244187] CPU: 2 PID: 19 Comm: ksoftirqd/2 Not tainted 4.14.68-rc1 #1 [ 92.244190] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.0b 07/27/2017 [ 92.244192] task: f5db8000 task.stack: f5db4000 [ 92.244198] EIP: __call_rcu.constprop.76+0x27/0x4b0 [ 92.244201] EFLAGS: 00210246 CPU: 2 [ 92.244204] EAX: 00000000 EBX: c4fb17a0 ECX: c5c2d640 EDX: c4fb17a0 [ 92.244206] ESI: c4fb1f60 EDI: c4fb1f60 EBP: f5db5ee4 ESP: f5db5eb0 [ 92.244209] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 92.244212] CR0: 80050033 CR2: c4fb1f64 CR3: 05dff000 CR4: 003406d0 [ 92.244215] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000 [ 92.244216] DR6: fffe0ff0 DR7: 00000400 [ 92.244218] Call Trace: [ 92.244228] ? rcu_process_callbacks+0x200/0xdd0 [ 92.244234] ? __lock_is_held+0x48/0x80 [ 92.244242] ? tlb_table_flush.part.118+0x10/0x30 [ 92.244248] call_rcu_sched+0x14/0x20 [ 92.244252] tlb_table_flush.part.118+0x1d/0x30 [ 92.244257] ? rcu_process_callbacks+0x254/0xdd0 [ 92.244264] ? finish_task_switch+0x87/0x1d0 [ 92.244276] __do_softirq+0xac/0x426 [ 92.244288] run_ksoftirqd+0x1f/0x60 [ 92.244295] smpboot_thread_fn+0x120/0x1d0 [ 92.244300] kthread+0xfa/0x110 [ 92.244305] ? sort_range+0x20/0x20 [ 92.244310] ? kthread_create_on_node+0x20/0x20 [ 92.244316] ret_from_fork+0x2e/0x38 [ 92.244325] Code: 00 00 00 00 3e 8d 74 26 00 55 89 e5 57 56 53 89 c6 89 d3 83 ec 28 8b 45 08 f7 c6 03 00 00 00 89 4d ec 89 45 e4 0f 85 39 03 00 00 <89> 5e 04 c7 06 00 00 00 00 9c 8f 45 f0 fa e8 66 69 fd ff 8b 55 [ 92.244413] EIP: __call_rcu.constprop.76+0x27/0x4b0 SS:ESP: 0068:f5db5eb0 [ 92.244415] CR2: 00000000c4fb1f64 [ 92.244425] ---[ end trace df3b7c276e7f3926 ]--- [ 92.244427] Kernel panic - not syncing: Fatal exception in interrupt [ 92.432150] CPU: 0 PID: 2388 Comm: named Tainted: G D 4.14.68-rc1 #1 [ 92.439620] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.0b 07/27/2017 [ 92.447090] Call Trace: [ 92.449535] <IRQ> [ 92.451547] dump_stack+0x66/0x92 [ 92.454865] print_stack_overflow+0x17/0x30 [ 92.459052] call_on_stack+0x45/0x50 [ 92.462628] </IRQ> [ 92.464730] Kernel Offset: 0x3e00000 from 0xc1000000 (relocation range: 0xc0000000-0xf7bfdfff) [ 92.473333] ---[ end Kernel panic - not syncing: Fatal exception in interrupt [ 92.480458] sched: Unexpected reschedule of offline CPU#3! [ 92.485943] ------------[ cut here ]------------ [ 92.490563] WARNING: CPU: 2 PID: 19 at /srv/oe/build/tmp-rpb-glibc/work-shared/intel-core2-32/kernel-source/arch/x86/kernel/smp.c:128 native_smp_send_reschedule+0x33/0x40 [ 92.505752] Modules linked in: veth x86_pkg_temp_thermal fuse [ 92.511490] CPU: 2 PID: 19 Comm: ksoftirqd/2 Tainted: G D 4.14.68-rc1 #1 [ 92.519305] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.0b 07/27/2017 [ 92.526779] task: f5db8000 task.stack: f5db4000 [ 92.531303] EIP: native_smp_send_reschedule+0x33/0x40 [ 92.536355] EFLAGS: 00210086 CPU: 2 [ 92.539837] EAX: 0000002e EBX: 00000003 ECX: f61d9900 EDX: f61d2d34 [ 92.546095] ESI: f5d85500 EDI: f5d85500 EBP: f5db5b44 ESP: f5db5b3c [ 92.552352] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 92.557744] CR0: 80050033 CR2: c4fb1f64 CR3: 05dff000 CR4: 003406d0 [ 92.563998] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000 [ 92.570256] DR6: fffe0ff0 DR7: 00000400 [ 92.574087] Call Trace: [ 92.576534] resched_curr+0x59/0x180 [ 92.580112] check_preempt_curr+0x8d/0xb0 [ 92.584115] ttwu_do_wakeup+0x17/0x240 [ 92.587857] ? activate_task+0x52/0xc0 [ 92.591602] ttwu_do_activate+0x6c/0x90 [ 92.595433] try_to_wake_up+0x2ed/0x570 [ 92.599265] default_wake_function+0x10/0x20 [ 92.603536] autoremove_wake_function+0x14/0x40 [ 92.608059] __wake_up_common+0x68/0x110 [ 92.611978] __wake_up_common_lock+0x57/0x80 [ 92.616243] __wake_up+0x12/0x20 [ 92.619476] wake_up_klogd_work_func+0x3c/0x60 [ 92.623920] irq_work_run_list+0x38/0x60 [ 92.627836] irq_work_tick+0x31/0x40 [ 92.631408] update_process_times+0x3a/0x50 [ 92.635586] tick_sched_handle+0x40/0x60 [ 92.639511] tick_sched_timer+0x38/0x90 [ 92.643342] __hrtimer_run_queues+0xe0/0x490 [ 92.647606] ? tick_sched_do_timer+0x60/0x60 [ 92.651878] hrtimer_interrupt+0x8f/0x190 [ 92.655884] smp_apic_timer_interrupt+0x68/0x290 [ 92.660501] apic_timer_interrupt+0x3a/0x40 [ 92.664678] EIP: panic+0x186/0x1cc [ 92.668073] EFLAGS: 00200246 CPU: 2 [ 92.671558] EAX: c5ad3108 EBX: 00000000 ECX: f61d2d30 EDX: 00000000 [ 92.677815] ESI: 00000000 EDI: 00000000 EBP: f5db5d8c ESP: f5db5d78 [ 92.684072] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 92.689465] ? freeze_processes+0x3b/0xe0 [ 92.693477] oops_end+0xa3/0xb0 [ 92.696614] no_context+0xd9/0x200 [ 92.700010] ? tlb_table_flush.part.118+0x14/0x30 [ 92.704706] ? find_busiest_group+0x29/0x520 [ 92.708971] ? tlb_table_flush.part.118+0x14/0x30 [ 92.713668] __bad_area_nosemaphore+0xa4/0x130 [ 92.718107] bad_area_nosemaphore+0x12/0x20 [ 92.722284] __do_page_fault+0xb5/0x4b0 [ 92.726116] ? __lock_acquire+0x1fe/0x1130 [ 92.730213] ? tlb_table_flush.part.118+0x14/0x30 [ 92.734910] ? tlb_table_flush.part.118+0x14/0x30 [ 92.739607] do_page_fault+0x20/0x240 [ 92.743265] ? tlb_flush_mmu_free+0x50/0x50 [ 92.747442] ? tlb_table_flush.part.118+0x10/0x30 [ 92.752138] ? __do_page_fault+0x4b0/0x4b0 [ 92.756229] common_exception+0x7c/0x82 [ 92.760061] EIP: __call_rcu.constprop.76+0x27/0x4b0 [ 92.764930] EFLAGS: 00210246 CPU: 2 [ 92.768415] EAX: 00000000 EBX: c4fb17a0 ECX: c5c2d640 EDX: c4fb17a0 [ 92.774671] ESI: c4fb1f60 EDI: c4fb1f60 EBP: f5db5ee4 ESP: f5db5eb0 [ 92.780928] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 92.786320] ? tlb_flush_mmu_free+0x50/0x50 [ 92.790497] ? tlb_flush_mmu_free+0x50/0x50 [ 92.794674] ? tlb_table_flush.part.118+0x10/0x30 [ 92.799371] ? tlb_table_flush.part.118+0x10/0x30 [ 92.804069] ? __init_swait_queue_head+0x3b/0x40 [ 92.808686] ? __do_page_fault+0x4b0/0x4b0 [ 92.812778] ? rcu_process_callbacks+0x200/0xdd0 [ 92.817388] ? __lock_is_held+0x48/0x80 [ 92.821219] ? tlb_table_flush.part.118+0x10/0x30 [ 92.825916] call_rcu_sched+0x14/0x20 [ 92.829574] tlb_table_flush.part.118+0x1d/0x30 [ 92.834098] ? rcu_process_callbacks+0x254/0xdd0 [ 92.838715] ? finish_task_switch+0x87/0x1d0 [ 92.842981] __do_softirq+0xac/0x426 [ 92.846551] run_ksoftirqd+0x1f/0x60 [ 92.850122] smpboot_thread_fn+0x120/0x1d0 [ 92.854213] kthread+0xfa/0x110 [ 92.857359] ? sort_range+0x20/0x20 [ 92.860840] ? kthread_create_on_node+0x20/0x20 [ 92.865365] ret_from_fork+0x2e/0x38 [ 92.868938] Code: 0f a3 05 dc da ce c5 73 17 8b 0d 20 d6 ba c5 ba fd 00 00 00 ff 51 58 c9 c3 8d b4 26 00 00 00 00 50 68 e0 cc ac c5 e8 0a fa 07 00 <0f> 0b 58 5a c9 c3 8d b4 26 00 00 00 00 3e 8d 74 26 00 8b 15 f0 [ 92.887724] ---[ end trace df3b7c276e7f3927 ]---Details for test full run,
Quoted 8 lines
Quoted 5 lines
4.14 run,
https://lkft.validation.linaro.org/scheduler/job/4047964.18.6-rc1 run,
https://lkft.validation.linaro.org/scheduler/job/404027#L3244I have pushed out a -rc2 to hopefully fix this problem.
This does fix the problem. rc1 didn't boot on my test system.
rc2 compiled and booted. No dmesg regressions.
thanks,
-- Shuah
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.68 release. There are 165 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed Sep 5 16:56:19 UTC 2018. Anything received after that time might be too late.
Build results:
total: 150 pass: 150 fail: 0 Qemu test results: total: 311 pass: 311 fail: 0
Details are available at https://kerneltests.org/builders/.
Guenter
Greg Kroah-Hartman
maintainerQuoted 184 lines · Shuah Khan
Quoted 183 lines · Greg Kroah-Hartman
Quoted 181 lines · Naresh Kamboju
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.68 release. There are 165 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed Sep 5 16:56:19 UTC 2018. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.14.68-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-4.14.y
and the diffstat can be found below.thanks,
greg k-h
Running kselftest
selftests: bpf:test_tunnel.shreported kernel crash on i386 device running 4.14.68-rc1
and similar issue reported on 4.18.6-rc1.[ 92.244007] low stack detected by irq handler [ 92.244145] BUG: unable to handle kernel paging request at c4fb1f64 [ 92.244161] IP: __call_rcu.constprop.76+0x27/0x4b0 [ 92.244164] *pde = 35c05063 *pte = 04fb1161 [ 92.244172] Oops: 0003 [#1] SMP [ 92.244176] Modules linked in: veth x86_pkg_temp_thermal fuse [ 92.244187] CPU: 2 PID: 19 Comm: ksoftirqd/2 Not tainted 4.14.68-rc1 #1 [ 92.244190] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.0b 07/27/2017 [ 92.244192] task: f5db8000 task.stack: f5db4000 [ 92.244198] EIP: __call_rcu.constprop.76+0x27/0x4b0 [ 92.244201] EFLAGS: 00210246 CPU: 2 [ 92.244204] EAX: 00000000 EBX: c4fb17a0 ECX: c5c2d640 EDX: c4fb17a0 [ 92.244206] ESI: c4fb1f60 EDI: c4fb1f60 EBP: f5db5ee4 ESP: f5db5eb0 [ 92.244209] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 92.244212] CR0: 80050033 CR2: c4fb1f64 CR3: 05dff000 CR4: 003406d0 [ 92.244215] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000 [ 92.244216] DR6: fffe0ff0 DR7: 00000400 [ 92.244218] Call Trace: [ 92.244228] ? rcu_process_callbacks+0x200/0xdd0 [ 92.244234] ? __lock_is_held+0x48/0x80 [ 92.244242] ? tlb_table_flush.part.118+0x10/0x30 [ 92.244248] call_rcu_sched+0x14/0x20 [ 92.244252] tlb_table_flush.part.118+0x1d/0x30 [ 92.244257] ? rcu_process_callbacks+0x254/0xdd0 [ 92.244264] ? finish_task_switch+0x87/0x1d0 [ 92.244276] __do_softirq+0xac/0x426 [ 92.244288] run_ksoftirqd+0x1f/0x60 [ 92.244295] smpboot_thread_fn+0x120/0x1d0 [ 92.244300] kthread+0xfa/0x110 [ 92.244305] ? sort_range+0x20/0x20 [ 92.244310] ? kthread_create_on_node+0x20/0x20 [ 92.244316] ret_from_fork+0x2e/0x38 [ 92.244325] Code: 00 00 00 00 3e 8d 74 26 00 55 89 e5 57 56 53 89 c6 89 d3 83 ec 28 8b 45 08 f7 c6 03 00 00 00 89 4d ec 89 45 e4 0f 85 39 03 00 00 <89> 5e 04 c7 06 00 00 00 00 9c 8f 45 f0 fa e8 66 69 fd ff 8b 55 [ 92.244413] EIP: __call_rcu.constprop.76+0x27/0x4b0 SS:ESP: 0068:f5db5eb0 [ 92.244415] CR2: 00000000c4fb1f64 [ 92.244425] ---[ end trace df3b7c276e7f3926 ]--- [ 92.244427] Kernel panic - not syncing: Fatal exception in interrupt [ 92.432150] CPU: 0 PID: 2388 Comm: named Tainted: G D 4.14.68-rc1 #1 [ 92.439620] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.0b 07/27/2017 [ 92.447090] Call Trace: [ 92.449535] <IRQ> [ 92.451547] dump_stack+0x66/0x92 [ 92.454865] print_stack_overflow+0x17/0x30 [ 92.459052] call_on_stack+0x45/0x50 [ 92.462628] </IRQ> [ 92.464730] Kernel Offset: 0x3e00000 from 0xc1000000 (relocation range: 0xc0000000-0xf7bfdfff) [ 92.473333] ---[ end Kernel panic - not syncing: Fatal exception in interrupt [ 92.480458] sched: Unexpected reschedule of offline CPU#3! [ 92.485943] ------------[ cut here ]------------ [ 92.490563] WARNING: CPU: 2 PID: 19 at /srv/oe/build/tmp-rpb-glibc/work-shared/intel-core2-32/kernel-source/arch/x86/kernel/smp.c:128 native_smp_send_reschedule+0x33/0x40 [ 92.505752] Modules linked in: veth x86_pkg_temp_thermal fuse [ 92.511490] CPU: 2 PID: 19 Comm: ksoftirqd/2 Tainted: G D 4.14.68-rc1 #1 [ 92.519305] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.0b 07/27/2017 [ 92.526779] task: f5db8000 task.stack: f5db4000 [ 92.531303] EIP: native_smp_send_reschedule+0x33/0x40 [ 92.536355] EFLAGS: 00210086 CPU: 2 [ 92.539837] EAX: 0000002e EBX: 00000003 ECX: f61d9900 EDX: f61d2d34 [ 92.546095] ESI: f5d85500 EDI: f5d85500 EBP: f5db5b44 ESP: f5db5b3c [ 92.552352] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 92.557744] CR0: 80050033 CR2: c4fb1f64 CR3: 05dff000 CR4: 003406d0 [ 92.563998] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000 [ 92.570256] DR6: fffe0ff0 DR7: 00000400 [ 92.574087] Call Trace: [ 92.576534] resched_curr+0x59/0x180 [ 92.580112] check_preempt_curr+0x8d/0xb0 [ 92.584115] ttwu_do_wakeup+0x17/0x240 [ 92.587857] ? activate_task+0x52/0xc0 [ 92.591602] ttwu_do_activate+0x6c/0x90 [ 92.595433] try_to_wake_up+0x2ed/0x570 [ 92.599265] default_wake_function+0x10/0x20 [ 92.603536] autoremove_wake_function+0x14/0x40 [ 92.608059] __wake_up_common+0x68/0x110 [ 92.611978] __wake_up_common_lock+0x57/0x80 [ 92.616243] __wake_up+0x12/0x20 [ 92.619476] wake_up_klogd_work_func+0x3c/0x60 [ 92.623920] irq_work_run_list+0x38/0x60 [ 92.627836] irq_work_tick+0x31/0x40 [ 92.631408] update_process_times+0x3a/0x50 [ 92.635586] tick_sched_handle+0x40/0x60 [ 92.639511] tick_sched_timer+0x38/0x90 [ 92.643342] __hrtimer_run_queues+0xe0/0x490 [ 92.647606] ? tick_sched_do_timer+0x60/0x60 [ 92.651878] hrtimer_interrupt+0x8f/0x190 [ 92.655884] smp_apic_timer_interrupt+0x68/0x290 [ 92.660501] apic_timer_interrupt+0x3a/0x40 [ 92.664678] EIP: panic+0x186/0x1cc [ 92.668073] EFLAGS: 00200246 CPU: 2 [ 92.671558] EAX: c5ad3108 EBX: 00000000 ECX: f61d2d30 EDX: 00000000 [ 92.677815] ESI: 00000000 EDI: 00000000 EBP: f5db5d8c ESP: f5db5d78 [ 92.684072] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 92.689465] ? freeze_processes+0x3b/0xe0 [ 92.693477] oops_end+0xa3/0xb0 [ 92.696614] no_context+0xd9/0x200 [ 92.700010] ? tlb_table_flush.part.118+0x14/0x30 [ 92.704706] ? find_busiest_group+0x29/0x520 [ 92.708971] ? tlb_table_flush.part.118+0x14/0x30 [ 92.713668] __bad_area_nosemaphore+0xa4/0x130 [ 92.718107] bad_area_nosemaphore+0x12/0x20 [ 92.722284] __do_page_fault+0xb5/0x4b0 [ 92.726116] ? __lock_acquire+0x1fe/0x1130 [ 92.730213] ? tlb_table_flush.part.118+0x14/0x30 [ 92.734910] ? tlb_table_flush.part.118+0x14/0x30 [ 92.739607] do_page_fault+0x20/0x240 [ 92.743265] ? tlb_flush_mmu_free+0x50/0x50 [ 92.747442] ? tlb_table_flush.part.118+0x10/0x30 [ 92.752138] ? __do_page_fault+0x4b0/0x4b0 [ 92.756229] common_exception+0x7c/0x82 [ 92.760061] EIP: __call_rcu.constprop.76+0x27/0x4b0 [ 92.764930] EFLAGS: 00210246 CPU: 2 [ 92.768415] EAX: 00000000 EBX: c4fb17a0 ECX: c5c2d640 EDX: c4fb17a0 [ 92.774671] ESI: c4fb1f60 EDI: c4fb1f60 EBP: f5db5ee4 ESP: f5db5eb0 [ 92.780928] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 [ 92.786320] ? tlb_flush_mmu_free+0x50/0x50 [ 92.790497] ? tlb_flush_mmu_free+0x50/0x50 [ 92.794674] ? tlb_table_flush.part.118+0x10/0x30 [ 92.799371] ? tlb_table_flush.part.118+0x10/0x30 [ 92.804069] ? __init_swait_queue_head+0x3b/0x40 [ 92.808686] ? __do_page_fault+0x4b0/0x4b0 [ 92.812778] ? rcu_process_callbacks+0x200/0xdd0 [ 92.817388] ? __lock_is_held+0x48/0x80 [ 92.821219] ? tlb_table_flush.part.118+0x10/0x30 [ 92.825916] call_rcu_sched+0x14/0x20 [ 92.829574] tlb_table_flush.part.118+0x1d/0x30 [ 92.834098] ? rcu_process_callbacks+0x254/0xdd0 [ 92.838715] ? finish_task_switch+0x87/0x1d0 [ 92.842981] __do_softirq+0xac/0x426 [ 92.846551] run_ksoftirqd+0x1f/0x60 [ 92.850122] smpboot_thread_fn+0x120/0x1d0 [ 92.854213] kthread+0xfa/0x110 [ 92.857359] ? sort_range+0x20/0x20 [ 92.860840] ? kthread_create_on_node+0x20/0x20 [ 92.865365] ret_from_fork+0x2e/0x38 [ 92.868938] Code: 0f a3 05 dc da ce c5 73 17 8b 0d 20 d6 ba c5 ba fd 00 00 00 ff 51 58 c9 c3 8d b4 26 00 00 00 00 50 68 e0 cc ac c5 e8 0a fa 07 00 <0f> 0b 58 5a c9 c3 8d b4 26 00 00 00 00 3e 8d 74 26 00 8b 15 f0 [ 92.887724] ---[ end trace df3b7c276e7f3927 ]---Details for test full run,
4.14 run,
https://lkft.validation.linaro.org/scheduler/job/4047964.18.6-rc1 run,
https://lkft.validation.linaro.org/scheduler/job/404027#L3244
Quoted 6 lines
Quoted 2 lines
I have pushed out a -rc2 to hopefully fix this problem.
This does fix the problem. rc1 didn't boot on my test system.
rc2 compiled and booted. No dmesg regressions.
That's great! Thanks for testing all of these and letting me know.
greg k-h
Quoted 1 line
I have pushed out a -rc2 to hopefully fix this problem.
4.14.68-rc2 results looks good.
Results from Linaro’s test farm.
No regressions on arm64, arm and x86_64.
Summary
------------------------------------------------------------------------
kernel: 4.14.68-rc2
git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git branch: linux-4.14.y
git commit: e2d662d77f7aace50c2647cb7439acc9a97b1b70
git describe: v4.14.67-167-ge2d662d77f7a
Test details: https://qa-reports.linaro.org/lkft/linux-stable-rc-4.14-oe/build/v4.14.67-167-ge2d662d77f7a
No regressions (compared to build v4.14.67)
Ran 21181 total tests in the following environments and test suites.
Environments
--------------
- dragonboard-410c - arm64
- hi6220-hikey - arm64
- i386
- juno-r2 - arm64
- qemu_arm
- qemu_arm64
- qemu_i386
- qemu_x86_64
- x15 - arm
- x86_64
Test Suites
-----------
* boot
* kselftest
* libhugetlbfs
* ltp-cap_bounds-tests
* ltp-containers-tests
* ltp-cve-tests
* ltp-filecaps-tests
* ltp-fs-tests
* ltp-fs_bind-tests
* ltp-fs_perms_simple-tests
* ltp-fsx-tests
* ltp-hugetlb-tests
* ltp-io-tests
* ltp-ipc-tests
* ltp-nptl-tests
* ltp-pty-tests
* ltp-sched-tests
* ltp-securebits-tests
* ltp-syscalls-tests
* ltp-timers-tests
* ltp-fcntl-locktests-tests
* ltp-math-tests
* ltp-open-posix-tests
* kselftest-vsyscall-mode-native
* kselftest-vsyscall-mode-none
Signature · 2 lines
Linaro LKFT https://lkft.linaro.org
Quoted 4 lines
thanks,
greg k-h
Re: [PATCH 4.14 114/165] x86/vdso: Fix vDSO build if a retpoline is emitted
In reply to Greg Kroah-HartmanHi Greg and others,
sorry for reporting this so late, but still...
this breaks build on older compilers, since it requires -mindirect-branch=thunk-inline -mindirect-branch-register even though retpoline support is disabled in kernel config.. is this expected?
BR
nik
Quoted 81 lines · Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know.
------------------
From: Andy Lutomirski <[email protected]>
commit
2e549b2ee0e358bc758480e716b881f9cabedb6aupstream.Currently, if the vDSO ends up containing an indirect branch or call, GCC will emit the "external thunk" style of retpoline, and it will fail to link.
Fix it by building the vDSO with inline retpoline thunks.
I haven't seen any reports of this triggering on an unpatched kernel.
Fixes commit 76b043848fd2 ("x86/retpoline: Add initial retpoline support")Signed-off-by Andy Lutomirski <[email protected]>Signed-off-by Thomas Gleixner <[email protected]>Acked-by Matt Rickard <[email protected]>Cc Borislav Petkov <[email protected]>Cc Jason Vas Dias <[email protected]>Cc David Woodhouse <[email protected]>Cc Peter Zijlstra <[email protected]>Cc Andi Kleen <[email protected]>Link https://lkml.kernel.org/r/c76538cd3afbe19c6246c2d1715bc6a60bd63985.1534448381.git.luto@kernel.org open hereSigned-off-by Greg Kroah-Hartman <[email protected]>--- Makefile | 4 ++++ arch/x86/entry/vdso/Makefile | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-)Makefile +4
-0@@ -490,9 +490,13 @@ KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG endif RETPOLINE_CFLAGS_GCC := -mindirect-branch=thunk-extern -mindirect-branch-register +RETPOLINE_VDSO_CFLAGS_GCC := -mindirect-branch=thunk-inline -mindirect-branch-register RETPOLINE_CFLAGS_CLANG := -mretpoline-external-thunk +RETPOLINE_VDSO_CFLAGS_CLANG := -mretpoline RETPOLINE_CFLAGS := $(call cc-option,$(RETPOLINE_CFLAGS_GCC),$(call cc-option,$(RETPOLINE_CFLAGS_CLANG))) +RETPOLINE_VDSO_CFLAGS := $(call cc-option,$(RETPOLINE_VDSO_CFLAGS_GCC),$(call cc-option,$(RETPOLINE_VDSO_CFLAGS_CLANG))) export RETPOLINE_CFLAGS +export RETPOLINE_VDSO_CFLAGS ifeq ($(config-targets),1) # ===========================================================================arch/x86/entry/vdso/Makefile +4
-2@@ -74,9 +74,9 @@ $(obj)/vdso-image-%.c: $(obj)/vdso%.so.d CFL := $(PROFILING) -mcmodel=small -fPIC -O2 -fasynchronous-unwind-tables -m64 \ $(filter -g%,$(KBUILD_CFLAGS)) $(call cc-option, -fno-stack-protector) \ -fno-omit-frame-pointer -foptimize-sibling-calls \ - -DDISABLE_BRANCH_PROFILING -DBUILD_VDSO + -DDISABLE_BRANCH_PROFILING -DBUILD_VDSO $(RETPOLINE_VDSO_CFLAGS) -$(vobjs): KBUILD_CFLAGS := $(filter-out $(GCC_PLUGINS_CFLAGS),$(KBUILD_CFLAGS)) $(CFL) +$(vobjs): KBUILD_CFLAGS := $(filter-out $(GCC_PLUGINS_CFLAGS) $(RETPOLINE_CFLAGS),$(KBUILD_CFLAGS)) $(CFL) # # vDSO code runs in userspace and -pg doesn't help with profiling anyway.@@ -147,11 +147,13 @@ KBUILD_CFLAGS_32 := $(filter-out -mcmode KBUILD_CFLAGS_32 := $(filter-out -fno-pic,$(KBUILD_CFLAGS_32)) KBUILD_CFLAGS_32 := $(filter-out -mfentry,$(KBUILD_CFLAGS_32)) KBUILD_CFLAGS_32 := $(filter-out $(GCC_PLUGINS_CFLAGS),$(KBUILD_CFLAGS_32)) +KBUILD_CFLAGS_32 := $(filter-out $(RETPOLINE_CFLAGS),$(KBUILD_CFLAGS_32)) KBUILD_CFLAGS_32 += -m32 -msoft-float -mregparm=0 -fpic KBUILD_CFLAGS_32 += $(call cc-option, -fno-stack-protector) KBUILD_CFLAGS_32 += $(call cc-option, -foptimize-sibling-calls) KBUILD_CFLAGS_32 += -fno-omit-frame-pointer KBUILD_CFLAGS_32 += -DDISABLE_BRANCH_PROFILING +KBUILD_CFLAGS_32 += $(RETPOLINE_VDSO_CFLAGS) $(obj)/vdso32.so.dbg: KBUILD_CFLAGS = $(KBUILD_CFLAGS_32) $(obj)/vdso32.so.dbg: FORCE \
Signature · 13 lines
------------------------------------- Ing. Nikola CIPRICH LinuxBox.cz, s.r.o. 28.rijna 168, 709 00 Ostrava tel.: +420 591 166 214 fax: +420 596 621 273 mobil: +420 777 093 799 www.linuxbox.cz mobil servis: +420 737 238 656 email servis: [email protected] -------------------------------------
Greg Kroah-Hartman
maintainerRe: [PATCH 4.14 114/165] x86/vdso: Fix vDSO build if a retpoline is emitted
Quoted 7 lines · Nikola Ciprich
Hi Greg and others,
sorry for reporting this so late, but still...
this breaks build on older compilers, since it requires -mindirect-branch=thunk-inline -mindirect-branch-register even though retpoline support is disabled in kernel config.. is this expected?
What exact "older compilers" break here?
And does the same breakage happen in 4.18.6 or 4.19-rc?
thanks,
greg k-h
Re: [PATCH 4.14 114/165] x86/vdso: Fix vDSO build if a retpoline is emitted
RHEL / centos 6:
gcc-4.4.7
will check newer kernels too..
thanks
n.
Quoted 17 lines · Greg Kroah-Hartman
Quoted 7 lines · Nikola Ciprich
Hi Greg and others,
sorry for reporting this so late, but still...
this breaks build on older compilers, since it requires -mindirect-branch=thunk-inline -mindirect-branch-register even though retpoline support is disabled in kernel config.. is this expected?
What exact "older compilers" break here?
And does the same breakage happen in 4.18.6 or 4.19-rc?
thanks,
greg k-h
Signature · 13 lines
------------------------------------- Ing. Nikola CIPRICH LinuxBox.cz, s.r.o. 28.rijna 168, 709 00 Ostrava tel.: +420 591 166 214 fax: +420 596 621 273 mobil: +420 777 093 799 www.linuxbox.cz mobil servis: +420 737 238 656 email servis: [email protected] -------------------------------------
Re: [PATCH 4.14 114/165] x86/vdso: Fix vDSO build if a retpoline is emitted
Quoted 5 lines · Nikola Ciprich
RHEL / centos 6:
gcc-4.4.7
will check newer kernels too..
We upped the gcc minimal version in newer kernels to 4.6, so 4.4 wont work at all.
Thanks,
tglx
Re: [PATCH 4.14 114/165] x86/vdso: Fix vDSO build if a retpoline is emitted
In reply to Nikola CiprichQuoted 9 lines · Nikola Ciprich
Hi Greg and others,
sorry for reporting this so late, but still...
this breaks build on older compilers, since it requires -mindirect-branch=thunk-inline -mindirect-branch-register even though retpoline support is disabled in kernel config.. is this expected?
Nope, my patch was buggy. Can you test the fix I just sent?
Re: [PATCH 4.14 114/165] x86/vdso: Fix vDSO build if a retpoline is emitted
Hi Andy,
yes, it indeed does fix the problem.
Thanks!
nik
Quoted 14 lines · Andy Lutomirski
Quoted 9 lines · Nikola Ciprich
Hi Greg and others,
sorry for reporting this so late, but still...
this breaks build on older compilers, since it requires -mindirect-branch=thunk-inline -mindirect-branch-register even though retpoline support is disabled in kernel config.. is this expected?
Nope, my patch was buggy. Can you test the fix I just sent?
Signature · 13 lines
------------------------------------- Ing. Nikola CIPRICH LinuxBox.cz, s.r.o. 28.rijna 168, 709 00 Ostrava tel.: +420 591 166 214 fax: +420 596 621 273 mobil: +420 777 093 799 www.linuxbox.cz mobil servis: +420 737 238 656 email servis: [email protected] -------------------------------------