Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2548797imu; Thu, 29 Nov 2018 06:44:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/WluhufZwqukyoBoiyjtyo6VcDJGKhFG0kv6s1GNn2aFEokLQ3XP4SFRvKSB6i7KqOzpPQF X-Received: by 2002:a63:e445:: with SMTP id i5mr1459055pgk.307.1543502665285; Thu, 29 Nov 2018 06:44:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543502665; cv=none; d=google.com; s=arc-20160816; b=cGq/sz+1U20dJH7gRn8xE49mpQNFAhpyy16QfcRljbPSWRK2wIljxjbvBdszCL4lx+ 8n5IepcEmO7Y5OFzUb2Sr1Hbck6QBC9Wo4L61vcgK0sgc+gev64tC7/FuWXYzkiDCW1u Yx59BU+1iBd1ykvYquE2c0OSKMVdekCWlUAZG0w63Nx82x1zxOH5dOhtUvnF6fryESHp LptQ7STkKnnnbIB0ALnzEkDWcxetWJ5ryPYga6WsHIFx47iT5Wm/NoKSJbugLO8BbXZZ Dxiu9HnFJU9NIiyox6tBZ5tPgZMpRKbeRybyZIUVv9xgwIpUvESH8aBf1HHGDfpSpO6j Rvkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=a8Lu4BxEnNxoWlmjRXb0oLTqE7IDUiIjqFsHzsqt+5M=; b=iiI7cpMxvrmcPs6LSyZuPIG3rXnMTWBlYnVvFfFFOPpJLcqN9slTA/n06J09yMcipI EgDWeYEv1FiyNEFnTXLSuUFTgcp7EyIdllareneqhAuIX29NbEJbu3FWo8R6ytpxDne5 WmodhbjTaeKAuwEqgwiwL1xadE/eGNE34zgQzMnyxUrleMrNlMX6Z/2J4NVBap/m/irs KTOiH1+7zYnazf5se68tLmYlNyq1YMEDkZRVre0hFNAZJXaPrF2ORoTGn/lv5IXntpDo S/O9Dp9eVB+hTfdmFye5Sz1peO8wDgXgTAGzx/OIkiEZI+6H9OK3uTngIa82zqpwH1QR yU/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x8IcbpqO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si2223802pls.338.2018.11.29.06.44.09; Thu, 29 Nov 2018 06:44:25 -0800 (PST) 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=pass header.i=@kernel.org header.s=default header.b=x8IcbpqO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387951AbeK3Bdk (ORCPT + 99 others); Thu, 29 Nov 2018 20:33:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:34366 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731863AbeK3Bdi (ORCPT ); Thu, 29 Nov 2018 20:33:38 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6C4DC2147C; Thu, 29 Nov 2018 14:28:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501685; bh=jYfZxsUAZxMztUw3UtO7YqsyZLpPyJm3LP7IPltutrE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x8IcbpqOK7S4Z0oTj0vUVLZun5yI61JXLSP+sCIE1lcNA9dVkK5u9BbOVKdzLTjKc DuwZtyus6wYbTqEN0+RacUwxLDrBCL69boz8OeoiK0kthhOzZh5u9FU7LzQOQrD/Xj ouu/q73Cgo/JpJof0g0cAzO7aodTJmBAnUNCa4eA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mimi Zohar , James Morris , Aditya Kali Subject: [PATCH 4.14 100/100] ima: re-initialize iint->atomic_flags Date: Thu, 29 Nov 2018 15:13:10 +0100 Message-Id: <20181129140107.366467966@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140058.768942700@linuxfoundation.org> References: <20181129140058.768942700@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mimi Zohar commit e2598077dc6a26c9644393e5c21f22a90dbdccdb upstream. Intermittently security.ima is not being written for new files. This patch re-initializes the new slab iint->atomic_flags field before freeing it. Fixes: commit 0d73a55208e9 ("ima: re-introduce own integrity cache lock") Signed-off-by: Mimi Zohar Signed-off-by: James Morris Cc: Aditya Kali Signed-off-by: Greg Kroah-Hartman --- security/integrity/iint.c | 1 + 1 file changed, 1 insertion(+) --- a/security/integrity/iint.c +++ b/security/integrity/iint.c @@ -74,6 +74,7 @@ static void iint_free(struct integrity_i iint->ima_hash = NULL; iint->version = 0; iint->flags = 0UL; + iint->atomic_flags = 0UL; iint->ima_file_status = INTEGRITY_UNKNOWN; iint->ima_mmap_status = INTEGRITY_UNKNOWN; iint->ima_bprm_status = INTEGRITY_UNKNOWN;