Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1257C43381 for ; Mon, 11 Mar 2019 23:17:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6ABBD214AE for ; Mon, 11 Mar 2019 23:17:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552346220; bh=ifXGD/hsbfyn7zjwk4x5oh2/DE13m/n4juSkziWu4iw=; h=Date:From:To:Subject:List-ID:From; b=Vz4ZsJTyQ9KgHY8wZMq52sa3cqX1xVsRnJXHjrnHnjrLtKiu4ShbcSXpoM9fK5r8e d/PgnkGpQD8iqTByxlfNI8lxspYmEyjTSTVUj7mWvp0VkdnVVxqRP6KbUEd4EHpoPk /C5cPRivbmAJ4BekI32TK7kVyzEUy1+Uc4ghDf+U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726385AbfCKXQ7 (ORCPT ); Mon, 11 Mar 2019 19:16:59 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34816 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725830AbfCKXQ7 (ORCPT ); Mon, 11 Mar 2019 19:16:59 -0400 Received: from localhost.localdomain (c-71-198-47-131.hsd1.ca.comcast.net [71.198.47.131]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 10E7ABDC; Mon, 11 Mar 2019 23:16:58 +0000 (UTC) Date: Mon, 11 Mar 2019 16:16:57 -0700 From: akpm@linux-foundation.org To: danlrobertson89@gmail.com, dhowells@redhat.com, felipe.balbi@linux.intel.com, jan.kiszka@siemens.com, kieran.bingham@ideasonboard.com, liuyun01@kylinos.cn, mm-commits@vger.kernel.org, ndesaulniers@google.com, stable@vger.kernel.org Subject: [merged] scripts-gdb-replace-flags-ms_xyz-sb_xyz.patch removed from -mm tree Message-ID: <20190311231657.rklxukhdl%akpm@linux-foundation.org> User-Agent: s-nail v14.8.16 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch titled Subject: scripts/gdb: replace flags (MS_xyz -> SB_xyz) has been removed from the -mm tree. Its filename was scripts-gdb-replace-flags-ms_xyz-sb_xyz.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Jackie Liu Subject: scripts/gdb: replace flags (MS_xyz -> SB_xyz) Since 1751e8a6cb93 ("Rename superblock flags (MS_xyz -> SB_xyz)"), scripts/gdb should be updated to replace MS_xyz with SB_xyz. This change didn't directly affect the running operation of scripts/gdb until e262e32d6bde "vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled" removed the definitions used by constants.py. Update constants.py.in to utilise the new internal flags, matching the implementation at fs/proc_namespace.c::show_sb_opts. Note to stable, e262e32d6bde landed in v5.0-rc1 (which was just released), so we'll want this picked back to 5.0 stable once this patch hits mainline (akpm just picked it up). Without this, debugging a kernel a kernel via GDB+QEMU is broken in the 5.0 release. [kieran.bingham@ideasonboard.com: add fixes tag, reword commit message] Link: http://lkml.kernel.org/r/20190305103014.25847-1-kieran.bingham@ideasonboard.com Fixes: e262e32d6bde "vfs: Suppress MS_* flag defs within the kernel unless explicitly enabled" Signed-off-by: Jackie Liu Signed-off-by: Kieran Bingham Tested-by: Nick Desaulniers Tested-by: Kieran Bingham Cc: Felipe Balbi Cc: Dan Robertson Cc: Jan Kiszka Cc: David Howells Cc: Signed-off-by: Andrew Morton --- --- a/scripts/gdb/linux/constants.py.in~scripts-gdb-replace-flags-ms_xyz-sb_xyz +++ a/scripts/gdb/linux/constants.py.in @@ -37,12 +37,12 @@ import gdb /* linux/fs.h */ -LX_VALUE(MS_RDONLY) -LX_VALUE(MS_SYNCHRONOUS) -LX_VALUE(MS_MANDLOCK) -LX_VALUE(MS_DIRSYNC) -LX_VALUE(MS_NOATIME) -LX_VALUE(MS_NODIRATIME) +LX_VALUE(SB_RDONLY) +LX_VALUE(SB_SYNCHRONOUS) +LX_VALUE(SB_MANDLOCK) +LX_VALUE(SB_DIRSYNC) +LX_VALUE(SB_NOATIME) +LX_VALUE(SB_NODIRATIME) /* linux/mount.h */ LX_VALUE(MNT_NOSUID) --- a/scripts/gdb/linux/proc.py~scripts-gdb-replace-flags-ms_xyz-sb_xyz +++ a/scripts/gdb/linux/proc.py @@ -114,11 +114,11 @@ def info_opts(lst, opt): return opts -FS_INFO = {constants.LX_MS_SYNCHRONOUS: ",sync", - constants.LX_MS_MANDLOCK: ",mand", - constants.LX_MS_DIRSYNC: ",dirsync", - constants.LX_MS_NOATIME: ",noatime", - constants.LX_MS_NODIRATIME: ",nodiratime"} +FS_INFO = {constants.LX_SB_SYNCHRONOUS: ",sync", + constants.LX_SB_MANDLOCK: ",mand", + constants.LX_SB_DIRSYNC: ",dirsync", + constants.LX_SB_NOATIME: ",noatime", + constants.LX_SB_NODIRATIME: ",nodiratime"} MNT_INFO = {constants.LX_MNT_NOSUID: ",nosuid", constants.LX_MNT_NODEV: ",nodev", @@ -184,7 +184,7 @@ values of that process namespace""" fstype = superblock['s_type']['name'].string() s_flags = int(superblock['s_flags']) m_flags = int(vfs['mnt']['mnt_flags']) - rd = "ro" if (s_flags & constants.LX_MS_RDONLY) else "rw" + rd = "ro" if (s_flags & constants.LX_SB_RDONLY) else "rw" gdb.write( "{} {} {} {}{}{} 0 0\n" _ Patches currently in -mm which might be from liuyun01@kylinos.cn are