Kernel | Title | Repro | Cause bisect | Fix bisect | Count | Last | Reported | Patched | Status |
---|---|---|---|---|---|---|---|---|---|
upstream | general protection fault in qdisc_create net | C | done | 2821 | 547d | 555d | 25/29 | fixed on 2024/01/30 15:47 |
syzbot |
sign-in | mailing list | source | docs |
Kernel | Title | Repro | Cause bisect | Fix bisect | Count | Last | Reported | Patched | Status |
---|---|---|---|---|---|---|---|---|---|
upstream | general protection fault in qdisc_create net | C | done | 2821 | 547d | 555d | 25/29 | fixed on 2024/01/30 15:47 |
================================================================== BUG: KASAN: use-after-free in netdev_need_ops_lock include/net/netdev_lock.h:28 [inline] BUG: KASAN: use-after-free in netdev_lock_ops include/net/netdev_lock.h:39 [inline] BUG: KASAN: use-after-free in qdisc_create+0x1162/0x12b0 net/sched/sch_api.c:1287 Read of size 1 at addr ffff88805361ccbd by task syz.3.1978/13046 CPU: 1 UID: 0 PID: 13046 Comm: syz.3.1978 Not tainted 6.14.0-rc5-syzkaller-01188-g0ea09cbf8350 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: <TASK> __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0x16e/0x5b0 mm/kasan/report.c:521 kasan_report+0x143/0x180 mm/kasan/report.c:634 netdev_need_ops_lock include/net/netdev_lock.h:28 [inline] netdev_lock_ops include/net/netdev_lock.h:39 [inline] qdisc_create+0x1162/0x12b0 net/sched/sch_api.c:1287 tc_modify_qdisc+0x17ce/0x2420 net/sched/sch_api.c:1839 rtnetlink_rcv_msg+0x73f/0xcf0 net/core/rtnetlink.c:6954 netlink_rcv_skb+0x206/0x480 net/netlink/af_netlink.c:2534 netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1339 netlink_sendmsg+0x8de/0xcb0 net/netlink/af_netlink.c:1883 sock_sendmsg_nosec net/socket.c:709 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:724 ____sys_sendmsg+0x53a/0x860 net/socket.c:2564 ___sys_sendmsg net/socket.c:2618 [inline] __sys_sendmsg+0x269/0x350 net/socket.c:2650 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc0c238d169 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc0c31e7038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fc0c25a5fa0 RCX: 00007fc0c238d169 RDX: 0000000000000000 RSI: 00004000000012c0 RDI: 0000000000000009 RBP: 00007fc0c240e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc0c25a5fa0 R15: 00007ffdb3b6f9b8 </TASK> The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805361fa80 pfn:0x5361c flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0001f62708 ffff8880b8644b40 0000000000000000 raw: ffff88805361fa80 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 2, migratetype Unmovable, gfp_mask 0x446dc0(GFP_KERNEL_ACCOUNT|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_COMP|__GFP_ZERO), pid 13046, tgid 13044 (syz.3.1978), ts 310382071262, free_ts 312331978138 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4739 __alloc_pages_noprof+0xa/0x30 mm/page_alloc.c:4773 __alloc_pages_node_noprof include/linux/gfp.h:265 [inline] alloc_pages_node_noprof include/linux/gfp.h:292 [inline] ___kmalloc_large_node+0x8b/0x1d0 mm/slub.c:4239 __kmalloc_large_node_noprof+0x1a/0x80 mm/slub.c:4266 __do_kmalloc_node mm/slub.c:4282 [inline] __kmalloc_node_noprof+0x33a/0x4d0 mm/slub.c:4300 __kvmalloc_node_noprof+0x72/0x190 mm/util.c:662 alloc_netdev_mqs+0xa4/0x1210 net/core/dev.c:11612 tun_set_iff+0x53b/0xee0 drivers/net/tun.c:2752 __tun_chr_ioctl+0x898/0x21d0 drivers/net/tun.c:3048 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xf5/0x170 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 13044 tgid 13044 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 __folio_put+0x2b3/0x360 mm/swap.c:112 folio_put include/linux/mm.h:1489 [inline] free_large_kmalloc+0xfe/0x180 mm/slub.c:4728 kfree+0x212/0x430 mm/slub.c:4751 device_release+0x99/0x1c0 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x22f/0x480 lib/kobject.c:737 netdev_run_todo+0xd9d/0xf30 net/core/dev.c:11313 tun_detach drivers/net/tun.c:639 [inline] tun_chr_close+0x137/0x1b0 drivers/net/tun.c:3390 __fput+0x3e9/0x9f0 fs/file_table.c:464 task_work_run+0x24f/0x310 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805361cb80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88805361cc00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88805361cc80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88805361cd00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88805361cd80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================
Time | Kernel | Commit | Syzkaller | Config | Log | Report | Syz repro | C repro | VM info | Assets (help?) | Manager | Title |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2025/03/13 06:11 | net-next | 0ea09cbf8350 | 1a5d9317 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci-upstream-net-kasan-gce | KASAN: use-after-free Read in qdisc_create | ||
2025/03/18 09:18 | net-next | 702e3fa16cd4 | ce3352cd | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci-upstream-net-kasan-gce | KASAN: slab-use-after-free Read in qdisc_create | ||
2025/03/15 03:13 | net-next | bfc6c67ec2d6 | e2826670 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci-upstream-net-kasan-gce | KASAN: slab-use-after-free Read in qdisc_create |