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 00753C433F5 for ; Tue, 10 May 2022 12:49:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7D7DF6B0073; Tue, 10 May 2022 08:49:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 786EA6B0074; Tue, 10 May 2022 08:49:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 628126B0075; Tue, 10 May 2022 08:49:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 52A056B0073 for ; Tue, 10 May 2022 08:49:01 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 334B12F9B7 for ; Tue, 10 May 2022 12:49:01 +0000 (UTC) X-FDA: 79449813282.04.DE207E2 Received: from mout.web.de (mout.web.de [212.227.15.14]) by imf18.hostedemail.com (Postfix) with ESMTP id 658881C008C for ; Tue, 10 May 2022 12:48:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1652186937; bh=3SEveaMj4jZCnJ5APQibQymks8/uOLuj8e/GbWas2KM=; h=X-UI-Sender-Class:Date:To:Cc:From:Subject; b=H5ONVDnIUAMeSGXUkVVU+H5zI6Ns4H3GHrLdc/7bUo2lOVMywoOYGj+tf0/+/ayLu R8nhVYBB5Vy4UaTxsKCJB9NgVArF3ZlE4I/yMIDVl3vq6HiZwzEJh0E9X8OJyMFhB8 If5LND6OgewBUxnAZO55imJoZCHF6NO3UcQS8SgM= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.178.22] ([87.155.228.41]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MIc7N-1ncaui288r-00EJWJ; Tue, 10 May 2022 14:48:57 +0200 Message-ID: Date: Tue, 10 May 2022 14:48:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US To: linux-ia64@vger.kernel.org Cc: keescook@chromium.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, debian-ia64 , Pedro Miguel Justo , Sergei Trofimovich , John Paul Adrian Glaubitz , Anatoly Pugachev , Anton Borisov From: Frank Scheiner Subject: [ia64] Linux 5.17 (Debian) - Hardened Usercopy: kernel BUG at mm/usercopy.c:100 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:YMIOBBmOBAJ4PxtJ1uHxMIIQn8NjniDeiaH5CjgBAH5oeh/PZtr LV9mfPL/pvOUnAIZxE11BOJJR5CzHqOwEDIuKR/GS/x098OBhV9Sf+xoVgef8+d/Kh1rsyc onwaCEwOfBwc90RcSCrGqJ2n8zBaOHVfrq/EwVPEeA34Y8GKS6q9tqFgDx5x6I+eTv92Rq2 4at9QRjWTy0KflgLK1aqw== X-UI-Out-Filterresults: notjunk:1;V03:K0:oKsyCoFMg1c=:zkcsqyOpckt2cM/yPgGrrD 1inAtJtwbCVHRlzqaFaYhTMGYFi2//w4u+fGngEMCcl7axRAFaSD/0ywb59DaZJCUZFAQKOdE wDMTsm68e3gk0zUe1JPB/7rHmzJJF1zrNNjTrpfNbU/ERJZD5ZUa2lv8dtEU8eJEdYPTb/RSn cYJGT6y4q9Ogw3SwujjFSald0gyf+QsfWAN9IMK6m3UERErjl7XfuE1MN6ZUG9SLUIprP6lKU ZdSmci69pBxMGjO56wHE+BnjXSJWoBowdOAF32PE4tq56f/xrUFrL0A+TA4BI+pGkrb9NgO9D 2CxKpQqlyijBHK1BiJB9ZXembV8xV0VY/wu22zq4y/IxylIjcwpfu4s91llWpjSCjYchYIhM1 uGgMz3MdRrnC+UhyDcAusxbOacIhTD6QR/u7a8P1rE7EGC1dLUc1KjvGZyP2lj7YGuKtaWmiS QqZYvnJ1nHzYsGrDKv2KS8AiqG+sB9tmMmWw2wLdptepaV7vZ4feEKybAFtLWUlwBC4CieV9R MCULl0IlDWBmP3ztBh44FzkC/0fBVPnrTUpAXWPOWwJgWIbnKmxTX7EFZL8NEuzKu0Q8WH4wG SOSeYgis7d3ekWApYd0/s/0mPx55RvunBFhNeReUIF9N3PpzQMgodeJxvfwEBKMupxbHzvAUU bXQRw85y1UhIXQWKM7Q0vk3qBHjhyjZEWLtUYtDEqL57RQOn9yYFZ/AMhthKwJjHuvl0gzZho 0Ot9pPatsXxeti2iHQDAcnIYCp7iFnCxJTC/OlHCzOCcI4VmZ9UAIFWDGbIWEC4TqRBENg1nZ RnkUyylgdPVJ32AWIOoxALGlwHXgMMiQOF+Bk37kn0RpdM3IqALIaI4p9nqmxpV28XJL+2AUi pETh6WVrIbb1LPAz2mq6/0gv6gBqgktByFg9TeippKMu2rR/QgHBDGJmzx8USeh1uBZmxAVKf VaGHxFs4HMHDLBwY4CoiBIV79VfdPO0Tif1GwlDQg8Rk9olOhlhHr9k0oATKlZyr89dfey98S 6vtFaIrvmp0ahewcrRW4gp1wpbBbeOmfWQX2Ul8lChujVKCv4/5SOiMLHP8crxGd1ak/QSCJ8 s9sJTJTAsDwvmLul3B3GGYN1QRMmwJ21ctrRJWsvdSPFQddbswt3RoVdw== X-Rspamd-Queue-Id: 658881C008C X-Stat-Signature: tacpbjpq7yn18983cmzqytcygwe9t53s X-Rspam-User: Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=web.de header.s=dbaedf251592 header.b=H5ONVDnI; spf=pass (imf18.hostedemail.com: domain of frank.scheiner@web.de designates 212.227.15.14 as permitted sender) smtp.mailfrom=frank.scheiner@web.de; dmarc=pass (policy=none) header.from=web.de X-Rspamd-Server: rspam09 X-HE-Tag: 1652186930-412894 X-Bogosity: Ham, tests=bogofilter, spamicity=0.004537, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Dear all, "hardened usercopy" does not work correctly on ia64. And deactivating it with `hardened_usercopy=3Doff` in the kernel commandline seems to make no real difference for specific Itanium 2 CPUs, namely: * Madison (in rx4640 with zx1) * Montvale (in rx2660, rx3600 and rx6600 with zx2) ...which can't successfully complete kernel boot with and w/o `hardened_usercopy=3Doff`. If "hardened usercopy" is deactivated in the kernel configuration instead it seems to allow Montvales to complete kernel boot successfully. @Pedro: Please correct me if I understood you wrongly here. * Montecitos (in rx2620 with zx1 and rx2660 with zx2) instead seem to work much better (both kernel boot and userland operation) with `hardened_usercopy=3Doff`. They don't work w/o `hardened_usercopy=3Doff`, though (rx2620 needs to be checked, true for rx2660). * Tukwilas (in rx2800 i2) seem to be not affected by this bug at all. **** I compiled the stack traces of the machines I tested on [1]. [1]: https://pastebin.com/raw/AKfZrjWi Please also see the originating "Re: rx2660 + debian" thread on Debian's ia64 mailing list ([2]), and specifically [3] where Pedro and Sergei start to dissect this problem. [4] shows that usercopy problems already seem to exist in Linux 4.19 (for Montvales in rx2660 with zx2)! [2]: https://lists.debian.org/debian-ia64/2022/04/threads.html [3]: https://lists.debian.org/debian-ia64/2022/04/msg00021.html [4]: https://lists.debian.org/debian-ia64/2022/04/msg00022.html **** If you need more information, please let me know. I haven't yet created a bug report on "bugzilla.kernel.org" for this. Does this need any more information than what I just wrote above? Cheers, Frank