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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F107C433F5 for ; Thu, 17 Feb 2022 08:57:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CA3E96B0075; Thu, 17 Feb 2022 03:57:27 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C2CDD6B0078; Thu, 17 Feb 2022 03:57:27 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AF53E6B007B; Thu, 17 Feb 2022 03:57:27 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0034.hostedemail.com [216.40.44.34]) by kanga.kvack.org (Postfix) with ESMTP id A1AE66B0075 for ; Thu, 17 Feb 2022 03:57:27 -0500 (EST) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id C4B048249980 for ; Thu, 17 Feb 2022 08:57:25 +0000 (UTC) X-FDA: 79151668050.07.A07464E Received: from smtpproxy21.qq.com (smtpbg702.qq.com [203.205.195.102]) by imf31.hostedemail.com (Postfix) with ESMTP id B292920006 for ; Thu, 17 Feb 2022 08:57:24 +0000 (UTC) X-QQ-mid: bizesmtp68t1645088237t5faezo4 Received: from [10.4.23.202] (unknown [58.240.82.166]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 17 Feb 2022 16:57:15 +0800 (CST) X-QQ-SSF: 0040000000200090F000B00A0000000 X-QQ-FEAT: ZHWZeLXy+8eYNz4utGQUYLCsOuq3jWhjcGi5xUwoSgGZwNGkDQkd+//shS3YJ 4XNiwrEBQt1Pp5gz9oPoIn16mf35pZbYoEf+DtwQS6z7I1SVTWZ9G6/cq9NPPpCchgqGtLz J1k0XQ1cbsXdxCbGVHn3BLXXj38RMFLQ0vrHOnG9llyIfUA6/HTfdJcnEiVqsj7ZecJC1l5 i4YafU4PmANYPHV2p0Z+0tGtWa9UBySDqP1dD7k4kCDVNHKvloPrYDB5T8hQOTxwsSq3qJo 2p5yDoQZn2Tmvmi5gzr6X8z2A55rgE2gsda7IE/LMP24uVFTJ0WklSu7fLwg6/6oEV4mNSy F1xL+BEV0fZEJ6pptvTCx1AHbpDyMzUvpjRnxUg X-QQ-GoodBg: 2 Message-ID: <53b4cbc8-2176-2971-fa6c-ac7f9f2543dd@uniontech.com>+707799A75670DF05 Date: Thu, 17 Feb 2022 16:57:15 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [mm] 00a096aab8: BUG:KASAN:global-out-of-bounds_in__register_sysctl_table To: kernel test robot Cc: 0day robot , LKML , lkp@lists.01.org, mcgrof@kernel.org, keescook@chromium.org, yzaikin@google.com, akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org References: <20220217081243.GC21114@xsang-OptiPlex-9020> From: =?UTF-8?B?6IuP5a626K6t?= In-Reply-To: <20220217081243.GC21114@xsang-OptiPlex-9020> Content-Type: text/plain; charset=UTF-8; format=flowed X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybgforeign:qybgforeign5 X-QQ-Bgrelay: 1 Authentication-Results: imf31.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf31.hostedemail.com: domain of sujiaxun@uniontech.com designates 203.205.195.102 as permitted sender) smtp.mailfrom=sujiaxun@uniontech.com X-Rspam-User: X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: B292920006 X-Stat-Signature: 4mtu45gam77w94sdno9woah65eisgite X-HE-Tag: 1645088244-706810 Content-Transfer-Encoding: quoted-printable 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: =E5=9C=A8 2022/2/17 16:12, kernel test robot =E5=86=99=E9=81=93: >=20 >=20 > Greeting, >=20 > FYI, we noticed the following commit (built with clang-15): >=20 > commit: 00a096aab808141e4c240f093ffbe831f5d882b4 ("[PATCH] [v2] mm: mov= e oom_kill sysctls to their own file") > url: https://github.com/0day-ci/linux/commits/sujiaxun/mm-move-oom_kill= -sysctls-to-their-own-file/20220215-173356 > base: https://github.com/hnaz/linux-mm master > patch link: https://lore.kernel.org/lkml/20220215093203.31032-1-sujiaxu= n@uniontech.com >=20 > in testcase: boot >=20 > on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2= -m 16G >=20 > caused below changes (please refer to attached dmesg/kmsg for entire lo= g/backtrace): >=20 >=20 > +----------------------------------------------------------+-----------= -+------------+ > | | 12b457ff53= | 00a096aab8 | > +----------------------------------------------------------+-----------= -+------------+ > | boot_successes | 10 = | 0 | > | boot_failures | 0 = | 8 | > | BUG:KASAN:global-out-of-bounds_in__register_sysctl_table | 0 = | 8 | > +----------------------------------------------------------+-----------= -+------------+ >=20 >=20 > If you fix the issue, kindly add following tag > Reported-by: kernel test robot >=20 >=20 > [ 2.595877][ T1] PCI: Using configuration type 1 for base access > [ 2.748020][ T1] =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 > [ 2.749023][ T1] BUG: KASAN: global-out-of-bounds in __register_s= ysctl_table+0xaf/0xe80 > [ 2.749902][ T1] Read of size 8 at addr ffffffff8632d8a0 by task = swapper/1 > [ 2.750698][ T1] > [ 2.750967][ T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.17.0-r= c4-mm1-00317-g00a096aab808 #1 d6c56bb9459e37e0c86ad4e0175fba650db6923b > [ 2.752255][ T1] Call Trace: > [ 2.752612][ T1] > [ 2.752953][ T1] dump_stack_lvl+0x19/0x40 > [ 2.753420][ T1] print_address_description+0x81/0x400 > [ 2.754005][ T1] __kasan_report+0x16b/0x1c0 > [ 2.754498][ T1] ? __register_sysctl_table+0xaf/0xe80 > [ 2.755116][ T1] ? __register_sysctl_table+0xaf/0xe80 > [ 2.755694][ T1] kasan_report+0x53/0x80 > [ 2.756171][ T1] __asan_report_load8_noabort+0x14/0x40 > [ 2.756805][ T1] __register_sysctl_table+0xaf/0xe80 > [ 2.757373][ T1] ? __kasan_check_read+0x11/0x40 > [ 2.757746][ T1] ? try_to_wake_up+0x591/0x880 > [ 2.757746][ T1] __register_sysctl_init+0x1f/0x40 > [ 2.757746][ T1] ? pagecache_init+0x40/0x40 > [ 2.757746][ T1] oom_init+0x53/0x80 > [ 2.757746][ T1] do_one_initcall+0x19b/0x4c0 > [ 2.757746][ T1] ? pagecache_init+0x40/0x40 > [ 2.757746][ T1] do_initcall_level+0x1b8/0x300 > [ 2.757746][ T1] do_initcalls+0x4b/0x80 > [ 2.757746][ T1] do_basic_setup+0x69/0x80 > [ 2.757746][ T1] kernel_init_freeable+0xe3/0x180 > [ 2.757746][ T1] ? rest_init+0x180/0x180 > [ 2.757746][ T1] kernel_init+0x18/0x1c0 > [ 2.757746][ T1] ? rest_init+0x180/0x180 > [ 2.757746][ T1] ret_from_fork+0x22/0x30 > [ 2.757746][ T1] > [ 2.757746][ T1] > [ 2.757746][ T1] The buggy address belongs to the variable: > [ 2.757746][ T1] vm_oom_kill_table+0xc0/0xe0 > [ 2.757746][ T1] > [ 2.757746][ T1] Memory state around the buggy address: > [ 2.757746][ T1] ffffffff8632d780: 00 00 00 00 00 f9 f9 f9 f9 f9= f9 f9 00 00 00 00 > [ 2.757746][ T1] ffffffff8632d800: 00 00 00 00 00 00 00 00 00 00= 00 00 00 00 00 00 > [ 2.757746][ T1] >ffffffff8632d880: 00 00 00 00 f9 f9 f9 f9 00 00= 00 00 00 00 00 00 > [ 2.757746][ T1] ^ > [ 2.757746][ T1] ffffffff8632d900: 00 00 00 f9 f9 f9 f9 f9 00 00= 00 00 00 00 00 00 > [ 2.757746][ T1] ffffffff8632d980: 00 f9 f9 f9 f9 f9 f9 f9 04 f9= f9 f9 00 00 00 00 > [ 2.757746][ T1] =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 >=20 >=20 >=20 >=20 > To reproduce: >=20 > # build kernel > cd linux > cp config-5.17.0-rc4-mm1-00317-g00a096aab808 .config > make HOSTCC=3Dclang-15 CC=3Dclang-15 ARCH=3Dx86_64 olddefconfig prepar= e modules_prepare bzImage modules > make HOSTCC=3Dclang-15 CC=3Dclang-15 ARCH=3Dx86_64 INSTALL_MOD_PATH=3D= modules_install > cd > find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz >=20 >=20 > git clone https://github.com/intel/lkp-tests.git > cd lkp-tests > bin/lkp qemu -k -m modules.cgz job-script # job-scri= pt is attached in this email >=20 > # if come across any failure that blocks the test, > # please remove ~/.lkp and /lkp dir to run from a clean state. >=20 >=20 >=20 > --- > 0DAY/LKP+ Test Infrastructure Open Source Technology = Center > https://lists.01.org/hyperkitty/list/lkp@lists.01.org Intel Corpo= ration >=20 > Thanks, > Oliver Sang > This issue has been resolved. Link: https://lkml.kernel.org/r/20220216193202.28838626@canb.auug.org.au