The patch titled
Subject: nilfs2: fix leak of nilfs_root in case of writer thread creation failure
has been added to the -mm mm-hotfixes-unstable branch. Its filename is
nilfs2-fix-leak-of-nilfs_root-in-case-of-writer-thread-creation-failure.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patche…
This patch will later appear in the mm-hotfixes-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days
------------------------------------------------------
From: Ryusuke Konishi <konishi.ryusuke(a)gmail.com>
Subject: nilfs2: fix leak of nilfs_root in case of writer thread creation failure
Date: Fri, 7 Oct 2022 17:52:26 +0900
If nilfs_attach_log_writer() failed to create a log writer thread, it
frees a data structure of the log writer without any cleanup. After
commit e912a5b66837 ("nilfs2: use root object to get ifile"), this causes
a leak of struct nilfs_root, which started to leak an ifile metadata inode
and a kobject on that struct.
In addition, if the kernel is booted with panic_on_warn, the above
ifile metadata inode leak will cause the following panic when the
nilfs2 kernel module is removed:
kmem_cache_destroy nilfs2_inode_cache: Slab cache still has objects when
called from nilfs_destroy_cachep+0x16/0x3a [nilfs2]
WARNING: CPU: 8 PID: 1464 at mm/slab_common.c:494 kmem_cache_destroy+0x138/0x140
...
RIP: 0010:kmem_cache_destroy+0x138/0x140
Code: 00 20 00 00 e8 a9 55 d8 ff e9 76 ff ff ff 48 8b 53 60 48 c7 c6 20 70 65 86 48 c7 c7 d8 69 9c 86 48 8b 4c 24 28 e8 ef 71 c7 00 <0f> 0b e9 53 ff ff ff c3 48 81 ff ff 0f 00 00 77 03 31 c0 c3 53 48
...
Call Trace:
<TASK>
? nilfs_palloc_freev.cold.24+0x58/0x58 [nilfs2]
nilfs_destroy_cachep+0x16/0x3a [nilfs2]
exit_nilfs_fs+0xa/0x1b [nilfs2]
__x64_sys_delete_module+0x1d9/0x3a0
? __sanitizer_cov_trace_pc+0x1a/0x50
? syscall_trace_enter.isra.19+0x119/0x190
do_syscall_64+0x34/0x80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
...
</TASK>
Kernel panic - not syncing: panic_on_warn set ...
This patch fixes these issues by calling nilfs_detach_log_writer() cleanup
function if spawning the log writer thread fails.
Link: https://lkml.kernel.org/r/20221007085226.57667-1-konishi.ryusuke@gmail.com
Fixes: e912a5b66837 ("nilfs2: use root object to get ifile")
Signed-off-by: Ryusuke Konishi <konishi.ryusuke(a)gmail.com>
Reported-by: syzbot+7381dc4ad60658ca4c05(a)syzkaller.appspotmail.com
Tested-by: Ryusuke Konishi <konishi.ryusuke(a)gmail.com>
Cc: <stable(a)vger.kernel.org>
Signed-off-by: Andrew Morton <akpm(a)linux-foundation.org>
---
fs/nilfs2/segment.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
--- a/fs/nilfs2/segment.c~nilfs2-fix-leak-of-nilfs_root-in-case-of-writer-thread-creation-failure
+++ a/fs/nilfs2/segment.c
@@ -2786,10 +2786,9 @@ int nilfs_attach_log_writer(struct super
inode_attach_wb(nilfs->ns_bdev->bd_inode, NULL);
err = nilfs_segctor_start_thread(nilfs->ns_writer);
- if (err) {
- kfree(nilfs->ns_writer);
- nilfs->ns_writer = NULL;
- }
+ if (unlikely(err))
+ nilfs_detach_log_writer(sb);
+
return err;
}
_
Patches currently in -mm which might be from konishi.ryusuke(a)gmail.com are
nilfs2-fix-use-after-free-bug-of-struct-nilfs_root.patch
nilfs2-fix-null-pointer-dereference-at-nilfs_bmap_lookup_at_level.patch
nilfs2-fix-leak-of-nilfs_root-in-case-of-writer-thread-creation-failure.patch
nilfs2-replace-warn_ons-by-nilfs_error-for-checkpoint-acquisition-failure.patch
From: Gou Hao <gouhao(a)uniontech.com>
patch1: is memory leak of audit rule
patch2~3: is memory leak about 'fsname' field of struct ima_rule_entry
Tyler Hicks (3):
ima: Have the LSM free its audit rule
ima: Free the entire rule when deleting a list of rules
ima: Free the entire rule if it fails to parse
security/integrity/ima/ima.h | 5 +++++
security/integrity/ima/ima_policy.c | 24 ++++++++++++++++++------
2 files changed, 23 insertions(+), 6 deletions(-)
--
2.20.1
This is the start of the stable review cycle for the 5.10.147 release.
There are 52 patches in this series, all will be posted as a response
to this one. If anyone has any issues with these being applied, please
let me know.
Responses should be made by Wed, 05 Oct 2022 07:07:06 +0000.
Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.10.147-r…
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Linux 5.10.147-rc1
Kai Vehmanen <kai.vehmanen(a)linux.intel.com>
ALSA: hda/hdmi: fix warning about PCM count when used with SOF
Nadav Amit <namit(a)vmware.com>
x86/alternative: Fix race in try_get_desc()
Jim Mattson <jmattson(a)google.com>
KVM: x86: Hide IA32_PLATFORM_DCA_CAP[31:0] from the guest
Florian Fainelli <f.fainelli(a)gmail.com>
clk: iproc: Do not rely on node name for correct PLL setup
Han Xu <han.xu(a)nxp.com>
clk: imx: imx6sx: remove the SET_RATE_PARENT flag for QSPI clocks
Wang Yufen <wangyufen(a)huawei.com>
selftests: Fix the if conditions of in test_extra_filter()
Junxiao Chang <junxiao.chang(a)intel.com>
net: stmmac: power up/down serdes in stmmac_open/release
Michael Kelley <mikelley(a)microsoft.com>
nvme: Fix IOC_PR_CLEAR and IOC_PR_RELEASE ioctls for nvme devices
Chaitanya Kulkarni <chaitanya.kulkarni(a)wdc.com>
nvme: add new line after variable declatation
Rafael Mendonca <rafaelmendsr(a)gmail.com>
cxgb4: fix missing unlock on ETHOFLD desc collect fail path
Hangyu Hua <hbh25y(a)gmail.com>
net: sched: act_ct: fix possible refcount leak in tcf_ct_init()
Peilin Ye <peilin.ye(a)bytedance.com>
usbnet: Fix memory leak in usbnet_disconnect()
Yang Yingliang <yangyingliang(a)huawei.com>
Input: melfas_mip4 - fix return value check in mip4_probe()
Brian Norris <briannorris(a)chromium.org>
Revert "drm: bridge: analogix/dp: add panel prepare/unprepare in suspend/resume time"
Martin Povišer <povik+lin(a)cutebit.org>
ASoC: tas2770: Reinit regcache on reset
Samuel Holland <samuel(a)sholland.org>
soc: sunxi: sram: Fix debugfs info for A64 SRAM C
Samuel Holland <samuel(a)sholland.org>
soc: sunxi: sram: Fix probe function ordering issues
Cai Huoqing <caihuoqing(a)baidu.com>
soc: sunxi_sram: Make use of the helper function devm_platform_ioremap_resource()
Samuel Holland <samuel(a)sholland.org>
soc: sunxi: sram: Prevent the driver from being unbound
Samuel Holland <samuel(a)sholland.org>
soc: sunxi: sram: Actually claim SRAM regions
Richard Zhu <hongxing.zhu(a)nxp.com>
reset: imx7: Fix the iMX8MP PCIe PHY PERST support
YuTong Chang <mtwget(a)gmail.com>
ARM: dts: am33xx: Fix MMCHS0 dma properties
Yu Kuai <yukuai3(a)huawei.com>
scsi: hisi_sas: Revert "scsi: hisi_sas: Limit max hw sectors for v3 HW"
Tianyu Lan <Tianyu.Lan(a)microsoft.com>
swiotlb: max mapping size takes min align mask into account
Nicolas Dufresne <nicolas.dufresne(a)collabora.com>
media: rkvdec: Disable H.264 error detection
Hangyu Hua <hbh25y(a)gmail.com>
media: dvb_vb2: fix possible out of bound access
Minchan Kim <minchan(a)kernel.org>
mm: fix madivse_pageout mishandling on non-LRU page
Alistair Popple <apopple(a)nvidia.com>
mm/migrate_device.c: flush TLB while holding PTL
Maurizio Lombardi <mlombard(a)redhat.com>
mm: prevent page_frag_alloc() from corrupting the memory
Mel Gorman <mgorman(a)techsingularity.net>
mm/page_alloc: fix race condition between build_all_zonelists and page allocation
Wenchao Chen <wenchao.chen(a)unisoc.com>
mmc: hsq: Fix data stomping during mmc recovery
Sergei Antonov <saproj(a)gmail.com>
mmc: moxart: fix 4-bit bus width and remove 8-bit bus width
Niklas Cassel <niklas.cassel(a)wdc.com>
libata: add ATA_HORKAGE_NOLPM for Pioneer BDR-207M and BDR-205
Yang Shi <shy828301(a)gmail.com>
powerpc/64s/radix: don't need to broadcast IPI for radix pmd collapse flush
Alexander Couzens <lynxis(a)fe80.eu>
net: mt7531: only do PLL once after the reset
ChenXiaoSong <chenxiaosong2(a)huawei.com>
ntfs: fix BUG_ON in ntfs_lookup_inode_by_name()
Linus Walleij <linus.walleij(a)linaro.org>
ARM: dts: integrator: Tag PCI host with device_type
Aidan MacDonald <aidanmacdonald.0x0(a)gmail.com>
clk: ingenic-tcu: Properly enable registers before accessing timers
Sebastian Krzyszkowiak <sebastian.krzyszkowiak(a)puri.sm>
Input: snvs_pwrkey - fix SNVS_HPVIDR1 register address
Frank Wunderlich <frank-w(a)public-files.de>
net: usb: qmi_wwan: Add new usb-id for Dell branded EM7455
Mario Limonciello <mario.limonciello(a)amd.com>
thunderbolt: Explicitly reset plug events delay back to USB4 spec value
Heikki Krogerus <heikki.krogerus(a)linux.intel.com>
usb: typec: ucsi: Remove incorrect warning
Hongling Zeng <zenghongling(a)kylinos.cn>
uas: ignore UAS for Thinkplus chips
Hongling Zeng <zenghongling(a)kylinos.cn>
usb-storage: Add Hiksemi USB3-FW to IGNORE_UAS
Hongling Zeng <zenghongling(a)kylinos.cn>
uas: add no-uas quirk for Hiksemi usb_disk
Filipe Manana <fdmanana(a)suse.com>
btrfs: fix hang during unmount when stopping a space reclaim worker
Mohan Kumar <mkumard(a)nvidia.com>
ALSA: hda: Fix Nvidia dp infoframe
Hui Wang <hui.wang(a)canonical.com>
ALSA: hda/hdmi: let new platforms assign the pcm slot dynamically
Dmitry Osipenko <digetx(a)gmail.com>
ALSA: hda/tegra: Reset hardware
Dmitry Osipenko <digetx(a)gmail.com>
ALSA: hda/tegra: Use clk_bulk helpers
Gil Fine <gil.fine(a)intel.com>
thunderbolt: Add support for Intel Maple Ridge single port controller
Mika Westerberg <mika.westerberg(a)linux.intel.com>
thunderbolt: Add support for Intel Maple Ridge
-------------
Diffstat:
Makefile | 4 +-
arch/arm/boot/dts/am33xx-l4.dtsi | 3 +-
arch/arm/boot/dts/integratorap.dts | 1 +
arch/powerpc/mm/book3s64/radix_pgtable.c | 9 ---
arch/x86/kernel/alternative.c | 45 +++++------
arch/x86/kvm/cpuid.c | 2 -
drivers/ata/libata-core.c | 4 +
drivers/clk/bcm/clk-iproc-pll.c | 12 ++-
drivers/clk/imx/clk-imx6sx.c | 4 +-
drivers/clk/ingenic/tcu.c | 15 ++--
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 13 ----
drivers/input/keyboard/snvs_pwrkey.c | 2 +-
drivers/input/touchscreen/melfas_mip4.c | 2 +-
drivers/media/dvb-core/dvb_vb2.c | 11 +++
drivers/mmc/host/mmc_hsq.c | 2 +-
drivers/mmc/host/moxart-mmc.c | 17 +----
drivers/net/dsa/mt7530.c | 15 ++--
drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c | 28 ++++---
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 23 +++---
drivers/net/usb/qmi_wwan.c | 1 +
drivers/net/usb/usbnet.c | 7 +-
drivers/nvme/host/core.c | 9 ++-
drivers/reset/reset-imx7.c | 1 +
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 7 --
drivers/soc/sunxi/sunxi_sram.c | 27 +++----
drivers/staging/media/rkvdec/rkvdec-h264.c | 4 +-
drivers/thunderbolt/icm.c | 12 +++
drivers/thunderbolt/nhi.h | 2 +
drivers/thunderbolt/switch.c | 1 +
drivers/usb/storage/unusual_uas.h | 21 ++++++
drivers/usb/typec/ucsi/ucsi.c | 2 -
fs/btrfs/disk-io.c | 25 ++++++
fs/ntfs/super.c | 3 +-
kernel/dma/swiotlb.c | 13 +++-
mm/madvise.c | 7 +-
mm/migrate.c | 5 +-
mm/page_alloc.c | 65 +++++++++++++---
net/sched/act_ct.c | 5 +-
sound/pci/hda/hda_tegra.c | 88 +++++++---------------
sound/pci/hda/patch_hdmi.c | 47 ++++++++++--
sound/soc/codecs/tas2770.c | 3 +
tools/testing/selftests/net/reuseport_bpf.c | 2 +-
42 files changed, 346 insertions(+), 223 deletions(-)
This is the start of the stable review cycle for the 4.19.261 release.
There are 25 patches in this series, all will be posted as a response
to this one. If anyone has any issues with these being applied, please
let me know.
Responses should be made by Wed, 05 Oct 2022 07:07:06 +0000.
Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.19.261-r…
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Linux 4.19.261-rc1
Florian Fainelli <f.fainelli(a)gmail.com>
clk: iproc: Do not rely on node name for correct PLL setup
Wang Yufen <wangyufen(a)huawei.com>
selftests: Fix the if conditions of in test_extra_filter()
Michael Kelley <mikelley(a)microsoft.com>
nvme: Fix IOC_PR_CLEAR and IOC_PR_RELEASE ioctls for nvme devices
Chaitanya Kulkarni <chaitanya.kulkarni(a)wdc.com>
nvme: add new line after variable declatation
Peilin Ye <peilin.ye(a)bytedance.com>
usbnet: Fix memory leak in usbnet_disconnect()
Yang Yingliang <yangyingliang(a)huawei.com>
Input: melfas_mip4 - fix return value check in mip4_probe()
Brian Norris <briannorris(a)chromium.org>
Revert "drm: bridge: analogix/dp: add panel prepare/unprepare in suspend/resume time"
Samuel Holland <samuel(a)sholland.org>
soc: sunxi: sram: Fix debugfs info for A64 SRAM C
Samuel Holland <samuel(a)sholland.org>
soc: sunxi: sram: Fix probe function ordering issues
Samuel Holland <samuel(a)sholland.org>
soc: sunxi: sram: Prevent the driver from being unbound
Samuel Holland <samuel(a)sholland.org>
soc: sunxi: sram: Actually claim SRAM regions
Tyler Hicks <tyhicks(a)linux.microsoft.com>
ima: Free the entire rule if it fails to parse
Tyler Hicks <tyhicks(a)linux.microsoft.com>
ima: Free the entire rule when deleting a list of rules
Tyler Hicks <tyhicks(a)linux.microsoft.com>
ima: Have the LSM free its audit rule
Alistair Popple <apopple(a)nvidia.com>
mm/migrate_device.c: flush TLB while holding PTL
Maurizio Lombardi <mlombard(a)redhat.com>
mm: prevent page_frag_alloc() from corrupting the memory
Mel Gorman <mgorman(a)techsingularity.net>
mm/page_alloc: fix race condition between build_all_zonelists and page allocation
Sergei Antonov <saproj(a)gmail.com>
mmc: moxart: fix 4-bit bus width and remove 8-bit bus width
Niklas Cassel <niklas.cassel(a)wdc.com>
libata: add ATA_HORKAGE_NOLPM for Pioneer BDR-207M and BDR-205
ChenXiaoSong <chenxiaosong2(a)huawei.com>
ntfs: fix BUG_ON in ntfs_lookup_inode_by_name()
Linus Walleij <linus.walleij(a)linaro.org>
ARM: dts: integrator: Tag PCI host with device_type
Frank Wunderlich <frank-w(a)public-files.de>
net: usb: qmi_wwan: Add new usb-id for Dell branded EM7455
Hongling Zeng <zenghongling(a)kylinos.cn>
uas: ignore UAS for Thinkplus chips
Hongling Zeng <zenghongling(a)kylinos.cn>
usb-storage: Add Hiksemi USB3-FW to IGNORE_UAS
Hongling Zeng <zenghongling(a)kylinos.cn>
uas: add no-uas quirk for Hiksemi usb_disk
-------------
Diffstat:
Makefile | 4 +-
arch/arm/boot/dts/integratorap.dts | 1 +
drivers/ata/libata-core.c | 4 ++
drivers/clk/bcm/clk-iproc-pll.c | 12 ++--
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 13 -----
drivers/input/touchscreen/melfas_mip4.c | 2 +-
drivers/mmc/host/moxart-mmc.c | 17 +-----
drivers/net/usb/qmi_wwan.c | 1 +
drivers/net/usb/usbnet.c | 7 ++-
drivers/nvme/host/core.c | 9 ++-
drivers/soc/sunxi/sunxi_sram.c | 23 ++++----
drivers/usb/storage/unusual_uas.h | 21 +++++++
fs/ntfs/super.c | 3 +-
mm/migrate.c | 5 +-
mm/page_alloc.c | 65 ++++++++++++++++++----
security/integrity/ima/ima.h | 5 ++
security/integrity/ima/ima_policy.c | 24 ++++++--
tools/testing/selftests/net/reuseport_bpf.c | 2 +-
18 files changed, 147 insertions(+), 71 deletions(-)
This is the start of the stable review cycle for the 5.4.217 release.
There are 51 patches in this series, all will be posted as a response
to this one. If anyone has any issues with these being applied, please
let me know.
Responses should be made by Fri, 07 Oct 2022 11:31:56 +0000.
Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.217-rc…
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Linux 5.4.217-rc1
Shuah Khan <skhan(a)linuxfoundation.org>
docs: update mediator information in CoC docs
Sami Tolvanen <samitolvanen(a)google.com>
Makefile.extrawarn: Move -Wcast-function-type-strict to W=1
Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Revert "drm/amdgpu: use dirty framebuffer helper"
YueHaibing <yuehaibing(a)huawei.com>
xfs: remove unused variable 'done'
Darrick J. Wong <darrick.wong(a)oracle.com>
xfs: fix uninitialized variable in xfs_attr3_leaf_inactive
Darrick J. Wong <darrick.wong(a)oracle.com>
xfs: streamline xfs_attr3_leaf_inactive
Christoph Hellwig <hch(a)lst.de>
xfs: move incore structures out of xfs_da_format.h
Darrick J. Wong <darrick.wong(a)oracle.com>
xfs: fix memory corruption during remote attr value buffer invalidation
Darrick J. Wong <darrick.wong(a)oracle.com>
xfs: refactor remote attr value buffer invalidation
Christoph Hellwig <hch(a)lst.de>
xfs: fix IOCB_NOWAIT handling in xfs_file_dio_aio_read
Darrick J. Wong <darrick.wong(a)oracle.com>
xfs: fix s_maxbytes computation on 32-bit kernels
Darrick J. Wong <darrick.wong(a)oracle.com>
xfs: truncate should remove all blocks, not just to the end of the page cache
Darrick J. Wong <darrick.wong(a)oracle.com>
xfs: introduce XFS_MAX_FILEOFF
Christoph Hellwig <hch(a)lst.de>
xfs: fix misuse of the XFS_ATTR_INCOMPLETE flag
Daniel Sneddon <daniel.sneddon(a)linux.intel.com>
x86/speculation: Add RSB VM Exit protections
Pawan Gupta <pawan.kumar.gupta(a)linux.intel.com>
x86/bugs: Warn when "ibrs" mitigation is selected on Enhanced IBRS parts
Nathan Chancellor <nathan(a)kernel.org>
x86/speculation: Use DECLARE_PER_CPU for x86_spec_ctrl_current
Pawan Gupta <pawan.kumar.gupta(a)linux.intel.com>
x86/speculation: Disable RRSBA behavior
Pawan Gupta <pawan.kumar.gupta(a)linux.intel.com>
x86/bugs: Add Cannon lake to RETBleed affected CPU list
Andrew Cooper <andrew.cooper3(a)citrix.com>
x86/cpu/amd: Enumerate BTC_NO
Peter Zijlstra <peterz(a)infradead.org>
x86/common: Stamp out the stepping madness
Josh Poimboeuf <jpoimboe(a)kernel.org>
x86/speculation: Fill RSB on vmexit for IBRS
Josh Poimboeuf <jpoimboe(a)kernel.org>
KVM: VMX: Fix IBRS handling after vmexit
Josh Poimboeuf <jpoimboe(a)kernel.org>
KVM: VMX: Prevent guest RSB poisoning attacks with eIBRS
Thadeu Lima de Souza Cascardo <cascardo(a)canonical.com>
KVM: VMX: Convert launched argument to flags
Josh Poimboeuf <jpoimboe(a)kernel.org>
KVM: VMX: Flatten __vmx_vcpu_run()
Uros Bizjak <ubizjak(a)gmail.com>
KVM/nVMX: Use __vmx_vcpu_run in nested_vmx_check_vmentry_hw
Uros Bizjak <ubizjak(a)gmail.com>
KVM/VMX: Use TEST %REG,%REG instead of CMP $0,%REG in vmenter.S
Josh Poimboeuf <jpoimboe(a)kernel.org>
x86/speculation: Remove x86_spec_ctrl_mask
Josh Poimboeuf <jpoimboe(a)kernel.org>
x86/speculation: Use cached host SPEC_CTRL value for guest entry/exit
Josh Poimboeuf <jpoimboe(a)kernel.org>
x86/speculation: Fix SPEC_CTRL write on SMT state change
Josh Poimboeuf <jpoimboe(a)kernel.org>
x86/speculation: Fix firmware entry SPEC_CTRL handling
Josh Poimboeuf <jpoimboe(a)kernel.org>
x86/speculation: Fix RSB filling with CONFIG_RETPOLINE=n
Peter Zijlstra <peterz(a)infradead.org>
x86/speculation: Change FILL_RETURN_BUFFER to work with objtool
Peter Zijlstra <peterz(a)infradead.org>
intel_idle: Disable IBRS during long idle
Peter Zijlstra <peterz(a)infradead.org>
x86/bugs: Report Intel retbleed vulnerability
Peter Zijlstra <peterz(a)infradead.org>
x86/bugs: Split spectre_v2_select_mitigation() and spectre_v2_user_select_mitigation()
Pawan Gupta <pawan.kumar.gupta(a)linux.intel.com>
x86/speculation: Add spectre_v2=ibrs option to support Kernel IBRS
Peter Zijlstra <peterz(a)infradead.org>
x86/bugs: Optimize SPEC_CTRL MSR writes
Peter Zijlstra <peterz(a)infradead.org>
x86/entry: Add kernel IBRS implementation
Peter Zijlstra <peterz(a)infradead.org>
x86/entry: Remove skip_r11rcx
Peter Zijlstra <peterz(a)infradead.org>
x86/bugs: Keep a per-CPU IA32_SPEC_CTRL value
Alexandre Chartre <alexandre.chartre(a)oracle.com>
x86/bugs: Add AMD retbleed= boot parameter
Alexandre Chartre <alexandre.chartre(a)oracle.com>
x86/bugs: Report AMD retbleed vulnerability
Peter Zijlstra <peterz(a)infradead.org>
x86/cpufeatures: Move RETPOLINE flags to word 11
Peter Zijlstra <peterz(a)infradead.org>
x86/kvm/vmx: Make noinstr clean
Mark Gross <mgross(a)linux.intel.com>
x86/cpu: Add a steppings field to struct x86_cpu_id
Thomas Gleixner <tglx(a)linutronix.de>
x86/cpu: Add consistent CPU match macros
Thomas Gleixner <tglx(a)linutronix.de>
x86/devicetable: Move x86 specific macro out of generic code
Thadeu Lima de Souza Cascardo <cascardo(a)canonical.com>
Revert "x86/cpu: Add a steppings field to struct x86_cpu_id"
Thadeu Lima de Souza Cascardo <cascardo(a)canonical.com>
Revert "x86/speculation: Add RSB VM Exit protections"
-------------
Diffstat:
Documentation/admin-guide/kernel-parameters.txt | 13 +
.../process/code-of-conduct-interpretation.rst | 2 +-
Makefile | 4 +-
arch/x86/entry/calling.h | 68 +++-
arch/x86/entry/entry_32.S | 2 -
arch/x86/entry/entry_64.S | 34 +-
arch/x86/entry/entry_64_compat.S | 11 +-
arch/x86/include/asm/cpu_device_id.h | 132 +++++++-
arch/x86/include/asm/cpufeatures.h | 13 +-
arch/x86/include/asm/intel-family.h | 6 +
arch/x86/include/asm/msr-index.h | 10 +
arch/x86/include/asm/nospec-branch.h | 54 +--
arch/x86/kernel/cpu/amd.c | 21 +-
arch/x86/kernel/cpu/bugs.c | 365 ++++++++++++++++-----
arch/x86/kernel/cpu/common.c | 61 ++--
arch/x86/kernel/cpu/match.c | 13 +-
arch/x86/kernel/cpu/scattered.c | 1 +
arch/x86/kernel/process.c | 2 +-
arch/x86/kvm/svm.c | 1 +
arch/x86/kvm/vmx/nested.c | 32 +-
arch/x86/kvm/vmx/run_flags.h | 8 +
arch/x86/kvm/vmx/vmenter.S | 161 +++++----
arch/x86/kvm/vmx/vmx.c | 72 ++--
arch/x86/kvm/vmx/vmx.h | 5 +
arch/x86/kvm/x86.c | 4 +-
drivers/base/cpu.c | 8 +
drivers/cpufreq/acpi-cpufreq.c | 1 +
drivers/cpufreq/amd_freq_sensitivity.c | 1 +
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 -
drivers/idle/intel_idle.c | 43 ++-
fs/xfs/libxfs/xfs_attr.c | 2 +-
fs/xfs/libxfs/xfs_attr_leaf.c | 4 +-
fs/xfs/libxfs/xfs_attr_leaf.h | 26 +-
fs/xfs/libxfs/xfs_attr_remote.c | 85 +++--
fs/xfs/libxfs/xfs_attr_remote.h | 2 +
fs/xfs/libxfs/xfs_da_btree.h | 17 +-
fs/xfs/libxfs/xfs_da_format.c | 1 +
fs/xfs/libxfs/xfs_da_format.h | 59 ----
fs/xfs/libxfs/xfs_dir2.h | 2 +
fs/xfs/libxfs/xfs_dir2_priv.h | 19 ++
fs/xfs/libxfs/xfs_format.h | 7 +
fs/xfs/xfs_attr_inactive.c | 146 +++------
fs/xfs/xfs_file.c | 7 +-
fs/xfs/xfs_inode.c | 25 +-
fs/xfs/xfs_reflink.c | 3 +-
fs/xfs/xfs_super.c | 48 ++-
include/linux/cpu.h | 2 +
include/linux/kvm_host.h | 2 +-
include/linux/mod_devicetable.h | 4 +-
scripts/Makefile.extrawarn | 1 +
tools/arch/x86/include/asm/cpufeatures.h | 2 +-
51 files changed, 1056 insertions(+), 558 deletions(-)