Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp131743pxb; Tue, 10 Nov 2020 22:42:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDbUMnfLC/rWBBAi6X/46QjmbXlVoZuS34WlO2ysnYZQqLqVEYJsZAmZTXHCZm9A28dot5 X-Received: by 2002:a17:906:1159:: with SMTP id i25mr22541043eja.398.1605076979116; Tue, 10 Nov 2020 22:42:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605076979; cv=none; d=google.com; s=arc-20160816; b=YhBP/lKuF+5iZcI1mnKrU0k5zY7MBDfzLD+Odbuww+F7N/rizT9zv/YwLvA+bpayja D6D9VyyZFHDy5DJTZemsJ/eL3CUENSvABDUwsSVomHPbU8FvVZSprLsAgp6gKCEqDpYt /VFDRnJI6Y2o9maetq2fV+aDpEJtCczhqFxJkwekgnmpxVcLWkd0HrNcjaCy2YhCttQU H0IzUvDoejR0rdQXFdSWMMJSunVM6qrj0M7ZDFvjgNjClZ96OSgMnBWGQfBoUs69Xj2a p+fGkz+M0dRwZabMW+JQ397uyvw69hjzJ39nasoGwWZHmHY0ejrL02c9sZfARwwSE+kB UaPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=X+H6B8GFInYEngVqNE7UwqIRarSWAhfidTow6zYCSFk=; b=G9tXjj7Rq7z+9kaGVRYdJ379G5/zfjfjy68gK8ZXOdR3ZV4oZD8QwleEOg1vXBbRn/ ujS9K93aXhwlMPJXw4JpCgETt2uA61r0clTtJk5vE/LtA7J5J9N2z8YumDNZHAws24p5 ynVA77S7LdkvFADsey1FUysPq0cMtGyBuHKdia0ebYW/HVaj2iYNe0Dwq24QTUn+wuAB w+LqE48X8BKImr/qrHCGMDXUctERzFcXZWOYeJ4oyD4HVoU5XqEfqVGqBNMA3XLW9+Gc 2j3HYExj/qpXpfhnsMNgcWrueNIEDYdg0G1snqHc7Rh/LNIuAeyk7B55Bw6qKKf7R2KF gK7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=REb708I5; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si701918ejo.473.2020.11.10.22.42.35; Tue, 10 Nov 2020 22:42:59 -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=@canb.auug.org.au header.s=201702 header.b=REb708I5; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725977AbgKKGig (ORCPT + 99 others); Wed, 11 Nov 2020 01:38:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725882AbgKKGif (ORCPT ); Wed, 11 Nov 2020 01:38:35 -0500 Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B9BBC0613D1; Tue, 10 Nov 2020 22:38:35 -0800 (PST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4CWFRq5x6Bz9s0b; Wed, 11 Nov 2020 17:38:31 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1605076713; bh=ndZNSyI24FVv3tVRHIT1JgrpdsSo0wDrO66D3hx5kx4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=REb708I56i0XlX8sANnk4i/0Cz7s5L9f9TO7sWV4lZvlqgdaPbvEse+RYfsQGMr1f OJIBf9AROYmrGJUuluufDnxBNWtrUyDAJXes+SjJKSDKmpRazOAapMGntI7skbq2I5 g9P5WRt2ETkSx5cguVpF54RQzKGNq+jVDzijnsmczdw9I2jUnNwk8oznO+bJoguMy0 s53pWVEWeZDTqo9j/c1IoUx52uss30Rq6qSnf6KNCw8rzEfie36H8AQJfHohDKtilD 25c2vNrYXhiKJimfN1CUda72SLKSnNXjNlGZUsXCmFLK+uwJdWuYBy8tzGSN5NrxIx kioDkKVR0B6ug== Date: Wed, 11 Nov 2020 17:38:30 +1100 From: Stephen Rothwell To: Naresh Kamboju Cc: Linux ARM , Linux-Next Mailing List , open list , linux-mm , lkft-triage@lists.linaro.org, Linus Walleij , Arnd Bergmann , Andrew Morton , Ard Biesheuvel , Masami Hiramatsu , Steven Rostedt , Greg KH , Vignesh Raghavendra Subject: Re: BUG: KASAN: global-out-of-bounds in soc_device_match on arm Message-ID: <20201111173830.2c90a6e5@canb.auug.org.au> In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/XdPWFf_6Eh6Ie=qkhuxhI8M"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/XdPWFf_6Eh6Ie=qkhuxhI8M Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Naresh, On Wed, 11 Nov 2020 11:55:46 +0530 Naresh Kamboju wrote: > > The following kernel warning noticed on arm KASAN enabled config while > booting on > TI beagleboard x15 device. >=20 > [ 32.127451] BUG: KASAN: global-out-of-bounds in soc_device_match+0x64/= 0xe4 > [ 32.127485] Read of size 4 at addr c21701f8 by task swapper/0/1 > [ 32.127508] > [ 32.127549] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W > 5.10.0-rc3-next-20201110 #2 > [ 32.127577] Hardware name: Generic DRA74X (Flattened Device Tree) > [ 32.127604] Backtrace: > [ 32.127670] [] (dump_backtrace) from [] > (show_stack+0x20/0x24) > [ 32.127717] r9:00000080 r8:c4208000 r7:c3023060 r6:40000093 > r5:00000000 r4:c3023060 > [ 32.127766] [] (show_stack) from [] > (dump_stack+0xe8/0x10c) > [ 32.127824] [] (dump_stack) from [] > (print_address_description.constprop.0+0x3c/0x4b0) > [ 32.127871] r10:00000030 r9:c5da4010 r8:c5da4000 r7:00000000 > r6:c0fd5c20 r5:eebf33c0 > [ 32.127903] r4:c21701f8 r3:eebf33c4 > [ 32.127958] [] (print_address_description.constprop.0) > from [] (kasan_report+0x160/0x17c) > [ 32.128000] r8:c5da4000 r7:00000000 r6:c0fd5c20 r5:00000001 r4:c21701= f8 > [ 32.128053] [] (kasan_report) from [] > (__asan_load4+0x6c/0x9c) > [ 32.128093] r7:c3c3ede0 r6:c354dea0 r5:c0fd5b88 r4:c21701f8 > [ 32.128144] [] (__asan_load4) from [] > (soc_device_match+0x64/0xe4) > [ 32.128197] [] (soc_device_match) from [] > (omap8250_probe+0x628/0x75c) > [ 32.128236] r7:b7841730 r6:c6db2c4e r5:00000001 r4:c6db2c40 > [ 32.128290] [] (omap8250_probe) from [] > (platform_drv_probe+0x70/0xc8) > [ 32.128335] r10:c5da4044 r9:c5da4048 r8:c34ff834 r7:c3c3e240 > r6:c34ff834 r5:00000000 > [ 32.128363] r4:c5da4010 > [ 32.128413] [] (platform_drv_probe) from [] > (really_probe+0x184/0x72c) > [ 32.128452] r7:c3c3e240 r6:00000000 r5:c3c3e1c0 r4:c5da4010 > [ 32.128499] [] (really_probe) from [] > (driver_probe_device+0xa4/0x270) > [ 32.128544] r10:c34ff834 r9:c416fa58 r8:c379e840 r7:c5d75a00 > r6:c5da4034 r5:c37c01c0 > [ 32.128572] r4:c5da4010 > [ 32.128620] [] (driver_probe_device) from [] > (device_driver_attach+0x94/0x9c) > [ 32.128665] r10:00000000 r9:c416fa58 r8:c0f956b4 r7:c5d75a00 > r6:c5da4034 r5:c34ff834 > [ 32.128693] r4:c5da4010 > [ 32.128741] [] (device_driver_attach) from [] > (__driver_attach+0xe4/0x19c) > [ 32.128780] r7:c34ff834 r6:c5da4010 r5:c34ff834 r4:00000000 > [ 32.128826] [] (__driver_attach) from [] > (bus_for_each_dev+0x100/0x154) > [ 32.128865] r7:c34ff834 r6:b78417a4 r5:c420bd40 r4:c5d75a34 > [ 32.128910] [] (bus_for_each_dev) from [] > (driver_attach+0x38/0x3c) > [ 32.128955] r9:c34ff87c r8:c416fa00 r7:c3541a70 r6:c3541a20 > r5:c6db4f00 r4:c34ff834 > [ 32.129001] [] (driver_attach) from [] > (bus_add_driver+0x21c/0x2dc) > [ 32.129034] r5:c6db4f00 r4:c34ff834 > [ 32.129080] [] (bus_add_driver) from [] > (driver_register+0xdc/0x1b0) > [ 32.129125] r10:00000000 r9:c2b00468 r8:c378a0c0 r7:c2170360 > r6:c34ff838 r5:c3541a20 > [ 32.129153] r4:c34ff834 > [ 32.129202] [] (driver_register) from [] > (__platform_driver_register+0x7c/0x84) > [ 32.129241] r7:ffffc000 r6:c2bc509c r5:00000000 r4:c34ff820 > [ 32.129300] [] (__platform_driver_register) from > [] (omap8250_platform_driver_init+0x24/0x28) > [ 32.129333] r5:c420bf20 r4:b78417d0 > [ 32.129387] [] (omap8250_platform_driver_init) from > [] (do_one_initcall+0xc4/0x400) > [ 32.129437] [] (do_one_initcall) from [] > (kernel_init_freeable+0x214/0x268) > [ 32.129482] r10:c2d128a8 r9:c2b00468 r8:c2c50834 r7:c2c50854 > r6:c2a55ac8 r5:00000007 > [ 32.129511] r4:c425a700 > [ 32.129563] [] (kernel_init_freeable) from [] > (kernel_init+0x18/0x140) > [ 32.129607] r10:00000000 r9:00000000 r8:00000000 r7:00000000 > r6:00000000 r5:c19bfd04 > [ 32.129635] r4:00000000 > [ 32.129684] [] (kernel_init) from [] > (ret_from_fork+0x14/0x38) > [ 32.129715] Exception stack(0xc420bfb0 to 0xc420bff8) > [ 32.129753] bfa0: 00000000 > 00000000 00000000 00000000 > [ 32.129798] bfc0: 00000000 00000000 00000000 00000000 00000000 > 00000000 00000000 00000000 > [ 32.129839] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 > [ 32.129872] r5:c19bfd04 r4:00000000 > [ 32.129894] > [ 32.129917] The buggy address belongs to the variable: > [ 32.129957] k3_soc_devices+0x38/0x1e0 > [ 32.129981] The buggy address belongs to the page: > [ 32.130018] page:(ptrval) refcount:1 mapcount:0 mapping:00000000 > index:0x0 pfn:0x82170 > [ 32.130051] flags: 0x1000(reserved) > [ 32.130104] raw: 00001000 eebf33c4 eebf33c4 00000000 00000000 > 00000000 ffffffff 00000001 > [ 32.130133] raw: 00000000 > [ 32.130159] page dumped because: kasan: bad access detected > [ 32.130182] > [ 32.130205] Memory state around the buggy address: > [ 32.130239] c2170080: 00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 00 05 f9 f9 > [ 32.130272] c2170100: f9 f9 f9 f9 00 00 00 00 00 01 f9 f9 f9 f9 f9 f9 > [ 32.130306] >c2170180: 00 02 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 f9 > [ 32.130331] ^ > [ 32.130364] c2170200: f9 f9 f9 f9 00 00 00 06 f9 f9 f9 f9 00 00 00 02 > [ 32.130397] c2170280: f9 f9 f9 f9 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9 > [ 32.130422] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > [ 32.130446] Disabling lock debugging due to kernel taint >=20 > metadata: > git branch: master > git repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next > git describe: next-20201110 > make_kernelversion: 5.10.0-rc3 > build : https://builds.tuxbuild.com/1k5bYasxkHF7omMh7mjtxjRtkMe/ >=20 > Full log: > https://lkft.validation.linaro.org/scheduler/job/1927838#L2190 >=20 > -- > Linaro LKFT > https://lkft.linaro.org Presumably caused by commit 439c7183e5b9 ("serial: 8250: 8250_omap: Disable RX interrupt after DMA en= able") from the tty tree. --=20 Cheers, Stephen Rothwell --Sig_/XdPWFf_6Eh6Ie=qkhuxhI8M Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl+rhuYACgkQAVBC80lX 0Gyouwf/asHFusOEqrub9yw9cODSzLoU2G6pzicD92CuFguWkdcV7NjWGswHKscy VPqbRhPRKwp8Crwz7f8b6Byq6ncE+ekdVxuOhdm3DBKUdgEnh33Kwzpwf+XGqLEW KtVoE9UEgoAYkgMg2xfyxSj/4P7zJ4hYA8iG003zw9e1zETfjQXI12cvuoemQAKe bekGV6rmehSb2a6d4yYfL8et5VNJ5HoosxCABJgVVfE2mLUz+trs2fNCf47Y2M8b 44DjIIZYT+1wqrcsuQW87DPwStCBYHR/XMpBKmVWJDc74W7XhWl7nvODTasRblxS MavCc6XHH+g0ELPvNkIV2D4gwlaVzQ== =e4Qm -----END PGP SIGNATURE----- --Sig_/XdPWFf_6Eh6Ie=qkhuxhI8M--