From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BDD03C4742C for ; Mon, 16 Nov 2020 15:06:36 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 38AE422280 for ; Mon, 16 Nov 2020 15:06:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DQPR0DsX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 38AE422280 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 9B0BE6B0072; Mon, 16 Nov 2020 10:06:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 960CC6B0073; Mon, 16 Nov 2020 10:06:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 877506B0074; Mon, 16 Nov 2020 10:06:35 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0196.hostedemail.com [216.40.44.196]) by kanga.kvack.org (Postfix) with ESMTP id 578296B0072 for ; Mon, 16 Nov 2020 10:06:35 -0500 (EST) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id E06F11EE6 for ; Mon, 16 Nov 2020 15:06:34 +0000 (UTC) X-FDA: 77490607908.14.joke19_4c0cca927329 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin14.hostedemail.com (Postfix) with ESMTP id 57EA31801596C for ; Mon, 16 Nov 2020 15:06:26 +0000 (UTC) X-HE-Tag: joke19_4c0cca927329 X-Filterd-Recvd-Size: 7657 Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) by imf45.hostedemail.com (Postfix) with ESMTP for ; Mon, 16 Nov 2020 15:06:25 +0000 (UTC) Received: by mail-ot1-f52.google.com with SMTP id l36so16301276ota.4 for ; Mon, 16 Nov 2020 07:06:25 -0800 (PST) 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=LXmaNST6ELpIVrVhrObsBHBWBQVHEVfnGhKfEMBr9+I=; b=DQPR0DsXw/+bJPTZBZdWjkL6AleNn7hrMuzZ8NbwKT3iz6O2gJHaQLELmAF43WMFfI Mb+WzlMO17A5NnTzKPQ166g4hDLtfVttXI/Svio3LVDKYjgpnSClota7y+LsUqsz9dJp OgQDfP8rMJgM2+jt0ok4nTCK3Gtb6cXDtV6mrA8ux5/xya9XsvqavrR093ofJSqtsmSI u7lPIvEnwWXkSOfbJqTFrpR+/gN/L1UC+sNTab+JcB5n/H5VL6jU/g88R8+8KrIXQNJx HeKa0CMyUgE3RixDMC6PuVAJXbQe8ByEANRPVuJ8y3l7LMJQHEHuzN2CvFVL/Y8vEmNL KmAw== 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=LXmaNST6ELpIVrVhrObsBHBWBQVHEVfnGhKfEMBr9+I=; b=O99VvREDpL4qy+vzsWOATnRrrlkaq5+O77qEpcgNq2snx4MCuaKTdrX8lMN8zbI2Uh d8NCMr2FY9eenIZ9RvkKoSzNlr8tRv066IJPtb43co9RDOrvRV08jChOferVb9oURRjP 2KM9ZYpwNmpA9Bnx4pg9A1OMxmm1owb7MF3Nic491Z1QtNcKVWQjs3CgBBuU9r8eEO2n hMnqC0QuvtX50OHcfedhhcv0DVQso5u3hYaLu1eEWXplVj8iURIQcQbe44pC8lU7ZrIl GJRs5xVHbmrtAQkWH7p6ODtl5lPxXUaFzpepRqnf4dnekeetkJjuBZTL2o9qephd1VNw IbZQ== X-Gm-Message-State: AOAM532aWO8icjl4j3BDBVY19iNaJmJbwvUkC13BFsfJ9bjSuIRCREhq 0dmGnQinuACrYMWJGSBmWAfrpwIhimc9Q11WeC4VZQ== X-Google-Smtp-Source: ABdhPJwoJLdgJGuEMJHhrydqP2w4fhs+SkStd4rOUF5UnwED3adsc7G1t+6HETfoF8yiTOwA9QTncOKKOaTGNbCY2Jg= X-Received: by 2002:a05:6830:225a:: with SMTP id t26mr11205825otd.266.1605539184494; Mon, 16 Nov 2020 07:06:24 -0800 (PST) MIME-Version: 1.0 From: Naresh Kamboju Date: Mon, 16 Nov 2020 20:36:10 +0530 Message-ID: Subject: [ arm ] BUG: KASAN: stack-out-of-bounds in save_trace+0xf8/0x14c To: Linux ARM , Linux-Next Mailing List , open list , linux-mm , lkft-triage@lists.linaro.org Cc: Linus Walleij , Arnd Bergmann , Andrew Morton , Ard Biesheuvel , Masami Hiramatsu , Stephen Rothwell , Steven Rostedt Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The following kernel warning noticed on arm KASAN enabled config while booting on qemu arm on Linux next 20201116 tag. [ 10.811824] BUG: KASAN: stack-out-of-bounds in save_trace+0xf8/0x14c [ 10.814330] Read of size 4 at addr c7aa37bc by task udevadm/192 [ 10.816669] [ 10.817310] CPU: 0 PID: 192 Comm: udevadm Not tainted 5.10.0-rc3-next-20201116 #2 [ 10.820576] Hardware name: Generic DT based system [ 10.822886] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 10.827114] [] (show_stack) from [] (dump_stack+0xc8/0xe0) [ 10.830696] [] (dump_stack) from [] (print_address_description.constprop.0+0x34/0x2dc) [ 10.835673] [] (print_address_description.constprop.0) from [] (kasan_report+0x1a8/0x1c4) [ 10.840888] [] (kasan_report) from [] (save_trace+0xf8/0x14c) [ 10.844773] [] (save_trace) from [] (walk_stackframe+0x1c/0x3c) [ 10.848513] [] (walk_stackframe) from [] (__save_stack_trace+0x124/0x12c) [ 10.852745] [] (__save_stack_trace) from [] (stack_trace_save+0x90/0xc0) [ 10.856653] [] (stack_trace_save) from [] (kasan_save_stack+0x1c/0x40) [ 10.860463] [] (kasan_save_stack) from [] (kasan_set_track+0x28/0x30) [ 10.864263] [] (kasan_set_track) from [] (kasan_set_free_info+0x20/0x34) [ 10.868176] [] (kasan_set_free_info) from [] (____kasan_slab_free+0xd4/0xfc) [ 10.872253] [] (____kasan_slab_free) from [] (kmem_cache_free+0x80/0x4a0) [ 10.876217] [] (kmem_cache_free) from [] (rcu_core+0x384/0x7f4) [ 10.879852] [] (rcu_core) from [] (__do_softirq+0x188/0x3d0) [ 10.883309] [] (__do_softirq) from [] (irq_exit+0x100/0x124) [ 10.886748] [] (irq_exit) from [] (__handle_domain_irq+0x7c/0xdc) [ 10.890378] [] (__handle_domain_irq) from [] (gic_handle_irq+0xb4/0xe0) [ 10.894268] [] (gic_handle_irq) from [] (__irq_svc+0x6c/0x94) [ 10.897739] Exception stack(0xc7aa3698 to 0xc7aa36e0) [ 10.900109] 3680: c03000c0 c25e6660 [ 10.903902] 36a0: c263bb70BUG: KASAN: stack-out-of-bounds in save_trace+0xf8/0x14c c263fd88 c7aa37e0 c315c5e0 c312d9a0 c7aa3880 c040bc9c c03000c0 [ 10.907859] 36c0: a0030013 c7aa38ec c312d9a0 c7aa36e8 c0315330 c031508c a0030013 ffffffff [ 10.912344] [] (__irq_svc) from [] (search_index+0x8/0xec) [ 10.916050] [] (search_index) from [] (__d_lookup_rcu+0x58/0x2a8) [ 10.920147] [] (__d_lookup_rcu) from [] (ret_fast_syscall+0x0/0x58) [ 10.924242] Exception stack(0xc7aa3780 to 0xc7aa37c8) [ 10.926923] 3780: c25f18a0 c7aa4000 00000000 00000000 00000003 1312d000 5fb25e68 00000000 [ 10.931004] 37a0: 00000000 80000000 ffffffff 7fffffff 5fb25e68 00000000 ee7e2590 00000000 [ 10.935188] 37c0: 41b58ab3 c247c3ec [ 10.936910] [ 10.937652] The buggy address belongs to the page: [ 10.939933] page:(ptrval) refcount:0 mapcount:0 mapping:00000000 index:0x0 pfn:0x47aa3 [ 10.943733] flags: 0x0() [ 10.944995] raw: 00000000 ee60cef0 ee60cef0 00000000 00000000 00000000 ffffffff 00000000 [ 10.948786] raw: 00000000 [ 10.950037] page dumped because: kasan: bad access detected [ 10.952655] [ 10.953405] addr c7aa37bc is located in stack of task udevadm/192 at offset 156 in frame: [ 10.957194] unwind_frame+0x0/0x8c0 [ 10.958853] [ 10.959616] this frame has 1 object: [ 10.961322] [32, 116) 'ctrl' [ 10.961329] [ 10.963476] Memory state around the buggy address: [ 10.965699] c7aa3680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.968752] c7aa3700: 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 00 [ 10.971846] >c7aa3780: 00 00 04 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 [ 10.974831] ^ [ 10.976883] c7aa3800: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 04 f2 f2 [ 10.979907] c7aa3880: 00 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.982919] ================================================================== [ 10.986244] Disabling lock debugging due to kernel taint Reported-by: Naresh Kamboju full boot log link, https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20201116/testrun/3445674/suite/linux-log-parser/test/check-kernel-bug-1944975/log metadata: git branch: master git repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next git describe: next-20201116 kernel-config: https://builds.tuxbuild.com/1kMYEMmo35DocMgHZ9AtJReL3rN/config -- Linaro LKFT https://lkft.linaro.org