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 DCEF5C77B7F for ; Mon, 8 May 2023 16:46:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4C4456B0071; Mon, 8 May 2023 12:46:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 44CF26B0074; Mon, 8 May 2023 12:46:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2C6956B0075; Mon, 8 May 2023 12:46:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 147866B0071 for ; Mon, 8 May 2023 12:46:11 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id C376F16082C for ; Mon, 8 May 2023 16:46:10 +0000 (UTC) X-FDA: 80767665300.11.855CFA9 Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) by imf20.hostedemail.com (Postfix) with ESMTP id D6BC61C0011 for ; Mon, 8 May 2023 16:46:08 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=NBPuYttt; spf=pass (imf20.hostedemail.com: domain of nphamcs@gmail.com designates 209.85.222.182 as permitted sender) smtp.mailfrom=nphamcs@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1683564368; a=rsa-sha256; cv=none; b=3KOmv7x4IPmAmnz7eEPVJQzIKEMBwojQS+TBkzcICnucMf43NmSLpJ4XOhW3l+qr0V3JNr RJdfgPitek3dDxWCAtP1ASZF3n/Pzbn0dVMeDxBUlQTQKtO/+0CXIqqGYuZyrOC18j9iK7 /LLRC3D1yXk4q/opnnxJI5En6vz61vg= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=NBPuYttt; spf=pass (imf20.hostedemail.com: domain of nphamcs@gmail.com designates 209.85.222.182 as permitted sender) smtp.mailfrom=nphamcs@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1683564368; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=h1sdyuNtBl6CAufIrv7TH3DRaVHKWDkDa227vEOVtN8=; b=TyeADhpivdhs6mEc9QxFa/YDsS9IBb7ePjXuxrKhYK+FBPoebxxe30T2zbSO7T+Vt1XwQY 5DWkBc3cyO4+h4zQ06VHXbuGtJ1uKkVZytSAdGnNVYwllaR7uFmEAEWBEetU0MUCT1nMAJ CatxBqDP6d5VcLT5YZobgbG13Ga9sCg= Received: by mail-qk1-f182.google.com with SMTP id af79cd13be357-7577ef2fa31so365271685a.0 for ; Mon, 08 May 2023 09:46:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683564368; x=1686156368; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=h1sdyuNtBl6CAufIrv7TH3DRaVHKWDkDa227vEOVtN8=; b=NBPuYtttHq9TksMMxaa+Mhne+k5QBA7WKcIz1FImH8Vi7JJOM99UQR74q2CmEfkPqN UE7JObZBCdA2/Dl1kWWAXin+/CR7SaQoLq4Al4bQlVGhnbUwrM5zcVCPgdfy9VkD7/WV hKTx6a8XmotNZyZhVU1npcgrtqbu1MyCFHgIQLm1zMkYr+j1CvMIKsrIPXWQgYLDF9xa 8nsl+dMZ00bHrg9mp5UGZvNWfEabXOHFlmEbcQ+NndJui2sYmXHfxo0IlYBkg5+ZpBgw butRCe6p6CvCVtlBEEFs0XSSL72/EumJeUEEzPWxESxbxfZ+bOzlPc0xejl7BbwgqRuk NbjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683564368; x=1686156368; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h1sdyuNtBl6CAufIrv7TH3DRaVHKWDkDa227vEOVtN8=; b=DkSsUyn/P8a5wCyd2tYKdTZYtwm+EMLS8g5qw4vK9iFlA6NsVKx5mZ0tUEvrEC/DBW WYGAjfaBZU+aRgu/zE9O3S4mDFdQUCl6oIQiLTMA1433EDoaHeMHuqcm8h48NExzEfUV MGvhdnQr2DMXsbAGyj1X0IeyKMN0PuraGPvPrTMQRkuzVIVn8MiXYcVluZryiwIM2RO4 DpgFhQdzqFcHLacHDSDWTCAzoprMqRy9/ANJ5DFiRynpVj2R49W/4uRmgDPTswMW8y+2 CEReGGoqCzoAddsU6JxqpHo+aJlyG48U9Wzx2t7ZClfhQyKvpJkKvbFr/dtTwy08rU5i oM1w== X-Gm-Message-State: AC+VfDyIDDLUAyCKIlCD6rpION914koWRWnNcBg0Uiom4wrictDC998u XE5DfYXmhF1gePdKK4V/avEBA7LJ/bRueTVWYnB3tOlwTkM= X-Google-Smtp-Source: ACHHUZ4iNut6fLGXaeFvdUDTjhFNvw3uLW7t98QkqrzWvXRG5QUGZHPc+taOEsXV1Ma4V4gzFwddoxniFVS1p9y/f98= X-Received: by 2002:a05:6214:4018:b0:5ef:48c7:3f62 with SMTP id kd24-20020a056214401800b005ef48c73f62mr13901794qvb.15.1683564367638; Mon, 08 May 2023 09:46:07 -0700 (PDT) MIME-Version: 1.0 References: <202305070840.X0G3ofjl-lkp@intel.com> In-Reply-To: <202305070840.X0G3ofjl-lkp@intel.com> From: Nhat Pham Date: Mon, 8 May 2023 09:45:56 -0700 Message-ID: Subject: Re: [linux-next:master 14680/14811] mm/filemap.c:4250:1: sparse: sparse: Using plain integer as NULL pointer To: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Andrew Morton , hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, linux-s390@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspam-User: X-Stat-Signature: haxg41snnf37xnx68uh96t9fyzkm5kwz X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: D6BC61C0011 X-HE-Tag: 1683564368-866041 X-HE-Meta: U2FsdGVkX18rePVmuvhTJk0wKxvdKWHZ0ZEkw6FhrvjlghVElebpg4rQ4OMM9FzbeDS5aT3crsZAyDkkmv8pJpTanakfQ5yyRxIhvvlRTrYHqlHcZkSqLqA2j+Rbi6mhJo/pTnemk36FGE99awVklXvL4EMgWQJEYH8jASolcTceiorYP/dDM+FhRF6VgMi00UFQcJDZVj/e6AnhDFJYkH/pLcVDUV1HBXaOx+p8RrbkSmOGr7AfxSIOd6gn15HdJJqopKYzpyr6YNbpDAGE2yHr4pBapgjQw1NBF3fi9AgF0rl7r54KfCWiPHZolPQeAjN0x47nRzw2LaxyDvtea/+AJKAo5tp6eUvgMg6Gw3yF5A2pEbePbCipotOwHldVQp6J+FMshTSlV74Rnpnw7tS6eKXVwDgYuLNbRWFdpQWIgm43EWfufbnKju6iTAusVT8rt0UevL2mk9z1OV2TOWBQqGo0jDgaO58eTWA7Ucg2aMdXUS2ONdbpRJLGsE9KkIQyoJU2fXcXn/ll5enXAlvz0PwpkdjRdOH5UEJhjAXUDKARob6AVgfkYgsEIc+JEvwGeTXbhmQjTgTjyQmcfy7fxonJz/wV2JERk0EmfFuRyEiAwfJYkksiX7AvvIHElD5u5zWDG1ASAoioFNdSiWXCcgUipYpYSF3XGLqxFhs5zb26+YrfEpVulwmyWDoz6qHarRP2PrH8+yRxhaX7WYyQKUtwi7uRVdqaGVKZLeXNw4xbUyhfpb5LcNDBeD42lZt5l450EmX3N+04cKK84ah9IHgDVaxkIBQ+1shmO7P1YD8YvArhMO86M1p0NjkGMpCiJE0C6XdDc5jWkhkYc5b00bbDEmjr2Lb0la4p5JVTT3QgUZhouWa2HodmgrAEb85k0WkbjxdYcz2u36TZMnRZTWWVL8PErVK2sSbuCinI8SuSV4isI9tgZZCIWOcIYJH+8Qa1kLDmwe6Zk6J XbHLj5gY wYPxQhg6pHN4ikyVzuaq6gnfEYaK/NZx/bQzuf59E/FKxs+UAJMzN/xoFKEFHZLcIsBbABTn53AkitYEO0PXE3XmWQCO51LpNZpK9lKWTJgRWUNYC17ymbDCoc3cryQuYK1f8YJtrjQVZi+QxFsPy4knSr6ZTPTy47w/ZirfX/bxRCK5geRiMz3AwwOORrn6APHWofO3b7ZAbmwFf/t+ldTvrzVkxJve7sSSC2g5o3rq0bXW3HOCmDYsX0jGeeLTrRgV6Z8yCGlWbx1XiAEWYFo4QlRN34sSy8M28MuxV2hHDA1oi/j7d1bQulbhyfTHI40kYW8o/xZpPzYTqaLEYKRB4uyYwDCtphG0B4Bwzh0GpSTKZ0b9W3/X8Gas8rqU59FoMHTQniq9FyYCV1Cs58De3xQXj1qFgQjZokGaPQEft/YnWxOKCiMNwOw6vQ8z6QzPAPeZXG6nff+uHg4m3P4qjC3iTFQGzOVFP4Vc3w6eqLgATjV2Pdy1NG/oCA/u7HO8vSjE8bDB5QMa7vMIfruYzRJ1qYy6Q6yI0XwH7pm1WdQjAZ+aq45DPE680w92F66xOVvzeeoFtNu8= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000603, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sat, May 6, 2023 at 5:28=E2=80=AFPM kernel test robot wr= ote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.g= it master > head: 83e5775d7afda68f6d7576d21f7a080fbfeecc4f > commit: d39c65bc7fcb1dad22dc1585fc669b5bfe5d3108 [14680/14811] cachestat:= implement cachestat syscall > config: s390-randconfig-s041-20230507 (https://download.01.org/0day-ci/ar= chive/20230507/202305070840.X0G3ofjl-lkp@intel.com/config) > compiler: s390-linux-gcc (GCC) 12.1.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # apt-get install sparse > # sparse version: v0.6.4-39-gce1a6720-dirty > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next= .git/commit/?id=3Dd39c65bc7fcb1dad22dc1585fc669b5bfe5d3108 > git remote add linux-next https://git.kernel.org/pub/scm/linux/ke= rnel/git/next/linux-next.git > git fetch --no-tags linux-next master > git checkout d39c65bc7fcb1dad22dc1585fc669b5bfe5d3108 > # save the config file > mkdir build_dir && cp config build_dir/.config > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-12.1.0 make.cro= ss C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3Dbuild_dir ARCH= =3Ds390 olddefconfig > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-12.1.0 make.cro= ss C=3D1 CF=3D'-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=3Dbuild_dir ARCH= =3Ds390 SHELL=3D/bin/bash > > If you fix the issue, kindly add following tag where applicable > | Reported-by: kernel test robot > | Link: https://lore.kernel.org/oe-kbuild-all/202305070840.X0G3ofjl-lkp@i= ntel.com/ > > sparse warnings: (new ones prefixed by >>) > mm/filemap.c:1416:17: sparse: sparse: context imbalance in 'migration_= entry_wait_on_locked' - unexpected unlock > >> mm/filemap.c:4250:1: sparse: sparse: Using plain integer as NULL point= er > >> mm/filemap.c:4250:1: sparse: sparse: Using plain integer as NULL point= er > >> mm/filemap.c:4250:1: sparse: sparse: Using plain integer as NULL point= er > >> mm/filemap.c:4250:1: sparse: sparse: Using plain integer as NULL point= er > > vim +4250 mm/filemap.c > > 4215 > 4216 /* > 4217 * The cachestat(2) system call. > 4218 * > 4219 * cachestat() returns the page cache statistics of a file in the > 4220 * bytes range specified by `off` and `len`: number of cached pag= es, > 4221 * number of dirty pages, number of pages marked for writeback, > 4222 * number of evicted pages, and number of recently evicted pages. > 4223 * > 4224 * An evicted page is a page that is previously in the page cache > 4225 * but has been evicted since. A page is recently evicted if its = last > 4226 * eviction was recent enough that its reentry to the cache would > 4227 * indicate that it is actively being used by the system, and tha= t > 4228 * there is memory pressure on the system. > 4229 * > 4230 * `off` and `len` must be non-negative integers. If `len` > 0, > 4231 * the queried range is [`off`, `off` + `len`]. If `len` =3D=3D 0= , > 4232 * we will query in the range from `off` to the end of the file. > 4233 * > 4234 * The `flags` argument is unused for now, but is included for fu= ture > 4235 * extensibility. User should pass 0 (i.e no flag specified). > 4236 * > 4237 * Currently, hugetlbfs is not supported. > 4238 * > 4239 * Because the status of a page can change after cachestat() chec= ks it > 4240 * but before it returns to the application, the returned values = may > 4241 * contain stale information. > 4242 * > 4243 * return values: > 4244 * zero - success > 4245 * -EFAULT - cstat or cstat_range points to an illegal addre= ss > 4246 * -EINVAL - invalid flags > 4247 * -EBADF - invalid file descriptor > 4248 * -EOPNOTSUPP - file descriptor is of a hugetlbfs file > 4249 */ > > 4250 SYSCALL_DEFINE4(cachestat, unsigned int, fd, > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests Hmm I couldn't see where I used 0 as the null pointer. Maybe this is a false positive or a result of not wiring up the syscall for s390? Especially since this is pointed toward the macro line (SYSCALL_DEFINE). cc-ing this to s390 maintainers and the s390 mailing list... Could you help me debug this? Thanks!