[v6.1] WARNING in diUnmount

3 views
Skip to first unread message

syzbot

unread,
Apr 16, 2023, 11:03:52 AM4/16/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 0102425ac76b Linux 6.1.24
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10261c4fc80000
kernel config: https://syzkaller.appspot.com/x/.config?x=f23561925d39903
dashboard link: https://syzkaller.appspot.com/bug?extid=cfff8c52c283dd09bf27
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/11b4f76a294e/disk-0102425a.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/45c8eec62c60/vmlinux-0102425a.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0a7b8f48ec43/Image-0102425a.gz.xz

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

------------[ cut here ]------------
WARNING: CPU: 1 PID: 4347 at mm/slab_common.c:923 free_large_kmalloc+0x34/0x15c mm/slab_common.c:924
Modules linked in:
CPU: 1 PID: 4347 Comm: syz-executor.1 Not tainted 6.1.24-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : free_large_kmalloc+0x34/0x15c mm/slab_common.c:924
lr : kfree+0x10c/0x1b8 mm/slab_common.c:1001
sp : ffff80001dcf77a0
x29: ffff80001dcf77a0 x28: ffff0000d2b2e600 x27: dfff800000000000
x26: 1fffe0001a565cc5 x25: 0000000000000002 x24: ffff0000d2b2e620
x23: ffff0001338e3bb0 x22: dfff800000000000 x21: ffff800008805dac
x20: ffff0000de030000 x19: fffffc0003780c00 x18: 1fffe000368ba776
x17: ffff80001558d000 x16: ffff8000120de45c x15: 0000000000000000
x14: 0000000000000000 x13: 0000000000000406 x12: ffff0000cfbc3680
x11: ff80800008098054 x10: 0000000000000000 x9 : 0000000003780c00
x8 : ffff800017ea4000 x7 : ffff800008750548 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000002
x2 : 0000000000000008 x1 : ffff0000de030000 x0 : fffffc0003780c00
Call trace:
free_large_kmalloc+0x34/0x15c mm/slab_common.c:924
kfree+0x10c/0x1b8 mm/slab_common.c:1001
diUnmount+0xf4/0x10c fs/jfs/jfs_imap.c:195
jfs_umount+0x110/0x338 fs/jfs/jfs_umount.c:63
jfs_put_super+0x90/0x188 fs/jfs/super.c:194
generic_shutdown_super+0x130/0x328 fs/super.c:501
kill_block_super+0x70/0xdc fs/super.c:1450
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2144/0x3470 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
irq event stamp: 14680676
hardirqs last enabled at (14680675): [<ffff8000121bc674>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline]
hardirqs last enabled at (14680675): [<ffff8000121bc674>] _raw_spin_unlock_irqrestore+0x48/0xac kernel/locking/spinlock.c:194
hardirqs last disabled at (14680676): [<ffff8000120da114>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last enabled at (14680530): [<ffff800008032b74>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (14680528): [<ffff800008032b40>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19
---[ end trace 0000000000000000 ]---
object pointer: 0x00000000dbdd52de
==================================================================
BUG: KASAN: double-free in kfree+0x10c/0x1b8 mm/slab_common.c:1001
Free of addr ffff0000de030000 by task syz-executor.1/4347

CPU: 1 PID: 4347 Comm: syz-executor.1 Tainted: G W 6.1.24-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call trace:
dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:284 [inline]
print_report+0x174/0x4c0 mm/kasan/report.c:395
kasan_report_invalid_free+0xc4/0x114 mm/kasan/report.c:460
__kasan_kfree_large+0xa4/0xc0 mm/kasan/common.c:272
kasan_kfree_large include/linux/kasan.h:185 [inline]
free_large_kmalloc+0x70/0x15c mm/slab_common.c:927
kfree+0x10c/0x1b8 mm/slab_common.c:1001
diUnmount+0xf4/0x10c fs/jfs/jfs_imap.c:195
jfs_umount+0x110/0x338 fs/jfs/jfs_umount.c:63
jfs_put_super+0x90/0x188 fs/jfs/super.c:194
generic_shutdown_super+0x130/0x328 fs/super.c:501
kill_block_super+0x70/0xdc fs/super.c:1450
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2144/0x3470 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581

Allocated by task 1511:
kasan_save_stack mm/kasan/common.c:45 [inline]
kasan_set_track+0x4c/0x80 mm/kasan/common.c:52
kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505
____kasan_kmalloc mm/kasan/common.c:374 [inline]
__kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:383
kasan_kmalloc include/linux/kasan.h:211 [inline]
__do_kmalloc_node mm/slab_common.c:955 [inline]
__kmalloc_node_track_caller+0xd0/0x1c0 mm/slab_common.c:975
kmalloc_reserve net/core/skbuff.c:437 [inline]
__alloc_skb+0x174/0x580 net/core/skbuff.c:509
alloc_skb include/linux/skbuff.h:1267 [inline]
nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:751 [inline]
nsim_dev_trap_report drivers/net/netdevsim/dev.c:808 [inline]
nsim_dev_trap_report_work+0x1f0/0x924 drivers/net/netdevsim/dev.c:853
process_one_work+0x7ac/0x1404 kernel/workqueue.c:2289
worker_thread+0x8e4/0xfec kernel/workqueue.c:2436
kthread+0x24c/0x2d4 kernel/kthread.c:376
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860

Freed by task 1511:
kasan_save_stack mm/kasan/common.c:45 [inline]
kasan_set_track+0x4c/0x80 mm/kasan/common.c:52
kasan_save_free_info+0x38/0x5c mm/kasan/generic.c:516
____kasan_slab_free+0x144/0x1c0 mm/kasan/common.c:236
__kasan_slab_free+0x18/0x28 mm/kasan/common.c:244
kasan_slab_free include/linux/kasan.h:177 [inline]
slab_free_hook mm/slub.c:1724 [inline]
slab_free_freelist_hook mm/slub.c:1750 [inline]
slab_free mm/slub.c:3661 [inline]
__kmem_cache_free+0x2c0/0x4b4 mm/slub.c:3674
kfree+0xcc/0x1b8 mm/slab_common.c:1007
skb_free_head net/core/skbuff.c:760 [inline]
skb_release_data+0x488/0x6b0 net/core/skbuff.c:789
skb_release_all net/core/skbuff.c:854 [inline]
__kfree_skb net/core/skbuff.c:868 [inline]
consume_skb+0xa0/0x178 net/core/skbuff.c:1033
nsim_dev_trap_report drivers/net/netdevsim/dev.c:824 [inline]
nsim_dev_trap_report_work+0x628/0x924 drivers/net/netdevsim/dev.c:853
process_one_work+0x7ac/0x1404 kernel/workqueue.c:2289
worker_thread+0x8e4/0xfec kernel/workqueue.c:2436
kthread+0x24c/0x2d4 kernel/kthread.c:376
ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860

The buggy address belongs to the object at ffff0000de030000
which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 0 bytes inside of
4096-byte region [ffff0000de030000, ffff0000de031000)

The buggy address belongs to the physical page:
page:000000009fa6b8e8 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11e030
head:000000009fa6b8e8 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff)
raw: 05ffc00000010200 0000000000000000 dead000000000122 ffff0000c0002a80
raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
ffff0000de02ff00: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc
ffff0000de02ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff0000de030000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff0000de030080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff0000de030100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
page:000000009fa6b8e8 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11e030
head:000000009fa6b8e8 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff)
raw: 05ffc00000010200 0000000000000000 dead000000000122 ffff0000c0002a80
raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000
page dumped because: VM_BUG_ON_FOLIO(folio_test_slab(folio))
------------[ cut here ]------------
kernel BUG at include/linux/memcontrol.h:379!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4347 Comm: syz-executor.1 Tainted: G B W 6.1.24-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __folio_memcg include/linux/memcontrol.h:379 [inline]
pc : folio_memcg+0x148/0x174 include/linux/memcontrol.h:432
lr : __folio_memcg include/linux/memcontrol.h:379 [inline]
lr : folio_memcg+0x148/0x174 include/linux/memcontrol.h:432
sp : ffff80001dcf7710
x29: ffff80001dcf7710 x28: ffff0000d2b2e600 x27: dfff800000000000
x26: 1fffe0001a565cc5 x25: 0000000000000002 x24: dfff800000000000
x23: 1fffff80006f0181 x22: dfff800000000000 x21: 0000000000000000
x20: fffffc0003780c08 x19: fffffc0003780c00 x18: 1fffe000368b6776
x17: 0000000000000000 x16: ffff8000120de45c x15: 0000000000000000
x14: 0000000000000000 x13: 0000000000029748 x12: 0000000000000001
x11: ff80800008829b74 x10: 0000000000000000 x9 : ffff800008829b74
x8 : ffff0000cfbc3680 x7 : 0000000000029748 x6 : 0000000000029718
x5 : ffff80001dcf6f98 x4 : ffff800015668d58 x3 : ffff80000858109c
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000003c
Call trace:
__folio_memcg include/linux/memcontrol.h:379 [inline]
folio_memcg+0x148/0x174 include/linux/memcontrol.h:432
page_memcg include/linux/memcontrol.h:437 [inline]
__mod_lruvec_page_state+0x110/0x2ec mm/memcontrol.c:833
mod_lruvec_page_state include/linux/vmstat.h:562 [inline]
free_large_kmalloc+0xa8/0x15c mm/slab_common.c:930
kfree+0x10c/0x1b8 mm/slab_common.c:1001
diUnmount+0xf4/0x10c fs/jfs/jfs_imap.c:195
jfs_umount+0x110/0x338 fs/jfs/jfs_umount.c:63
jfs_put_super+0x90/0x188 fs/jfs/super.c:194
generic_shutdown_super+0x130/0x328 fs/super.c:501
kill_block_super+0x70/0xdc fs/super.c:1450
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2144/0x3470 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Code: d004c981 91220021 aa1303e0 97f9cd4d (d4210000)
---[ end trace 0000000000000000 ]---


---
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.

syzbot

unread,
Jun 18, 2023, 7:08:46 AM6/18/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: ca87e77a2ef8 Linux 6.1.34
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=133d75bb280000
kernel config: https://syzkaller.appspot.com/x/.config?x=143044f84cdceac2
dashboard link: https://syzkaller.appspot.com/bug?extid=cfff8c52c283dd09bf27
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11eebbcf280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11a3edef280000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/1141c37ce351/disk-ca87e77a.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/de1fca0d0bb4/vmlinux-ca87e77a.xz
kernel image: https://storage.googleapis.com/syzbot-assets/c3417b70e0bf/Image-ca87e77a.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/dce8b00f7bc2/mount_0.gz

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

el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
jfs_mount_rw: diMount failed!
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4218 at mm/slab_common.c:923 free_large_kmalloc+0x34/0x15c mm/slab_common.c:924
Modules linked in:
CPU: 0 PID: 4218 Comm: syz-executor778 Not tainted 6.1.34-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : free_large_kmalloc+0x34/0x15c mm/slab_common.c:924
lr : kfree+0x10c/0x1b8 mm/slab_common.c:1001
sp : ffff80001dbe7880
x29: ffff80001dbe7880 x28: ffff0000c0b77200 x27: dfff800000000000
x26: 1fffe0001816ee45 x25: 0000000000000002 x24: ffff0000c0b77220
x23: ffff0000d6c4a930 x22: dfff800000000000 x21: ffff80000880c87c
x20: ffff0000d8540000 x19: fffffc0003615000 x18: ffff80001dbe7540
x17: ffff8000155bd000 x16: ffff8000121062b4 x15: ffff8000081c0440
x14: 1ffff00002ab80b0 x13: ffff700003b7cedc x12: 000000000000000f
x11: ff80800008098054 x10: 0000000000000000 x9 : 0000000003615000
x8 : ffff800017ed6000 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : 0000000000000000 x3 : 0000000000000030
x2 : 0000000000000008 x1 : ffff0000d8540000 x0 : fffffc0003615000
Call trace:
free_large_kmalloc+0x34/0x15c mm/slab_common.c:924
kfree+0x10c/0x1b8 mm/slab_common.c:1001
diUnmount+0xf4/0x10c fs/jfs/jfs_imap.c:195
jfs_umount+0x110/0x338 fs/jfs/jfs_umount.c:63
jfs_put_super+0x90/0x188 fs/jfs/super.c:194
generic_shutdown_super+0x130/0x328 fs/super.c:501
kill_block_super+0x70/0xdc fs/super.c:1450
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0x554/0x1a88 kernel/exit.c:869
do_group_exit+0x194/0x22c kernel/exit.c:1019
__do_sys_exit_group kernel/exit.c:1030 [inline]
__se_sys_exit_group kernel/exit.c:1028 [inline]
__wake_up_parent+0x0/0x60 kernel/exit.c:1028
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
irq event stamp: 93196
hardirqs last enabled at (93195): [<ffff80000839a804>] call_rcu+0x614/0xa40 kernel/rcu/tree.c:2834
hardirqs last disabled at (93196): [<ffff800012101f6c>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last enabled at (92086): [<ffff800008020d74>] softirq_handle_end kernel/softirq.c:414 [inline]
softirqs last enabled at (92086): [<ffff800008020d74>] __do_softirq+0xc14/0xea0 kernel/softirq.c:600
softirqs last disabled at (92013): [<ffff80000802a994>] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79
---[ end trace 0000000000000000 ]---
object pointer: 0x00000000028b1b81
==================================================================
BUG: KASAN: double-free in kfree+0x10c/0x1b8 mm/slab_common.c:1001
Free of addr ffff0000d8540000 by task syz-executor778/4218

CPU: 0 PID: 4218 Comm: syz-executor778 Tainted: G W 6.1.34-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
Call trace:
dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:284 [inline]
print_report+0x174/0x4c0 mm/kasan/report.c:395
kasan_report_invalid_free+0xc4/0x114 mm/kasan/report.c:460
__kasan_kfree_large+0xa4/0xc0 mm/kasan/common.c:272
kasan_kfree_large include/linux/kasan.h:185 [inline]
free_large_kmalloc+0x70/0x15c mm/slab_common.c:927
kfree+0x10c/0x1b8 mm/slab_common.c:1001
diUnmount+0xf4/0x10c fs/jfs/jfs_imap.c:195
jfs_umount+0x110/0x338 fs/jfs/jfs_umount.c:63
jfs_put_super+0x90/0x188 fs/jfs/super.c:194
generic_shutdown_super+0x130/0x328 fs/super.c:501
kill_block_super+0x70/0xdc fs/super.c:1450
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0x554/0x1a88 kernel/exit.c:869
do_group_exit+0x194/0x22c kernel/exit.c:1019
__do_sys_exit_group kernel/exit.c:1030 [inline]
__se_sys_exit_group kernel/exit.c:1028 [inline]
__wake_up_parent+0x0/0x60 kernel/exit.c:1028
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581

The buggy address belongs to the physical page:
page:000000009b8cb9f3 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x118540
flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff)
raw: 05ffc00000000000 fffffc0003612408 ffff0001b45c82a0 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
ffff0000d853ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff0000d853ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff0000d8540000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff0000d8540080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff0000d8540100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
page:000000009b8cb9f3 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x118540
head:000000009b8cb9f3 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff)
raw: 05ffc00000010200 0000000000000000 dead000000000122 ffff0000c0002900
raw: 0000000000000000 0000000080080008 00000001ffffffff 0000000000000000
page dumped because: VM_BUG_ON_FOLIO(folio_test_slab(folio))
------------[ cut here ]------------
kernel BUG at include/linux/memcontrol.h:379!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4218 Comm: syz-executor778 Tainted: G B W 6.1.34-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __folio_memcg include/linux/memcontrol.h:379 [inline]
pc : folio_memcg+0x148/0x174 include/linux/memcontrol.h:432
lr : __folio_memcg include/linux/memcontrol.h:379 [inline]
lr : folio_memcg+0x148/0x174 include/linux/memcontrol.h:432
sp : ffff80001dbe77f0
x29: ffff80001dbe77f0 x28: ffff0000c0b77200 x27: dfff800000000000
x26: 1fffe0001816ee45 x25: 0000000000000002 x24: dfff800000000000
x23: 1fffff80006c2a01 x22: dfff800000000000 x21: 0000000000000000
x20: fffffc0003615008 x19: fffffc0003615000 x18: 1fffe000368b5f76
x17: 0000000000000000 x16: ffff8000121062b4 x15: 0000000000000000
x14: 0000000000000000 x13: 0000000000000001 x12: 0000000000000001
x11: ff80800008830644 x10: 0000000000000000 x9 : ffff800008830644
x8 : ffff0000c6303780 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001dbe7078 x4 : ffff8000156a2a40 x3 : ffff8000085879f4
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000003c
Call trace:
__folio_memcg include/linux/memcontrol.h:379 [inline]
folio_memcg+0x148/0x174 include/linux/memcontrol.h:432
page_memcg include/linux/memcontrol.h:437 [inline]
__mod_lruvec_page_state+0x110/0x2ec mm/memcontrol.c:833
mod_lruvec_page_state include/linux/vmstat.h:562 [inline]
free_large_kmalloc+0xa8/0x15c mm/slab_common.c:930
kfree+0x10c/0x1b8 mm/slab_common.c:1001
diUnmount+0xf4/0x10c fs/jfs/jfs_imap.c:195
jfs_umount+0x110/0x338 fs/jfs/jfs_umount.c:63
jfs_put_super+0x90/0x188 fs/jfs/super.c:194
generic_shutdown_super+0x130/0x328 fs/super.c:501
kill_block_super+0x70/0xdc fs/super.c:1450
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0x554/0x1a88 kernel/exit.c:869
do_group_exit+0x194/0x22c kernel/exit.c:1019
__do_sys_exit_group kernel/exit.c:1030 [inline]
__se_sys_exit_group kernel/exit.c:1028 [inline]
__wake_up_parent+0x0/0x60 kernel/exit.c:1028
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Code: d004ca41 91320021 aa1303e0 97f9c811 (d4210000)
---[ end trace 0000000000000000 ]---


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages