Received: by 10.213.65.68 with SMTP id h4csp65135imn; Fri, 6 Apr 2018 15:48:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx484QIjvruQOIlOZ2cg076bploefOaGmN3bWFoI3xKfh5hzwqymfdjE4BDR37BZbDpeMpCNk X-Received: by 10.98.60.4 with SMTP id j4mr21689463pfa.229.1523054893475; Fri, 06 Apr 2018 15:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523054893; cv=none; d=google.com; s=arc-20160816; b=TdlwkI/v56W7ufhwtdXO1nQeeim1ZLNll9AunB0DHV8tlbzGCikmHYIjVwB8HbmDgy E5BnebNuBM+XkV6kE9e1ESnYYnpTwdd/EOFyrqi0irtsElx7f4DVaNeVzwHBvFwK5CIs 3JAVAQUKQaND9TpiC2GLsqJqq+a/VUzMbQyXCGLRMdgo5NY4TvYJJzbIRMSwugrzCqD4 nspQwoa7K8ZTW858l1sncqDRAiy0CEIZkDe+f8S/pMVHV3ZeXzMFDRE7oGsuaMmvw95j QS4I/nyD3IhitvklbwAQi12VyF3LJZCszB/Ym+Zj5lJt5gPREIGr/cp2xRG4eBZ6Vc6Q 7TWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=S8o5U0FPj4AdRru+2ErtjCDgRXj16ALv0O1B1VbjcDo=; b=FCDZn0Va4BeDPjB+yy0BZYM4j1cmqFwHZpr/PqNiWc1S20aaU+/VUKgEv4UVDTlSef i38JV/Gk/pSZJs+WNvqCTis5ZXQRNdVt7dA6+zvKvdINnb8LE+3L0bCFwkJxceIjZ5zX +TwyaxwoAemTa6ylv8/FI4XQe+FS5oWeZ0iF1/DSzYJY4hZ3WP2RrWkvU8SxvWui+YAi ISbUoYs2HWEg2hbdfGId/kB4f1lc3XVljaLdsKikL+owhx56t6r6oj+R2nW8LyaI64YD y7OsAHO3WZDXU6XfZwDayT6E5445j5pNEiZKbEDuE/ob9+7Y8yrWF6meI9xqRgABQB2z mblw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=rGJnUFjN; dkim=fail header.i=@chromium.org header.s=google header.b=X22TRVEj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2si7652472pgn.547.2018.04.06.15.47.36; Fri, 06 Apr 2018 15:48:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=rGJnUFjN; dkim=fail header.i=@chromium.org header.s=google header.b=X22TRVEj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752734AbeDFWoU (ORCPT + 99 others); Fri, 6 Apr 2018 18:44:20 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:34470 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752171AbeDFWoT (ORCPT ); Fri, 6 Apr 2018 18:44:19 -0400 Received: by mail-ua0-f193.google.com with SMTP id l21so1661298uak.1 for ; Fri, 06 Apr 2018 15:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=S8o5U0FPj4AdRru+2ErtjCDgRXj16ALv0O1B1VbjcDo=; b=rGJnUFjNW5RAVc7owQ2AejpSZsrGGCN6euI/35nP2C+gudhGGUqE4ExIAHvfdXZJXl 4C8QxM3QIGGY1ZEnc7/cyZl0ZdNb8sJ0qTIMbAIrRW2vfxNZiIOl8M0DWJ44kU2v5dN+ jZUy3FcNI59ZUQlDNz1l2TORsb0im/g91oIESCGTAdE6uJj/vhjtk0xS0CWrOUGJZsHw CyWq3SJBsc0GQ+kgCG+Ec52MWlWvK5CJD83pzqyjQ7gcgzQ4tY1deLOV3dHxZATKixG6 4Ve1+ZMXRP8uiPPmlKLx7usQksdx/GoNkXllePjUEWDpMOd2v0XqzaJJKEEXdRe1ky4H m8rg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=S8o5U0FPj4AdRru+2ErtjCDgRXj16ALv0O1B1VbjcDo=; b=X22TRVEj2ib4KFQ5EnqHTxIHJ3N7MLQk2j5k53ja/c0xBy8OrGAwUj1BwSpp6UN2sK Xzd0OKcndORkFhYArsE4JnAsg4q+DUlIWuUiFNI8OvNknziPq5Mmul03DEv9EF03nVGT ne6SDC6Y/VYmC/DBnegkpV5S1JyeqoThqdzS8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=S8o5U0FPj4AdRru+2ErtjCDgRXj16ALv0O1B1VbjcDo=; b=Or7dab3PQzHiXLKBpTwqPAWAawu6sXalFT2evGujNUeP7rNX3Xcafd1vwB1RDcWARo B/7GMxXDI2L2mMgvuN4QJWmsrAtaoJA/dPzvL5wXII9+D8N5DFBAVwzE95W0N8vemtdW H8Vwqu0XugVGcupMk+OkRYgvzLA+CzHZ+b6LkEvf8e/1N+Fwod3l8mSoiNWnvAK68d0s ZUZV37egDBsOjFsClDDzp/VVDCqlOabZjvKSufpmk1zCIdlmtdhawcpc1Mac/stqVx9+ pKIZTqfsulA4as7fwB5XSXREJQaR8tUl3UwBJQiGfOV8hBGso6zGHYe6tMGCl8xWhZ9f uTYw== X-Gm-Message-State: ALQs6tBKgjwt/kUOgRFLq5OyO4bTZ7yO8ZJ5itKvfqGK6sQDC+SS7Cdv LQOMyBPXONIXT1n+BwBChIkVg4pCKnRv6J57qMwUFw== X-Received: by 10.176.71.214 with SMTP id w22mr18315851uac.74.1523054658499; Fri, 06 Apr 2018 15:44:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.164.81 with HTTP; Fri, 6 Apr 2018 15:44:17 -0700 (PDT) In-Reply-To: References: <20180406072517.27709-1-tobias.regnery@gmail.com> From: Kees Cook Date: Fri, 6 Apr 2018 15:44:17 -0700 X-Google-Sender-Auth: sGSrJdOk3zPZREDNJKlloKIfxMw Message-ID: Subject: Re: [PATCH v2] pstore: fix crypto dependencies without compression To: Arnd Bergmann Cc: Tobias Regnery , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 6, 2018 at 12:56 AM, Arnd Bergmann wrote: > On Fri, Apr 6, 2018 at 9:25 AM, Tobias Regnery wrote: >> Commit 58eb5b670747 ("pstore: fix crypto dependencies") fixed up the crypto >> dependencies but missed the case when no compression is selected. >> >> With CONFIG_PSTORE=y, CONFIG_PSTORE_COMPRESS=n and CONFIG_CRYPTO=m we see >> the following link error: >> >> fs/pstore/platform.o: In function `pstore_register': >> (.text+0x1b1): undefined reference to `crypto_has_alg' >> (.text+0x205): undefined reference to `crypto_alloc_base' >> fs/pstore/platform.o: In function `pstore_unregister': >> (.text+0x3b0): undefined reference to `crypto_destroy_tfm' >> >> Fix this by checking at compile-time if CONFIG_PSTORE_COMPRESS is enabled. >> >> Fixes: 58eb5b670747 ("pstore: fix crypto dependencies") >> Signed-off-by: Tobias Regnery >> --- >> v2: check the config at compile-time rather than change the >> kconfig-dependency as suggested by Arnd. > > Thanks! > > Acked-by: Arnd Bergmann Thanks! I'll apply this. -Kees -- Kees Cook Pixel Security