loop0: detected capacity change from 0 to 32768 BTRFS: device fsid a6a605fc-d5f1-4e66-8595-3726e2b761d6 devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5337) BTRFS info (device loop0 state S): first mount of filesystem a6a605fc-d5f1-4e66-8595-3726e2b761d6 BTRFS info (device loop0 state S): using blake2b (blake2b-256-lib) checksum algorithm workqueue: max_active 2097158 requested for btrfs-worker is out of range, clamping between 1 and 2048 workqueue: max_active 2097158 requested for btrfs-delalloc is out of range, clamping between 1 and 2048 workqueue: max_active 2097158 requested for btrfs-endio is out of range, clamping between 1 and 2048 workqueue: max_active 2097158 requested for btrfs-endio-meta is out of range, clamping between 1 and 2048 workqueue: max_active 2097158 requested for btrfs-rmw is out of range, clamping between 1 and 2048 workqueue: max_active 2097158 requested for btrfs-endio-write is out of range, clamping between 1 and 2048 BTRFS warning (device loop0 state S): devid 1 uuid a3373a75-1192-444c-9807-ffff6503709a is missing BTRFS info (device loop0 state S): bdev errs: wr 0, rd 0, flush 0, corrupt 3338665984, gen 0 BTRFS info (device loop0 state S): bdev /dev/loop0 errs: wr 0, rd 0, flush 0, corrupt 3338665984, gen 0 sysfs: cannot create duplicate filename '/fs/btrfs/a6a605fc-d5f1-4e66-8595-3726e2b761d6/devinfo/1' CPU: 0 UID: 0 PID: 5337 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 sysfs_warn_dup fs/sysfs/dir.c:30 [inline] sysfs_create_dir_ns+0x259/0x280 fs/sysfs/dir.c:63 create_dir lib/kobject.c:73 [inline] kobject_add_internal+0x6ab/0xcc0 lib/kobject.c:240 kobject_add_varg lib/kobject.c:374 [inline] kobject_init_and_add+0x125/0x190 lib/kobject.c:457 btrfs_sysfs_add_device+0x1df/0x650 fs/btrfs/sysfs.c:2258 btrfs_sysfs_add_fs_devices fs/btrfs/sysfs.c:2279 [inline] btrfs_sysfs_add_mounted+0x7e/0x560 fs/btrfs/sysfs.c:2386 open_ctree+0x2284/0x3d20 fs/btrfs/disk-io.c:3530 btrfs_fill_super fs/btrfs/super.c:983 [inline] btrfs_get_tree_super fs/btrfs/super.c:1946 [inline] btrfs_get_tree_subvol fs/btrfs/super.c:2089 [inline] btrfs_get_tree+0x1061/0x1920 fs/btrfs/super.c:2123 vfs_get_tree+0x92/0x2a0 fs/super.c:1751 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount+0x302/0xa10 fs/namespace.c:3712 do_mount fs/namespace.c:4035 [inline] __do_sys_mount fs/namespace.c:4224 [inline] __se_sys_mount+0x313/0x410 fs/namespace.c:4201 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe9a5390f6a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007fe9a6211e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fe9a6211ef0 RCX: 00007fe9a5390f6a RDX: 00002000000000c0 RSI: 0000200000000040 RDI: 00007fe9a6211eb0 RBP: 00002000000000c0 R08: 00007fe9a6211ef0 R09: 000000000001c005 R10: 000000000001c005 R11: 0000000000000246 R12: 0000200000000040 R13: 00007fe9a6211eb0 R14: 00000000000055f1 R15: 0000200000000140 kobject: kobject_add_internal failed for 1 with -EEXIST, don't try to register things with the same name in the same directory. BTRFS warning (device loop0 state S): devinfo init for devid 1 failed: -17 BTRFS error (device loop0 state S): failed to init sysfs interface: -17 BTRFS error (device loop0 state S): open_ctree failed: -17 BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 0 P4D 0 Oops: Oops: 0010 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5337 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:0x0 Code: Unable to access opcode bytes at 0xffffffffffffffd6. RSP: 0018:ffffc9000dba7958 EFLAGS: 00010287 RAX: ffffffff81fbd4f4 RBX: 1ffffd40002aa250 RCX: 0000000000100000 RDX: ffffc90020491000 RSI: ffffea0001551280 RDI: ffff888033230a80 RBP: ffffc9000dba7a18 R08: ffffea0001551287 R09: 1ffffd40002aa250 R10: dffffc0000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffffea0001551288 R14: ffffea0001551280 R15: 1ffffd40002aa251 FS: 00007fe9a62126c0(0000) GS:ffff88808d414000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 0000000041be5000 CR4: 0000000000352ef0 Call Trace: filemap_read_folio+0x117/0x380 mm/filemap.c:2496 do_read_cache_folio+0x358/0x590 mm/filemap.c:4096 freader_get_folio+0x3c7/0x830 lib/buildid.c:58 freader_fetch+0xa3/0x750 lib/buildid.c:101 __build_id_parse+0x133/0x7d0 lib/buildid.c:289 do_procmap_query fs/proc/task_mmu.c:733 [inline] procfs_procmap_ioctl+0x76f/0xce0 fs/proc/task_mmu.c:813 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe9a538f7c9 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:00007fe9a6212038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe9a55e5fa0 RCX: 00007fe9a538f7c9 RDX: 0000200000000180 RSI: 00000000c0686611 RDI: 0000000000000003 RBP: 00007fe9a5413f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe9a55e6038 R14: 00007fe9a55e5fa0 R15: 00007fffbfa98798 Modules linked in: CR2: 0000000000000000 ---[ end trace 0000000000000000 ]--- RIP: 0010:0x0 Code: Unable to access opcode bytes at 0xffffffffffffffd6. RSP: 0018:ffffc9000dba7958 EFLAGS: 00010287 RAX: ffffffff81fbd4f4 RBX: 1ffffd40002aa250 RCX: 0000000000100000 RDX: ffffc90020491000 RSI: ffffea0001551280 RDI: ffff888033230a80 RBP: ffffc9000dba7a18 R08: ffffea0001551287 R09: 1ffffd40002aa250 R10: dffffc0000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffffea0001551288 R14: ffffea0001551280 R15: 1ffffd40002aa251 FS: 00007fe9a62126c0(0000) GS:ffff88808d414000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 0000000041be5000 CR4: 0000000000352ef0