* [syzbot] [modules?] general protection fault in sys_finit_module
@ 2023-07-04 19:20 syzbot
2023-07-24 19:46 ` Luis Chamberlain
2023-08-13 13:38 ` syzbot
0 siblings, 2 replies; 7+ messages in thread
From: syzbot @ 2023-07-04 19:20 UTC (permalink / raw)
To: bpf, chris, linux-kernel, linux-modules, llvm, mcgrof, nathan,
ndesaulniers, syzkaller-bugs, trix
Hello,
syzbot found the following issue on:
HEAD commit: 995b406c7e97 Merge tag 'csky-for-linus-6.5' of https://git..
git tree: upstream
console+strace: https://syzkaller.appspot.com/x/log.txt?x=13db8c0ca80000
kernel config: https://syzkaller.appspot.com/x/.config?x=71a52faf60231bc7
dashboard link: https://syzkaller.appspot.com/bug?extid=9e4e94a2689427009d35
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17d6670ca80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=103be50b280000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/d61d1dbcb956/disk-995b406c.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/f471061e6439/vmlinux-995b406c.xz
kernel image: https://storage.googleapis.com/syzbot-assets/9dcd428320a5/bzImage-995b406c.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+9e4e94a2689427009d35@syzkaller.appspotmail.com
==================================================================
BUG: KASAN: vmalloc-out-of-bounds in idempotent kernel/module/main.c:3078 [inline]
BUG: KASAN: vmalloc-out-of-bounds in init_module_from_file kernel/module/main.c:3124 [inline]
BUG: KASAN: vmalloc-out-of-bounds in __do_sys_finit_module kernel/module/main.c:3171 [inline]
BUG: KASAN: vmalloc-out-of-bounds in __se_sys_finit_module+0x371/0x8d0 kernel/module/main.c:3154
Read of size 8 at addr ffffc90003b1fd60 by task syz-executor680/5015
CPU: 1 PID: 5015 Comm: syz-executor680 Not tainted 6.4.0-syzkaller-10098-g995b406c7e97 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:364 [inline]
print_report+0x163/0x540 mm/kasan/report.c:475
kasan_report+0x175/0x1b0 mm/kasan/report.c:588
idempotent kernel/module/main.c:3078 [inline]
init_module_from_file kernel/module/main.c:3124 [inline]
__do_sys_finit_module kernel/module/main.c:3171 [inline]
__se_sys_finit_module+0x371/0x8d0 kernel/module/main.c:3154
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7faed3af4ce9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcd8021778 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
RAX: ffffffffffffffda RBX: 000000000000da09 RCX: 00007faed3af4ce9
RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007ffcd8021918 R09: 00007ffcd8021918
R10: 00007ffcd80211f0 R11: 0000000000000246 R12: 00007ffcd802178c
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
</TASK>
Memory state around the buggy address:
ffffc90003b1fc00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
ffffc90003b1fc80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
>ffffc90003b1fd00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
^
ffffc90003b1fd80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
ffffc90003b1fe00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
==================================================================
---
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 syzkaller@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title
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.
If you want to change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [syzbot] [modules?] general protection fault in sys_finit_module
2023-07-04 19:20 [syzbot] [modules?] general protection fault in sys_finit_module syzbot
@ 2023-07-24 19:46 ` Luis Chamberlain
2023-07-24 19:56 ` syzbot
2023-07-24 20:31 ` Luis Chamberlain
2023-08-13 13:38 ` syzbot
1 sibling, 2 replies; 7+ messages in thread
From: Luis Chamberlain @ 2023-07-24 19:46 UTC (permalink / raw)
To: syzbot
Cc: bpf, chris, linux-kernel, linux-modules, llvm, nathan,
ndesaulniers, syzkaller-bugs, trix
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 910e230d5f1bb72c54532e94fbb1705095c7bab6
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [syzbot] [modules?] general protection fault in sys_finit_module
2023-07-24 19:46 ` Luis Chamberlain
@ 2023-07-24 19:56 ` syzbot
2023-07-24 20:31 ` Luis Chamberlain
1 sibling, 0 replies; 7+ messages in thread
From: syzbot @ 2023-07-24 19:56 UTC (permalink / raw)
To: bpf, chris, linux-kernel, linux-modules, llvm, mcgrof, nathan,
ndesaulniers, syzkaller-bugs, trix
Hello,
syzbot tried to test the proposed patch but the build/boot failed:
failed to checkout kernel repo git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git on commit 910e230d5f1bb72c54532e94fbb1705095c7bab6: failed to run ["git" "checkout" "910e230d5f1bb72c54532e94fbb1705095c7bab6"]: exit status 128
fatal: reference is not a tree: 910e230d5f1bb72c54532e94fbb1705095c7bab6
Tested on:
commit: [unknown
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 910e230d5f1bb72c54532e94fbb1705095c7bab6
dashboard link: https://syzkaller.appspot.com/bug?extid=9e4e94a2689427009d35
compiler:
Note: no patches were applied.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [syzbot] [modules?] general protection fault in sys_finit_module
2023-07-24 19:46 ` Luis Chamberlain
2023-07-24 19:56 ` syzbot
@ 2023-07-24 20:31 ` Luis Chamberlain
2023-07-24 21:41 ` syzbot
1 sibling, 1 reply; 7+ messages in thread
From: Luis Chamberlain @ 2023-07-24 20:31 UTC (permalink / raw)
To: syzbot
Cc: bpf, chris, linux-kernel, linux-modules, llvm, nathan,
ndesaulniers, syzkaller-bugs, trix
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git 910e230d5f1bb72c54532e94fbb1705095c7bab6
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [syzbot] [modules?] general protection fault in sys_finit_module
2023-07-24 20:31 ` Luis Chamberlain
@ 2023-07-24 21:41 ` syzbot
0 siblings, 0 replies; 7+ messages in thread
From: syzbot @ 2023-07-24 21:41 UTC (permalink / raw)
To: bpf, chris, linux-kernel, linux-modules, llvm, mcgrof, nathan,
ndesaulniers, syzkaller-bugs, trix
Hello,
syzbot has tested the proposed patch and the reproducer did not trigger any issue:
Reported-and-tested-by: syzbot+9e4e94a2689427009d35@syzkaller.appspotmail.com
Tested on:
commit: 910e230d samples/hw_breakpoint: Fix kernel BUG 'invali..
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git
console output: https://syzkaller.appspot.com/x/log.txt?x=156bed06a80000
kernel config: https://syzkaller.appspot.com/x/.config?x=d182f762168e165e
dashboard link: https://syzkaller.appspot.com/bug?extid=9e4e94a2689427009d35
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
Note: no patches were applied.
Note: testing is done by a robot and is best-effort only.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [syzbot] [modules?] general protection fault in sys_finit_module
2023-07-04 19:20 [syzbot] [modules?] general protection fault in sys_finit_module syzbot
2023-07-24 19:46 ` Luis Chamberlain
@ 2023-08-13 13:38 ` syzbot
2023-08-13 16:02 ` Linus Torvalds
1 sibling, 1 reply; 7+ messages in thread
From: syzbot @ 2023-08-13 13:38 UTC (permalink / raw)
To: bpf, chris, linux-kernel, linux-modules, llvm, mcgrof, nathan,
ndesaulniers, syzkaller-bugs, torvalds, trix
syzbot suspects this issue was fixed by commit:
commit f1962207150c8b602e980616f04b37ea4e64bb9f
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Tue Jul 4 13:37:32 2023 +0000
module: fix init_module_from_file() error handling
bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=148a0a03a80000
start commit: 995b406c7e97 Merge tag 'csky-for-linus-6.5' of https://git..
git tree: upstream
kernel config: https://syzkaller.appspot.com/x/.config?x=71a52faf60231bc7
dashboard link: https://syzkaller.appspot.com/bug?extid=9e4e94a2689427009d35
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17d6670ca80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=103be50b280000
If the result looks correct, please mark the issue as fixed by replying with:
#syz fix: module: fix init_module_from_file() error handling
For information about bisection process see: https://goo.gl/tpsmEJ#bisection
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [syzbot] [modules?] general protection fault in sys_finit_module
2023-08-13 13:38 ` syzbot
@ 2023-08-13 16:02 ` Linus Torvalds
0 siblings, 0 replies; 7+ messages in thread
From: Linus Torvalds @ 2023-08-13 16:02 UTC (permalink / raw)
To: syzbot
Cc: bpf, chris, linux-kernel, linux-modules, llvm, mcgrof, nathan,
ndesaulniers, syzkaller-bugs, trix
On Sun, 13 Aug 2023 at 06:38, syzbot
<syzbot+9e4e94a2689427009d35@syzkaller.appspotmail.com> wrote:
>
> syzbot suspects this issue was fixed by commit f1962207150c
> ("module: fix init_module_from_file() error handling")
>
> dashboard link: https://syzkaller.appspot.com/bug?extid=9e4e94a2689427009d35
Looks right. Apparently syzkaller had two different bugs attributed to
this. It was already marked as fixing syzbot issue
x=9c2bdc9d24e4a7abe741
#syz fix: module: fix init_module_from_file() error handling
Linus
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-08-13 16:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-04 19:20 [syzbot] [modules?] general protection fault in sys_finit_module syzbot
2023-07-24 19:46 ` Luis Chamberlain
2023-07-24 19:56 ` syzbot
2023-07-24 20:31 ` Luis Chamberlain
2023-07-24 21:41 ` syzbot
2023-08-13 13:38 ` syzbot
2023-08-13 16:02 ` Linus Torvalds
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.