Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp7452915ioo; Fri, 3 Jun 2022 06:58:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzcAlmRbMjD0i5VMJT/qfkwkR1Cfk2o2p6Hc/qkNW8NpmxW39bAN6kNfTuqQXXrejQSCTf X-Received: by 2002:a17:907:972a:b0:6f4:f456:50a7 with SMTP id jg42-20020a170907972a00b006f4f45650a7mr8575821ejc.431.1654264691759; Fri, 03 Jun 2022 06:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654264691; cv=none; d=google.com; s=arc-20160816; b=zjDVX5xn5gGpFVAPBatVjYjjqA5KzVA09t8bYB3jRjceYFogBjDONwdFICU87hQJ66 QI+R9JGpl7JCTPwXdlLJ9VJMMptHrmdl6a0+tywxjvKJVuBz+fVMZ4vyLnsem+ba7MPb CAC9MSfxerT0/urFd3kdZfrMVbi0U4KzkjGSXO2XnIhkF3Tq8bAbEKcgVOm2ibPrv94W wN99qL7WHSXAMwUgANUXIWMmLnVhYIUiZL9zAzztQppiNH31Jp/KrR7ZsR35t2Ux9VrC vgzetMb5vYzVq5DcFoagQgMgJOpjsUdZFZFl8djDDt3dgT35rss6QZloSneoLtNdPNuZ ehyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-topic:thread-index :content-transfer-encoding:mime-version:subject:message-id:cc:to :from:date; bh=Skol4mmVNZ0YE390yicgSp8/4v3NOviZ1mntnyjO7wQ=; b=EdFuobWYyDpDnG8Nl/CbKn+LP78Zo4s/B7+Jxv2Ox1wXVc9yo2BBpGL/2DF5x+0hKm X1cdM7ZZQgL5gpLGcTV0BV0roOW+kyP9fWhKoa4k/JtZgynidf7thvgGcZphR3LDZJX/ nsOyTDx7Wx4b9gY2n51U5urSILSG+vSakINoUPef1ds0rLs99UALjCub/Z7jeGU3Qj+F krU8VENFZV45crNAAG67UY9oPkBN684iwUugjCdYnYBKC2J3OotmLCEACGHpviWOo3fc /nODt8p1WBFocecdXWAiImYe9y0Jhizkv7T58rKdsZhCz6266vbf1AcI9f/vK9hDDxmR rATw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa37-20020a1709076d2500b006f4c55b9305si8060411ejc.566.2022.06.03.06.57.45; Fri, 03 Jun 2022 06:58:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242721AbiFCMrQ (ORCPT + 99 others); Fri, 3 Jun 2022 08:47:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbiFCMrO (ORCPT ); Fri, 3 Jun 2022 08:47:14 -0400 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2505D5F41 for ; Fri, 3 Jun 2022 05:47:11 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 51AF4609B3C1; Fri, 3 Jun 2022 14:47:09 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id CPGJgO34VG6Q; Fri, 3 Jun 2022 14:47:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id C2DD5609B3C2; Fri, 3 Jun 2022 14:47:08 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id PlKBWE2AaC1S; Fri, 3 Jun 2022 14:47:08 +0200 (CEST) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 994E7609B3C1; Fri, 3 Jun 2022 14:47:08 +0200 (CEST) Date: Fri, 3 Jun 2022 14:47:08 +0200 (CEST) From: Richard Weinberger To: torvalds Cc: linux-mtd , linux-kernel Message-ID: <735024820.130152.1654260428562.JavaMail.zimbra@nod.at> Subject: [GIT PULL] JFFS2, UBI and UBIFS updates for v5.19-rc1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Index: 1D42N45nL6ShMgyGtxZkZMfsOi2J+w== Thread-Topic: JFFS2, UBI and UBIFS updates for v5.19-rc1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,T_SPF_PERMERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus, The following changes since commit 42226c989789d8da4af1de0c31070c96726d990c: Linux 5.18-rc7 (2022-05-15 18:08:58 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs.git tags/for-linus-5.19-rc1 for you to fetch changes up to 8c03a1c21d72210f81cb369cc528e3fde4b45411: ubi: ubi_create_volume: Fix use-after-free when volume creation failed (2022-05-27 16:49:41 +0200) ---------------------------------------------------------------- This pull request contains fixes for JFFS2, UBI and UBIFS JFFS2: - Fixes for a memory leak UBI: - Fixes for fastmap (UAF, high CPU usage) UBIFS: - Minor cleanups ---------------------------------------------------------------- Baokun Li (1): jffs2: fix memory leak in jffs2_do_fill_super Haowen Bai (2): jffs2: Use kzalloc instead of kmalloc/memset ubifs: Use NULL instead of using plain integer as pointer Minghao Chi (1): ubifs: Simplify the return expression of run_gc() Zhihao Cheng (3): ubi: fastmap: Fix high cpu usage of ubi_bgt by making sure wl_pool not empty ubi: fastmap: Check wl_pool for free peb before wear leveling ubi: ubi_create_volume: Fix use-after-free when volume creation failed drivers/mtd/ubi/fastmap-wl.c | 121 +++++++++++++++++++++++++++++++++++-------- drivers/mtd/ubi/fastmap.c | 11 ---- drivers/mtd/ubi/ubi.h | 4 +- drivers/mtd/ubi/vmt.c | 1 - drivers/mtd/ubi/wl.c | 33 ++++++++---- drivers/mtd/ubi/wl.h | 2 + fs/jffs2/erase.c | 6 +-- fs/jffs2/fs.c | 1 + fs/ubifs/budget.c | 7 +-- fs/ubifs/xattr.c | 2 +- 10 files changed, 129 insertions(+), 59 deletions(-)