08 Jul, 2019

31 commits


07 Jul, 2019

6 commits

  • Pull block fix from Jens Axboe:
    "Just a single fix for a patch from Greg KH, which reportedly break
    block debugfs locations for certain setups. Trivial enough that I
    think we should include it now, rather than wait and release 5.2 with
    it, since it's a regression in this series"

    * tag 'for-linus-20190706' of git://git.kernel.dk/linux-block:
    blk-mq: fix up placement of debugfs directory of queue files

    Linus Torvalds
     
  • Pull MIPS fixes from Paul Burton:
    "A few more MIPS fixes:

    - Fix a silly typo in virt_addr_valid which led to completely bogus
    behavior (that happened to stop tripping up hardened usercopy
    despite being broken).

    - Fix UART parity setup on AR933x systems.

    - A build fix for non-Linux build machines.

    - Have the 'all' make target build DTBs, primarily to fit in with the
    behavior of scripts/package/builddeb.

    - Handle an execution hazard in TLB exceptions that use KScratch
    registers, which could inadvertently clobber the $1 register on
    some generally higher-end out-of-order CPUs.

    - A MAINTAINERS update to fix the path to the NAND driver for Ingenic
    systems"

    * tag 'mips_fixes_5.2_2' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux:
    MAINTAINERS: Correct path to moved files
    MIPS: Add missing EHB in mtc0 -> mfc0 sequence.
    MIPS: have "plain" make calls build dtbs for selected platforms
    MIPS: fix build on non-linux hosts
    MIPS: ath79: fix ar933x uart parity mode
    MIPS: Fix bounds check virt_addr_valid

    Linus Torvalds
     
  • Pull dmaengine fixes from Vinod Koul:

    - bam_dma fix for completed descriptor count

    - fix for imx-sdma remove BD_INTR for channel0 and use-after-free on
    probe error path

    - endian bug fix in jz4780 IRQ handler

    * tag 'dmaengine-fix-5.2' of git://git.infradead.org/users/vkoul/slave-dma:
    dmaengine: qcom: bam_dma: Fix completed descriptors count
    dmaengine: imx-sdma: remove BD_INTR for channel0
    dmaengine: imx-sdma: fix use-after-free on probe error path
    dmaengine: jz4780: Fix an endian bug in IRQ handler

    Linus Torvalds
     
  • Pull SCSI fixes from James Bottomley:
    "Two iscsi fixes.

    One for an oops in the client which can be triggered by the server
    authentication protocol and the other in the target code which causes
    data corruption"

    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
    scsi: iscsi: set auth_protocol back to NULL if CHAP_A value is not supported
    scsi: target/iblock: Fix overrun in WRITE SAME emulation

    Linus Torvalds
     
  • Pull vfs fixlet from Al Viro:
    "Fix bogus default y in Kconfig (VALIDATE_FS_PARSER)

    That thing should not be turned on by default, especially since it's
    not quiet in case it finds no problems. Geert has sent the obvious fix
    quite a few times, but it fell through the cracks"

    * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
    fs: VALIDATE_FS_PARSER should default to n

    Linus Torvalds
     
  • When the blk-mq debugfs file creation logic was "cleaned up" it was
    cleaned up too much, causing the queue file to not be created in the
    correct location. Turns out the check for the directory being present
    is needed as if that has not happened yet, the files should not be
    created, and the function will be called later on in the initialization
    code so that the files can be created in the correct location.

    Fixes: 6cfc0081b046 ("blk-mq: no need to check return value of debugfs_create functions")
    Reported-by: Stephen Rothwell
    Cc: linux-block@vger.kernel.org
    Signed-off-by: Greg Kroah-Hartman
    Signed-off-by: Jens Axboe

    Greg Kroah-Hartman
     

06 Jul, 2019

3 commits

  • This reverts commit 5fd4ca2d84b249f0858ce28cf637cf25b61a398f.

    Mikhail Gavrilov reports that it causes the VM_BUG_ON_PAGE() in
    __delete_from_swap_cache() to trigger:

    page:ffffd6d34dff0000 refcount:1 mapcount:1 mapping:ffff97812323a689 index:0xfecec363
    anon
    flags: 0x17fffe00080034(uptodate|lru|active|swapbacked)
    raw: 0017fffe00080034 ffffd6d34c67c508 ffffd6d3504b8d48 ffff97812323a689
    raw: 00000000fecec363 0000000000000000 0000000100000000 ffff978433ace000
    page dumped because: VM_BUG_ON_PAGE(entry != page)
    page->mem_cgroup:ffff978433ace000
    ------------[ cut here ]------------
    kernel BUG at mm/swap_state.c:170!
    invalid opcode: 0000 [#1] SMP NOPTI
    CPU: 1 PID: 221 Comm: kswapd0 Not tainted 5.2.0-0.rc2.git0.1.fc31.x86_64 #1
    Hardware name: System manufacturer System Product Name/ROG STRIX X470-I GAMING, BIOS 2202 04/11/2019
    RIP: 0010:__delete_from_swap_cache+0x20d/0x240
    Code: 30 65 48 33 04 25 28 00 00 00 75 4a 48 83 c4 38 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 c7 c6 2f dc 0f 8a 48 89 c7 e8 93 1b fd ff 0b 48 c7 c6 a8 74 0f 8a e8 85 1b fd ff 0f 0b 48 c7 c6 a8 7d 0f
    RSP: 0018:ffffa982036e7980 EFLAGS: 00010046
    RAX: 0000000000000021 RBX: 0000000000000040 RCX: 0000000000000006
    RDX: 0000000000000000 RSI: 0000000000000086 RDI: ffff97843d657900
    RBP: 0000000000000001 R08: ffffa982036e7835 R09: 0000000000000535
    R10: ffff97845e21a46c R11: ffffa982036e7835 R12: ffff978426387120
    R13: 0000000000000000 R14: ffffd6d34dff0040 R15: ffffd6d34dff0000
    FS: 0000000000000000(0000) GS:ffff97843d640000(0000) knlGS:0000000000000000
    CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    CR2: 00002cba88ef5000 CR3: 000000078a97c000 CR4: 00000000003406e0
    Call Trace:
    delete_from_swap_cache+0x46/0xa0
    try_to_free_swap+0xbc/0x110
    swap_writepage+0x13/0x70
    pageout.isra.0+0x13c/0x350
    shrink_page_list+0xc14/0xdf0
    shrink_inactive_list+0x1e5/0x3c0
    shrink_node_memcg+0x202/0x760
    shrink_node+0xe0/0x470
    balance_pgdat+0x2d1/0x510
    kswapd+0x220/0x420
    kthread+0xfb/0x130
    ret_from_fork+0x22/0x40

    and it's not immediately obvious why it happens. It's too late in the
    rc cycle to do anything but revert for now.

    Link: https://lore.kernel.org/lkml/CABXGCsN9mYmBD-4GaaeW_NrDu+FDXLzr_6x+XNxfmFV6QkYCDg@mail.gmail.com/
    Reported-and-bisected-by: Mikhail Gavrilov
    Suggested-by: Jan Kara
    Cc: Michal Hocko
    Cc: Vlastimil Babka
    Cc: Matthew Wilcox
    Cc: Kirill Shutemov
    Cc: William Kucharski
    Cc: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Pull kvm fixes from Paolo Bonzini:
    "x86 bugfix patches and one compilation fix for ARM"

    * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
    KVM: arm64/sve: Fix vq_present() macro to yield a bool
    KVM: LAPIC: Fix pending interrupt in IRR blocked by software disable LAPIC
    KVM: nVMX: Change KVM_STATE_NESTED_EVMCS to signal vmcs12 is copied from eVMCS
    KVM: nVMX: Allow restore nested-state to enable eVMCS when vCPU in SMM
    KVM: x86: degrade WARN to pr_warn_ratelimited

    Linus Torvalds
     
  • Pull mtf fixes from Miquel Raynal:

    - Fix the memory organization structure of a Macronix SPI-NAND chip.

    - Fix a build dependency wrongly described.

    - Fix the sunxi NAND driver for A23/A33 SoCs by (a) reverting the
    faulty commit introducing broken DMA support and (b) applying another
    commit bringing working DMA support.

    * tag 'mtd/fixes-for-5.2-final' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux:
    mtd: rawnand: sunxi: Add A23/A33 DMA support with extra MBUS configuration
    Revert "mtd: rawnand: sunxi: Add A23/A33 DMA support"
    mtd: rawnand: ingenic: Fix ingenic_ecc dependency
    mtd: spinand: Fix max_bad_eraseblocks_per_lun info in memorg

    Linus Torvalds