From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934199AbcKNRzK (ORCPT ); Mon, 14 Nov 2016 12:55:10 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:49860 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932705AbcKNRzJ (ORCPT ); Mon, 14 Nov 2016 12:55:09 -0500 Date: Mon, 14 Nov 2016 09:55:00 -0800 From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: mingo@kernel.org, jiangshanlai@gmail.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, dvhart@linux.intel.com, fweisbec@gmail.com, oleg@redhat.com, bobby.prani@gmail.com Subject: [PATCH tip/core/rcu 0/7] Security-related list changes for 4.10 Reply-To: paulmck@linux.vnet.ibm.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16111417-0016-0000-0000-0000052B7590 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006077; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000189; SDB=6.00780621; UDB=6.00376448; IPR=6.00558122; BA=6.00004878; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013322; XFM=3.00000011; UTC=2016-11-14 17:55:05 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16111417-0017-0000-0000-000034A2D5B9 Message-Id: <20161114175500.GA21637@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-14_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1611140360 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! This series contains security-related list changes, some of which stems in part from PaX and Grsecurity work: 1. Split __list_add() debug checks into a separate functions, courtesy of Kees Cook. 2. Consolidate DEBUG_LIST() for list_add_rcu(), courtesy of Kees Cook. 3. Split list_del() debug checking into separate function, courtesy of Kees Cook. 4. Provide toggle for BUG() on data corruption, so that people who care more about security than uptime can crash their machines in the face of list data corruption, courtesy of Kees Cook. Note that CHECK_DATA_CORRUPTION() contains unconventional control flow, however, this is intended and is used correctly. 5. Add tests for list corruption, courtesy of Kees Cook. 6. Fix typo in "select" Kconfig statement in #4 above, courtesy of Valentin Rothberg. 7. Avoid Kconfig warning from CONFIG_DEBUG_LIST from #4 above, courtesy of Arnd Bergmann. Thanx, Paul ------------------------------------------------------------------------ drivers/misc/lkdtm.h | 2 drivers/misc/lkdtm_bugs.c | 68 +++++++++++++++++ drivers/misc/lkdtm_core.c | 2 include/linux/bug.h | 17 ++++ include/linux/list.h | 37 ++++++--- include/linux/rculist.h | 8 -- lib/Kconfig.debug | 14 +++ lib/list_debug.c | 177 +++++++++++++++++----------------------------- 8 files changed, 197 insertions(+), 128 deletions(-)