* [regression] Bug 216932 - io_uring with libvirt cause kernel NULL pointer dereference since 6.1.5 @ 2023-01-16 13:17 Linux kernel regression tracking (Thorsten Leemhuis) 2023-01-16 13:42 ` Jens Axboe 0 siblings, 1 reply; 9+ messages in thread From: Linux kernel regression tracking (Thorsten Leemhuis) @ 2023-01-16 13:17 UTC (permalink / raw) To: Jens Axboe Cc: [email protected], io-uring, LKML, Linux kernel regressions list, Sergey V. Hi, this is your Linux kernel regression tracker. I noticed a regression report in bugzilla.kernel.org. As many (most?) kernel developer don't keep an eye on it, I decided to forward it by mail. Quoting from https://bugzilla.kernel.org/show_bug.cgi?id=216932 : > Sergey V. 2023-01-15 06:41:03 UTC > > Created attachment 303605 [details] > My dmesg > > After 6.1.5 kernel update my vm locks up at boot, and dmesg says "BUG: kernel NULL pointer dereference, address: 0000000000000005" (more details in attachment) > > I have few drives attached to vm with io_uring > > <driver name="qemu" type="raw" cache="none" io="io_uring" discard="unmap" detect_zeroes="off"/> > > [reply] [−] Comment 1 Sergey V. 2023-01-15 06:51:54 UTC > > After update from 6.1.4 to 6.1.5, rollback to 6.1.4 solve the problem > From the attached dmesg: > [ 70.298276] vfio-pci 0000:04:00.0: vfio_ecap_init: hiding ecap 0x25@0x3a0 > [ 90.429090] BUG: kernel NULL pointer dereference, address: 0000000000000005 > [ 90.429097] #PF: supervisor write access in kernel mode > [ 90.429099] #PF: error_code(0x0002) - not-present page > [ 90.429101] PGD 0 P4D 0 > [ 90.429104] Oops: 0002 [#1] PREEMPT SMP NOPTI > [ 90.429106] CPU: 23 PID: 4674 Comm: qemu-system-x86 Tainted: P OE 6.1.6-arch1-1 #1 7a22e7c094ebed7938b5cf37e842437a2188b39a > [ 90.429111] Hardware name: System manufacturer System Product Name/ROG STRIX X570-E GAMING, BIOS 4403 04/27/2022 > [ 90.429113] RIP: 0010:__bio_split_to_limits+0x2a4/0x480 > [ 90.429119] Code: 48 8b 5c 24 10 4c 8b 74 24 08 44 8b 7c 24 30 45 89 3e e9 29 ff ff ff c6 43 18 0c 48 89 df 49 c7 c4 f5 ff ff ff e8 4c 30 ff ff <41> 81 4c 24 10 00 40 00 00 45 8b 6c 24 28 49 be 00 00 00 00 00 00 > [ 90.429122] RSP: 0018:ffffad8501857a30 EFLAGS: 00010202 > [ 90.429124] RAX: ffff8e475e9a2001 RBX: ffff8e475e9a11c0 RCX: 0000000000002817 > [ 90.429126] RDX: 0000000000002617 RSI: 2f0bdc6175ca72c6 RDI: 000000000003bae0 > [ 90.429127] RBP: ffffad8501857ab8 R08: ffff8e4616989000 R09: 0000000000001000 > [ 90.429128] R10: 0000000000001000 R11: 0000000000001000 R12: fffffffffffffff5 > [ 90.429130] R13: 0000000000200000 R14: ffffad8501857acc R15: ffff8e4616989a80 > [ 90.429132] FS: 00007fa9099b3e40(0000) GS:ffff8e64aefc0000(0000) knlGS:0000000000000000 > [ 90.429134] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 90.429135] CR2: 0000000000000005 CR3: 0000000104526000 CR4: 0000000000750ee0 > [ 90.429137] PKRU: 55555554 > [ 90.429138] Call Trace: > [ 90.429139] <TASK> > [ 90.429142] blk_mq_submit_bio+0x9d/0x5e0 > [ 90.429145] ? bio_associate_blkg_from_css+0xcd/0x340 > [ 90.429148] __submit_bio+0xf5/0x180 > [ 90.429150] submit_bio_noacct_nocheck+0x20e/0x2c0 > [ 90.429152] __blkdev_direct_IO_async+0x104/0x1b0 > [ 90.429155] blkdev_read_iter+0x127/0x1e0 > [ 90.429158] io_read+0xe6/0x4e0 > [ 90.429162] io_issue_sqe+0x66/0x3c0 > [ 90.429165] ? io_prep_rw+0x5e/0x1c0 > [ 90.429167] io_submit_sqes+0x201/0x610 > [ 90.429170] __do_sys_io_uring_enter+0x3d0/0xa50 > [ 90.429173] do_syscall_64+0x5c/0x90 > [ 90.429176] ? syscall_exit_to_user_mode+0x1b/0x40 > [ 90.429179] ? do_syscall_64+0x6b/0x90 > [ 90.429180] ? exit_to_user_mode_prepare+0x16f/0x1d0 > [ 90.429184] ? syscall_exit_to_user_mode+0x1b/0x40 > [ 90.429186] ? do_syscall_64+0x6b/0x90 > [ 90.429187] ? do_syscall_64+0x6b/0x90 > [ 90.429188] entry_SYSCALL_64_after_hwframe+0x63/0xcd > [ 90.429192] RIP: 0033:0x7fa90ac10865 > [ 90.429220] Code: 00 00 00 44 89 d0 41 b9 08 00 00 00 83 c8 10 f6 87 d0 00 00 00 01 8b bf cc 00 00 00 44 0f 45 d0 45 31 c0 b8 aa 01 00 00 0f 05 <c3> 66 2e 0f 1f 84 00 00 00 00 00 41 83 e2 02 74 c2 f0 48 83 0c 24 > [ 90.429223] RSP: 002b:00007ffd7b86b0d8 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa > [ 90.429226] RAX: ffffffffffffffda RBX: 00005572c9a6a800 RCX: 00007fa90ac10865 > [ 90.429227] RDX: 0000000000000000 RSI: 0000000000000001 RDI: 000000000000000d > [ 90.429229] RBP: 00005572c9a6a808 R08: 0000000000000000 R09: 0000000000000008 > [ 90.429230] R10: 0000000000000000 R11: 0000000000000246 R12: 00005572c9a6a8f0 > [ 90.429231] R13: 00007ffd7b86b160 R14: 0000000000000001 R15: 0000000000000000 > [ 90.429235] </TASK> > [ 90.429236] Modules linked in: ip_vs_rr xt_ipvs ip_vs overlay > rfcomm vhost_net vhost vhost_iotlb tap tun snd_seq_dummy snd_hrtimer > snd_seq xt_nat vxlan ip6_udp_tunnel udp_tunnel xt_policy xt_mark xt_u32 > xt_CHECKSUM ipt_REJECT nf_reject_ipv4 xt_tcpudp xt_conntrack > ip6table_mangle ip6table_nat ip6table_filter xt_MASQUERADE ip6_tables > nf_conntrack_netlink nfnetlink iptable_mangle xt_addrtype iptable_filter > iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 > br_netfilter cmac algif_hash veth algif_skcipher af_alg nct6775 bnep > nct6775_core hwmon_vid scsi_transport_iscsi f2fs snd_usb_audio > snd_usbmidi_lib crc32_generic lz4hc_compress snd_rawmidi hid_sony > snd_seq_device ff_memless mc xfs intel_rapl_msr intel_rapl_common > edac_mce_amd snd_hda_codec_realtek kvm_amd btusb btrtl > snd_hda_codec_generic snd_hda_codec_hdmi btbcm snd_hda_intel kvm btintel > snd_intel_dspcfg btmtk snd_intel_sdw_acpi joydev mousedev > crct10dif_pclmul snd_hda_codec bluetooth crc32_pclmul dm_thin_pool > polyval_clmulni > [ 90.429270] polyval_generic dm_persistent_data gf128mul > hid_apple > ecdh_generic snd_hda_core dm_bio_prison crc16 asus_ec_sensors > ghash_clmulni_intel dm_bufio bridge snd_hwdep eeepc_wmi sha512_ssse3 > snd_pcm asus_wmi aesni_intel stp llc snd_timer crypto_simd ledtrig_audio > sp5100_tco sparse_keymap snd cryptd apple_mfi_fastcharge rapl usbhid > platform_profile pcspkr igb ccp wmi_bmof k10temp i2c_piix4 soundcore > vfat cfg80211 dca fat rfkill acpi_cpufreq mac_hid dm_multipath dm_mod sg > crypto_user fuse bpf_preload ip_tables x_tables btrfs blake2b_generic > libcrc32c crc32c_generic xor raid6_pq nvme crc32c_intel nvme_core > xhci_pci xhci_pci_renesas nvme_common mxm_wmi video wmi vfio_pci > vfio_pci_core irqbypass vfio_virqfd vfio_iommu_type1 vfio > [ 90.429308] Unloaded tainted modules: nvidia(POE):1 nvidia_uvm(POE):1 nvidia_modeset(POE):1 nvidia_drm(POE):1 [last unloaded: nvidia(POE)] > [ 90.429320] CR2: 0000000000000005 > [ 90.429321] ---[ end trace 0000000000000000 ]--- > [ 90.429323] RIP: 0010:__bio_split_to_limits+0x2a4/0x480 > [ 90.429325] Code: 48 8b 5c 24 10 4c 8b 74 24 08 44 8b 7c 24 30 45 89 3e e9 29 ff ff ff c6 43 18 0c 48 89 df 49 c7 c4 f5 ff ff ff e8 4c 30 ff ff <41> 81 4c 24 10 00 40 00 00 45 8b 6c 24 28 49 be 00 00 00 00 00 00 > [ 90.429328] RSP: 0018:ffffad8501857a30 EFLAGS: 00010202 > [ 90.429329] RAX: ffff8e475e9a2001 RBX: ffff8e475e9a11c0 RCX: 0000000000002817 > [ 90.429331] RDX: 0000000000002617 RSI: 2f0bdc6175ca72c6 RDI: 000000000003bae0 > [ 90.429332] RBP: ffffad8501857ab8 R08: ffff8e4616989000 R09: 0000000000001000 > [ 90.429334] R10: 0000000000001000 R11: 0000000000001000 R12: fffffffffffffff5 > [ 90.429335] R13: 0000000000200000 R14: ffffad8501857acc R15: ffff8e4616989a80 > [ 90.429337] FS: 00007fa9099b3e40(0000) GS:ffff8e64aefc0000(0000) knlGS:0000000000000000 > [ 90.429338] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 90.429340] CR2: 0000000000000005 CR3: 0000000104526000 CR4: 0000000000750ee0 > [ 90.429341] PKRU: 55555554 See the ticket for more details. [TLDR for the rest of this mail: I'm adding this report to the list of tracked Linux kernel regressions; the text you find below is based on a few templates paragraphs you might have encountered already in similar form.] BTW, let me use this mail to also add the report to the list of tracked regressions to ensure it's doesn't fall through the cracks: #regzbot introduced: v6.1.4..v6.1.5 https://bugzilla.kernel.org/show_bug.cgi?id=216932 #regzbot title: io_uring: NULL pointer dereference #regzbot ignore-activity This isn't a regression? This issue or a fix for it are already discussed somewhere else? It was fixed already? You want to clarify when the regression started to happen? Or point out I got the title or something else totally wrong? Then just reply and tell me -- ideally while also telling regzbot about it, as explained by the page listed in the footer of this mail. Developers: When fixing the issue, remember to add 'Link:' tags pointing to the report (e.g. the buzgzilla ticket and maybe this mail as well, if this thread sees some discussion). See page linked in footer for details. Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr If I did something stupid, please tell me, as explained on that page. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [regression] Bug 216932 - io_uring with libvirt cause kernel NULL pointer dereference since 6.1.5 2023-01-16 13:17 [regression] Bug 216932 - io_uring with libvirt cause kernel NULL pointer dereference since 6.1.5 Linux kernel regression tracking (Thorsten Leemhuis) @ 2023-01-16 13:42 ` Jens Axboe 2023-01-16 13:54 ` Linux kernel regression tracking (#update) 2023-01-16 14:13 ` Jens Axboe 0 siblings, 2 replies; 9+ messages in thread From: Jens Axboe @ 2023-01-16 13:42 UTC (permalink / raw) To: Linux regressions mailing list Cc: [email protected], io-uring, LKML, Sergey V., Greg Kroah-Hartman On 1/16/23 6:17?AM, Linux kernel regression tracking (Thorsten Leemhuis) wrote: > Hi, this is your Linux kernel regression tracker. > > I noticed a regression report in bugzilla.kernel.org. As many (most?) > kernel developer don't keep an eye on it, I decided to forward it by > mail. Quoting from https://bugzilla.kernel.org/show_bug.cgi?id=216932 : Looks like: commit 6d47e0f6a535701134d950db65eb8fe1edf0b575 Author: Jens Axboe <[email protected]> Date: Wed Jan 4 08:52:06 2023 -0700 block: don't allow splitting of a REQ_NOWAIT bio got picked up by stable, but not the required prep patch: commit 613b14884b8595e20b9fac4126bf627313827fbe Author: Jens Axboe <[email protected]> Date: Wed Jan 4 08:51:19 2023 -0700 block: handle bio_split_to_limits() NULL return Greg/team, can you pick the latter too? It'll pick cleanly for 6.1-stable, not sure how far back the other patch has gone yet. -- Jens Axboe ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [regression] Bug 216932 - io_uring with libvirt cause kernel NULL pointer dereference since 6.1.5 2023-01-16 13:42 ` Jens Axboe @ 2023-01-16 13:54 ` Linux kernel regression tracking (#update) 2023-01-16 14:13 ` Jens Axboe 1 sibling, 0 replies; 9+ messages in thread From: Linux kernel regression tracking (#update) @ 2023-01-16 13:54 UTC (permalink / raw) To: Jens Axboe, Linux regressions mailing list Cc: [email protected], io-uring, LKML, Sergey V., Greg Kroah-Hartman On 16.01.23 14:42, Jens Axboe wrote: > On 1/16/23 6:17?AM, Linux kernel regression tracking (Thorsten Leemhuis) wrote: >> Hi, this is your Linux kernel regression tracker. >> >> I noticed a regression report in bugzilla.kernel.org. As many (most?) >> kernel developer don't keep an eye on it, I decided to forward it by >> mail. Quoting from https://bugzilla.kernel.org/show_bug.cgi?id=216932 : > > Looks like: > > commit 6d47e0f6a535701134d950db65eb8fe1edf0b575 > Author: Jens Axboe <[email protected]> > Date: Wed Jan 4 08:52:06 2023 -0700 > > block: don't allow splitting of a REQ_NOWAIT bio > > got picked up by stable, but not the required prep patch: > > > commit 613b14884b8595e20b9fac4126bf627313827fbe > Author: Jens Axboe <[email protected]> > Date: Wed Jan 4 08:51:19 2023 -0700 > > block: handle bio_split_to_limits() NULL return > > Greg/team, can you pick the latter too? It'll pick cleanly for > 6.1-stable, not sure how far back the other patch has gone yet. Jens, many thx for looking so quickly into this! Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr That page also explains what to do if mails like this annoy you. #regzbot fix: block: handle bio_split_to_limits() NULL return #regzbot ignore-activity ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [regression] Bug 216932 - io_uring with libvirt cause kernel NULL pointer dereference since 6.1.5 2023-01-16 13:42 ` Jens Axboe 2023-01-16 13:54 ` Linux kernel regression tracking (#update) @ 2023-01-16 14:13 ` Jens Axboe 2023-01-16 14:49 ` Greg Kroah-Hartman 1 sibling, 1 reply; 9+ messages in thread From: Jens Axboe @ 2023-01-16 14:13 UTC (permalink / raw) To: Linux regressions mailing list Cc: [email protected], io-uring, LKML, Sergey V., Greg Kroah-Hartman [-- Attachment #1: Type: text/plain, Size: 1217 bytes --] On 1/16/23 6:42 AM, Jens Axboe wrote: > On 1/16/23 6:17?AM, Linux kernel regression tracking (Thorsten Leemhuis) wrote: >> Hi, this is your Linux kernel regression tracker. >> >> I noticed a regression report in bugzilla.kernel.org. As many (most?) >> kernel developer don't keep an eye on it, I decided to forward it by >> mail. Quoting from https://bugzilla.kernel.org/show_bug.cgi?id=216932 : > > Looks like: > > commit 6d47e0f6a535701134d950db65eb8fe1edf0b575 > Author: Jens Axboe <[email protected]> > Date: Wed Jan 4 08:52:06 2023 -0700 > > block: don't allow splitting of a REQ_NOWAIT bio > > got picked up by stable, but not the required prep patch: > > > commit 613b14884b8595e20b9fac4126bf627313827fbe > Author: Jens Axboe <[email protected]> > Date: Wed Jan 4 08:51:19 2023 -0700 > > block: handle bio_split_to_limits() NULL return > > Greg/team, can you pick the latter too? It'll pick cleanly for > 6.1-stable, not sure how far back the other patch has gone yet. Looked back, and 5.15 has it too, but the cherry-pick won't work on that kernel. Here's one for 5.15-stable that I verified crashes before this one, and works with it. Haven't done an allmodconfig yet... -- Jens Axboe [-- Attachment #2: 0001-block-handle-bio_split_to_limits-NULL-return.patch --] [-- Type: text/x-patch, Size: 4561 bytes --] From 850091593128cdbc72ce0f06ff35665d7d708a5f Mon Sep 17 00:00:00 2001 From: Jens Axboe <[email protected]> Date: Mon, 16 Jan 2023 07:11:04 -0700 Subject: [PATCH] block: handle bio_split_to_limits() NULL return commit 613b14884b8595e20b9fac4126bf627313827fbe upstream. This can't happen right now, but in preparation for allowing bio_split_to_limits() returning NULL if it ended the bio, check for it in all the callers. Signed-off-by: Jens Axboe <[email protected]> --- block/blk-merge.c | 4 +++- block/blk-mq.c | 2 ++ drivers/block/drbd/drbd_req.c | 2 ++ drivers/block/pktcdvd.c | 2 ++ drivers/block/ps3vram.c | 2 ++ drivers/block/rsxx/dev.c | 2 ++ drivers/md/md.c | 2 ++ drivers/nvme/host/multipath.c | 2 ++ drivers/s390/block/dcssblk.c | 2 ++ 9 files changed, 19 insertions(+), 1 deletion(-) diff --git a/block/blk-merge.c b/block/blk-merge.c index bb26db93ad1d..d1435b657297 100644 --- a/block/blk-merge.c +++ b/block/blk-merge.c @@ -348,11 +348,13 @@ void __blk_queue_split(struct bio **bio, unsigned int *nr_segs) break; } split = blk_bio_segment_split(q, *bio, &q->bio_split, nr_segs); + if (IS_ERR(split)) + *bio = split = NULL; break; } if (split) { - /* there isn't chance to merge the splitted bio */ + /* there isn't chance to merge the split bio */ split->bi_opf |= REQ_NOMERGE; bio_chain(split, *bio); diff --git a/block/blk-mq.c b/block/blk-mq.c index 1a28ba9017ed..9f53b4caf977 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -2193,6 +2193,8 @@ blk_qc_t blk_mq_submit_bio(struct bio *bio) blk_queue_bounce(q, &bio); __blk_queue_split(&bio, &nr_segs); + if (!bio) + goto queue_exit; if (!bio_integrity_prep(bio)) goto queue_exit; diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c index 47e0d105b462..4281dc847bc2 100644 --- a/drivers/block/drbd/drbd_req.c +++ b/drivers/block/drbd/drbd_req.c @@ -1602,6 +1602,8 @@ blk_qc_t drbd_submit_bio(struct bio *bio) struct drbd_device *device = bio->bi_bdev->bd_disk->private_data; blk_queue_split(&bio); + if (!bio) + return BLK_QC_T_NONE; /* * what we "blindly" assume: diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 0f26b2510a75..ca2ab977ef8e 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c @@ -2407,6 +2407,8 @@ static blk_qc_t pkt_submit_bio(struct bio *bio) struct bio *split; blk_queue_split(&bio); + if (!bio) + return BLK_QC_T_NONE; pd = bio->bi_bdev->bd_disk->queue->queuedata; if (!pd) { diff --git a/drivers/block/ps3vram.c b/drivers/block/ps3vram.c index c7b19e128b03..c79aa4d8ccf7 100644 --- a/drivers/block/ps3vram.c +++ b/drivers/block/ps3vram.c @@ -587,6 +587,8 @@ static blk_qc_t ps3vram_submit_bio(struct bio *bio) dev_dbg(&dev->core, "%s\n", __func__); blk_queue_split(&bio); + if (!bio) + return BLK_QC_T_NONE; spin_lock_irq(&priv->lock); busy = !bio_list_empty(&priv->list); diff --git a/drivers/block/rsxx/dev.c b/drivers/block/rsxx/dev.c index 1cc40b0ea761..6b253d99bc48 100644 --- a/drivers/block/rsxx/dev.c +++ b/drivers/block/rsxx/dev.c @@ -127,6 +127,8 @@ static blk_qc_t rsxx_submit_bio(struct bio *bio) blk_status_t st = BLK_STS_IOERR; blk_queue_split(&bio); + if (!bio) + return BLK_QC_T_NONE; might_sleep(); diff --git a/drivers/md/md.c b/drivers/md/md.c index 59ab99844df8..9e54b865f30d 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -458,6 +458,8 @@ static blk_qc_t md_submit_bio(struct bio *bio) } blk_queue_split(&bio); + if (!bio) + return BLK_QC_T_NONE; if (mddev->ro == 1 && unlikely(rw == WRITE)) { if (bio_sectors(bio) != 0) diff --git a/drivers/nvme/host/multipath.c b/drivers/nvme/host/multipath.c index fe199d568a4a..8d97b942de01 100644 --- a/drivers/nvme/host/multipath.c +++ b/drivers/nvme/host/multipath.c @@ -329,6 +329,8 @@ static blk_qc_t nvme_ns_head_submit_bio(struct bio *bio) * pool from the original queue to allocate the bvecs from. */ blk_queue_split(&bio); + if (!bio) + return BLK_QC_T_NONE; srcu_idx = srcu_read_lock(&head->srcu); ns = nvme_find_path(head); diff --git a/drivers/s390/block/dcssblk.c b/drivers/s390/block/dcssblk.c index 5be3d1c39a78..54176c073547 100644 --- a/drivers/s390/block/dcssblk.c +++ b/drivers/s390/block/dcssblk.c @@ -866,6 +866,8 @@ dcssblk_submit_bio(struct bio *bio) unsigned long bytes_done; blk_queue_split(&bio); + if (!bio) + return BLK_QC_T_NONE; bytes_done = 0; dev_info = bio->bi_bdev->bd_disk->private_data; -- 2.39.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [regression] Bug 216932 - io_uring with libvirt cause kernel NULL pointer dereference since 6.1.5 2023-01-16 14:13 ` Jens Axboe @ 2023-01-16 14:49 ` Greg Kroah-Hartman 2023-01-16 15:44 ` Jens Axboe 0 siblings, 1 reply; 9+ messages in thread From: Greg Kroah-Hartman @ 2023-01-16 14:49 UTC (permalink / raw) To: Jens Axboe Cc: Linux regressions mailing list, [email protected], io-uring, LKML, Sergey V. On Mon, Jan 16, 2023 at 07:13:40AM -0700, Jens Axboe wrote: > On 1/16/23 6:42 AM, Jens Axboe wrote: > > On 1/16/23 6:17?AM, Linux kernel regression tracking (Thorsten Leemhuis) wrote: > >> Hi, this is your Linux kernel regression tracker. > >> > >> I noticed a regression report in bugzilla.kernel.org. As many (most?) > >> kernel developer don't keep an eye on it, I decided to forward it by > >> mail. Quoting from https://bugzilla.kernel.org/show_bug.cgi?id=216932 : > > > > Looks like: > > > > commit 6d47e0f6a535701134d950db65eb8fe1edf0b575 > > Author: Jens Axboe <[email protected]> > > Date: Wed Jan 4 08:52:06 2023 -0700 > > > > block: don't allow splitting of a REQ_NOWAIT bio > > > > got picked up by stable, but not the required prep patch: > > > > > > commit 613b14884b8595e20b9fac4126bf627313827fbe > > Author: Jens Axboe <[email protected]> > > Date: Wed Jan 4 08:51:19 2023 -0700 > > > > block: handle bio_split_to_limits() NULL return > > > > Greg/team, can you pick the latter too? It'll pick cleanly for > > 6.1-stable, not sure how far back the other patch has gone yet. > > Looked back, and 5.15 has it too, but the cherry-pick won't work > on that kernel. > > Here's one for 5.15-stable that I verified crashes before this one, > and works with it. Haven't done an allmodconfig yet... All now queued up, thanks! greg k-h ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [regression] Bug 216932 - io_uring with libvirt cause kernel NULL pointer dereference since 6.1.5 2023-01-16 14:49 ` Greg Kroah-Hartman @ 2023-01-16 15:44 ` Jens Axboe 2023-01-16 15:50 ` Jens Axboe 0 siblings, 1 reply; 9+ messages in thread From: Jens Axboe @ 2023-01-16 15:44 UTC (permalink / raw) To: Greg Kroah-Hartman Cc: Linux regressions mailing list, [email protected], io-uring, LKML, Sergey V. On 1/16/23 7:49 AM, Greg Kroah-Hartman wrote: > On Mon, Jan 16, 2023 at 07:13:40AM -0700, Jens Axboe wrote: >> On 1/16/23 6:42 AM, Jens Axboe wrote: >>> On 1/16/23 6:17?AM, Linux kernel regression tracking (Thorsten Leemhuis) wrote: >>>> Hi, this is your Linux kernel regression tracker. >>>> >>>> I noticed a regression report in bugzilla.kernel.org. As many (most?) >>>> kernel developer don't keep an eye on it, I decided to forward it by >>>> mail. Quoting from https://bugzilla.kernel.org/show_bug.cgi?id=216932 : >>> >>> Looks like: >>> >>> commit 6d47e0f6a535701134d950db65eb8fe1edf0b575 >>> Author: Jens Axboe <[email protected]> >>> Date: Wed Jan 4 08:52:06 2023 -0700 >>> >>> block: don't allow splitting of a REQ_NOWAIT bio >>> >>> got picked up by stable, but not the required prep patch: >>> >>> >>> commit 613b14884b8595e20b9fac4126bf627313827fbe >>> Author: Jens Axboe <[email protected]> >>> Date: Wed Jan 4 08:51:19 2023 -0700 >>> >>> block: handle bio_split_to_limits() NULL return >>> >>> Greg/team, can you pick the latter too? It'll pick cleanly for >>> 6.1-stable, not sure how far back the other patch has gone yet. >> >> Looked back, and 5.15 has it too, but the cherry-pick won't work >> on that kernel. >> >> Here's one for 5.15-stable that I verified crashes before this one, >> and works with it. Haven't done an allmodconfig yet... > > All now queued up, thanks! Thanks Greg! This one was my fault, as it was a set of 2 patches and I only marked 2/2 for stable. But how is that best handled? 1/2 could've been marked stable as well, but I don't think that would have prevented 2/2 applying fine and 1/2 failing and hence not getting queued up until I would've done a backport. What's the recommended way to describe the dependency that you only want 2/2 applied when 1/2 is in as well? -- Jens Axboe ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [regression] Bug 216932 - io_uring with libvirt cause kernel NULL pointer dereference since 6.1.5 2023-01-16 15:44 ` Jens Axboe @ 2023-01-16 15:50 ` Jens Axboe 2023-02-03 9:17 ` Greg Kroah-Hartman 0 siblings, 1 reply; 9+ messages in thread From: Jens Axboe @ 2023-01-16 15:50 UTC (permalink / raw) To: Greg Kroah-Hartman Cc: Linux regressions mailing list, [email protected], io-uring, LKML, Sergey V. On 1/16/23 8:44 AM, Jens Axboe wrote: > On 1/16/23 7:49 AM, Greg Kroah-Hartman wrote: >> On Mon, Jan 16, 2023 at 07:13:40AM -0700, Jens Axboe wrote: >>> On 1/16/23 6:42 AM, Jens Axboe wrote: >>>> On 1/16/23 6:17?AM, Linux kernel regression tracking (Thorsten Leemhuis) wrote: >>>>> Hi, this is your Linux kernel regression tracker. >>>>> >>>>> I noticed a regression report in bugzilla.kernel.org. As many (most?) >>>>> kernel developer don't keep an eye on it, I decided to forward it by >>>>> mail. Quoting from https://bugzilla.kernel.org/show_bug.cgi?id=216932 : >>>> >>>> Looks like: >>>> >>>> commit 6d47e0f6a535701134d950db65eb8fe1edf0b575 >>>> Author: Jens Axboe <[email protected]> >>>> Date: Wed Jan 4 08:52:06 2023 -0700 >>>> >>>> block: don't allow splitting of a REQ_NOWAIT bio >>>> >>>> got picked up by stable, but not the required prep patch: >>>> >>>> >>>> commit 613b14884b8595e20b9fac4126bf627313827fbe >>>> Author: Jens Axboe <[email protected]> >>>> Date: Wed Jan 4 08:51:19 2023 -0700 >>>> >>>> block: handle bio_split_to_limits() NULL return >>>> >>>> Greg/team, can you pick the latter too? It'll pick cleanly for >>>> 6.1-stable, not sure how far back the other patch has gone yet. >>> >>> Looked back, and 5.15 has it too, but the cherry-pick won't work >>> on that kernel. >>> >>> Here's one for 5.15-stable that I verified crashes before this one, >>> and works with it. Haven't done an allmodconfig yet... >> >> All now queued up, thanks! > > Thanks Greg! This one was my fault, as it was a set of 2 patches and > I only marked 2/2 for stable. But how is that best handled? 1/2 could've > been marked stable as well, but I don't think that would have prevented > 2/2 applying fine and 1/2 failing and hence not getting queued up until > I would've done a backport. > > What's the recommended way to describe the dependency that you only > want 2/2 applied when 1/2 is in as well? What I'm asking is if we have something like Depends-on or similar that would explain this dependency. Then patch 2/2 could have: Depends-on: 613b14884b85 ("block: handle bio_split_to_limits() NULL return") and then it'd be clear that either both get added, or none of them. -- Jens Axboe ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [regression] Bug 216932 - io_uring with libvirt cause kernel NULL pointer dereference since 6.1.5 2023-01-16 15:50 ` Jens Axboe @ 2023-02-03 9:17 ` Greg Kroah-Hartman 2023-02-03 14:25 ` Jens Axboe 0 siblings, 1 reply; 9+ messages in thread From: Greg Kroah-Hartman @ 2023-02-03 9:17 UTC (permalink / raw) To: Jens Axboe Cc: Linux regressions mailing list, [email protected], io-uring, LKML, Sergey V. On Mon, Jan 16, 2023 at 08:50:20AM -0700, Jens Axboe wrote: > On 1/16/23 8:44 AM, Jens Axboe wrote: > > On 1/16/23 7:49 AM, Greg Kroah-Hartman wrote: > >> On Mon, Jan 16, 2023 at 07:13:40AM -0700, Jens Axboe wrote: > >>> On 1/16/23 6:42 AM, Jens Axboe wrote: > >>>> On 1/16/23 6:17?AM, Linux kernel regression tracking (Thorsten Leemhuis) wrote: > >>>>> Hi, this is your Linux kernel regression tracker. > >>>>> > >>>>> I noticed a regression report in bugzilla.kernel.org. As many (most?) > >>>>> kernel developer don't keep an eye on it, I decided to forward it by > >>>>> mail. Quoting from https://bugzilla.kernel.org/show_bug.cgi?id=216932 : > >>>> > >>>> Looks like: > >>>> > >>>> commit 6d47e0f6a535701134d950db65eb8fe1edf0b575 > >>>> Author: Jens Axboe <[email protected]> > >>>> Date: Wed Jan 4 08:52:06 2023 -0700 > >>>> > >>>> block: don't allow splitting of a REQ_NOWAIT bio > >>>> > >>>> got picked up by stable, but not the required prep patch: > >>>> > >>>> > >>>> commit 613b14884b8595e20b9fac4126bf627313827fbe > >>>> Author: Jens Axboe <[email protected]> > >>>> Date: Wed Jan 4 08:51:19 2023 -0700 > >>>> > >>>> block: handle bio_split_to_limits() NULL return > >>>> > >>>> Greg/team, can you pick the latter too? It'll pick cleanly for > >>>> 6.1-stable, not sure how far back the other patch has gone yet. > >>> > >>> Looked back, and 5.15 has it too, but the cherry-pick won't work > >>> on that kernel. > >>> > >>> Here's one for 5.15-stable that I verified crashes before this one, > >>> and works with it. Haven't done an allmodconfig yet... > >> > >> All now queued up, thanks! > > > > Thanks Greg! This one was my fault, as it was a set of 2 patches and > > I only marked 2/2 for stable. But how is that best handled? 1/2 could've > > been marked stable as well, but I don't think that would have prevented > > 2/2 applying fine and 1/2 failing and hence not getting queued up until > > I would've done a backport. > > > > What's the recommended way to describe the dependency that you only > > want 2/2 applied when 1/2 is in as well? > > What I'm asking is if we have something like Depends-on or similar > that would explain this dependency. Then patch 2/2 could have: > > Depends-on: 613b14884b85 ("block: handle bio_split_to_limits() NULL return") > > and then it'd be clear that either both get added, or none of them. As per the documentation, you can put this on the cc: stable line in the changelog text like: cc: stable <[email protected]> # 613b14884b85 thanks, greg k-h ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [regression] Bug 216932 - io_uring with libvirt cause kernel NULL pointer dereference since 6.1.5 2023-02-03 9:17 ` Greg Kroah-Hartman @ 2023-02-03 14:25 ` Jens Axboe 0 siblings, 0 replies; 9+ messages in thread From: Jens Axboe @ 2023-02-03 14:25 UTC (permalink / raw) To: Greg Kroah-Hartman Cc: Linux regressions mailing list, [email protected], io-uring, LKML, Sergey V. On 2/3/23 2:17 AM, Greg Kroah-Hartman wrote: > On Mon, Jan 16, 2023 at 08:50:20AM -0700, Jens Axboe wrote: >> On 1/16/23 8:44 AM, Jens Axboe wrote: >>> On 1/16/23 7:49 AM, Greg Kroah-Hartman wrote: >>>> On Mon, Jan 16, 2023 at 07:13:40AM -0700, Jens Axboe wrote: >>>>> On 1/16/23 6:42 AM, Jens Axboe wrote: >>>>>> On 1/16/23 6:17?AM, Linux kernel regression tracking (Thorsten Leemhuis) wrote: >>>>>>> Hi, this is your Linux kernel regression tracker. >>>>>>> >>>>>>> I noticed a regression report in bugzilla.kernel.org. As many (most?) >>>>>>> kernel developer don't keep an eye on it, I decided to forward it by >>>>>>> mail. Quoting from https://bugzilla.kernel.org/show_bug.cgi?id=216932 : >>>>>> >>>>>> Looks like: >>>>>> >>>>>> commit 6d47e0f6a535701134d950db65eb8fe1edf0b575 >>>>>> Author: Jens Axboe <[email protected]> >>>>>> Date: Wed Jan 4 08:52:06 2023 -0700 >>>>>> >>>>>> block: don't allow splitting of a REQ_NOWAIT bio >>>>>> >>>>>> got picked up by stable, but not the required prep patch: >>>>>> >>>>>> >>>>>> commit 613b14884b8595e20b9fac4126bf627313827fbe >>>>>> Author: Jens Axboe <[email protected]> >>>>>> Date: Wed Jan 4 08:51:19 2023 -0700 >>>>>> >>>>>> block: handle bio_split_to_limits() NULL return >>>>>> >>>>>> Greg/team, can you pick the latter too? It'll pick cleanly for >>>>>> 6.1-stable, not sure how far back the other patch has gone yet. >>>>> >>>>> Looked back, and 5.15 has it too, but the cherry-pick won't work >>>>> on that kernel. >>>>> >>>>> Here's one for 5.15-stable that I verified crashes before this one, >>>>> and works with it. Haven't done an allmodconfig yet... >>>> >>>> All now queued up, thanks! >>> >>> Thanks Greg! This one was my fault, as it was a set of 2 patches and >>> I only marked 2/2 for stable. But how is that best handled? 1/2 could've >>> been marked stable as well, but I don't think that would have prevented >>> 2/2 applying fine and 1/2 failing and hence not getting queued up until >>> I would've done a backport. >>> >>> What's the recommended way to describe the dependency that you only >>> want 2/2 applied when 1/2 is in as well? >> >> What I'm asking is if we have something like Depends-on or similar >> that would explain this dependency. Then patch 2/2 could have: >> >> Depends-on: 613b14884b85 ("block: handle bio_split_to_limits() NULL return") >> >> and then it'd be clear that either both get added, or none of them. > > As per the documentation, you can put this on the cc: stable line in the > changelog text like: > cc: stable <[email protected]> # 613b14884b85 Gotcha, will try and remember that :-) -- Jens Axboe ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-02-03 14:25 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-01-16 13:17 [regression] Bug 216932 - io_uring with libvirt cause kernel NULL pointer dereference since 6.1.5 Linux kernel regression tracking (Thorsten Leemhuis) 2023-01-16 13:42 ` Jens Axboe 2023-01-16 13:54 ` Linux kernel regression tracking (#update) 2023-01-16 14:13 ` Jens Axboe 2023-01-16 14:49 ` Greg Kroah-Hartman 2023-01-16 15:44 ` Jens Axboe 2023-01-16 15:50 ` Jens Axboe 2023-02-03 9:17 ` Greg Kroah-Hartman 2023-02-03 14:25 ` Jens Axboe
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox