Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3143737pxa; Tue, 25 Aug 2020 12:38:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfdn2UP6eRcYonSafig6LP+YLOrlV8xa7evVGUCym4Zle1S0t/U/6vMkoXlYRDasGcCSdG X-Received: by 2002:a50:9fe9:: with SMTP id c96mr6818638edf.327.1598384299272; Tue, 25 Aug 2020 12:38:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598384299; cv=none; d=google.com; s=arc-20160816; b=ZRUu2yelcSQiLPVcuYtU6Gt18F2l8PLyQyZ/VzzPMPRfbJxrgxwOTC26cEixymhBaY dJJqBwaBhRihQk6KSkuw1PnEnhFkHgXhointMP3w2YxNUBmabOwxRiftD5tBb+vIbowd eRjnSSgDfFG7SnvTDaIRKw0ghKehWrCwy9dKqd4x027if8yDBXEMwTPbLTe/UHo9jYtU eJ+CvXb8TdgRaY1SCZF3ZM1h1kb9VUj3/EDZVZZhlkrnj+wSB5Oc7+wmORlDIMyLhqjk J9hMmIrS93FjALna8lIAdkOY7f5i8FV2XLm1/GHfQD0SlwbUFU2AW0q3JmBfn0gzNu3A 1h1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature; bh=BQ4KIMH6bpVBil/lNaFIbPRlFtnPXVOZm83SMiDhoQI=; b=bJh1DwJl3RKGJp7NHUKkdl8zSun5kIcVNglzCBWCeoED/FHoBH6RvDriv1fj1HXIyO MJooaIwxoJ9KHZq+/78N5QYVLUjElxWg+hhP05A98Bv555Pp7knSbxNdJuFpCCZ3Y2bB YhwVFaDOcw1bU53+jAkhnYUA7si84NO/Kwgdekc45B4CA/om5CDa84QDHhx0UD/wssYO NCMMGWZ7jFnjCjC79D4jC1UjGBClxb4JcJED4S7cQuoy7DFkaNYJaHClIu3g5ttmmUgF no+OyfN0MV0CDRIyAIL8af0SxFo3AdIo2j/XQnmth7Q1GwDiUoSwBhCzgO3LVNF/CV6X /ZQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="rVw7/Nyu"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u1si9524526edd.388.2020.08.25.12.37.56; Tue, 25 Aug 2020 12:38:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="rVw7/Nyu"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726570AbgHYTec (ORCPT + 99 others); Tue, 25 Aug 2020 15:34:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbgHYTeb (ORCPT ); Tue, 25 Aug 2020 15:34:31 -0400 Received: from mail-vk1-xa41.google.com (mail-vk1-xa41.google.com [IPv6:2607:f8b0:4864:20::a41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44ADBC061574 for ; Tue, 25 Aug 2020 12:34:31 -0700 (PDT) Received: by mail-vk1-xa41.google.com with SMTP id m12so9815vko.5 for ; Tue, 25 Aug 2020 12:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=BQ4KIMH6bpVBil/lNaFIbPRlFtnPXVOZm83SMiDhoQI=; b=rVw7/NyuusmnircLWvIRovIMZ5uyp6WV2j/YnD+0ZfJ+KPPV6B5HJUi3KcdCe6x3V0 /I4+iGyQFnD2LWz7ZXL4rDGJ4qdh8AilsSloCqAtC7+PXvjRF4z/uMOk5yIto2XaOVbC lBCm0qcSzVxGSW+cRpXrD1fFnuZfhaKQoDY/4n+HzhHn/3bqRj6JgTWtgFYPUfXH3LC/ LraS/Bo7F3qyqeq2F6WMVHyotaOf2vXvjBL4+OO9q7OmCPSoY1Knr9J+PfMfMeBYQlDd kvPO8w7cOCF4ieOpUjGGef7K2t8nKD7x/CxANINL/KBDO566VkvGFIhh3sE5UPU3bsB2 aSAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=BQ4KIMH6bpVBil/lNaFIbPRlFtnPXVOZm83SMiDhoQI=; b=JzOa6XYGf8ebBQvSBCEokh6vBWiC9vsZMoIUkkyMA8nsTqAp6pfI6QO6JJGtq1SLGr 3dzehknjfjVmTZT+i7EYOitVMiQTD2TQ1sgI+f4qFOXlpyyjkSKcqwzWT2zvcCTgCcKf Owz/spMmJFNscGChqb8iQyJ6HDIroP3wPqMpFkUfdsB9+vKbLaJP++2qyfL3HOHP1zso YjVHxH+C+idae5qpvdcHMfLDG3NtXnb9iCRi79zFPnch5TAXAudSw2E5ROkbGUT5Py6L JU0SFG5J+qVtNZLQceTTSFvwbjoPzTlqE32HX93uIsV9xs0LtdPJsX50UjVn0zGkHVRz eEig== X-Gm-Message-State: AOAM530iZA7x/CDHjj165TNUbU5upXiOv7USwyNxKqQMYKx1TL+dvaL9 kEM5Ve3k1cBORSD/3Lf6PoGM5o2pidq101s7mYnagg== X-Received: by 2002:a1f:eac1:: with SMTP id i184mr7128999vkh.66.1598384067827; Tue, 25 Aug 2020 12:34:27 -0700 (PDT) MIME-Version: 1.0 From: Naresh Kamboju Date: Wed, 26 Aug 2020 01:04:16 +0530 Message-ID: Subject: WARNING: at kernel/trace/ftrace.c:2425 ftrace_get_addr_new To: X86 ML , open list , lkft-triage@lists.linaro.org, LTP List Cc: Steven Rostedt , Masami Hiramatsu , Masami Hiramatsu , Leo Yan , Ingo Molnar , Sean Paul , Sami Tolvanen , masahiroy@kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While running LTP tracing tests on qemu_i386 running mainline linux master branch kernel the kernel warning continuously popped up on console. metadata: git branch: master git repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git commit: 6a9dc5fd6170d0a41c8a14eb19e63d94bea5705a git describe: v5.9-rc2-42-g6a9dc5fd6170 make_kernelversion: 5.9.0-rc2 kernel-config: https://builds.tuxbuild.com/xpCK22s8vIl8tmDm4G8wVw/kernel.config steps to reproduce: # Boot qemu i386 with trace configs enabled. # cd /opt/ltp # ./runltp -f tracing ftrace-stress-test 1 TINFO: killing 694 /opt/ltp/testcases/bin/ftrace_stress_test.sh: line 73: 694 Killed sh ftrace_${target}.sh ftrace-stress-test 1 TINFO: Finished running the test. Run dmesg to double-check for bugs [ 151.266804] ------------[ cut here ]------------ [ 151.268375] WARNING: CPU: 0 PID: 654 at kernel/trace/ftrace.c:2425 ftrace_get_addr_new+0x8a/0xf0 [ 151.270337] Modules linked in: [ 151.271117] CPU: 0 PID: 654 Comm: ftrace_stress_t Not tainted 5.9.0-rc2 #1 [ 151.272718] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 151.274600] EIP: ftrace_get_addr_new+0x8a/0xf0 [ 151.275694] Code: 8b 3b 8b 35 48 6b 50 d4 8b 46 30 8b 48 04 8b 10 89 f8 e8 09 df ff ff 84 c0 75 55 8b 76 04 85 f6 74 08 81 fe 60 6b 50 d4 75 de <0f> 0b c7 05 54 6b 50 d4 00 00 00 00 c7 05 44 6b 50 d4 f0 ca 2c d3 [ 151.279628] EAX: 00000000 EBX: f4c40000 ECX: 00000000 EDX: 00000000 [ 151.280844] ESI: d4507040 EDI: d32002e8 EBP: f32ddea0 ESP: f32dde94 [ 151.281737] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00010246 [ 151.282762] CR0: 80050033 CR2: 0a0849e0 CR3: 328bd000 CR4: 003506d0 [ 151.283725] Call Trace: [ 151.284148] ftrace_replace_code+0x12f/0x150 [ 151.284791] ftrace_modify_all_code+0xba/0x170 [ 151.285531] arch_ftrace_update_code+0x8/0x10 [ 151.286158] ftrace_run_update_code+0x16/0x80 [ 151.286808] ftrace_startup_enable+0x30/0x40 [ 151.287550] ftrace_enable_sysctl+0x124/0x15e [ 151.288173] ? ftrace_is_dead+0x10/0x10 [ 151.288781] proc_sys_call_handler+0x11f/0x150 [ 151.289502] ? proc_sys_call_handler+0x150/0x150 [ 151.290170] proc_sys_write+0x12/0x20 [ 151.290741] vfs_write+0xb3/0x200 [ 151.291393] ksys_write+0x58/0xd0 [ 151.291885] __ia32_sys_write+0x15/0x20 [ 151.292476] __do_fast_syscall_32+0x3f/0x70 [ 151.293090] do_fast_syscall_32+0x29/0x60 [ 151.293739] do_SYSENTER_32+0x15/0x20 [ 151.294357] entry_SYSENTER_32+0x9f/0xf2 [ 151.294955] EIP: 0xb7f85549 [ 151.295450] Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d 76 00 58 b8 77 00 00 00 cd 80 90 8d 76 [ 151.298035] EAX: ffffffda EBX: 00000001 ECX: 0a08b9f0 EDX: 00000002 [ 151.299024] ESI: 0a08b9f0 EDI: 00000002 EBP: b7f4ed80 ESP: bf8f9e90 [ 151.299992] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b EFLAGS: 00000246 [ 151.301039] ---[ end trace 13d91cd42a9362c2 ]--- [ 151.301820] Bad trampoline accounting at: 97ee436a (sanitize_boot_params.constprop.0+0x0/0xa8) (10000001) [ 151.303214] ------------[ cut here ]------------ [ 151.303985] WARNING: CPU: 0 PID: 654 at kernel/trace/ftrace.c:2425 ftrace_get_addr_new+0x8a/0xf0 [ 151.305246] Modules linked in: [ 151.305768] CPU: 0 PID: 654 Comm: ftrace_stress_t Tainted: G W 5.9.0-rc2 #1 [ 151.306984] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 151.308241] EIP: ftrace_get_addr_new+0x8a/0xf0 [ 151.308964] Code: 8b 3b 8b 35 48 6b 50 d4 8b 46 30 8b 48 04 8b 10 89 f8 e8 09 df ff ff 84 c0 75 55 8b 76 04 85 f6 74 08 81 fe 60 6b 50 d4 75 de <0f> 0b c7 05 54 6b 50 d4 00 00 00 00 c7 05 44 6b 50 d4 f0 ca 2c d3 [ 151.311612] EAX: 00000000 EBX: f4c40008 ECX: 00000000 EDX: 00000000 [ 151.312594] ESI: d4507040 EDI: d3200390 EBP: f32ddea0 ESP: f32dde94 [ 151.313544] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00010246 [ 151.314544] CR0: 80050033 CR2: 0a0849e0 CR3: 328bd000 CR4: 003506d0 [ 151.315543] Call Trace: [ 151.315947] ftrace_replace_code+0x12f/0x150 [ 151.316589] ftrace_modify_all_code+0xba/0x170 [ 151.317325] arch_ftrace_update_code+0x8/0x10 [ 151.317948] ftrace_run_update_code+0x16/0x80 [ 151.318626] ftrace_startup_enable+0x30/0x40 [ 151.319367] ftrace_enable_sysctl+0x124/0x15e [ 151.320025] ? ftrace_is_dead+0x10/0x10 [ 151.320613] proc_sys_call_handler+0x11f/0x150 [ 151.321346] ? proc_sys_call_handler+0x150/0x150 [ 151.322042] proc_sys_write+0x12/0x20 [ 151.322639] vfs_write+0xb3/0x200 [ 151.323192] ksys_write+0x58/0xd0 [ 151.323748] __ia32_sys_write+0x15/0x20 [ 151.324386] __do_fast_syscall_32+0x3f/0x70 [ 151.324991] do_fast_syscall_32+0x29/0x60 [ 151.325597] do_SYSENTER_32+0x15/0x20 [ 151.326170] entry_SYSENTER_32+0x9f/0xf2 [ 151.326774] EIP: 0xb7f85549 [ 151.327209] Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d 76 00 58 b8 77 00 00 00 cd 80 90 8d 76 [ 151.329767] EAX: ffffffda EBX: 00000001 ECX: 0a08b9f0 EDX: 00000002 [ 151.330777] ESI: 0a08b9f0 EDI: 00000002 EBP: b7f4ed80 ESP: bf8f9e90 [ 151.331762] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b EFLAGS: 00000246 [ 151.332774] ---[ end trace 13d91cd42a9362c3 ]--- [ 151.333520] Bad trampoline accounting at: f22f519e (trace_initcall_finish_cb+0x0/0x40) (10000001) [ 151.334788] ------------[ cut here ]------------ [ 151.335586] WARNING: CPU: 0 PID: 654 at kernel/trace/ftrace.c:2425 ftrace_get_addr_new+0x8a/0xf0 [ 151.336843] Modules linked in: [ 151.337358] CPU: 0 PID: 654 Comm: ftrace_stress_t Tainted: G W 5.9.0-rc2 #1 [ 151.338541] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 151.339826] EIP: ftrace_get_addr_new+0x8a/0xf0 [ 151.340547] Code: 8b 3b 8b 35 48 6b 50 d4 8b 46 30 8b 48 04 8b 10 89 f8 e8 09 df ff ff 84 c0 75 55 8b 76 04 85 f6 74 08 81 fe 60 6b 50 d4 75 de <0f> 0b c7 05 54 6b 50 d4 00 00 00 00 c7 05 44 6b 50 d4 f0 ca 2c d3 [ 151.343103] EAX: 00000000 EBX: f4c40010 ECX: 00000000 EDX: 00000000 [ 151.344098] ESI: d4507040 EDI: d32007c0 EBP: f32ddea0 ESP: f32dde94 [ 151.345026] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00010246 [ 151.346078] CR0: 80050033 CR2: 0a0849e0 CR3: 328bd000 CR4: 003506d0 [ 151.346987] Call Trace: [ 151.347447] ftrace_replace_code+0x12f/0x150 [ 151.348075] ftrace_modify_all_code+0xba/0x170 [ 151.348745] arch_ftrace_update_code+0x8/0x10 [ 151.349501] ftrace_run_update_code+0x16/0x80 [ 151.350175] ftrace_startup_enable+0x30/0x40 [ 151.350845] ftrace_enable_sysctl+0x124/0x15e [ 151.351605] ? ftrace_is_dead+0x10/0x10 [ 151.352170] proc_sys_call_handler+0x11f/0x150 [ 151.352832] ? proc_sys_call_handler+0x150/0x150 [ 151.353599] proc_sys_write+0x12/0x20 [ 151.354163] vfs_write+0xb3/0x200 [ 151.354694] ksys_write+0x58/0xd0 [ 151.355237] __ia32_sys_write+0x15/0x20 [ 151.355848] __do_fast_syscall_32+0x3f/0x70 [ 151.356525] do_fast_syscall_32+0x29/0x60 [ 151.357106] do_SYSENTER_32+0x15/0x20 [ 151.357675] entry_SYSENTER_32+0x9f/0xf2 [ 151.358391] EIP: 0xb7f85549 [ 151.358821] Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d 76 00 58 b8 77 00 00 00 cd 80 90 8d 76 [ 151.361407] EAX: ffffffda EBX: 00000001 ECX: 0a08b9f0 EDX: 00000002 [ 151.362434] ESI: 0a08b9f0 EDI: 00000002 EBP: b7f4ed80 ESP: bf8f9e90 [ 151.363367] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b EFLAGS: 00000246 [ 151.364402] ---[ end trace 13d91cd42a9362c4 ]--- [ 151.365082] Bad trampoline accounting at: f89b861d (initcall_blacklisted+0x0/0xd0) (10000001) [ 151.366309] ------------[ cut here ]------------ [ 151.367062] WARNING: CPU: 0 PID: 654 at kernel/trace/ftrace.c:2425 ftrace_get_addr_new+0x8a/0xf0 ref: https://qa-reports.linaro.org/lkft/linux-mainline-oe/build/v5.9-rc2-42-g6a9dc5fd6170/testrun/3113849/suite/linux-log-parser/test/check-kernel-exception-1707157/log -- Linaro LKFT https://lkft.linaro.org