R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007fb7345a5fa0 R15: 00007fffd549f308 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 6732 at fs/sysfs/file.c:376 sysfs_create_file_ns+0x148/0x1d0 fs/sysfs/file.c:376 Modules linked in: CPU: 1 UID: 0 PID: 6732 Comm: syz.0.16 Not tainted 6.13.0-syzkaller-ga86bf2283d2c-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:sysfs_create_file_ns+0x148/0x1d0 fs/sysfs/file.c:376 Code: e9 03 80 3c 01 00 75 7f 48 8b 7d 30 4d 89 e9 4c 89 e6 8b 4c 24 38 44 8b 44 24 48 e8 02 fb ff ff 89 c5 eb 0e e8 a9 4a 5f ff 90 <0f> 0b 90 bd ea ff ff ff e8 9b 4a 5f ff 48 b8 00 00 00 00 00 fc ff RSP: 0018:ffffc900031678b0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 1ffff9200062cf17 RCX: ffffffff8643ddcb RDX: ffff888031e29e00 RSI: ffffffff82599ea7 RDI: ffff8880615d91a0 RBP: ffff8880615d91a0 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff8f24c880 R13: 0000000000000000 R14: dffffc0000000000 R15: ffff8880615d91d0 FS: 00007fb7352246c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f98dcaf950 CR3: 000000001e686000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: sysfs_create_file include/linux/sysfs.h:788 [inline] sysfs_create_files+0x6c/0x1d0 fs/sysfs/file.c:390 mtd_add_partition_attrs drivers/mtd/mtdpart.c:238 [inline] mtd_add_partition+0x32b/0x650 drivers/mtd/mtdpart.c:283 mtdchar_blkpg_ioctl+0x20d/0x250 drivers/mtd/mtdchar.c:562 mtdchar_ioctl+0xbbe/0x2050 drivers/mtd/mtdchar.c:1216 mtdchar_unlocked_ioctl+0xb0/0xf0 drivers/mtd/mtdchar.c:1239 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl fs/ioctl.c:892 [inline] __x64_sys_ioctl+0x190/0x200 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb73438cda9 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:00007fb735224038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fb7345a5fa0 RCX: 00007fb73438cda9 RDX: 0000000000000008 RSI: 0000000000001269 RDI: 0000000000000003 RBP: 00007fb735224090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007fb7345a5fa0 R15: 00007fffd549f308