Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5604937yba; Thu, 11 Apr 2019 01:33:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjzu9zxhLw50Drrer1mg6p78NpQ2mHjWZIguNKwg3s2/UZzGV7/7YDXq7UvSV2dIichXlW X-Received: by 2002:a62:4558:: with SMTP id s85mr48639969pfa.171.1554971610404; Thu, 11 Apr 2019 01:33:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554971610; cv=none; d=google.com; s=arc-20160816; b=NNI7VfXgztsd+MOgbPU+fYYjRRRT5sPoXRhX4ZVwGp0JLZPuNVHBguQZKyMPMFtMK/ u16GPdTA8SqemI3QY6pZYt8HkC+bBSBi9hWZQF2O1vUrPivgcJznKCB4r7F7IrjHDpVP Mu888UgwCl78ldhoDdPocuaWofAXEJyo8sqyOq21535OHkWUZBUf2smXR49p2lZ0IJAN /+44w6cJlar7m3YojZgpw0zxPpB2KU5EsFgT/fc8ggKTDmh6exDnmTd+z8G6zIGOVkgt wf/KtmmqKvyVrBZD93k2FN8O3xk6jhMZbR3HktP69oHQKMaQMmxeyKbLpbe9pqC4Ubh5 JqMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=aSblzofrifApPPz1nLSqHgFTP9WjeTo9K1tKx1NQe4A=; b=eB8UfdVf1m2J+pupKoGxfCgozsT9C/exAhKHn0ATzkAS80t3InCX24QcSOqDvYfGZO ZXRuxgxfacErgSh5lHNETlxqpVO4+TEZmuy9P1GGFmt/4ca9fPw3boMO7V+QzS3BxUJS 6el/8jS8VjnLu9lBUnoIe+kizePhqPujOYf4ff0L2gDsh5yg1q9G/dp8zxGdtZplA/Kd Ejx5yznO01U2nIv7pswA8TmyQZniCH4DWUIwVKW2yjdxdVjEuqSyw7vkrFF1vkdRdJnb IvefNSMkamw3v8n5fCJEDJdaDC+0TZteQhXY4o4GRVXrF9Tspu++h3rowWwqCvsL2hp+ D82Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j19si30656327pfh.147.2019.04.11.01.33.14; Thu, 11 Apr 2019 01:33:30 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726638AbfDKIc0 (ORCPT + 99 others); Thu, 11 Apr 2019 04:32:26 -0400 Received: from mx2.suse.de ([195.135.220.15]:59442 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726121AbfDKIc0 (ORCPT ); Thu, 11 Apr 2019 04:32:26 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 0D8ADAE8B; Thu, 11 Apr 2019 08:32:25 +0000 (UTC) Date: Thu, 11 Apr 2019 10:32:23 +0200 (CEST) From: Miroslav Benes To: "Joel Fernandes (Google)" cc: linux-kernel@vger.kernel.org, paulmck@linux.vnet.ibm.com, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, rcu@vger.kernel.org, kernel-hardening@lists.openwall.com, kernel-team@android.com, keescook@chromium.org, Jessica Yu Subject: Re: [PATCH v3 1/3] module: Prepare for addition of new ro_after_init sections In-Reply-To: <20190410195708.162185-1-joel@joelfernandes.org> Message-ID: References: <20190410195708.162185-1-joel@joelfernandes.org> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Apr 2019, Joel Fernandes (Google) wrote: > For the purposes of hardening modules by adding sections to > ro_after_init sections, prepare for addition of new ro_after_init > entries which we do in future patches. Create a table to which new > entries could be added later. This makes it less error prone and reduce > code duplication. > > Cc: paulmck@linux.vnet.ibm.com > Cc: rostedt@goodmis.org > Cc: mathieu.desnoyers@efficios.com > Cc: rcu@vger.kernel.org > Cc: kernel-hardening@lists.openwall.com > Cc: kernel-team@android.com > Suggested-by: keescook@chromium.org > Reviewed-by: keescook@chromium.org > Acked-by: rostedt@goodmis.org > Signed-off-by: Joel Fernandes (Google) Reviewed-by: Miroslav Benes M