Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1458467rwi; Thu, 20 Oct 2022 12:45:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6A5KAxvqJ84Q33q2amLReCG0BMoYV3pXZjJuxMWX7zxuFk32YaJyqTxHKe/wZZR5f9fkra X-Received: by 2002:a17:907:7627:b0:78d:b6f5:9f15 with SMTP id jy7-20020a170907762700b0078db6f59f15mr12427525ejc.149.1666295143638; Thu, 20 Oct 2022 12:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666295143; cv=none; d=google.com; s=arc-20160816; b=p1tbubFdWZVv34qoTxhgK8gLhGBBVL8W/Ll5oPIsi7jGWSSWK1m/oqZGQUNYC40YU2 75i+Evafj9ZMBfTtVzvExKfsWWmIu4kMXbnlsu/NUIRTez5l2KLz3sa5Oe6yMXm4LU/A p0UwLr9EH/CctyCzVHspL100+5b8hHZyVcqvQKI/CXk7OpgAHRont8O6cmpQdpVkQGW7 IX08CXpYWMeDHV+s8U7JIAvZr0cgfEzFhbvok3DlOtZ9zPwjnsQeOGxG3qqt3UOhPUcT 8VGzknrXHqgaB5c08ptwaGc+3Hte85O0TS8NWuKeId7nWluYdUT+OxOZVfFBoAJqhS53 tSbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZFG8oe8zjIP3HtrEYf8FZ1cCVncWHGDhPegdRUm6pSk=; b=ctuD4AuyNlxWS6Vqu23It4Akea7wuCmgeMPmhUMvzAc6XrTCLB+my4t0AXXU46DvNQ G26yuyrE9t7gL10DuXIkQ3+Nac7G0YuvvoiTqD/vH4H6wSm/9SzIETtZL0RJ87TwOGO0 S1xVsh3hbfvhj8yJzTi4+WnoLW1QDBX153R+/LrnsdLr8lqm8UCkyKx4RGMoBkFRQxI8 czS/I35nWK25Ce0jhCSNSxMme8rPpDnk3NQ5YRn8VW+NL6tm8sLZYYb5DGtpbKxiZ2ic IJ9lRSEiKrkfEC4e/lsAIfgzm5JoqSXPLPiiLMyeCGsD0IZ/1EggzuqA08uHbRPCb0yC u5Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JH10v71f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a170906038700b00783a0e64f8asi14593934eja.246.2022.10.20.12.45.17; Thu, 20 Oct 2022 12:45:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JH10v71f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230153AbiJTS5S (ORCPT + 99 others); Thu, 20 Oct 2022 14:57:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229832AbiJTS5Q (ORCPT ); Thu, 20 Oct 2022 14:57:16 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0898316A4DB for ; Thu, 20 Oct 2022 11:57:15 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id g28so397054pfk.8 for ; Thu, 20 Oct 2022 11:57:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ZFG8oe8zjIP3HtrEYf8FZ1cCVncWHGDhPegdRUm6pSk=; b=JH10v71f9cO/zrGHhWXMzQx4+lZEXvmFPiD6f82j66NBiYRArMO6WA87v5WRzOFdmJ vFAhDRdieYSaEwIMaX4NLT7dRZsmxrRodnE3B2inGJhsPNES+Wrq+P3EMm9m7qfLm7+X VDQRrM3G4guBVWiBNXcjYnt5uMWuXxdXqgHv8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZFG8oe8zjIP3HtrEYf8FZ1cCVncWHGDhPegdRUm6pSk=; b=2p8/mWiJeNXojWD5XF9p/NOcMCv4Z9HvoKLKHN5S7R57Pagp1YpVd6Lly8TfySU3bj KftHRIfxHu628re/8zXwRDxNxadNCpgDBoS4IKHoYh+2Tmk5UCSfJEcNelnftDcKjSpM 5wrazwvuuaushKO9xkY9VY5ONBVaUWuvjTlO7Fq74r6F7qzGIgvsH3jh+IhczcDvViZg V1PZmy5Ohf12ZcPwkhNpRFRX4zf6kojfzR1I/sBSEtBUYBoJun1Eu59+js0LP87LzkZE KW0pA4yLYJX1bQqzX3YbyP+yEt71Iq3a1iOedbW+84EquRr06ZoGBJxIHkAOf3/ivZMe wRzQ== X-Gm-Message-State: ACrzQf1Ycpcg/jkgAFGx3dDLSRODbbbL2tidFXR++J4Dl+ep6tTytksx ewBQZTuu7ome8I9IlzcZ08RzwQ== X-Received: by 2002:a05:6a00:1707:b0:563:235:769b with SMTP id h7-20020a056a00170700b005630235769bmr15374927pfc.19.1666292234509; Thu, 20 Oct 2022 11:57:14 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id c28-20020aa7953c000000b0053725e331a1sm13669135pfp.82.2022.10.20.11.57.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 11:57:13 -0700 (PDT) Date: Thu, 20 Oct 2022 11:57:12 -0700 From: Kees Cook To: Linus Torvalds Cc: "Jason A. Donenfeld" , Alexey Dobriyan , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, mm-commits@vger.kernel.org, masahiroy@kernel.org, gregkh@linuxfoundation.org, andriy.shevchenko@linux.intel.com, Stephen Rothwell Subject: Re: [PATCH -mm] -funsigned-char, x86: make struct p4_event_bind::cntr signed array Message-ID: <202210201151.ECC19BC97A@keescook> References: <20221020000356.177CDC433C1@smtp.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 20, 2022 at 10:42:25AM -0700, Linus Torvalds wrote: > On Thu, Oct 20, 2022 at 10:33 AM Jason A. Donenfeld wrote: > > > > Or sometimes with objdump, I've had more success by keeping debug > > symbols, and then trimming offsets from jmps. > > objdump is what I'm using, and it actually seems ok on individual object files. > > Now I just need to script the "do all the object files" and see how > massive the end result is. For the a/b build, I start with all*config, then: # Stop painful noise CONFIG_KCOV=n CONFIG_GCOV_KERNEL=n CONFIG_GCC_PLUGINS=n CONFIG_IKHEADERS=n CONFIG_KASAN=n CONFIG_UBSAN=n CONFIG_KCSAN=n CONFIG_KMSAN=n # Get us source/line details CONFIG_DEBUG_KERNEL=y CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y CONFIG_DEBUG_INFO_REDUCED=n CONFIG_DEBUG_INFO_COMPRESSED=n CONFIG_DEBUG_INFO_SPLIT=n And to keep other build-time junk stabilized[1], I build with these make options: KBUILD_BUILD_TIMESTAMP=1970-01-01 KBUILD_BUILD_USER=user KBUILD_BUILD_HOST=host KBUILD_BUILD_VERSION=1 For the code diff, I use: objdump --disassemble --demangle --no-show-raw-insn --no-addresses and when doing the manual examination: objdump --disassemble --demangle --reloc --source -l --no-show-raw-insn My not-great way to filter out the movsbl/movzbl, I added this to diff: -I '\bmov[sz]bl\b' -- Kees Cook