Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1474395ybz; Thu, 16 Apr 2020 09:47:55 -0700 (PDT) X-Google-Smtp-Source: APiQypKF/eQ+py5R8fdGjL4oChoVWtb+T/xMYjOtJgHkgBakKYVxQZryZKX1mTftJ1U0/5ykTNy1 X-Received: by 2002:a17:906:a98c:: with SMTP id jr12mr10829804ejb.148.1587055674939; Thu, 16 Apr 2020 09:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587055674; cv=none; d=google.com; s=arc-20160816; b=sKdpM9NfW5AvGqEPExModEefIs7SCtImXhL/sU1kZxc/MoOK48pmzj3rrUvryyF6Yp sf4HmCloScWf+sxE0d7oViMASl7U37FHZzwA6OCqhHhOJwLep/kQ+l5ItEqNVm2k0zdH ao4ADf78j0mqRQd2QYIqePkVnKj7A/CoE5/Rt/fPkmVJQVW0N6g15fc1Lw/BYAH/g92L gH9ssvua9UkW2BTt/IPfphtq6Mj3aJyDItPaI5CMj/H2+T4HWYqVGJTKZadRtFGBy5y6 tPXNngYQCTynwHzOb80LQv9P7MZXBMblMQia4cgoxP0l5DlwTKA176hwmSx7B3afMzy4 jxlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date; bh=DmG3FdoaooCO57hHFrV9ntgUBgiB0Z5tC4fUAobcukE=; b=hC5gVbvoFyoOSRx+TIYtiDdViWz4xU8NRx1YThui6WCoEIrwk4tsonTOhkrlaJ8L4T E/mTna70VIpkyWKqSlbZn6kN7ezOI2v0jP9lCSzUxi/A8QrSANXphiTBxUp9mIk+dLZ1 BH9N+a5YxxcYS9BQRv6OhRwXck1OK0Fz59DXDlG3M7uExMfQ/tFxCy4ZM5kpd2FtfNmK zkfuzg6+WQh4QDROlc3oP3qhgnJ7/K0SIvh5f4T7peJGCzpPBqiKrqFpPQzZOwjsqBbc c0wiUj7K4AS3cW7sMJr893ei5idrw6J3U7cClFH989gX9L1us942KFljwS7SEYtQ3CAq 5+rA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi9si12926428edb.478.2020.04.16.09.47.30; Thu, 16 Apr 2020 09:47:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732877AbgDPQpP (ORCPT + 99 others); Thu, 16 Apr 2020 12:45:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727800AbgDPQpM (ORCPT ); Thu, 16 Apr 2020 12:45:12 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78B94C061A0C; Thu, 16 Apr 2020 09:45:12 -0700 (PDT) Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1jP7dW-00028A-7f; Thu, 16 Apr 2020 18:45:10 +0200 Date: Thu, 16 Apr 2020 18:45:10 +0200 From: Sebastian Andrzej Siewior To: Thomas Gleixner Cc: LKML , linux-rt-users , Steven Rostedt Subject: [ANNOUNCE] v5.6.4-rt3 Message-ID: <20200416164510.kbrklqahdng5uhij@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear RT folks! I'm pleased to announce the v5.6.4-rt3 patch set. Changes since v5.6.4-rt2: - The printk thread could schedule where it is not appropriate. Affects only PREEMPT_VOLUNTARY. Reported by kernel test robot, patched by John Ogness. - The initialization of nohz_full_kick_work triggered a warning. Reported by kbuild test robot. - Patch by patch compilation could fail to compile in the fs/proc due to a missing header file. Reported by kbuild test robot. - The cached signal struct could lead to a double free of another data structure. Reported by Daniel Wagner, patch by Matt Fleming. Known issues - It has been pointed out that due to changes to the printk code the internal buffer representation changed. This is only an issue if tools like `crash' are used to extract the printk buffer from a kernel memory image. The delta patch against v5.6.4-rt2 is appended below and can be found here: https://cdn.kernel.org/pub/linux/kernel/projects/rt/5.6/incr/patch-5.6.4-rt2-rt3.patch.xz You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git v5.6.4-rt3 The RT patch against v5.6.4 can be found here: https://cdn.kernel.org/pub/linux/kernel/projects/rt/5.6/older/patch-5.6.4-rt3.patch.xz The split quilt queue is available at: https://cdn.kernel.org/pub/linux/kernel/projects/rt/5.6/older/patches-5.6.4-rt3.tar.xz Sebastian diff --git a/fs/proc/base.c b/fs/proc/base.c index 8c2a84fc4986d..eb8285ca344f3 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -96,6 +96,7 @@ #include #include #include +#include #include #include "internal.h" #include "fd.h" diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 8821a8c2263ff..8bc683be08574 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -2715,6 +2715,7 @@ static int printk_kthread_func(void *data) &len, printk_time); console_lock(); + console_may_schedule = 0; call_console_drivers(master_seq, ext_text, ext_len, text, len, msg->level, msg->facility); if (len > 0 || ext_len > 0) diff --git a/kernel/signal.c b/kernel/signal.c index bfa9bcf27d3d7..75c82ecefdbb6 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -494,8 +494,8 @@ static void sigqueue_free_current(struct sigqueue *q) up = q->user; if (rt_prio(current->normal_prio) && !put_task_cache(current, q)) { - atomic_dec(&up->sigpending); - free_uid(up); + if (atomic_dec_and_test(&up->sigpending)) + free_uid(up); } else __sigqueue_free(q); } diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index b568947dc90e5..fc62dcbed7429 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -245,7 +245,7 @@ static void nohz_full_kick_func(struct irq_work *work) static DEFINE_PER_CPU(struct irq_work, nohz_full_kick_work) = { .func = nohz_full_kick_func, - .flags = IRQ_WORK_HARD_IRQ, + .flags = ATOMIC_INIT(IRQ_WORK_HARD_IRQ), }; /* diff --git a/localversion-rt b/localversion-rt index c3054d08a1129..1445cd65885cd 100644 --- a/localversion-rt +++ b/localversion-rt @@ -1 +1 @@ --rt2 +-rt3