* Re: Test patch for KASAN: global-out-of-bounds Read in detach_capi_ctr [not found] <CAHH-VXdqp0ZGKyJWE76zdyKwhv104JRA8ujUY5NoYO47HC9XWQ@mail.gmail.com> @ 2022-07-04 11:26 ` Dan Carpenter 2022-07-04 11:54 ` Greg KH 0 siblings, 1 reply; 7+ messages in thread From: Dan Carpenter @ 2022-07-04 11:26 UTC (permalink / raw) To: Soumya Negi Cc: syzbot+9d567e08d3970bfd8271, syzkaller-bugs, Xiaolong Huang, stable, netdev On Fri, Jul 01, 2022 at 06:08:29AM -0700, Soumya Negi wrote: > #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git > 3f8a27f9e27bd78604c0709224cec0ec85a8b106 > > -- > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/CAHH-VXdqp0ZGKyJWE76zdyKwhv104JRA8ujUY5NoYO47HC9XWQ%40mail.gmail.com. > From 3aa5aaffef64a5574cbdb3f5c985bc25b612140c Mon Sep 17 00:00:00 2001 > From: Soumya Negi <soumya.negi97@gmail.com> > Date: Fri, 1 Jul 2022 04:52:17 -0700 > Subject: [PATCH] isdn: capi: Add check for controller count in > detach_capi_ctr() > > Fixes Syzbot bug: > https://syzkaller.appspot.com/bug?id=14f4820fbd379105a71fdee357b0759b90587a4e > > This patch checks whether any ISDN devices are registered before unregistering > a CAPI controller(device). Without the check, the controller struct capi_str > results in out-of-bounds access bugs to other CAPI data strucures in > detach_capri_ctr() as seen in the bug report. > This bug was already fixed by commit 1f3e2e97c003 ("isdn: cpai: check ctr->cnr to avoid array index out of bound"). It just needs to be backported. Unfortunately there was no Fixes tag so it wasn't picked up. Also I'm not sure how backports work in netdev. regards, dan carpenter ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Test patch for KASAN: global-out-of-bounds Read in detach_capi_ctr 2022-07-04 11:26 ` Test patch for KASAN: global-out-of-bounds Read in detach_capi_ctr Dan Carpenter @ 2022-07-04 11:54 ` Greg KH 2022-07-05 4:04 ` Soumya Negi 2022-07-05 4:59 ` Soumya Negi 0 siblings, 2 replies; 7+ messages in thread From: Greg KH @ 2022-07-04 11:54 UTC (permalink / raw) To: Dan Carpenter Cc: Soumya Negi, syzbot+9d567e08d3970bfd8271, syzkaller-bugs, Xiaolong Huang, stable, netdev On Mon, Jul 04, 2022 at 02:26:19PM +0300, Dan Carpenter wrote: > > On Fri, Jul 01, 2022 at 06:08:29AM -0700, Soumya Negi wrote: > > #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git > > 3f8a27f9e27bd78604c0709224cec0ec85a8b106 > > > > -- > > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/CAHH-VXdqp0ZGKyJWE76zdyKwhv104JRA8ujUY5NoYO47HC9XWQ%40mail.gmail.com. > > > From 3aa5aaffef64a5574cbdb3f5c985bc25b612140c Mon Sep 17 00:00:00 2001 > > From: Soumya Negi <soumya.negi97@gmail.com> > > Date: Fri, 1 Jul 2022 04:52:17 -0700 > > Subject: [PATCH] isdn: capi: Add check for controller count in > > detach_capi_ctr() > > > > Fixes Syzbot bug: > > https://syzkaller.appspot.com/bug?id=14f4820fbd379105a71fdee357b0759b90587a4e > > > > This patch checks whether any ISDN devices are registered before unregistering > > a CAPI controller(device). Without the check, the controller struct capi_str > > results in out-of-bounds access bugs to other CAPI data strucures in > > detach_capri_ctr() as seen in the bug report. > > > > This bug was already fixed by commit 1f3e2e97c003 ("isdn: cpai: check > ctr->cnr to avoid array index out of bound"). > > It just needs to be backported. Unfortunately there was no Fixes tag so > it wasn't picked up. Also I'm not sure how backports work in netdev. That commit has already been backported quite a while ago and is in the following releases: 4.4.290 4.9.288 4.14.253 4.19.214 5.4.156 5.10.76 5.14.15 5.15 thanks, greg k-h ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Test patch for KASAN: global-out-of-bounds Read in detach_capi_ctr 2022-07-04 11:54 ` Greg KH @ 2022-07-05 4:04 ` Soumya Negi 2022-07-05 4:45 ` Greg KH 2022-07-05 4:59 ` Soumya Negi 1 sibling, 1 reply; 7+ messages in thread From: Soumya Negi @ 2022-07-05 4:04 UTC (permalink / raw) To: Greg KH Cc: Dan Carpenter, syzbot+9d567e08d3970bfd8271, syzkaller-bugs, Xiaolong Huang, stable, netdev Thanks for letting me know. Is there a way I can check whether an open syzbot bug already has a fix as in this case? Right now I am thinking of running the reproducer on linux-next as well before starting on a bug. Regards Soumya ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Test patch for KASAN: global-out-of-bounds Read in detach_capi_ctr 2022-07-05 4:04 ` Soumya Negi @ 2022-07-05 4:45 ` Greg KH 0 siblings, 0 replies; 7+ messages in thread From: Greg KH @ 2022-07-05 4:45 UTC (permalink / raw) To: Soumya Negi Cc: Dan Carpenter, syzbot+9d567e08d3970bfd8271, syzkaller-bugs, Xiaolong Huang, stable, netdev On Mon, Jul 04, 2022 at 09:04:30PM -0700, Soumya Negi wrote: > Thanks for letting me know. Is there a way I can check whether an open > syzbot bug already has a fix as in this case? Right now I am thinking > of running the reproducer on linux-next as well before starting on a > bug. I have no context at all as to what you are referring to here, sorry. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Test patch for KASAN: global-out-of-bounds Read in detach_capi_ctr 2022-07-04 11:54 ` Greg KH 2022-07-05 4:04 ` Soumya Negi @ 2022-07-05 4:59 ` Soumya Negi 2022-07-05 5:07 ` butt3rflyh4ck 2022-07-05 5:18 ` Greg KH 1 sibling, 2 replies; 7+ messages in thread From: Soumya Negi @ 2022-07-05 4:59 UTC (permalink / raw) To: Greg KH Cc: Dan Carpenter, syzbot+9d567e08d3970bfd8271, syzkaller-bugs, Xiaolong Huang, stable, netdev On Mon, Jul 04, 2022 at 01:54:17PM +0200, Greg KH wrote: > On Mon, Jul 04, 2022 at 02:26:19PM +0300, Dan Carpenter wrote: > > > > On Fri, Jul 01, 2022 at 06:08:29AM -0700, Soumya Negi wrote: > > > #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git > > > 3f8a27f9e27bd78604c0709224cec0ec85a8b106 > > > > > > -- > > > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > > > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > > > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/CAHH-VXdqp0ZGKyJWE76zdyKwhv104JRA8ujUY5NoYO47HC9XWQ%40mail.gmail.com. > > > > > From 3aa5aaffef64a5574cbdb3f5c985bc25b612140c Mon Sep 17 00:00:00 2001 > > > From: Soumya Negi <soumya.negi97@gmail.com> > > > Date: Fri, 1 Jul 2022 04:52:17 -0700 > > > Subject: [PATCH] isdn: capi: Add check for controller count in > > > detach_capi_ctr() > > > > > > Fixes Syzbot bug: > > > https://syzkaller.appspot.com/bug?id=14f4820fbd379105a71fdee357b0759b90587a4e > > > > > > This patch checks whether any ISDN devices are registered before unregistering > > > a CAPI controller(device). Without the check, the controller struct capi_str > > > results in out-of-bounds access bugs to other CAPI data strucures in > > > detach_capri_ctr() as seen in the bug report. > > > > > > > This bug was already fixed by commit 1f3e2e97c003 ("isdn: cpai: check > > ctr->cnr to avoid array index out of bound"). > > > > It just needs to be backported. Unfortunately there was no Fixes tag so > > it wasn't picked up. Also I'm not sure how backports work in netdev. > > That commit has already been backported quite a while ago and is in the > following releases: > 4.4.290 4.9.288 4.14.253 4.19.214 5.4.156 5.10.76 5.14.15 5.15 > Thanks for letting me know. Is there a way I can check whether an open syzbot bug already has a fix as in this case? Right now I am thinking of running the reproducer on linux-next as well before starting on a bug. -Soumya ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Test patch for KASAN: global-out-of-bounds Read in detach_capi_ctr 2022-07-05 4:59 ` Soumya Negi @ 2022-07-05 5:07 ` butt3rflyh4ck 2022-07-05 5:18 ` Greg KH 1 sibling, 0 replies; 7+ messages in thread From: butt3rflyh4ck @ 2022-07-05 5:07 UTC (permalink / raw) To: Soumya Negi Cc: Greg KH, Dan Carpenter, syzbot+9d567e08d3970bfd8271, syzkaller-bugs, stable, Networking The patch for this issue had be available upstream last year. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1f3e2e97c003f80c4b087092b225c8787ff91e4d Regards, butt3rflyh4ck. On Tue, Jul 5, 2022 at 12:59 PM Soumya Negi <soumya.negi97@gmail.com> wrote: > > On Mon, Jul 04, 2022 at 01:54:17PM +0200, Greg KH wrote: > > On Mon, Jul 04, 2022 at 02:26:19PM +0300, Dan Carpenter wrote: > > > > > > On Fri, Jul 01, 2022 at 06:08:29AM -0700, Soumya Negi wrote: > > > > #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git > > > > 3f8a27f9e27bd78604c0709224cec0ec85a8b106 > > > > > > > > -- > > > > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > > > > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > > > > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/CAHH-VXdqp0ZGKyJWE76zdyKwhv104JRA8ujUY5NoYO47HC9XWQ%40mail.gmail.com. > > > > > > > From 3aa5aaffef64a5574cbdb3f5c985bc25b612140c Mon Sep 17 00:00:00 2001 > > > > From: Soumya Negi <soumya.negi97@gmail.com> > > > > Date: Fri, 1 Jul 2022 04:52:17 -0700 > > > > Subject: [PATCH] isdn: capi: Add check for controller count in > > > > detach_capi_ctr() > > > > > > > > Fixes Syzbot bug: > > > > https://syzkaller.appspot.com/bug?id=14f4820fbd379105a71fdee357b0759b90587a4e > > > > > > > > This patch checks whether any ISDN devices are registered before unregistering > > > > a CAPI controller(device). Without the check, the controller struct capi_str > > > > results in out-of-bounds access bugs to other CAPI data strucures in > > > > detach_capri_ctr() as seen in the bug report. > > > > > > > > > > This bug was already fixed by commit 1f3e2e97c003 ("isdn: cpai: check > > > ctr->cnr to avoid array index out of bound"). > > > > > > It just needs to be backported. Unfortunately there was no Fixes tag so > > > it wasn't picked up. Also I'm not sure how backports work in netdev. > > > > That commit has already been backported quite a while ago and is in the > > following releases: > > 4.4.290 4.9.288 4.14.253 4.19.214 5.4.156 5.10.76 5.14.15 5.15 > > > > Thanks for letting me know. Is there a way I can check whether an open > syzbot bug already has a fix as in this case? Right now I am thinking > of running the reproducer on linux-next as well before starting on a > bug. > > -Soumya -- Active Defense Lab of Venustech ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Test patch for KASAN: global-out-of-bounds Read in detach_capi_ctr 2022-07-05 4:59 ` Soumya Negi 2022-07-05 5:07 ` butt3rflyh4ck @ 2022-07-05 5:18 ` Greg KH 1 sibling, 0 replies; 7+ messages in thread From: Greg KH @ 2022-07-05 5:18 UTC (permalink / raw) To: Soumya Negi Cc: Dan Carpenter, syzbot+9d567e08d3970bfd8271, syzkaller-bugs, Xiaolong Huang, stable, netdev On Mon, Jul 04, 2022 at 09:59:38PM -0700, Soumya Negi wrote: > On Mon, Jul 04, 2022 at 01:54:17PM +0200, Greg KH wrote: > > On Mon, Jul 04, 2022 at 02:26:19PM +0300, Dan Carpenter wrote: > > > > > > On Fri, Jul 01, 2022 at 06:08:29AM -0700, Soumya Negi wrote: > > > > #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git > > > > 3f8a27f9e27bd78604c0709224cec0ec85a8b106 > > > > > > > > -- > > > > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > > > > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > > > > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/CAHH-VXdqp0ZGKyJWE76zdyKwhv104JRA8ujUY5NoYO47HC9XWQ%40mail.gmail.com. > > > > > > > From 3aa5aaffef64a5574cbdb3f5c985bc25b612140c Mon Sep 17 00:00:00 2001 > > > > From: Soumya Negi <soumya.negi97@gmail.com> > > > > Date: Fri, 1 Jul 2022 04:52:17 -0700 > > > > Subject: [PATCH] isdn: capi: Add check for controller count in > > > > detach_capi_ctr() > > > > > > > > Fixes Syzbot bug: > > > > https://syzkaller.appspot.com/bug?id=14f4820fbd379105a71fdee357b0759b90587a4e > > > > > > > > This patch checks whether any ISDN devices are registered before unregistering > > > > a CAPI controller(device). Without the check, the controller struct capi_str > > > > results in out-of-bounds access bugs to other CAPI data strucures in > > > > detach_capri_ctr() as seen in the bug report. > > > > > > > > > > This bug was already fixed by commit 1f3e2e97c003 ("isdn: cpai: check > > > ctr->cnr to avoid array index out of bound"). > > > > > > It just needs to be backported. Unfortunately there was no Fixes tag so > > > it wasn't picked up. Also I'm not sure how backports work in netdev. > > > > That commit has already been backported quite a while ago and is in the > > following releases: > > 4.4.290 4.9.288 4.14.253 4.19.214 5.4.156 5.10.76 5.14.15 5.15 > > > > Thanks for letting me know. Is there a way I can check whether an open > syzbot bug already has a fix as in this case? Right now I am thinking > of running the reproducer on linux-next as well before starting on a > bug. Always run the reproducer first if for no other reason than to be able to test if you do fix a problem or not. You can also always have syzbot run it too, use the email interface to it for that. good luck! greg k-h ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-07-05 5:18 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAHH-VXdqp0ZGKyJWE76zdyKwhv104JRA8ujUY5NoYO47HC9XWQ@mail.gmail.com>
2022-07-04 11:26 ` Test patch for KASAN: global-out-of-bounds Read in detach_capi_ctr Dan Carpenter
2022-07-04 11:54 ` Greg KH
2022-07-05 4:04 ` Soumya Negi
2022-07-05 4:45 ` Greg KH
2022-07-05 4:59 ` Soumya Negi
2022-07-05 5:07 ` butt3rflyh4ck
2022-07-05 5:18 ` Greg KH
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).