1. Jan 04, 2023
    • Chao Yu's avatar
      f2fs: fix to avoid NULL pointer dereference in f2fs_issue_flush() · b3d83066
      Chao Yu authored
      
      
      With below two cases, it will cause NULL pointer dereference when
      accessing SM_I(sbi)->fcc_info in f2fs_issue_flush().
      
      a) If kthread_run() fails in f2fs_create_flush_cmd_control(), it will
      release SM_I(sbi)->fcc_info,
      
      - mount -o noflush_merge /dev/vda /mnt/f2fs
      - mount -o remount,flush_merge /dev/vda /mnt/f2fs  -- kthread_run() fails
      - dd if=/dev/zero of=/mnt/f2fs/file bs=4k count=1 conv=fsync
      
      b) we will never allocate memory for SM_I(sbi)->fcc_info w/ below
      testcase,
      
      - mount -o ro /dev/vda /mnt/f2fs
      - mount -o rw,remount /dev/vda /mnt/f2fs
      - dd if=/dev/zero of=/mnt/f2fs/file bs=4k count=1 conv=fsync
      
      In order to fix this issue, let change as below:
      - fix error path handling in f2fs_create_flush_cmd_control().
      - allocate SM_I(sbi)->fcc_info even if readonly is on.
      
      Signed-off-by: default avatarChao Yu <chao@kernel.org>
      Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
      b3d83066
  2. Jan 03, 2023
  3. Jan 02, 2023
  4. Jan 01, 2023
  5. Dec 31, 2022
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · c8451c14
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "These are new ACPI IRQ override quirks, low-power S0 idle (S0ix)
        support adjustments and ACPI backlight handling fixes, mostly for
        platforms using AMD chips.
      
        Specifics:
      
         - Add ACPI IRQ override quirks for Asus ExpertBook B2502, Lenovo
           14ALC7, and XMG Core 15 (Hans de Goede, Adrian Freund, Erik
           Schumacher).
      
         - Adjust ACPI video detection fallback path to prevent
           non-operational ACPI backlight devices from being created on
           systems where the native driver does not detect a suitable panel
           (Mario Limonciello).
      
         - Fix Apple GMUX backlight detection (Hans de Goede).
      
         - Add a low-power S0 idle (S0ix) handling quirk for HP Elitebook 865
           and stop using AMD-specific low-power S0 idle code path for systems
           with Rembrandt chips and newer (Mario Limonciello)"
      
      * tag 'acpi-6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: x86: s2idle: Stop using AMD specific codepath for Rembrandt+
        ACPI: x86: s2idle: Force AMD GUID/_REV 2 on HP Elitebook 865
        ACPI: video: Fix Apple GMUX backlight detection
        ACPI: resource: Add Asus ExpertBook B2502 to Asus quirks
        ACPI: resource: do IRQ override on Lenovo 14ALC7
        ACPI: resource: do IRQ override on XMG Core 15
        ACPI: video: Don't enable fallback path for creating ACPI backlight by default
        drm/amd/display: Report to ACPI video if no panels were found
        ACPI: video: Allow GPU drivers to report no panels
      c8451c14
    • Linus Torvalds's avatar
      Merge tag 'sound-6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 262eef26
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "Just a few small fixes:
      
         - A regression fix for HDMI audio on HD-audio AMD codecs
      
         - Fixes for LINE6 MIDI handling
      
         - HD-audio quirk for Dell laptops"
      
      * tag 'sound-6.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: hda/hdmi: Static PCM mapping again with AMD HDMI codecs
        ALSA: hda/realtek: Apply dual codec fixup for Dell Latitude laptops
        ALSA: line6: fix stack overflow in line6_midi_transmit
        ALSA: line6: correct midi status byte when receiving data from podxt
      262eef26
  6. Dec 30, 2022
  7. Dec 29, 2022