Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754170AbdCaFoy (ORCPT ); Fri, 31 Mar 2017 01:44:54 -0400 Received: from mail-ve1eur01on0103.outbound.protection.outlook.com ([104.47.1.103]:18824 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751361AbdCaFow (ORCPT ); Fri, 31 Mar 2017 01:44:52 -0400 Authentication-Results: codemonkey.org.uk; dkim=none (message not signed) header.d=none;codemonkey.org.uk; dmarc=none action=none header.from=nokia.com; Subject: Re: sudo x86info -a => kernel BUG at mm/usercopy.c:78! To: Laura Abbott , Kees Cook References: <3890813c-c891-89a5-c16f-66240a794319@redhat.com> CC: Linux-MM , LKML , Ingo Molnar , Josh Poimboeuf , Mark Rutland , Eric Biggers , Dave Jones From: Tommi Rantala Message-ID: Date: Fri, 31 Mar 2017 08:44:43 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [131.228.2.26] X-ClientProxiedBy: AM5PR0402CA0008.eurprd04.prod.outlook.com (10.175.37.18) To AM5PR0701MB2355.eurprd07.prod.outlook.com (10.169.152.141) X-MS-Office365-Filtering-Correlation-Id: e8508cba-b56c-4b42-6d20-08d477f90acc X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(48565401081)(201703131423075)(201703031133081);SRVR:AM5PR0701MB2355; X-Microsoft-Exchange-Diagnostics: 1;AM5PR0701MB2355;3:7f7b4uA+vNfAD43I/HaNQJcKAYldBcMlRYyrSEYvaXjv9SHy8jCeEZRoGuqUOybhsPleksu+b+rCO1k5aJadxtKrrhvsav+QZta/Xm6ja4VrOwnt+mPov1HYYGlDNw00paOX2E0JLaKQzbNPJx3fI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vr4PrNK2Cr/N5tjIAQan9huWGDLmEJ/ixIByqK2wcywJ9VeSNHT0cVPzp1EpwZXAf4bSNwxa3TtUsAHLb8xPgSuEB3q+EpF/ygZbZC78RTGzD4x1tIaj7sgp9DuO44I+4FSz5MLn8ak+L7wyBCZq9i8GhqsIOu8obVy/fp3iyKTBtUngiZN4WJovnlrNJyU3w7zoTTZ9qa2/dIgvgIrXmhmYPZ7F9Kx0+piuOn4wyEFJJB664mYP6FjVRDVg9bloDIyb2IFX1lBfMrCyjkN5obQCkGUd1ddjVhYy2QP979RjKqApfQGc8pa3buSvsynuKmcNU/Ru0+eq333krSdjrU7JvAhPRibWvMQJTVmzF5nfii8NqrwSNK+SPwg1TGlKxhrpr0Yg/Wldw3EwRLoS35eHllTsfqq/o2YSfacrf+pBHvTN64qzn8zz89VIjxBphtOF/HXQ4LvAZyNLbMGQKS2O6N8qj0hNeMkbCikqhSOj8gJnfCjAT5CoXmFGMuuawQKEtrGRUf4i0JN4nbezeRnsJQ4Llk= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(93006090)(93001090)(10201501046)(6055026)(6041248)(20161123564025)(20161123560025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(6072148);SRVR:AM5PR0701MB2355;BCL:0;PCL:0;RULEID:;SRVR:AM5PR0701MB2355; X-Microsoft-Exchange-Diagnostics: 1;AM5PR0701MB2355;4:cpvHCa4sPbLJWdui65bdDaIBgtmpx+7FtXOdcPVJrnoeBhXfrO9Au/sbsTg/Y5ru5Y2nX3EI4wQIHTSmV0TNvAS2jjM4Bx5oZX+mZTrzPdgZYny+vE9sMtKdPOhrFDXIeXJDG8nYt8MIPCnZPBIb5fyEdIFQNkA8yS1I9MrXPuBgtPGy/+CplwwA3X8Q6wrvvgoThietEfurz2kgbOwf8vvuM02bTWGV/ddh2SLMAjf73Avgoi7P9G2S1eL2PscnFgrTBEkfbTRFKf6chJiDI4+KARrXcgBCHX60jEjTTO8xYnz0FY8aAJDy4PeLQV+hQYAGWB5AOISdRK4Ptb02Bj8BJZ2xootiirV2KTrINQD6WvcNwBdF86co1XyNtYTN8Z6gqmyqBOWomJGjtTH+HDp4lVW7GaSuiJlwzb0uDvUiK0LnQKopKTq31k+Kf6Mjb6acxk47Yd7SS5kvSUIhgkb0dO5V4LFCtr4UADt6j89RhPTE3G96lPBin6qDekDVoGCllzFj5gs0sEXo7hY3QuA4Cu9O9UikwOLyE83QWIgAy72Ay43bfs3OsojABp2+1nlnFQVyZ1r6CkHuAs91WqFHh9DpSXbBEqtJWZzaRHDY1lD1m/MnzxljbsiAOdOhRhZC4uADyDHUtjEljn0hR2xcS4pseG12XsqlnSv4au26UlE0cD//PRBBUs8N8r771F8dOvMOu4KNQ3TZHx+5osB5D5EILolw384tLDC8Uos= X-Forefront-PRVS: 02638D901B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(6049001)(39450400003)(39840400002)(39400400002)(39850400002)(39410400002)(39860400002)(24454002)(377454003)(42186005)(65826007)(93886004)(81166006)(5660300001)(36756003)(50466002)(305945005)(54906002)(7736002)(4326008)(23676002)(83506001)(53546009)(229853002)(2950100002)(6666003)(86362001)(31696002)(38730400002)(6246003)(25786009)(226693001)(189998001)(230700001)(2906002)(6116002)(76176999)(54356999)(64126003)(3846002)(50986999)(8676002)(65956001)(65806001)(66066001)(47776003)(6486002)(53936002)(90366009)(33646002)(31686004)(77096006)(4001350100001);DIR:OUT;SFP:1102;SCL:1;SRVR:AM5PR0701MB2355;H:[10.144.182.168];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTVQUjA3MDFNQjIzNTU7MjM6cGJvU1k0dS8rcnJidEE4MzJFZElGemo2?= =?utf-8?B?SHZDeWp4ODdDVFh6aXAyNVJPRUgyWHJ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4+eaT4HSg6R2AMArg9OAgRpfoq6A== X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2017 05:44:47.4160 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0701MB2355 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 573 Lines: 24 On 30.03.2017 20:44, Laura Abbott wrote: > On 03/30/2017 10:37 AM, Kees Cook wrote: >> >> Reads out of /dev/mem should be restricted to non-RAM on Fedora, yes? >> >> Tommi, do your kernels have CONFIG_STRICT_DEVMEM=y ? >> >> -Kees >> > > CONFIG_STRICT_DEVMEM should be on in all Fedora kernels. Yes, the fedora kernels do have it enabled: $ grep STRICT_DEVMEM /boot/config-4.9.14-200.fc25.x86_64 CONFIG_STRICT_DEVMEM=y CONFIG_IO_STRICT_DEVMEM=y But I do not have it in my own build: $ grep STRICT_DEVMEM .config # CONFIG_STRICT_DEVMEM is not set -Tommi