1. Oct 30, 2021
  2. Oct 27, 2021
  3. Oct 26, 2021
  4. Oct 21, 2021
  5. Oct 18, 2021
    • Guanghui Feng's avatar
      tty: tty_buffer: Fix the softlockup issue in flush_to_ldisc · 3968ddcf
      Guanghui Feng authored
      
      
      When running ltp testcase(ltp/testcases/kernel/pty/pty04.c) with arm64, there is a soft lockup,
      which look like this one:
      
        Workqueue: events_unbound flush_to_ldisc
        Call trace:
         dump_backtrace+0x0/0x1ec
         show_stack+0x24/0x30
         dump_stack+0xd0/0x128
         panic+0x15c/0x374
         watchdog_timer_fn+0x2b8/0x304
         __run_hrtimer+0x88/0x2c0
         __hrtimer_run_queues+0xa4/0x120
         hrtimer_interrupt+0xfc/0x270
         arch_timer_handler_phys+0x40/0x50
         handle_percpu_devid_irq+0x94/0x220
         __handle_domain_irq+0x88/0xf0
         gic_handle_irq+0x84/0xfc
         el1_irq+0xc8/0x180
         slip_unesc+0x80/0x214 [slip]
         tty_ldisc_receive_buf+0x64/0x80
         tty_port_default_receive_buf+0x50/0x90
         flush_to_ldisc+0xbc/0x110
         process_one_work+0x1d4/0x4b0
         worker_thread+0x180/0x430
         kthread+0x11c/0x120
      
      In the testcase pty04, The first process call the write syscall to send
      data to the pty master. At the same time, the workqueue will do the
      flush_to_ldisc to pop data in a loop until there is no more data left.
      When the sender and workqueue running in different core, the sender sends
      data fastly in full time which will result in workqueue doing work in loop
      for a long time and occuring softlockup in flush_to_ldisc with kernel
      configured without preempt. So I add need_resched check and cond_resched
      in the flush_to_ldisc loop to avoid it.
      
      Signed-off-by: default avatarGuanghui Feng <guanghuifeng@linux.alibaba.com>
      Link: https://lore.kernel.org/r/1633961304-24759-1-git-send-email-guanghuifeng@linux.alibaba.com
      
      
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3968ddcf
    • Greg Kroah-Hartman's avatar
      Merge 5.15-rc6 into tty-next · 412a5feb
      Greg Kroah-Hartman authored
      
      
      We need the serial/tty fixes in here as well.
      
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      412a5feb
    • Linus Torvalds's avatar
      Linux 5.15-rc6 · 519d8195
      Linus Torvalds authored
      519d8195
    • Linus Torvalds's avatar
      Merge tag 'libata-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata · cd079b1f
      Linus Torvalds authored
      Pull libata fixes from Damien Le Moal:
       "Two fixes for this cycle:
      
         - Fix a null pointer dereference in ahci-platform driver (from Hai)
      
         - Fix uninitialized variables in pata_legacy driver (from Dan)"
      
      * tag 'libata-5.15-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata:
        ata: ahci_platform: fix null-ptr-deref in ahci_platform_enable_regulators()
        pata_legacy: fix a couple uninitialized variable bugs
      cd079b1f
    • Linus Torvalds's avatar
      Merge tag 'block-5.15-2021-10-17' of git://git.kernel.dk/linux-block · f2b3420b
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "Bigger than usual for this point in time, the majority is fixing some
        issues around BDI lifetimes with the move from the request_queue to
        the disk in this release. In detail:
      
         - Series on draining fs IO for del_gendisk() (Christoph)
      
         - NVMe pull request via Christoph:
              - fix the abort command id (Keith Busch)
              - nvme: fix per-namespace chardev deletion (Adam Manzanares)
      
         - brd locking scope fix (Tetsuo)
      
         - BFQ fix (Paolo)"
      
      * tag 'block-5.15-2021-10-17' of git://git.kernel.dk/linux-block:
        block, bfq: reset last_bfqq_created on group change
        block: warn when putting the final reference on a registered disk
        brd: reduce the brd_devices_mutex scope
        kyber: avoid q->disk dereferences in trace points
        block: keep q_usage_counter in atomic mode after del_gendisk
        block: drain file system I/O on del_gendisk
        block: split bio_queue_enter from blk_queue_enter
        block: factor out a blk_try_enter_queue helper
        block: call submit_bio_checks under q_usage_counter
        nvme: fix per-namespace chardev deletion
        block/rnbd-clt-sysfs: fix a couple uninitialized variable bugs
        nvme-pci: Fix abort command id
      f2b3420b
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.15-2021-10-17' of git://git.kernel.dk/linux-block · cc0af0a9
      Linus Torvalds authored
      Pull io_uring fix from Jens Axboe:
       "Just a single fix for a wrong condition for grabbing a lock, a
        regression in this merge window"
      
      * tag 'io_uring-5.15-2021-10-17' of git://git.kernel.dk/linux-block:
        io_uring: fix wrong condition to grab uring lock
      cc0af0a9
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · 3bb50f85
      Linus Torvalds authored
      Pull virtio fixes from Michael Tsirkin:
       "Fixes up some issues in rc5"
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
        vhost-vdpa: Fix the wrong input in config_cb
        VDUSE: fix documentation underline warning
        Revert "virtio-blk: Add validation for block size in config space"
        vhost_vdpa: unset vq irq before freeing irq
        virtio: write back F_VERSION_1 before validate
      3bb50f85
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.15-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · be9eb2f0
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix a bug where guests on P9 with interrupts passed through could get
         stuck in synchronize_irq().
      
       - Fix a bug in KVM on P8 where secondary threads entering a guest would
         write outside their allocated stack.
      
       - Fix a bug in KVM on P8 where secondary threads could confuse the host
         offline code and cause the guest or host to crash.
      
      Thanks to Cédric Le Goater.
      
      * tag 'powerpc-5.15-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        KVM: PPC: Book3S HV: Make idle_kvm_start_guest() return 0 if it went to guest
        KVM: PPC: Book3S HV: Fix stack handling in idle_kvm_start_guest()
        powerpc/xive: Discard disabled interrupts in get_irqchip_state()
      be9eb2f0