mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: syzbot <syzbot+1eda626824b6334f5ad3@syzkaller.appspotmail.com>
To: agk@redhat.com, bmarzins@redhat.com, dm-devel@lists.linux.dev,
	 linux-kernel@vger.kernel.org, mpatocka@redhat.com,
	snitzer@kernel.org,  syzkaller-bugs@googlegroups.com
Subject: [syzbot] [dm?] WARNING in vfree
Date: Thu, 26 Nov 2026 01:25:38 -0800	[thread overview]
Message-ID: <6b07fb12.1fb41460.314c8.0066.GAE@google.com> (raw)

Hello,

syzbot found the following issue on:

HEAD commit:    8d7fe9885c62 Merge tag 'hid-for-linus-2026112301' of git:/..
git tree:       git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
console output: https://syzkaller.appspot.com/x/log.txt?x=14233865580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=462e918ed4cc6d73
dashboard link: https://syzkaller.appspot.com/bug?extid=1eda626824b6334f5ad3
compiler:       Debian clang version 22.1.8 (1~deb13u5), Debian LLD 22.1.8
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=11e9b26d580000

The issue was bisected by AI to:

commit 7c9e6c17325fab380fbe9c9787680ff7d4a51abd
Author: Alasdair G Kergon <agk@redhat.com>
Date:   Tue Oct 21 16:44:55 2008 +0000

    dm exception store: refactor zero_area

reasoning:      https://syzkaller.appspot.com/ai_job?id=6cbd8234-0194-4412-aaf9-4e1c4e6d5e7e

AI-generated root cause summary:
In drivers/md/dm-snap-persistent.c, alloc_area() allocates three vmalloc buffers
(ps->area, ps->zero_area, and ps->header_area) for struct pstore. When
allocating ps->zero_area or ps->header_area fails (such as under memory
pressure), the error path calls vfree() on the already-allocated buffer(s) and
returns -ENOMEM without resetting ps->area (or ps->zero_area) to NULL. On
failure of persistent_read_metadata(), snapshot_ctr() tears down the exception
store via dm_exception_store_destroy() -> persistent_dtr() -> free_area(), which
invokes vfree() on the dangling ps->area (and ps->zero_area) pointer a second
time.

full analysis:  https://syzkaller.appspot.com/x/ai_root_cause?x=1eda626824b6334f5ad3

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+1eda626824b6334f5ad3@syzkaller.appspotmail.com

The bisection result may be wrong.
If you agree with it, please also add:
Fixes: 7c9e6c17325f ("dm exception store: refactor zero_area")

------------[ cut here ]------------
Trying to vfree() nonexistent vm area (ffffc90024410000)
WARNING: mm/vmalloc.c:3540 at vfree+0x463/0x490 mm/vmalloc.c:3539, CPU#0: syz-executor415/5665
Modules linked in:
CPU: 0 UID: 0 PID: 5665 Comm: syz-executor415 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:vfree+0x466/0x490 mm/vmalloc.c:3539
Code: e8 1f d6 98 ff 4c 89 f7 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d e9 19 f9 ff ff e8 04 d6 98 ff 48 8d 3d 4d e3 92 0f 4c 89 f6 <67> 48 0f b9 3a e9 42 fd ff ff e8 eb d5 98 ff 4c 89 e7 e8 23 00 00
RSP: 0018:ffffc9000364f868 EFLAGS: 00010293
RAX: ffffffff82307c2c RBX: 0000000000000000 RCX: ffff88803d920000
RDX: 0000000000000000 RSI: ffffc90024410000 RDI: ffffffff91c35f80
RBP: ffffc9000364fa38 R08: ffffffff9bf28a83 R09: 1ffffffff37e5150
R10: dffffc0000000000 R11: fffffbfff37e5151 R12: 1ffff1100277eb03
R13: ffff88800c1c1898 R14: ffffc90024410000 R15: 00000000ff00ff00
FS:  000055558a755400(0000) GS:ffff88808a9e9000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f23c5db2bd0 CR3: 000000003f9e6000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 free_area drivers/md/dm-snap-persistent.c:207 [inline]
 persistent_dtr+0xb2/0x170 drivers/md/dm-snap-persistent.c:604
 dm_exception_store_destroy+0x5c/0xc0 drivers/md/dm-exception-store.c:257
 snapshot_ctr+0x10a0/0x1380 drivers/md/dm-snap.c:1421
 dm_table_add_target+0x58d/0xc70 drivers/md/dm-table.c:765
 populate_table drivers/md/dm-ioctl.c:1602 [inline]
 table_load+0x325/0x8a0 drivers/md/dm-ioctl.c:1645
 ctl_ioctl drivers/md/dm-ioctl.c:2221 [inline]
 dm_ctl_ioctl+0x9ec/0xe10 drivers/md/dm-ioctl.c:2243
 vfs_ioctl fs/ioctl.c:52 [inline]
 __do_sys_ioctl fs/ioctl.c:598 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:584
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ffb7fb0744b
Code: Unable to access opcode bytes at 0x7ffb7fb07421.
RSP: 002b:00007ffe9db1e5a0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007ffb7fb0744b
RDX: 00007ffe9db1e600 RSI: 00000000c138fd09 RDI: 0000000000000003
RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe9db1e760
R13: 00007ffe9db1f640 R14: 00007ffe9db1f660 R15: 00007ffe9db1f6b0
 </TASK>
----------------
Code disassembly (best guess):
   0:	e8 1f d6 98 ff       	call   0xff98d624
   5:	4c 89 f7             	mov    %r14,%rdi
   8:	48 83 c4 10          	add    $0x10,%rsp
   c:	5b                   	pop    %rbx
   d:	41 5c                	pop    %r12
   f:	41 5d                	pop    %r13
  11:	41 5e                	pop    %r14
  13:	41 5f                	pop    %r15
  15:	5d                   	pop    %rbp
  16:	e9 19 f9 ff ff       	jmp    0xfffff934
  1b:	e8 04 d6 98 ff       	call   0xff98d624
  20:	48 8d 3d 4d e3 92 0f 	lea    0xf92e34d(%rip),%rdi        # 0xf92e374
  27:	4c 89 f6             	mov    %r14,%rsi
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	e9 42 fd ff ff       	jmp    0xfffffd76
  34:	e8 eb d5 98 ff       	call   0xff98d624
  39:	4c 89 e7             	mov    %r12,%rdi
  3c:	e8                   	.byte 0xe8
  3d:	23 00                	and    (%rax),%eax


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
For information about bisection process see: https://goo.gl/tpsmEJ#ai-bisection

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

                 reply	other threads:[~2026-11-26  9:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6b07fb12.1fb41460.314c8.0066.GAE@google.com \
    --to=syzbot+1eda626824b6334f5ad3@syzkaller.appspotmail.com \
    --cc=agk@redhat.com \
    --cc=bmarzins@redhat.com \
    --cc=dm-devel@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpatocka@redhat.com \
    --cc=snitzer@kernel.org \
    --cc=syzkaller-bugs@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®