Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp994486imm; Fri, 27 Jul 2018 09:26:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcFuUfOKeCJjwjQ3YvWBnEadiqNlPmWk2pwwdz6zu9RAW0+XNQtPGtpb5dVWeij2WOpfEIw X-Received: by 2002:a17:902:24a5:: with SMTP id w34-v6mr6647550pla.52.1532708770539; Fri, 27 Jul 2018 09:26:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532708770; cv=none; d=google.com; s=arc-20160816; b=AmwdT4JrHdvY/OyzC6OriZ3e8d3z/tUxDRCwvqd4fdWoxkg89vDSiEy9Wfw8Nar7qE Xyveijz67+KA+QAKfh3/Vaqs36uHMxra/N1RQzJvDezGZflWsO0gOBqvkhI0OBILMQux LsfQ1uG926Yz8d90BSXQkJv7Ns9bKMYrzI0mEcJpEoIHL0slU+wO42slwLXaClxvJJHL 78NfkPItK2k1Z5xmMhNn/cIoS7VcTvVlYjSleUR5zyhX3HoJGJyfx/lvF9xJwlaqPN/i DpE5E8jZFvbdQNH+xB5F5hB4TcCx6lGpxuVYKLFc4isGvsSARmBW1c08IF+Hq4z5PJV7 v/4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=e3ebDUbeMV/L8Kj2OXFdbYyc+uWSGH8FYi4GQaMyx1s=; b=zLZpfxk/OAP4GAzBzP0YUhHosn1tF/edQ1NUGaz4myqCl2l8TrbeGDCi8lnUk6MbkA HXsYiMDGKUwjLJORu90n9E8Bcyx4KDVg3fsfVyWtlyg0tS264npgncU5zcHmywiv6xu5 dRwDKr4ZFCxl73LnS47oEYyhhivFGghXkb59rCJ0SUPpnWT+3bHogmjPHiLiv1O2BKHU RkX1/wvLi0yVtSeXeTcVQ5s62OmTCX2LH1tcbpsFcYUnLaeOvUsqMokrx2dYcRN0ZVfM 5vQF8Yuof11xwZNZmmJaMESBNhXhybiGZ6EKr4I/uh9ylI+uAbqdVO+VGvBfaut6SFuX KQwA== ARC-Authentication-Results: i=1; mx.google.com; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l63-v6si3659790plb.106.2018.07.27.09.25.55; Fri, 27 Jul 2018 09:26:10 -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; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388556AbeG0Rrp (ORCPT + 99 others); Fri, 27 Jul 2018 13:47:45 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:34835 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730771AbeG0Rrp (ORCPT ); Fri, 27 Jul 2018 13:47:45 -0400 Received: by mail-qt0-f195.google.com with SMTP id a5-v6so5623091qtp.2 for ; Fri, 27 Jul 2018 09:25:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=e3ebDUbeMV/L8Kj2OXFdbYyc+uWSGH8FYi4GQaMyx1s=; b=ecPQf9OuUuoa5owjuZrykv9A7JU3lWGGYNVqaByKPQApWYOuL4a7A/iCHbLflXVYZr /SDvFZYqzIPeeVo0Oe+K7rir9XCNppb6/ja/Ee4qxSzlLkLmojNsfRKp1fskCGSm014w BWPaGepnFP53+18wn/eg0LtxgUYy7KLj0iXZf9O9lJVZnkSLpEks0gK7NdgCLjd6TkZx RYkU9UU7+arqLcL6BTtL15ZaRtY1kDuKqjlpCERa100F355cICk/sOb0rkkinx/W2/UM 6ypOrpZvZ9L35X0etx6dNOClVXasqcnWqTx2nA4aEwupw32EjgrqctEvUmpbt2de9/W0 NEpw== X-Gm-Message-State: AOUpUlEVm5oCmDqHd2SfSGTEpr9G2E2ueA9tIDIr7kl/rD5gTTND7a2q NBCjTCOaRQHUrvVBRRuuIGG9o53JVyU= X-Received: by 2002:ac8:13c3:: with SMTP id i3-v6mr6836650qtj.54.1532708707422; Fri, 27 Jul 2018 09:25:07 -0700 (PDT) Received: from builder.jcline.org.com ([2605:a601:80ce:4700:77a5:8983:ea8b:82ec]) by smtp.gmail.com with ESMTPSA id s73-v6sm3137342qkl.65.2018.07.27.09.25.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Jul 2018 09:25:06 -0700 (PDT) From: Jeremy Cline To: Theodore Ts'o , Andreas Dilger Cc: Josh Poimboeuf , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Jeremy Cline Subject: [PATCH 0/3] ext4: fix spectre v1 gadgets Date: Fri, 27 Jul 2018 16:23:54 +0000 Message-Id: <20180727162357.30801-1-jcline@redhat.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi folks, This patch set fixes a few Spectre v1 gadgets in ext4 detected with the help of Smatch. Note that because the speculation window is large, the policy is to stop the speculative out-of-bounds load and not worry if the attack can be completed with a dependent load or store[0]. [0] https://marc.info/?l=linux-kernel&m=152449131114778 Jeremy Cline (3): ext4: super: Fix spectre gadget in ext4_quota_on ext4: super: Fix spectre gadgets in ext4_quota_{read,write,off} ext4: mballoc: Fix spectre gadget in ext4_mb_simple_scan_group fs/ext4/mballoc.c | 2 ++ fs/ext4/super.c | 20 ++++++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) -- 2.17.1