Skip to contentSkip to conversation

general protection fault in sctp_sched_prio_sched

DISCUSSION Marcelo Ricardo Leitner 1 participant 1 message Jun 18, 2019 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Marcelo Ricardo Leitner

author maintainer
#1 lore raw

On Tue, Jun 18, 2019 at 10:45:54PM +0800, Hillf Danton wrote:
...

Quoted 10 lines
Quoted 5 lines

Anyway, with the patch above, after calling sctp_stream_init_ext() ->ext will be either completely valid, or it will not be present at all as it is seting ->ext to NULL if sid initialization ended up failing.

Correct with no doubt.

I was wondering if it is likely for the ->ext, loaded with a valid slab, to cause a gpf in sctp_sched_prio_sched() without your patch applied. And if the failure to initialise sid could likely change the result.

Thanks, I think I understand now. Well, without the patch, yes, as syzbot reported. Seems you're also worried if it can happen in other situations as well, and end up triggering the same gpf but on a different situation. I don't think so. It should be either initialized or not initialized. Half-initialized as it was, that's a pain.

Marcelo