syzbot


memory leak in iov_iter_extract_pages

Status: upstream: reported C repro on 2023/08/17 01:56
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+cb729843d0f42a5c1a50@syzkaller.appspotmail.com
First crash: 245d, last: 115d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH RESEND] iov_iter: fix memleak in iov_iter_extract_pages 1 (1) 2023/12/06 07:18
[PATCH] iov_iter: fix memleak in iov_iter_extract_pages 2 (2) 2023/11/20 15:31
[syzbot] [block?] memory leak in iov_iter_extract_pages 0 (2) 2023/11/11 07:14
Last patch testing requests (8)
Created Duration User Patch Repo Result
2024/03/23 14:11 11m retest repro upstream report log
2024/02/29 12:06 13m retest repro upstream report log
2024/01/10 08:37 16m retest repro upstream report log
2023/12/21 09:53 10m retest repro upstream report log
2023/12/21 09:46 10m retest repro upstream report log
2023/11/11 07:14 25m jose.pekkarinen@foxhound.fi patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 5a6a09e97199d6600d31383055f9d43fbbcbe86f OK log
2023/11/01 08:14 22m retest repro upstream report log
2023/08/23 04:21 15m retest repro upstream report log

Sample crash report:
Warning: Permanently added '10.128.10.17' (ED25519) to the list of known hosts.
executing program
executing program
BUG: memory leak
unreferenced object 0xffff888108bcf8a0 (size 96):
  comm "syz-executor300", pid 5026, jiffies 4294943136 (age 13.720s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff81633f1d>] kmemleak_alloc_recursive include/linux/kmemleak.h:42 [inline]
    [<ffffffff81633f1d>] slab_post_alloc_hook mm/slab.h:766 [inline]
    [<ffffffff81633f1d>] slab_alloc_node mm/slub.c:3478 [inline]
    [<ffffffff81633f1d>] __kmem_cache_alloc_node+0x2dd/0x3f0 mm/slub.c:3517
    [<ffffffff8157f2fe>] __do_kmalloc_node mm/slab_common.c:1006 [inline]
    [<ffffffff8157f2fe>] __kmalloc_node+0x4e/0x150 mm/slab_common.c:1014
    [<ffffffff8156eab9>] kmalloc_node include/linux/slab.h:620 [inline]
    [<ffffffff8156eab9>] kvmalloc_node+0x99/0x170 mm/util.c:617
    [<ffffffff8251c46e>] kvmalloc include/linux/slab.h:738 [inline]
    [<ffffffff8251c46e>] kvmalloc_array include/linux/slab.h:756 [inline]
    [<ffffffff8251c46e>] want_pages_array lib/iov_iter.c:905 [inline]
    [<ffffffff8251c46e>] iov_iter_extract_user_pages lib/iov_iter.c:1614 [inline]
    [<ffffffff8251c46e>] iov_iter_extract_pages+0x60e/0xb80 lib/iov_iter.c:1680
    [<ffffffff82467bc3>] bio_map_user_iov+0x163/0x5b0 block/blk-map.c:297
    [<ffffffff824683b7>] blk_rq_map_user_iov+0x3a7/0xb60 block/blk-map.c:663
    [<ffffffff82468f73>] blk_rq_map_user block/blk-map.c:690 [inline]
    [<ffffffff82468f73>] blk_rq_map_user_io+0x143/0x160 block/blk-map.c:723
    [<ffffffff82d02645>] sg_io+0x285/0x510 drivers/scsi/scsi_ioctl.c:456
    [<ffffffff82d02d45>] scsi_cdrom_send_packet+0x1b5/0x480 drivers/scsi/scsi_ioctl.c:820
    [<ffffffff82d030da>] scsi_ioctl+0xca/0xd30 drivers/scsi/scsi_ioctl.c:903
    [<ffffffff82d97b74>] sg_ioctl+0x5f4/0x10a0 drivers/scsi/sg.c:1163
    [<ffffffff816becc2>] vfs_ioctl fs/ioctl.c:51 [inline]
    [<ffffffff816becc2>] __do_sys_ioctl fs/ioctl.c:871 [inline]
    [<ffffffff816becc2>] __se_sys_ioctl fs/ioctl.c:857 [inline]
    [<ffffffff816becc2>] __x64_sys_ioctl+0xf2/0x140 fs/ioctl.c:857
    [<ffffffff84b6fdcf>] do_syscall_x64 arch/x86/entry/common.c:51 [inline]
    [<ffffffff84b6fdcf>] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82
    [<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0x6b


Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/07 09:12 upstream bee0e7762ad2 e3299f55 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in iov_iter_extract_pages
2023/08/13 01:52 upstream ae545c3283dc 39990d51 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in iov_iter_extract_pages
* Struck through repros no longer work on HEAD.