[syzbot] KASAN: use-after-free Read in delete_partition (2)

33 views
Skip to first unread message

syzbot

unread,
Mar 30, 2021, 5:45:20 PM3/30/21
to ax...@kernel.dk, da...@davemloft.net, ha...@suse.de, h...@lst.de, ja...@suse.cz, johannes....@edc.com, joha...@sipsolutions.net, ku...@kernel.org, linux...@vger.kernel.org, linux-...@vger.kernel.org, linux-w...@vger.kernel.org, net...@vger.kernel.org, ric...@nod.at, syzkall...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 93129492 Add linux-next specific files for 20210326
git tree: linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=1372ce62d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=4c9322cd4e3b7a16
dashboard link: https://syzkaller.appspot.com/bug?extid=7d6c5587ec9cff5be65c
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1433834ed00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=149c71aad00000

The issue was bisected to:

commit daaedb820ad716e00210af8859b194c404202b78
Author: Christoph Hellwig <h...@lst.de>
Date: Tue Nov 3 10:00:09 2020 +0000

mtd_blkdevs: don't override BLKFLSBUF

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=102c6ddcd00000
final oops: https://syzkaller.appspot.com/x/report.txt?x=122c6ddcd00000
console output: https://syzkaller.appspot.com/x/log.txt?x=142c6ddcd00000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+7d6c55...@syzkaller.appspotmail.com
Fixes: daaedb820ad7 ("mtd_blkdevs: don't override BLKFLSBUF")

==================================================================
BUG: KASAN: use-after-free in kobject_put+0x493/0x540 lib/kobject.c:749
Read of size 1 at addr ffff8880135d453c by task syz-executor372/8533

CPU: 0 PID: 8533 Comm: syz-executor372 Not tainted 5.12.0-rc4-next-20210326-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:79 [inline]
dump_stack+0x141/0x1d7 lib/dump_stack.c:120
print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:232
__kasan_report mm/kasan/report.c:399 [inline]
kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:416
kobject_put+0x493/0x540 lib/kobject.c:749
delete_partition+0xa4/0x170 block/partitions/core.c:291
bdev_del_partition+0xf5/0x110 block/partitions/core.c:474
blkpg_do_ioctl+0x2e8/0x340 block/ioctl.c:33
blkpg_ioctl block/ioctl.c:60 [inline]
blkdev_ioctl+0x577/0x6d0 block/ioctl.c:548
block_ioctl+0xf9/0x140 fs/block_dev.c:1667
vfs_ioctl fs/ioctl.c:48 [inline]
__do_sys_ioctl fs/ioctl.c:753 [inline]
__se_sys_ioctl fs/ioctl.c:739 [inline]
__x64_sys_ioctl+0x193/0x200 fs/ioctl.c:739
do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x444329
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdd8945e58 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000487072 RCX: 0000000000444329
RDX: 0000000020000240 RSI: 0000000000001269 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0023706f6f6c2f76 R09: 0000000000000001
R10: 000000000000001f R11: 0000000000000246 R12: 0000000000012734
R13: 00007ffdd8945e6c R14: 00007ffdd8945e80 R15: 00007ffdd8945e70

Allocated by task 8534:
kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:428 [inline]
____kasan_kmalloc mm/kasan/common.c:507 [inline]
____kasan_kmalloc mm/kasan/common.c:466 [inline]
__kasan_kmalloc+0x9b/0xd0 mm/kasan/common.c:516
kmalloc include/linux/slab.h:556 [inline]
kzalloc include/linux/slab.h:686 [inline]
kobject_create lib/kobject.c:784 [inline]
kobject_create_and_add+0x42/0xb0 lib/kobject.c:810
add_partition+0x56c/0x880 block/partitions/core.c:384
bdev_add_partition+0xb6/0x130 block/partitions/core.c:449
blkpg_do_ioctl+0x2d0/0x340 block/ioctl.c:43
blkpg_ioctl block/ioctl.c:60 [inline]
blkdev_ioctl+0x577/0x6d0 block/ioctl.c:548
block_ioctl+0xf9/0x140 fs/block_dev.c:1667
vfs_ioctl fs/ioctl.c:48 [inline]
__do_sys_ioctl fs/ioctl.c:753 [inline]
__se_sys_ioctl fs/ioctl.c:739 [inline]
__x64_sys_ioctl+0x193/0x200 fs/ioctl.c:739
do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xae

Freed by task 8534:
kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38
kasan_set_track+0x1c/0x30 mm/kasan/common.c:46
kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:357
____kasan_slab_free mm/kasan/common.c:360 [inline]
____kasan_slab_free mm/kasan/common.c:325 [inline]
__kasan_slab_free+0xfb/0x130 mm/kasan/common.c:368
kasan_slab_free include/linux/kasan.h:212 [inline]
slab_free_hook mm/slub.c:1578 [inline]
slab_free_freelist_hook+0xdf/0x240 mm/slub.c:1603
slab_free mm/slub.c:3163 [inline]
kfree+0xe5/0x7f0 mm/slub.c:4230
kobject_cleanup lib/kobject.c:705 [inline]
kobject_release lib/kobject.c:736 [inline]
kref_put include/linux/kref.h:65 [inline]
kobject_put+0x1c8/0x540 lib/kobject.c:753
delete_partition+0xa4/0x170 block/partitions/core.c:291
bdev_del_partition+0xf5/0x110 block/partitions/core.c:474
blkpg_do_ioctl+0x2e8/0x340 block/ioctl.c:33
blkpg_ioctl block/ioctl.c:60 [inline]
blkdev_ioctl+0x577/0x6d0 block/ioctl.c:548
block_ioctl+0xf9/0x140 fs/block_dev.c:1667
vfs_ioctl fs/ioctl.c:48 [inline]
__do_sys_ioctl fs/ioctl.c:753 [inline]
__se_sys_ioctl fs/ioctl.c:739 [inline]
__x64_sys_ioctl+0x193/0x200 fs/ioctl.c:739
do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xae

The buggy address belongs to the object at ffff8880135d4500
which belongs to the cache kmalloc-64 of size 64
The buggy address is located 60 bytes inside of
64-byte region [ffff8880135d4500, ffff8880135d4540)
The buggy address belongs to the page:
page:ffffea00004d7500 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x135d4
flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000200 0000000000000000 0000000100000001 ffff888010841640
raw: 0000000000000000 0000000000200020 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
ffff8880135d4400: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff8880135d4480: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff8880135d4500: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
^
ffff8880135d4580: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
ffff8880135d4600: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================


---
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 syzk...@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#bisection
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

Rajat Asthana

unread,
Jun 25, 2021, 4:36:31 PM6/25/21
to syzkaller-bugs

syzbot

unread,
Jun 25, 2021, 4:36:34 PM6/25/21
to Rajat Asthana, rajata...@gmail.com, syzkall...@googlegroups.com
> #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

I see the command but can't find the corresponding bug.
Please resend the email to syzbo...@syzkaller.appspotmail.com address
that is the sender of the bug report (also present in the Reported-by tag).
> --
> You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bug...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/82505ff3-a65c-4a37-a7d1-a30b2d2b7dfbn%40googlegroups.com.

syzbot

unread,
Jun 25, 2021, 4:49:07 PM6/25/21
to rajata...@gmail.com, syzkall...@googlegroups.com
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
KASAN: use-after-free Read in delete_partition

==================================================================
BUG: KASAN: use-after-free in kobject_put+0x493/0x540 lib/kobject.c:749
Read of size 1 at addr ffff88801167463c by task syz-executor793/18913

CPU: 0 PID: 18913 Comm: syz-executor793 Not tainted 5.13.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:79 [inline]
dump_stack+0x141/0x1d7 lib/dump_stack.c:120
print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:233
__kasan_report mm/kasan/report.c:419 [inline]
kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:436
kobject_put+0x493/0x540 lib/kobject.c:749
delete_partition+0xb9/0x180 block/partitions/core.c:294
bdev_del_partition+0xe5/0x100 block/partitions/core.c:481
blkpg_do_ioctl+0x2e8/0x340 block/ioctl.c:33
blkpg_ioctl block/ioctl.c:60 [inline]
blkdev_ioctl+0x577/0x6d0 block/ioctl.c:550
block_ioctl+0xf9/0x140 fs/block_dev.c:1662
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:1069 [inline]
__se_sys_ioctl fs/ioctl.c:1055 [inline]
__x64_sys_ioctl+0x193/0x200 fs/ioctl.c:1055
do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x444309
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffeb625698 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000487062 RCX: 0000000000444309
RDX: 0000000020000240 RSI: 0000000000001269 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0023706f6f6c2f76 R09: 0000000000000001
R10: 000000000000001f R11: 0000000000000246 R12: 000000000006fa47
R13: 00007fffeb6256ac R14: 00007fffeb6256c0 R15: 00007fffeb6256b0

Allocated by task 18908:
kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:428 [inline]
____kasan_kmalloc mm/kasan/common.c:507 [inline]
____kasan_kmalloc mm/kasan/common.c:466 [inline]
__kasan_kmalloc+0x9b/0xd0 mm/kasan/common.c:516
kmalloc include/linux/slab.h:556 [inline]
kzalloc include/linux/slab.h:686 [inline]
kobject_create lib/kobject.c:784 [inline]
kobject_create_and_add+0x42/0xb0 lib/kobject.c:810
add_partition+0x5ee/0x910 block/partitions/core.c:394
bdev_add_partition+0xb6/0x130 block/partitions/core.c:459
blkpg_do_ioctl+0x2d0/0x340 block/ioctl.c:43
blkpg_ioctl block/ioctl.c:60 [inline]
blkdev_ioctl+0x577/0x6d0 block/ioctl.c:550
block_ioctl+0xf9/0x140 fs/block_dev.c:1662
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:1069 [inline]
__se_sys_ioctl fs/ioctl.c:1055 [inline]
__x64_sys_ioctl+0x193/0x200 fs/ioctl.c:1055
do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
entry_SYSCALL_64_after_hwframe+0x44/0xae

Freed by task 18908:
kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38
kasan_set_track+0x1c/0x30 mm/kasan/common.c:46
kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:357
____kasan_slab_free mm/kasan/common.c:360 [inline]
____kasan_slab_free mm/kasan/common.c:325 [inline]
__kasan_slab_free+0xfb/0x130 mm/kasan/common.c:368
kasan_slab_free include/linux/kasan.h:212 [inline]
slab_free_hook mm/slub.c:1583 [inline]
slab_free_freelist_hook+0xdf/0x240 mm/slub.c:1608
slab_free mm/slub.c:3168 [inline]
kfree+0xe5/0x7f0 mm/slub.c:4212
kobject_cleanup lib/kobject.c:705 [inline]
kobject_release lib/kobject.c:736 [inline]
kref_put include/linux/kref.h:65 [inline]
kobject_put+0x1c8/0x540 lib/kobject.c:753
delete_partition+0xb9/0x180 block/partitions/core.c:294
bdev_del_partition+0xe5/0x100 block/partitions/core.c:481
blkpg_do_ioctl+0x2e8/0x340 block/ioctl.c:33
blkpg_ioctl block/ioctl.c:60 [inline]
blkdev_ioctl+0x577/0x6d0 block/ioctl.c:550
block_ioctl+0xf9/0x140 fs/block_dev.c:1662
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:1069 [inline]
__se_sys_ioctl fs/ioctl.c:1055 [inline]
__x64_sys_ioctl+0x193/0x200 fs/ioctl.c:1055
do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
entry_SYSCALL_64_after_hwframe+0x44/0xae

The buggy address belongs to the object at ffff888011674600
which belongs to the cache kmalloc-64 of size 64
The buggy address is located 60 bytes inside of
64-byte region [ffff888011674600, ffff888011674640)
The buggy address belongs to the page:
page:ffffea0000459d00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11674
flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000200 dead000000000100 dead000000000122 ffff888010041640
raw: 0000000000000000 0000000000200020 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
ffff888011674500: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
ffff888011674580: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff888011674600: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
^
ffff888011674680: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
ffff888011674700: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================


Tested on:

commit: 55fcd449 Merge branch 'i2c/for-current' of git://git.kerne..
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
console output: https://syzkaller.appspot.com/x/log.txt?x=158a6d7bd00000
kernel config: https://syzkaller.appspot.com/x/.config?x=2f322138fb3d6983
dashboard link: https://syzkaller.appspot.com/bug?extid=7d6c5587ec9cff5be65c
compiler:

syzbot

unread,
Jun 25, 2021, 5:10:08 PM6/25/21
to rajata...@gmail.com, syzkall...@googlegroups.com
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
KASAN: use-after-free Read in delete_partition

==================================================================
BUG: KASAN: use-after-free in kobject_put+0x493/0x540 lib/kobject.c:749
Read of size 1 at addr ffff8880234ac4bc by task syz-executor123/27771

CPU: 1 PID: 27771 Comm: syz-executor123 Not tainted 5.13.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:79 [inline]
dump_stack+0x141/0x1d7 lib/dump_stack.c:120
print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:233
__kasan_report mm/kasan/report.c:419 [inline]
kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:436
kobject_put+0x493/0x540 lib/kobject.c:749
delete_partition+0xb9/0x180 block/partitions/core.c:294
bdev_del_partition+0xe5/0x100 block/partitions/core.c:481
blkpg_do_ioctl+0x2e8/0x340 block/ioctl.c:33
blkpg_ioctl block/ioctl.c:60 [inline]
blkdev_ioctl+0x577/0x6d0 block/ioctl.c:550
block_ioctl+0xf9/0x140 fs/block_dev.c:1662
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:1069 [inline]
__se_sys_ioctl fs/ioctl.c:1055 [inline]
__x64_sys_ioctl+0x193/0x200 fs/ioctl.c:1055
do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x444309
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffed6876f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000487062 RCX: 0000000000444309
RDX: 0000000020000240 RSI: 0000000000001269 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0023706f6f6c2f76 R09: 0000000000000001
R10: 000000000000001f R11: 0000000000000246 R12: 0000000000076392
R13: 00007ffed6876f8c R14: 00007ffed6876fa0 R15: 00007ffed6876f90

Allocated by task 27771:
kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:428 [inline]
____kasan_kmalloc mm/kasan/common.c:507 [inline]
____kasan_kmalloc mm/kasan/common.c:466 [inline]
__kasan_kmalloc+0x9b/0xd0 mm/kasan/common.c:516
kmalloc include/linux/slab.h:556 [inline]
kzalloc include/linux/slab.h:686 [inline]
kobject_create lib/kobject.c:784 [inline]
kobject_create_and_add+0x42/0xb0 lib/kobject.c:810
add_partition+0x5ee/0x910 block/partitions/core.c:394
bdev_add_partition+0xb6/0x130 block/partitions/core.c:459
blkpg_do_ioctl+0x2d0/0x340 block/ioctl.c:43
blkpg_ioctl block/ioctl.c:60 [inline]
blkdev_ioctl+0x577/0x6d0 block/ioctl.c:550
block_ioctl+0xf9/0x140 fs/block_dev.c:1662
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:1069 [inline]
__se_sys_ioctl fs/ioctl.c:1055 [inline]
__x64_sys_ioctl+0x193/0x200 fs/ioctl.c:1055
do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
entry_SYSCALL_64_after_hwframe+0x44/0xae

Freed by task 27775:
Last potentially related work creation:
kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38
kasan_record_aux_stack+0xe5/0x110 mm/kasan/generic.c:345
kvfree_call_rcu+0x74/0x8c0 kernel/rcu/tree.c:3597
sctp_inet6addr_event+0x387/0x800 net/sctp/ipv6.c:114
notifier_call_chain+0xb5/0x200 kernel/notifier.c:83
atomic_notifier_call_chain+0x8d/0x170 kernel/notifier.c:217
addrconf_ifdown.isra.0+0xa71/0x15b0 net/ipv6/addrconf.c:3821
addrconf_notify+0x55c/0x23e0 net/ipv6/addrconf.c:3631
notifier_call_chain+0xb5/0x200 kernel/notifier.c:83
call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:2121
call_netdevice_notifiers_extack net/core/dev.c:2133 [inline]
call_netdevice_notifiers net/core/dev.c:2147 [inline]
dev_close_many+0x2ff/0x620 net/core/dev.c:1722
unregister_netdevice_many+0x3ff/0x1790 net/core/dev.c:11002
default_device_exit_batch+0x2fa/0x3c0 net/core/dev.c:11555
ops_exit_list+0x10d/0x160 net/core/net_namespace.c:178
cleanup_net+0x4ea/0xb10 net/core/net_namespace.c:595
process_one_work+0x98d/0x1600 kernel/workqueue.c:2276
worker_thread+0x64c/0x1120 kernel/workqueue.c:2422
kthread+0x3b1/0x4a0 kernel/kthread.c:313
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

The buggy address belongs to the object at ffff8880234ac480
which belongs to the cache kmalloc-64 of size 64
The buggy address is located 60 bytes inside of
64-byte region [ffff8880234ac480, ffff8880234ac4c0)
The buggy address belongs to the page:
page:ffffea00008d2b00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x234ac
flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000200 ffffea000052bc00 0000001400000014 ffff888010041640
raw: 0000000000000000 0000000000200020 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
ffff8880234ac380: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
ffff8880234ac400: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff8880234ac480: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
^
ffff8880234ac500: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
ffff8880234ac580: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
==================================================================


Tested on:

commit: 55fcd449 Merge branch 'i2c/for-current' of git://git.kerne..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=114526a0300000

syzbot

unread,
Jun 29, 2021, 7:18:11 PM6/29/21
to rajata...@gmail.com, syzkall...@googlegroups.com
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+7d6c55...@syzkaller.appspotmail.com

Tested on:

commit: 349a2d52 Merge tag 'devprop-5.14-rc1' of git://git.kernel...
git tree: upstream
kernel config: https://syzkaller.appspot.com/x/.config?x=e422a819be0c3cf7
patch: https://syzkaller.appspot.com/x/patch.diff?x=1517365fd00000

Note: testing is done by a robot and is best-effort only.

Rajat Asthana

unread,
Jul 2, 2021, 5:54:34 PM7/2/21
to syzbot, syzkall...@googlegroups.com
0001-block-Avoid-accessing-an-already-freed-kobject-in-de.patch

syzbot

unread,
Jul 2, 2021, 6:14:08 PM7/2/21
to rajata...@gmail.com, syzkall...@googlegroups.com
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+7d6c55...@syzkaller.appspotmail.com

Tested on:

commit: 9f7b640f Merge tag 'xfs-5.14-merge-6' of git://git.kernel...
git tree: upstream
kernel config: https://syzkaller.appspot.com/x/.config?x=49eace6f366ced84
patch: https://syzkaller.appspot.com/x/patch.diff?x=155f39d8300000
Reply all
Reply to author
Forward
0 new messages