devtmpfs: Unknown parameter ''
==================================================================
BUG: KASAN: use-after-free in cleancache_fs_enabled_mapping include/linux/cleancache.h:56 [inline]
BUG: KASAN: use-after-free in cleancache_invalidate_page include/linux/cleancache.h:110 [inline]
BUG: KASAN: use-after-free in unaccount_page_cache_page+0x6d8/0x750 mm/filemap.c:163
Read of size 4 at addr ffff888116cdf470 by task syz-executor.1/7095
CPU: 1 PID: 7095 Comm: syz-executor.1 Not tainted 5.15.106-syzkaller-00249-g19c0ed55a470 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
print_address_description+0x87/0x3b0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:427 [inline]
kasan_report+0x179/0x1c0 mm/kasan/report.c:444
__asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:308
cleancache_fs_enabled_mapping include/linux/cleancache.h:56 [inline]
cleancache_invalidate_page include/linux/cleancache.h:110 [inline]
unaccount_page_cache_page+0x6d8/0x750 mm/filemap.c:163
__delete_from_page_cache+0xc6/0x5b0 mm/filemap.c:231
__remove_mapping+0x566/0x690 mm/vmscan.c:1197
shrink_page_list+0x25f1/0x5820 mm/vmscan.c:1789
shrink_inactive_list mm/vmscan.c:2261 [inline]
shrink_list mm/vmscan.c:2506 [inline]
shrink_lruvec+0x17e9/0x4340 mm/vmscan.c:5694
shrink_node_memcgs mm/vmscan.c:5886 [inline]
shrink_node+0x1077/0x24e0 mm/vmscan.c:5916
shrink_zones mm/vmscan.c:6119 [inline]
do_try_to_free_pages+0x5b6/0x1570 mm/vmscan.c:6177
try_to_free_mem_cgroup_pages+0x36c/0x850 mm/vmscan.c:6491
memory_max_write+0x265/0x470 mm/memcontrol.c:6431
cgroup_file_write+0x290/0x590 kernel/cgroup/cgroup.c:3943
kernfs_fop_write_iter+0x2c4/0x410 fs/kernfs/file.c:296
call_write_iter include/linux/fs.h:2159 [inline]
new_sync_write fs/read_write.c:507 [inline]
vfs_write+0xd8a/0x1160 fs/read_write.c:594
ksys_write+0x199/0x2c0 fs/read_write.c:647
__do_sys_write fs/read_write.c:659 [inline]
__se_sys_write fs/read_write.c:656 [inline]
__x64_sys_write+0x7b/0x90 fs/read_write.c:656
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fe52abf0169
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe529921168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe52ad10120 RCX: 00007fe52abf0169
RDX: 0000000000000012 RSI: 0000000020000140 RDI: 000000000000000a
RBP: 00007fe52ac4bca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe344ab7ef R14: 00007fe529921300 R15: 0000000000022000
Allocated by task 10:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:433 [inline]
____kasan_kmalloc+0xdb/0x110 mm/kasan/common.c:512
__kasan_kmalloc+0x9/0x10 mm/kasan/common.c:521
kasan_kmalloc include/linux/kasan.h:227 [inline]
__kmalloc_track_caller+0x139/0x260 mm/slub.c:4948
kmalloc_reserve net/core/skbuff.c:357 [inline]
__alloc_skb+0x10c/0x550 net/core/skbuff.c:428
alloc_skb include/linux/skbuff.h:1182 [inline]
nlmsg_new include/net/netlink.h:953 [inline]
rtmsg_ifinfo_build_skb+0x7f/0x180 net/core/rtnetlink.c:3824
unregister_netdevice_many+0xea2/0x17c0 net/core/dev.c:11084
default_device_exit_batch+0x38a/0x3f0 net/core/dev.c:11609
ops_exit_list net/core/net_namespace.c:174 [inline]
cleanup_net+0x6ce/0xc00 net/core/net_namespace.c:596
process_one_work+0x6bb/0xc10 kernel/workqueue.c:2313
worker_thread+0xad5/0x12a0 kernel/workqueue.c:2460
kthread+0x421/0x510 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
Freed by task 10:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:45
kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
____kasan_slab_free+0x126/0x160 mm/kasan/common.c:365
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
kasan_slab_free include/linux/kasan.h:193 [inline]
slab_free_hook mm/slub.c:1723 [inline]
slab_free_freelist_hook+0xbd/0x190 mm/slub.c:1749
slab_free mm/slub.c:3517 [inline]
kfree+0xc8/0x220 mm/slub.c:4577
skb_free_head net/core/skbuff.c:656 [inline]
skb_release_data+0x8a9/0xa80 net/core/skbuff.c:678
skb_release_all net/core/skbuff.c:743 [inline]
__kfree_skb net/core/skbuff.c:757 [inline]
consume_skb+0xac/0x250 net/core/skbuff.c:930
netlink_broadcast_filtered+0x10f4/0x1220 net/netlink/af_netlink.c:1540
netlink_broadcast net/netlink/af_netlink.c:1562 [inline]
nlmsg_multicast include/net/netlink.h:1033 [inline]
nlmsg_notify+0x101/0x1c0 net/netlink/af_netlink.c:2576
rtnl_notify net/core/rtnetlink.c:730 [inline]
rtmsg_ifinfo_send+0x79/0x90 net/core/rtnetlink.c:3848
unregister_netdevice_many+0x11d0/0x17c0 net/core/dev.c:11100
default_device_exit_batch+0x38a/0x3f0 net/core/dev.c:11609
ops_exit_list net/core/net_namespace.c:174 [inline]
cleanup_net+0x6ce/0xc00 net/core/net_namespace.c:596
process_one_work+0x6bb/0xc10 kernel/workqueue.c:2313
worker_thread+0xad5/0x12a0 kernel/workqueue.c:2460
kthread+0x421/0x510 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
Last potentially related work creation:
kasan_save_stack+0x3b/0x60 mm/kasan/common.c:38
__kasan_record_aux_stack+0xd3/0xf0 mm/kasan/generic.c:348
kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358
insert_work+0x56/0x320 kernel/workqueue.c:1369
__queue_work+0x923/0xcd0 kernel/workqueue.c:1535
queue_work_on+0x105/0x170 kernel/workqueue.c:1562
queue_work include/linux/workqueue.h:507 [inline]
schedule_work include/linux/workqueue.h:568 [inline]
destroy_super_rcu+0xd1/0xe0 fs/super.c:172
rcu_do_batch+0x57a/0xc10 kernel/rcu/tree.c:2509
rcu_core+0x517/0x1020 kernel/rcu/tree.c:2749
rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2762
__do_softirq+0x26d/0x5bf kernel/softirq.c:565
Second to last potentially related work creation:
kasan_save_stack+0x3b/0x60 mm/kasan/common.c:38
__kasan_record_aux_stack+0xd3/0xf0 mm/kasan/generic.c:348
kasan_record_aux_stack_noalloc+0xb/0x10 mm/kasan/generic.c:358
__call_rcu kernel/rcu/tree.c:2993 [inline]
call_rcu+0x133/0x12a0 kernel/rcu/tree.c:3073
__put_super+0x26d/0x2e0 fs/super.c:299
put_super fs/super.c:313 [inline]
deactivate_locked_super+0xe1/0x110 fs/super.c:346
mount_bdev+0x29d/0x3b0 fs/super.c:1380
f2fs_mount+0x34/0x40 fs/f2fs/super.c:4555
legacy_get_tree+0xf1/0x190 fs/fs_context.c:610
vfs_get_tree+0x88/0x290 fs/super.c:1508
do_new_mount+0x28b/0xac0 fs/namespace.c:2994
path_mount+0x671/0x1070 fs/namespace.c:3324
do_mount fs/namespace.c:3337 [inline]
__do_sys_mount fs/namespace.c:3545 [inline]
__se_sys_mount+0x2c4/0x3b0 fs/namespace.c:3522
__x64_sys_mount+0xbf/0xd0 fs/namespace.c:3522
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
The buggy address belongs to the object at ffff888116cdf000
which belongs to the cache kmalloc-2k of size 2048
The buggy address is located 1136 bytes inside of
2048-byte region [ffff888116cdf000, ffff888116cdf800)
The buggy address belongs to the page:
page:ffffea00045b3600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x116cd8
head:ffffea00045b3600 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head|zone=1)
raw: 4000000000010200 0000000000000000 0000000100000001 ffff888100043200
raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d2a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 414, ts 129659320847, free_ts 129584395886
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2502
prep_new_page mm/page_alloc.c:2508 [inline]
get_page_from_freelist+0x2c14/0x2cf0 mm/page_alloc.c:4291
__alloc_pages+0x386/0x7b0 mm/page_alloc.c:5569
allocate_slab mm/slub.c:1930 [inline]
new_slab+0x92/0x490 mm/slub.c:1993
___slab_alloc+0x39e/0x830 mm/slub.c:3026
__slab_alloc+0x4a/0x90 mm/slub.c:3113
slab_alloc_node mm/slub.c:3204 [inline]
slab_alloc mm/slub.c:3246 [inline]
__kmalloc_track_caller+0x16c/0x260 mm/slub.c:4943
kmalloc_reserve net/core/skbuff.c:357 [inline]
pskb_expand_head+0x113/0x1240 net/core/skbuff.c:1727
netlink_trim+0x19b/0x230 net/netlink/af_netlink.c:1312
netlink_broadcast_filtered+0x66/0x1220 net/netlink/af_netlink.c:1517
netlink_broadcast net/netlink/af_netlink.c:1562 [inline]
nlmsg_multicast include/net/netlink.h:1033 [inline]
nlmsg_notify+0x101/0x1c0 net/netlink/af_netlink.c:2576
rtnl_notify net/core/rtnetlink.c:730 [inline]
rtmsg_ifinfo_send net/core/rtnetlink.c:3848 [inline]
rtmsg_ifinfo_event net/core/rtnetlink.c:3863 [inline]
rtmsg_ifinfo+0xe7/0x120 net/core/rtnetlink.c:3869
__dev_notify_flags+0xdd/0x610 net/core/dev.c:8824
dev_change_flags+0xf0/0x1a0 net/core/dev.c:8866
do_setlink+0xcd1/0x3af0 net/core/rtnetlink.c:2721
__rtnl_newlink net/core/rtnetlink.c:3395 [inline]
rtnl_newlink+0x1763/0x2040 net/core/rtnetlink.c:3510
page last free stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
free_pages_prepare mm/page_alloc.c:1370 [inline]
free_pcp_prepare mm/page_alloc.c:1442 [inline]
free_unref_page_prepare+0x7c8/0x7d0 mm/page_alloc.c:3441
free_unref_page+0xac/0x2c0 mm/page_alloc.c:3521
free_the_page mm/page_alloc.c:711 [inline]
__free_pages+0x61/0xf0 mm/page_alloc.c:5645
__free_slab+0xec/0x1d0 mm/slub.c:2018
free_slab mm/slub.c:2033 [inline]
discard_slab mm/slub.c:2039 [inline]
__unfreeze_partials+0x165/0x1a0 mm/slub.c:2525
put_cpu_partial+0xc4/0x120 mm/slub.c:2605
__slab_free+0x1c8/0x290 mm/slub.c:3386
do_slab_free mm/slub.c:3505 [inline]
___cache_free+0x109/0x120 mm/slub.c:3524
qlink_free+0x4d/0x90 mm/kasan/quarantine.c:157
qlist_free_all+0x44/0xb0 mm/kasan/quarantine.c:176
kasan_quarantine_reduce+0x15a/0x180 mm/kasan/quarantine.c:283
__kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:443
kasan_slab_alloc include/linux/kasan.h:217 [inline]
slab_post_alloc_hook+0x53/0x2c0 mm/slab.h:550
slab_alloc_node mm/slub.c:3238 [inline]
slab_alloc mm/slub.c:3246 [inline]
kmem_cache_alloc+0xf5/0x200 mm/slub.c:3251
getname_flags+0xba/0x520 fs/namei.c:138
user_path_at_empty+0x2d/0x1a0 fs/namei.c:2852
Memory state around the buggy address:
ffff888116cdf300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888116cdf380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888116cdf400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888116cdf480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888116cdf500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
syz-executor.1 invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=0, oom_score_adj=0
CPU: 1 PID: 7095 Comm: syz-executor.1 Tainted: G B 5.15.106-syzkaller-00249-g19c0ed55a470 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
dump_stack+0x15/0x17 lib/dump_stack.c:113
dump_header+0xd8/0x6d0 mm/oom_kill.c:466
oom_kill_process+0xef/0x2d0 mm/oom_kill.c:1027
out_of_memory+0x6c2/0xab0 mm/oom_kill.c:1170
mem_cgroup_out_of_memory+0x25d/0x3b0 mm/memcontrol.c:1677
memory_max_write+0x356/0x470 mm/memcontrol.c:6438
cgroup_file_write+0x290/0x590 kernel/cgroup/cgroup.c:3943
kernfs_fop_write_iter+0x2c4/0x410 fs/kernfs/file.c:296
call_write_iter include/linux/fs.h:2159 [inline]
new_sync_write fs/read_write.c:507 [inline]
vfs_write+0xd8a/0x1160 fs/read_write.c:594
ksys_write+0x199/0x2c0 fs/read_write.c:647
__do_sys_write fs/read_write.c:659 [inline]
__se_sys_write fs/read_write.c:656 [inline]
__x64_sys_write+0x7b/0x90 fs/read_write.c:656
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fe52abf0169
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe529921168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fe52ad10120 RCX: 00007fe52abf0169
RDX: 0000000000000012 RSI: 0000000020000140 RDI: 000000000000000a
RBP: 00007fe52ac4bca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe344ab7ef R14: 00007fe529921300 R15: 0000000000022000
memory: usage 19696kB, limit 0kB, failcnt 0
swap: usage 0kB, limit 9007199254740988kB, failcnt 0
Memory cgroup stats for /syz1:
anon 9781248
file 10350592
kernel_stack 0
pagetables 0
percpu 0
sock 0
shmem 10338304
file_mapped 110592
file_dirty 12288
file_writeback 0
swapcached 0
anon_thp 0
file_thp 0
shmem_thp 0
inactive_anon 9781248
active_anon 10338304
inactive_file 24576
active_file 24576
unevictable 0
slab_reclaimable 0
slab_unreclaimable 0
slab 0
workingset_refault_anon 0
workingset_refault_file 0
workingset_activate_anon 0
oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=syz1,mems_allowed=0,oom_memcg=/syz1,task_memcg=/syz1,task=syz-executor.1,pid=4641,uid=0
Memory cgroup out of memory: Killed process 4641 (syz-executor.1) total-vm:54804kB, anon-rss:4624kB, file-rss:14336kB, shmem-rss:0kB, UID:0 pgtables:92kB oom_score_adj:1000