Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3152969pxb; Mon, 16 Nov 2020 07:09:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxHhySF+wB+58csSnVXFNKuVpLflOuDdyVoeCfh2ske26GeJ7JxllGv2tEZkIuFvQON501 X-Received: by 2002:a05:6402:21c7:: with SMTP id bi7mr16408893edb.54.1605539370038; Mon, 16 Nov 2020 07:09:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605539370; cv=none; d=google.com; s=arc-20160816; b=GjG3WwZXJgmnvTqcUfEgWjq/5UZyBrjbnjf0SNLfIRxf276WaBCB0BrSK8HOBibBra iiYZxMS4AR6Gp1m7FumVULokycA5NIrw3fmGCDPlpAODEuR3mLR0/fNta9YcOnY2rk1q yWoMTQcUvNHIE508YbMzzJSNAruvKmXBy+aj0d0ut4D5Tfbweq4101Z0Wj/mOs6U0w9Q okORl1a674Z9yg79mAbDVipd1FsXDDfMgn7+gZU2AMP8QMPqMvtC5OK0gwQv1xJ8Vt5f 0SYYrPLmAbOpzusZbkyLa0IsJiRXu8ZbYdPnIDLAZi2z8trB63K+w0655JrIfBaDCRMo zZug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=LXmaNST6ELpIVrVhrObsBHBWBQVHEVfnGhKfEMBr9+I=; b=CdVrrkqNbD7HHo/ZrHOFJlbIqwTHBEpvvvmpDFpdh/MxES++T5djMzXCmcMuUdA18S fZ5a4gbzNVMrqE5328BASYUTRlVfNvMlZkLhHnBeDpw8gyESW5nZmNvXAsVK2BtezvYX 4aYcVnbON9B/paC7Dgc7FVZlWhTgTrkddE1+Z7pf/oRmcZmKX46Ce3PN0Ayr0tgYOCte 4Ka5CDMfyGRUna4jRLB7sZRsa9gasJeotb9fzHmVrSgstQJUgrD3O7TZciSskMPV4zDc U1p4QSrS57LIvQa8ItAaKwsB8MKD0PTjilcxyrm1Yc9gXBSsnO3M10NNAds2f8VNU83f edSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DQPR0DsX; 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 p23si2590668edw.81.2020.11.16.07.09.05; Mon, 16 Nov 2020 07:09:30 -0800 (PST) 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=DQPR0DsX; 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 S1731276AbgKPPGa (ORCPT + 99 others); Mon, 16 Nov 2020 10:06:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730307AbgKPPG0 (ORCPT ); Mon, 16 Nov 2020 10:06:26 -0500 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74413C0613CF for ; Mon, 16 Nov 2020 07:06:25 -0800 (PST) Received: by mail-ot1-x32a.google.com with SMTP id y22so16290826oti.10 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=JV2Ki4mXDqdz1x3tcNGZckvDj7WSvQdznTM+ItwvEIIdeKXup3VQPCWrEg3G/f8Kch LWI9aqgRXNRf8m4NHjZDcJUVlbGJ2GfV1mcasATuh8bHy3rrcaq3ye1F8Ud0dVA+B047 5nykwwAck8lapWL3m51+iqjDpPWnneUAkJHhYiFjo6aQ0dJ4aD/U4GB6dKyz0Iegi0Tc RGNw15D4RiVXpt9v8yJn6vBzjIZZkipJBm7s9QXqmRMyBrZmc6o+UNWY9Df8/ltgunja vkRfCMxme+p6v2iLMpxZrszvEFktqGC9bbfQztj2idjKtr4hh6myH7USGwoQrIVmivA7 G2SA== X-Gm-Message-State: AOAM531StlIJOWKzbvKsqNiyt7Xv75duFwlr2C2Ax0Aw1HDQ2APXL7ax 4n2jY9+AGFqvtQxzYVlYCOauiFnZ/e6ERMmrr2bJMA== 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" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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